question_id
int64
37.6M
73.2M
input_text
stringlengths
88
52.4k
output_text
stringlengths
37
35.6k
title
stringlengths
15
150
tags
stringlengths
1
107
q_score
int64
-19
397
view_count
int64
3
879k
answer_count
int64
1
21
accepted_answer_id
int64
37.6M
73.8M
answer_id
int64
37.6M
73.8M
a_score
int64
-5
1.29k
is_accepted
bool
1 class
creation_date
stringlengths
20
24
input_text_instruct
stringlengths
251
52.6k
73,014,435
Target size (torch.Size([32, 9])) must be the same as input size (torch.Size([32, 10]))<p>I have 10 classes. I have a model such as;</p> <pre><code>from brevitas.nn import QuantLinear, QuantReLU import torch.nn as nn # Setting seeds for reproducibility torch.manual_seed(0) model = nn.Sequential( QuantLinear(inp...
<p>The code error is pretty straightforward - the <code>criterion</code> (that you didn't show here in the code) expects both the <code>input</code> and the <code>target</code> arguments to be the same size, but they're not.</p> <p>The problem is that you're using <code>torch.nn.functional.one_hot(target)</code> withou...
Target size (torch.Size([32, 9])) must be the same as input size (torch.Size([32, 10]))
machine-learning|pytorch|conv-neural-network|size
0
44
1
73,014,668
73,014,668
0
true
2022-07-17T18:41:57.003Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Target size (torch.Size([32, 9])) must be the same as input size (torch.Size([32, 10]))<p>I have 10 classes. I have a model such as;</p> <pre><code>from brev...
73,014,998
How to sort a nested list based on a list of floats<p>I currently have two lists, which look like:</p> <pre><code>A = [[1.1,2.0,3.3][3.8,50.9,1.0][25.2,6.2,2.2]] B = [14.4, 0.1, 7.2] </code></pre> <p>and I would like to sort <code>A</code> based upon the indices of <code>B</code>, such that the resulting sorted lists w...
<p>You can use <code>zip</code> twice. Also note the <code>key</code> parameter for <code>sorted</code>:</p> <pre class="lang-py prettyprint-override"><code>from operator import itemgetter A = [[1.1,2.0,3.3],[3.8,50.9,1.0],[25.2,6.2,2.2]] B = [14.4, 0.1, 7.2] sorted_A, sorted_B = zip(*sorted(zip(A, B), key=itemgetter...
How to sort a nested list based on a list of floats
python|numpy|sorting|floating-point|nested-lists
1
44
2
73,015,031
73,015,031
0
true
2022-07-17T20:03:44.533Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to sort a nested list based on a list of floats<p>I currently have two lists, which look like:</p> <pre><code>A = [[1.1,2.0,3.3][3.8,50.9,1.0][25.2,6.2,2...
73,017,666
Angular/RxJS wait for HTTP response in inner Observable<p>I have the following case. I have a http request which returns an observable with the following data structure</p> <pre><code>[ { firstName, secondName, petId } ] </code></pre> <p>No I have to iterate over this array and for each person I have to do a re...
<p>Try:</p> <pre><code>this.personService.getPersonData().pipe( switchMap(data =&gt; forkJoin(data.map(personObj =&gt; this.petService.getPetData(personObj.petId).pipe(map(pet =&gt; ({ ...personObj, petData: pet}))), )), ), ) </code></pre>
Angular/RxJS wait for HTTP response in inner Observable
angular|http|rxjs
0
44
1
73,019,029
73,019,029
0
true
2022-07-18T05:27:37.677Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Angular/RxJS wait for HTTP response in inner Observable<p>I have the following case. I have a http request which returns an observable with the following dat...
73,019,726
Typescript Union index based on string<p>is there any way how to index Union type based on string key something like this:</p> <pre><code>type C = A | B type D = C['A'] // D = A </code></pre> <p>thanks!</p>
<p>You can't index a union like that. You can extract from a union all types that have a specific base type.</p> <p>For example for a discriminated union we could write the following:</p> <pre><code>type C = { type: 'a', aProp: string } | { type: 'b', bProp: string } type D = Extract&lt;C, {type: 'a'}&gt; // { type: 'a...
Typescript Union index based on string
typescript|union-types
0
44
1
73,019,816
73,019,816
0
true
2022-07-18T08:58:59.530Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Typescript Union index based on string<p>is there any way how to index Union type based on string key something like this:</p> <pre><code>type C = A | B type...
73,023,070
Jquery Show more and less content data source from For loop<p>I am trying to create a dynamic show-more and less content option using jquery. The problem is my results are coming from a for loop, so how can I force jquery that on page load to load only 20 results and then load the rest when I click show more button. Al...
<p>If you want to query for specific amount that data source should be prepared for it. If you don't mind over fetching you can just hide/show that additional records on FE side.</p> <pre><code>// keeping some state would help let listExpanded = false; // wrapping all rendering procedure in one function too functi...
Jquery Show more and less content data source from For loop
javascript|html|jquery
0
44
1
73,024,124
73,024,124
0
true
2022-07-18T13:26:15.807Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Jquery Show more and less content data source from For loop<p>I am trying to create a dynamic show-more and less content option using jquery. The problem is ...
72,995,428
Trying to enable OVERRIDE_REDIRECT in XCB<p>I am trying to make a very simple window that doesn't get resized or positioned by a window manager. I thought what I wrote below would work, am I missing something?</p> <pre class="lang-c prettyprint-override"><code> // Create a window xcb_window_t \ window = xcb_...
<p>You have to switch the event mask and override redirect:</p> <pre class="lang-c prettyprint-override"><code> uint32_t \ win_values[] = { default_screen-&gt;white_pixel, 0, 1, XCB_EVENT_MASK_EXPOSURE }; </code></pre> <p>For clarity, you should also switch the order in <code...
Trying to enable OVERRIDE_REDIRECT in XCB
x11|xcb
0
44
1
73,024,880
73,024,880
0
true
2022-07-15T14:18:07.217Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Trying to enable OVERRIDE_REDIRECT in XCB<p>I am trying to make a very simple window that doesn't get resized or positioned by a window manager. I thought wh...
72,996,208
Optimize memory usage when using ClosedXML to read XLSX File<p>I've got an XLSX sheet that contains about 30 columns and 130,000 rows.</p> <p>In the past I used OleDb data reader to parse such files but it was problematic in case of reading unknown excel files with mixed cell data types.</p> <p>I found ClosedXML but th...
<p>The memory usage might be hard to avoid, depending on the kind of the data in the file. Internally, Excel files use a &quot;shared string&quot; table to store a single copy of each string, and refer to these by index from the worksheet data. I imagine most libraries will load the entire shared strings table before r...
Optimize memory usage when using ClosedXML to read XLSX File
c#|.net|excel|xlsx|closedxml
1
44
2
73,029,314
73,029,314
0
true
2022-07-15T15:21:32.697Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Optimize memory usage when using ClosedXML to read XLSX File<p>I've got an XLSX sheet that contains about 30 columns and 130,000 rows.</p> <p>In the past I u...
73,029,001
Combining DataFrames with Spark<p>I have two dataframes that both contain a customer id column. Aside from that, they have different columns. I'm trying to combine them into one dataframe that combines any like customer ids and has the remaining columns from both dataframes. Currently I have,</p> <p>DF1:</p> <div class...
<pre><code>d1 =[['0001', 1.423],['0002', 1.664],['0003', 2.451],['0004', 1.412]] df1 = spark.createDataFrame(d1, ['Cust_id', '7/13/22 Data']) d2 =[['0003', 1.345],['0004', 1.456],['0005', 2.111],['0006', 1.409]] df2 = spark.createDataFrame(d2, ['Cust_id', '7/17/22 Data']) df1.join(df2, ['Cust_id'], &quot;outer&quot;)...
Combining DataFrames with Spark
python|dataframe|pyspark
0
44
2
73,030,636
73,030,636
0
true
2022-07-18T21:52:08.913Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Combining DataFrames with Spark<p>I have two dataframes that both contain a customer id column. Aside from that, they have different columns. I'm trying to c...
73,030,752
Why I can't use parent's function in parent's class when using override in child's class?<p>I have two classes:</p> <pre><code>class A(): def __init__(self): pass def func_1(self,a,b): #do some stuff def other_func(self,a,b): if b: self.func_1(a,b) else: ...
<p>The error occurs because <code>self</code> is an instance of <code>B</code>, so <code>self.func_1(...)</code> is equivalent to <code>B.func_1(self, ...)</code>.</p> <p>As for how to fix it, it depends on what <code>func_1</code> actually does, and what its actual name is for that matter. You could possibly:</p> <ol>...
Why I can't use parent's function in parent's class when using override in child's class?
python|inheritance
0
44
1
73,031,109
73,031,109
0
true
2022-07-19T03:23:36.593Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why I can't use parent's function in parent's class when using override in child's class?<p>I have two classes:</p> <pre><code>class A(): def __init__(se...
73,025,875
How to parallalise partitioning around medoids (PAM) using a precalculated distance matrix<p>I am trying to cluster income trajectories using a large longitudinal dataset containing participants’ yearly reported incomes.</p> <p>I have chosen to calculate distances between the trajectories using dynamic time warping and...
<p>OK, I’ve managed to successfully pass a precalculated distance matrix to the function <code>tsclust</code> with help from @Alexis and code from the <code>dtwclust</code> github page <a href="https://github.com/asardaes/dtwclust/blob/master/man-examples/tsclust-examples.R" rel="nofollow noreferrer">here</a>. My solut...
How to parallalise partitioning around medoids (PAM) using a precalculated distance matrix
r|parallel-processing|cluster-analysis|partitioning|dtw
0
44
1
73,034,978
73,034,978
0
true
2022-07-18T16:48:57.433Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to parallalise partitioning around medoids (PAM) using a precalculated distance matrix<p>I am trying to cluster income trajectories using a large longitu...
72,971,600
I'm having an issue running multiple npm scripts using "parallel shell" - code: 'ERR_INVALID_ARG_TYPE'<p>Good day developers, I'm having an issue running multiple <strong>npm scripts</strong> using <strong>parallel shell</strong>. Here are the dependencies in my <strong>package.json</strong> file:</p> <pre><code>{ &q...
<p>you can use npm-run-all for this instead of parallel shell install npm-run-all by using <code>$ npm install npm-run-all --save-dev</code> then change the srcipt as <code>&quot;watch:all&quot;: &quot;npm-run-all --parallel watch:scss lite &quot;</code> Its Working for me :- <a href="https://i.stack.imgur.com/hkf2r.jp...
I'm having an issue running multiple npm scripts using "parallel shell" - code: 'ERR_INVALID_ARG_TYPE'
npm|node-modules|package.json|npm-scripts|file-watcher
0
44
1
73,036,271
73,036,271
0
true
2022-07-13T19:24:55.297Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: I'm having an issue running multiple npm scripts using "parallel shell" - code: 'ERR_INVALID_ARG_TYPE'<p>Good day developers, I'm having an issue running mul...
72,883,876
Is there any way to pre-load external files/modules before generating/running typeorm migrations?<p>I have created a few extensions on some base classes, such as <code>Array</code> to add some functionality that is commonly used throughout our NestJS app. Consider the following example:</p> <p>We have a declaration in ...
<p>After some messing around, I found a way to fix this. The issue wasn't with TypeORM, but with node (or ts-node) not including the declaration files, and the compiler complaining that the <code>undupe</code> property does not exist on <code>Array</code>.</p> <p>Previously, I had in my <code>package.json</code>, the f...
Is there any way to pre-load external files/modules before generating/running typeorm migrations?
node.js|typescript|nestjs|typeorm|extension-methods
0
44
1
73,040,149
73,040,149
0
true
2022-07-06T12:50:26.150Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Is there any way to pre-load external files/modules before generating/running typeorm migrations?<p>I have created a few extensions on some base classes, suc...
72,983,015
Bracket Syntax and Parsing Error in Stan model<p>I am trying to follow along with a series of <a href="https://github.com/stan-dev/example-models/tree/master/BPA/Ch.07" rel="nofollow noreferrer">Stan modelling tutorials and demos for demographic analysis</a>, which are based on models and code in Kéry and Schaub’s 'Bay...
<p>I've never seen that way to declare an <code>int</code> array as input before. Either that's a really old STAN version or a really new one, or an alternative way that I'm not aware of. Anyway, you should be able to fix the code by specifying <code>int</code> arrays like that instead:</p> <pre><code>functions { i...
Bracket Syntax and Parsing Error in Stan model
r|bayesian|stan|rstan
1
44
1
73,047,951
73,047,951
0
true
2022-07-14T15:26:38.050Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Bracket Syntax and Parsing Error in Stan model<p>I am trying to follow along with a series of <a href="https://github.com/stan-dev/example-models/tree/master...
72,943,913
Issues with libgcc_s_dw2-1.dll and libstdc++-6.dll on build<p>I know that these are required to compile a C++ app but what I don't know is how do I build my app so that other users won't need them. I tried to use -static flags to build but it still won't work when I remove mingw\bin\ and msys2\usr\bin\ from my path or ...
<p>So, as advised by HolyBlackCat, I fully reinstalled MSYS2 and downloaded SFML and jsonCpp with mingw and after a bit of research and trial and error I ended up with this makeFile :</p> <pre><code>rtx.exe: base.o objects.o rtx.o g++ -O3 base.o objects.o rtx.o -o rtx -pthread -lsfml-graphics-s -lsfml-window-s -lsf...
Issues with libgcc_s_dw2-1.dll and libstdc++-6.dll on build
c++|makefile|static-linking
0
44
2
73,055,888
73,055,888
0
true
2022-07-11T19:48:56.110Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Issues with libgcc_s_dw2-1.dll and libstdc++-6.dll on build<p>I know that these are required to compile a C++ app but what I don't know is how do I build my ...
72,950,760
Applying filter to 2 Tabbed Forms<p>I am coming across error 438 when running code to open 2 tabbed forms from 1 reference ID from another form; It opens the forms correct with the looks of the Data but shows the error -</p> <blockquote> <p>Error Number: 438 Object doesn't support this property or method</p> </blockquo...
<p>It transpired that the code worked - but the error was linked to another section of VBA</p>
Applying filter to 2 Tabbed Forms
vba|ms-access|ms-access-2010
0
44
1
73,077,184
73,077,184
0
true
2022-07-12T10:23:37.367Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Applying filter to 2 Tabbed Forms<p>I am coming across error 438 when running code to open 2 tabbed forms from 1 reference ID from another form; It opens the...
72,998,699
Migrating existing Realm objects with duplicate values to updated model with primary key?<p>We have a Realm object model that looks like this:</p> <pre><code>class RealmGroup: Object { @Persisted var name: String? @Persisted var groupId: Int? // this *should* have been the primary key @Persisted var gro...
<p>I'm not sure if there's a better way to do this but I did finally get it working. First, I created a new RealmGroupV2 model with the group ID defined as the primary key. Then I added a new .group_v2 property to my A, B and C objects. Finally, I performed the migration like this:</p> <pre><code>// enumerate all of...
Migrating existing Realm objects with duplicate values to updated model with primary key?
swift|migration|realm
0
44
1
73,083,737
73,083,737
0
true
2022-07-15T19:16:13.600Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Migrating existing Realm objects with duplicate values to updated model with primary key?<p>We have a Realm object model that looks like this:</p> <pre><code...
72,967,234
How correctly map values from resultset to html table with thymeleaf<p>I have a program of bikes rent. In database I have table with all bike info(bike table) and table with bike status changes which includes key bike_id. I need to make a table on page which shows all bike status changes during period of time which is ...
<p>Solved problem by adding multiply if statements in thymeleaf and additional iteration through dates from dates range.</p>
How correctly map values from resultset to html table with thymeleaf
spring|postgresql|spring-boot|thymeleaf
-1
44
1
73,119,588
73,119,588
0
true
2022-07-13T13:34:20.180Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How correctly map values from resultset to html table with thymeleaf<p>I have a program of bikes rent. In database I have table with all bike info(bike table...
72,867,559
Typeorm mysql cannot find by enum value<p>this is my code</p> <pre class="lang-ts prettyprint-override"><code>async findAdmin() { const user = await this.userRepository.findOne({ role: 0 }); const user2 = await this.userRepository.findOne({ where: { role: 0 } }); const users = await this.userRepository.find...
<p>As it turned out, you can find numeric enums with stringified value in mysql.</p> <p>when you want to find <code>role: 1</code> it gets the first enum value (as index, not value)</p> <p>so for no confusion I decided to use string enums.</p>
Typeorm mysql cannot find by enum value
mysql|typeorm
0
44
1
73,136,291
73,136,291
0
true
2022-07-05T10:05:58.867Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Typeorm mysql cannot find by enum value<p>this is my code</p> <pre class="lang-ts prettyprint-override"><code>async findAdmin() { const user = await this...
72,954,851
Problem with responsivity of card in grid layout of css<p>[https://codepen.io/TA0011/pen/VwXKKgG]</p> <p>When viewed in mobile version, the width of the card exceeds the Content hr (horizontal line). What can be done so that it does not exceed the horizontal line? Do not go with the 5 fr or 1fr unit. I can manage the 1...
<p>[I have done it , you can view it][1]</p> <pre><code> [1]: https://codepen.io/TA0011/pen/ZExJgmr </code></pre>
Problem with responsivity of card in grid layout of css
html|css
1
44
1
73,148,648
73,148,648
0
true
2022-07-12T15:31:19.090Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Problem with responsivity of card in grid layout of css<p>[https://codepen.io/TA0011/pen/VwXKKgG]</p> <p>When viewed in mobile version, the width of the card...
72,996,156
The javascript code for cookie acceptance is correct but does not work, instead there is a strange error<p>The javascript code for cookie acceptance is ok but not working, instead I find this console error :</p> <blockquote> <p>The use of drawWindow method of CanvasRenderingContext2D is deprecated. Use the tabs.capture...
<p>There was a conflict with another javascript function in another file that used the <code>window.onload = () =&gt; {}</code> function to create an animation.</p> <p>So I remove it.</p>
The javascript code for cookie acceptance is correct but does not work, instead there is a strange error
javascript|cookies
0
44
1
73,191,335
73,191,335
0
true
2022-07-15T15:18:18.607Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: The javascript code for cookie acceptance is correct but does not work, instead there is a strange error<p>The javascript code for cookie acceptance is ok bu...
72,910,882
Sending unique template regions in Mandrill to each recipient<p>We have a series of transactional emails in Mandrill (aka MailChimp Transactional) that we need to send to our customers. We can use <code>merge_vars</code> to send to multiple recipients at once, but we're also using <code>mc:edit</code> in our templates....
<p>No, it is not possible. The best solution is to use <code>merge_vars</code> and the added functionality of <a href="https://mailchimp.com/developer/transactional/docs/templates-dynamic-content/#handlebars" rel="nofollow noreferrer">Handlebars</a>.</p>
Sending unique template regions in Mandrill to each recipient
mailchimp|mandrill|mailchimp-api-v3.0
0
44
1
73,040,223
73,040,223
0
true
2022-07-08T11:43:16.313Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Sending unique template regions in Mandrill to each recipient<p>We have a series of transactional emails in Mandrill (aka MailChimp Transactional) that we ne...
72,858,347
My API request works but I can't access the content<p>I made a API request:</p> <pre><code>const [animes, setAnimes] = useState([]); useEffect(() =&gt; { axios .get(&quot;https://api.jikan.moe/v4/anime/38000/characters&quot;) .then((response) =&gt; { setAnimes(response.data); })...
<p>That's because the anime object doesn't contain <code>image_url</code> or <code>name</code> properties.</p> <p>It just contains these properties</p> <ol> <li>character: Object</li> <li>role: string</li> <li>voice_actors: Array</li> </ol> <p>Check console.</p> <p><a href="https://codesandbox.io/s/tender-hopper-ytxkvc...
My API request works but I can't access the content
reactjs|api|axios|use-effect|use-state
-1
44
2
72,858,502
72,858,502
0
true
2022-07-04T14:30:33.477Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: My API request works but I can't access the content<p>I made a API request:</p> <pre><code>const [animes, setAnimes] = useState([]); useEffect(() =&gt; { ...
72,890,506
how to write out entire months with object key where the months are in numbers<p>Currently I'm slightly confused why my code is not working as intended, and I was hoping you guys would be able to help me.</p> <p>I have an object with year and months.</p> <pre><code>chosenMonths = {[ 2022: [0,1,2] 2018: [9,10] ...
<p>I had to made modifications to make the code run, I believe that's what you need, the problem was that you were passing a string composed of months, instead of passing a month, I change the method to receive an array og months, also, to the sort() I had to the add the sorting function</p> <pre><code>chosenMonths = {...
how to write out entire months with object key where the months are in numbers
javascript|arrays|object|lit
1
44
1
72,890,617
72,890,617
0
true
2022-07-06T22:28:11.730Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to write out entire months with object key where the months are in numbers<p>Currently I'm slightly confused why my code is not working as intended, and ...
72,904,825
npx create-next-app doesn't run due to Global CSS error?<p>I am creating a next app using the npx create-next-app command but getting the following error w/o any changes.</p> <p>ERROR:</p> <pre><code>npm run dev npm WARN config global `--global`, `--local` are deprecated. Use `--location=glo bal` instead. &gt; test@0....
<p>Ok, so I finally found the source of the error.</p> <p>The problem was that the parent directory of my project contained the '#' character (Location: <code>..\..\#HACKYOURBIZ\test\pages\_app.js</code>). After removing the '#', the program compiled successfully.</p>
npx create-next-app doesn't run due to Global CSS error?
npm|next.js|npx
1
44
1
72,932,798
72,932,798
0
true
2022-07-07T22:21:14.533Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: npx create-next-app doesn't run due to Global CSS error?<p>I am creating a next app using the npx create-next-app command but getting the following error w/o...
72,933,775
python3 -m switch files<p>If I run this on my (Linux) command line.</p> <pre><code>python3 -m serial.tools.list_ports </code></pre> <p>I get the result:</p> <pre><code>/dev/ttyUSB0 1 ports found. </code></pre> <p>What files (or sequence of files) are run by this <code>-m</code> switch?</p> <p>I have various pyt...
<p>The <code>-m</code> flag in python is used for:<br /> -m mod : run library module as a script (terminates option list)</p> <p>What does &quot;terminates option list&quot; mean? It means that, any future options get passed to the program you are providing and not to python.</p> <p>So in your scenario, it's running th...
python3 -m switch files
python|serial-port|pyserial
1
44
1
72,933,829
72,933,829
0
true
2022-07-11T04:36:39.110Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: python3 -m switch files<p>If I run this on my (Linux) command line.</p> <pre><code>python3 -m serial.tools.list_ports </code></pre> <p>I get the result:</p> ...
72,778,024
CSS margin-top that changes in function of another element's height<p>I'm creating a website with a header that has <code>position: fixed;</code> so that it doesn't move when you scroll the page. However, I also need the main content to be visible but with the fixed element, we cant see the main content. Basically, I f...
<p>I solved the problem with the help of Nullish Byte's comment. If anyone wants to know, it works if you do:</p> <pre><code>function marginheader() { var main = document.getElementById('main'); var head = document.getElementById('head').getBoundingClientRect(); newhead = head.height.toString(); main.style.marg...
CSS margin-top that changes in function of another element's height
javascript|html|css
1
44
1
72,779,407
72,779,407
0
true
2022-06-27T20:37:32.143Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: CSS margin-top that changes in function of another element's height<p>I'm creating a website with a header that has <code>position: fixed;</code> so that it ...
72,993,723
Connect a database of amazon ec2 instance with another ec2 instance<p>I have two ec2 instances running laravel projects using ubuntu 20.04 on both instances. Both instances are running fine. One instance contains a database which is also working with one project but I want the same database to connect with the other la...
<p>The problem wasn't with instances security groups.</p> <p>All I had to do was to allow MySQL to listen to connections from remote IP addresses, and for that, I created a new user in MySQL that listens to the connection from the second ip address.</p> <pre class="lang-sql prettyprint-override"><code>CREATE USER 'new_...
Connect a database of amazon ec2 instance with another ec2 instance
laravel|amazon-web-services|amazon-ec2
-2
44
1
73,020,323
73,020,323
0
true
2022-07-15T12:05:20.853Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Connect a database of amazon ec2 instance with another ec2 instance<p>I have two ec2 instances running laravel projects using ubuntu 20.04 on both instances....
72,807,380
Computer not choosing a new value on the reiteration of a loop<p>I'm been trying to write a simple game of rock paper scissors and I'm stuck at trying to get the game to run for 5 rounds. The computer chooses a value from an array at random but then it doesn't choose a new one on the reiteration of the loop. As an exam...
<p>You need to move randomValue's definition to inside the computerPlay() function because every time computerPlay() is called, it is not generating a new value, but returning the pre-defined value calculated at the beginning of the program for randomValue. If you move it, then randomValue will be calculated and define...
Computer not choosing a new value on the reiteration of a loop
javascript
1
44
1
72,807,597
72,807,597
0
true
2022-06-29T20:20:52.863Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Computer not choosing a new value on the reiteration of a loop<p>I'm been trying to write a simple game of rock paper scissors and I'm stuck at trying to get...
72,886,575
Does mongoose model.insertMany() support the improved schema validation errors with mongodb 5<p>As stated <a href="https://www.mongodb.com/developer/products/mongodb/mongodb-5-0-schema-validation/" rel="nofollow noreferrer">here</a>, I could see the improved schema validation errors for <code>model.create()</code> but ...
<p>Mongoose passes the error received from the node.js mongodb driver. Following code shows how to find the schema validation error from the <code>err.writeErrors</code> property.</p> <p>Code:</p> <pre><code>main().catch((err) =&gt; { // console.log('error: ', JSON.stringify(err, null, 4)); // -&gt; this doesn't show...
Does mongoose model.insertMany() support the improved schema validation errors with mongodb 5
mongoose
1
44
2
72,890,443
72,890,443
0
true
2022-07-06T15:52:42.567Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Does mongoose model.insertMany() support the improved schema validation errors with mongodb 5<p>As stated <a href="https://www.mongodb.com/developer/products...
72,965,432
Why is message[i] returning an uninitialized value in this string?<pre><code>#include &lt;stdio.h&gt; #include &lt;string.h&gt; void vowel_check(char message[30], int i); int main() { char message[30]; while (fgets(message, 15, stdin) != NULL) { int i = 0; while (i &lt; 30) { ...
<p>You declared a character array with <code>30</code> elements</p> <pre><code>char message[30]; </code></pre> <p>but in the call of <code>fgets</code> you are using the magic number <code>15</code> by an unknown reason</p> <pre><code>while (fgets(message, 15, stdin) != NULL) { </code></pre> <p>The user can enter a str...
Why is message[i] returning an uninitialized value in this string?
c|loops|c-strings|fgets|function-definition
1
44
1
72,965,853
72,965,853
0
true
2022-07-13T11:23:02.090Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why is message[i] returning an uninitialized value in this string?<pre><code>#include &lt;stdio.h&gt; #include &lt;string.h&gt; void vowel_check(char messag...
72,925,745
Getting the latest ID from GROUP BY<p>How do I get the latest ID from the GROUP BY?</p> <p>Right now, I made this:</p> <pre><code>SELECT * FROM (SELECT * FROM mycp GROUP BY ttype ORDER BY MAX(ID) DESC LIMIT 10) mycp WHERE PlayerName = 'Mark_Fletcher' OR fbk = 14 ORDER BY ID ASC </code></pre> <p>The output will be as sh...
<pre><code>SELECT m1.* FROM mycp m1 JOIN ( -- below subquery will pick max id SELECT MAX(ID) as m_id FROM mycp GROUP BY ttype ) m2 on m1.id = m2.m_id -- join ensure to pick max id WHERE m1.PlayerName = 'Mark_Fletcher' OR m1.fbk = 14 ORDER BY m1.ID ASC </code></pre>
Getting the latest ID from GROUP BY
mysql|sql|group-by
-1
44
1
72,926,092
72,926,092
0
true
2022-07-10T02:13:54.850Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Getting the latest ID from GROUP BY<p>How do I get the latest ID from the GROUP BY?</p> <p>Right now, I made this:</p> <pre><code>SELECT * FROM (SELECT * FRO...
73,016,998
I get an error when I type-define the axios response<h1>What we want to solve</h1> <p>I would like to retrieve a value using NewsAPI, but I do not know how to set the response type. Specifically, I think I need to set the type to an array of object types, but I don't know how to do that.</p> <h1>Code</h1> <p>type</p> <...
<p>Your <code>news</code> state is a sub-object of <code>AllNews</code> type, which contains articles and metadata about the response.</p> <p>Making a separate <code>Article</code> type, we could do:</p> <pre><code>export interface Article { source: { id: string; name: string; }; author: string; title: ...
I get an error when I type-define the axios response
reactjs|typescript|axios
1
44
3
73,017,077
73,017,077
0
true
2022-07-18T03:23:34.680Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: I get an error when I type-define the axios response<h1>What we want to solve</h1> <p>I would like to retrieve a value using NewsAPI, but I do not know how t...
72,808,696
Oracle SQL to delete the records except last 7 days/1 week<p>I am using Oracle SQL DB for ERP JD Edwards. Dates are stored in Julian Format for this ERP.</p> <p>We usually use this code to convert date from Julian to normal format. decode(szupmj,0,' ',to_char(to_date(1900000 + olupmj,'YYYYDDD'),'MM/DD/YYYY'))</p> <p>H...
<p>You can convert your juliandate to a regular date and compare it to sysdate</p> <p>Please test this first on a test database or use the dbfiddole to add rows with dates that are only a few days old</p> <blockquote> <pre><code>CREATE TABLE dates ( &quot;SZEDUS&quot; VARCHAR(5), &quot;SZEDBT&quot; INTEGER, &quo...
Oracle SQL to delete the records except last 7 days/1 week
sql|oracle
1
44
3
72,809,134
72,809,134
0
true
2022-06-29T22:59:10.990Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Oracle SQL to delete the records except last 7 days/1 week<p>I am using Oracle SQL DB for ERP JD Edwards. Dates are stored in Julian Format for this ERP.</p>...
72,838,001
Null-safe equals comparison<p>SQLite 3.27:</p> <p>Is there a way to write an expression where comparing a <code>null</code> to a <code>null</code> would evaluate to true?</p> <p>For example:</p> <pre><code>with data (a,b) as ( values (1,1), (1,null), (null,null) ) select * from data where a = b </code></pre> <p>...
<p>It looks like the answer is <strong>yes</strong>.</p> <p>Use <code>IS</code> instead of <code>=</code>:</p> <pre><code>with data (a,b) as ( values (1,1), (1,null), (null,null) ) select * from data where a is b </code></pre> <p>Result:</p> <pre><code> a b ------ ------ 1 1 (null) (null) ...
Null-safe equals comparison
sql|sqlite|null|where-clause|equals
-2
44
1
72,838,002
72,838,002
0
true
2022-07-02T09:34:01.363Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Null-safe equals comparison<p>SQLite 3.27:</p> <p>Is there a way to write an expression where comparing a <code>null</code> to a <code>null</code> would eval...
72,820,091
How can I query for multiple values after a wildcard?<p>I have a json object like so:</p> <pre><code>{ _id: &quot;12345&quot;, identifier: [ { value: &quot;1&quot;, system: &quot;system1&quot;, text: &quot;text!&quot; }, { value: &quot;2&quot;, sys...
<p>By using the <code>IN</code> operator, what happens underneath the covers is basically a call to <a href="https://dev.mysql.com/doc/refman/5.7/en/json-search-functions.html#function_json-contains" rel="nofollow noreferrer"><code>JSON_CONTAINS()</code></a>.</p> <p>So, if you call:</p> <pre><code>collection.find(&quot...
How can I query for multiple values after a wildcard?
mysql|mysql-x-devapi
0
44
1
72,827,002
72,827,002
0
true
2022-06-30T17:52:50.460Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I query for multiple values after a wildcard?<p>I have a json object like so:</p> <pre><code>{ _id: &quot;12345&quot;, identifier: [ { ...
72,887,132
Check if database matches and create user using PG/PLSQL<p>The below script runs but does not create the user when database name matches? i just cannot spot what i am doing wrong here.</p> <pre><code> DO $do$ DECLARE lc_s_db_name CONSTANT VARCHAR(30) := 'dev'; lv_db_name VARCHAR(100); BEGIN select datname into lv_...
<p>Your select query picks <em>one</em> database name of the list of all databases. That's not necessarily the one you are connected to.</p> <p>To get the name of the database you are connected to, use the function <code>current_database()</code></p> <pre><code>DO $do$ DECLARE lc_s_db_names CONSTANT text[] := array['...
Check if database matches and create user using PG/PLSQL
postgresql
0
44
1
72,889,991
72,889,991
0
true
2022-07-06T16:42:02.607Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Check if database matches and create user using PG/PLSQL<p>The below script runs but does not create the user when database name matches? i just cannot spot ...
72,863,017
How to import javascript libraries using Parcel/Netlify?<p>I'm building a vanilla js app and using CDN's works fine, but If I install an app like typed.js with npm, and then import it as <code>import typed from 'typed.js'</code> it works as it should on a local dev server.</p> <p>However, once I push it and it's built ...
<p>It ended up being a very easy fix with Netlify, I needed to change the publish directory to &quot;dist&quot; within the build settings.</p>
How to import javascript libraries using Parcel/Netlify?
javascript|importerror|netlify|parceljs
0
44
1
72,863,376
72,863,376
0
true
2022-07-05T00:35:55.567Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to import javascript libraries using Parcel/Netlify?<p>I'm building a vanilla js app and using CDN's works fine, but If I install an app like typed.js wi...
72,929,969
Unable to break down logstash message field<p>The input looks like</p> <pre><code>..., &quot;message&quot;: [ &quot;,{\&quot;Timestamp\&quot;:\&quot;2022-07-10T15:19:26.5172555Z\&quot;,\&quot;Level\&quot;:\&quot;Error\&quot;,\&quot;MessageTemplate\&quot;:\&quot;this is an error\&quot;,\&quot;RenderedMessage\&quot...
<p>The issue I was having is due to an incorrect logstash input setup, previously I had:</p> <pre><code>input { beats { port =&gt; 5044 } tcp { port =&gt; 5000 tags =&gt; [&quot;API&quot;] } } </code></pre> <p>And I was writing HTTP logs to port 5000 via <code>Serilog.Sinks.Http...
Unable to break down logstash message field
c#|elasticsearch|logstash|serilog
0
44
1
72,930,503
72,930,503
0
true
2022-07-10T16:11:21.987Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Unable to break down logstash message field<p>The input looks like</p> <pre><code>..., &quot;message&quot;: [ &quot;,{\&quot;Timestamp\&quot;:\&quot;20...
72,778,241
Steps after running a 3 way ANCOVA with 1 continuous covariate<p>I'm working on a 3 way ANCOVA in R. 3 categorical predictors, 1 non-negative continuous covariate, and 1 non-negative continuous response variable. I've worked through all the assumptions, omitted one extreme outlier, and I've gotten to the following mod...
<p>A reproducible example based on your description:</p> <pre><code>dat &lt;- data.frame(y = rnorm(150), x = rnorm(150), f1 = sample(gl(3, 50, labels = letters[1:3])), f2 = sample(gl(3, 50, labels = letters[1:3])), f3 = sample(gl(3, 50, labels = letters[1:3]))) mod...
Steps after running a 3 way ANCOVA with 1 continuous covariate
r|statistics|data-analysis|ancova
1
44
1
72,778,809
72,778,809
0
true
2022-06-27T20:58:26.290Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Steps after running a 3 way ANCOVA with 1 continuous covariate<p>I'm working on a 3 way ANCOVA in R. 3 categorical predictors, 1 non-negative continuous cova...
72,914,860
C# Making the binary search code look and work better<p>Could you give me some suggestions how I could optimise this code(By code looks, and speed maybe)</p> <pre class="lang-cs prettyprint-override"><code> public class Program { public static int BinarySearch(int[] array, int target) { ...
<p>Here is an alternate option which may be a bit more readable.</p> <pre><code>public static int BinarySearch(int[] array, int target) { int minPosition = 0; int maxPosition = array.Length - 1; int position = maxPosition / 2; while (maxPosition &gt;= minPosition) { if (array[position] ...
C# Making the binary search code look and work better
c#
-1
44
1
72,915,153
72,915,153
0
true
2022-07-08T17:18:19.127Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: C# Making the binary search code look and work better<p>Could you give me some suggestions how I could optimise this code(By code looks, and speed maybe)</p>...
72,799,728
Translate MySQL aggregation query to ElasticSearch<p>I have a <code>comments</code> table that over the past year has grown considerably and I'm moving it to ElasticSearch.</p> <p>The problem is that I need to adapt a query that I currently have in MySQL which returns the total number of comments for each day in the la...
<p>Use the following query to get all the comments on a given &quot;post_id&quot; for the last 7 days.</p> <pre><code>{ &quot;query&quot;: { &quot;bool&quot;: { &quot;must&quot;: [ { &quot;term&quot;: { &quot;id&quot;: { &quot;value&quot;: &quot;the_post_id&quot; ...
Translate MySQL aggregation query to ElasticSearch
elasticsearch|elasticsearch-aggregation
0
44
3
72,800,049
72,800,049
0
true
2022-06-29T10:20:31.120Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Translate MySQL aggregation query to ElasticSearch<p>I have a <code>comments</code> table that over the past year has grown considerably and I'm moving it to...
72,849,717
In R, replace "\n" (The end-line) with "\" and a "n" (not the end-line) in variable<p>In a variable I try to replace the &quot;\n&quot; (end-line) with the characters &quot;&quot; and &quot;n&quot;. All this to get a variable where the end-line is replaced by the text &quot;\n&quot; literally.</p> <p>I tried:</p> <pre>...
<p>StackOverflow seems to replace the slashes as well ;)</p> <p>A regex in R usually needs to be escaped twice. For a fixed string, we still need to escape the backslash with another backslash:</p> <pre><code>gsub(&quot;\n&quot;, &quot; \\\\n &quot;, &quot;Line1\nLine2&quot;) gsub(&quot;\n&quot;, &quot; \\n &quot;, &q...
In R, replace "\n" (The end-line) with "\" and a "n" (not the end-line) in variable
r
3
44
2
72,851,129
72,851,129
0
true
2022-07-03T20:33:57.733Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: In R, replace "\n" (The end-line) with "\" and a "n" (not the end-line) in variable<p>In a variable I try to replace the &quot;\n&quot; (end-line) with the c...
72,882,460
Why my code textContent.indexOf can't compare input value<p>The code worked a few months ago and recently stopped working <br> It's for when I text some word and it can auto search the item of list <br> I have been trying code from a lesson but it still doesn't work</p> <p>This is my code</p> <p><div class="snippet" da...
<p>Use the .value</p> <p>Here is a shorter and improved script:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>const lis = document.querySelectorAll('#phone li'); document.get...
Why my code textContent.indexOf can't compare input value
javascript|html
0
44
3
72,882,653
72,882,653
0
true
2022-07-06T11:04:06.803Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why my code textContent.indexOf can't compare input value<p>The code worked a few months ago and recently stopped working <br> It's for when I text some word...
72,776,375
Reverse words of string<p>I'm trying to show spaces between the words after processing the string but I'm getting</p> <pre><code>thread 'main' panicked at 'assertion failed: `(left == right)` left: `&quot;abcd&quot;`, right: `&quot;a b c d&quot;`', src/main.rs:11:5 </code></pre> <p>How can I fix it?</p> <pre><code>fn r...
<p>You split the input on whitespace but when you collect it, it's joined without any separator. To fix, you can collect it into a <code>Vec&lt;String&gt;</code> and then call <code>.join(&quot; &quot;)</code> on it:</p> <pre class="lang-rust prettyprint-override"><code>fn reverse_words(words: &amp;str) -&gt; String { ...
Reverse words of string
string|unit-testing|rust
0
44
2
72,776,410
72,776,410
0
true
2022-06-27T17:48:25.070Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Reverse words of string<p>I'm trying to show spaces between the words after processing the string but I'm getting</p> <pre><code>thread 'main' panicked at 'a...
72,981,558
Getting wrong answer for "Geek and New job" problem gfg<pre><code> #code testcases=int(input()) while testcases!=0: s=input() lower,upper,numeric=0,0,0 for i in s: if ord(i)&gt;=49 and ord(i)&lt;=57: numeric+=1 elif ord(i)&gt;=65 and ord(i)&lt;=90: upper+=1 ...
<p>You are not checking for zero. To avoid this kind of error use the chars, so it is clearer what the code is doing.</p> <p>The cause of the error is the <a href="https://en.wikipedia.org/wiki/Magic_number_(programming)#Unnamed_numerical_constants" rel="nofollow noreferrer">antipattern &quot;magic numbers&quot;</a>. P...
Getting wrong answer for "Geek and New job" problem gfg
python
-2
44
2
72,981,765
72,981,765
0
true
2022-07-14T13:44:09.140Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Getting wrong answer for "Geek and New job" problem gfg<pre><code> #code testcases=int(input()) while testcases!=0: s=input() lower,upper,numeric=...
73,029,438
What is the complexity of the groupingBy{ it }.eachCount() operation?<p>What is the time-complexity of the <code>groupingBy{ it }.eachCount()</code> operation?</p> <pre><code>fun main() { val a = listOf(1, 1, 3, 3, 3, 5, 8, 8) val counter = a.groupingBy { it }.eachCount() println(counter) } </code></pre>...
<p>It is <code>O(N)</code> where <code>N</code> is the number of items in the list.</p> <p>The algorithm iterates over the source list, for each item it acquires its key, searches for the counter in the map and increments it. Map access is constant (not counting sporadic re-hashing), so the time increases only due to i...
What is the complexity of the groupingBy{ it }.eachCount() operation?
list|kotlin|time-complexity
0
44
1
73,029,671
73,029,671
0
true
2022-07-18T22:56:56.767Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: What is the complexity of the groupingBy{ it }.eachCount() operation?<p>What is the time-complexity of the <code>groupingBy{ it }.eachCount()</code> operatio...
72,779,453
C# Application Settings. A quick Question about User V's Application Scope<p>I have just looked at an example from Microsoft Social Network on how to use Application Settings namely this one:</p> <pre><code>public bool IsUSer(SettingsProperty Setting) { bool flag = Setting.Attributes[typeof(UserScop...
<p><code>[UserScopedSetting]</code> and <code>[ApplicationScopedSetting]</code> are <em>attributes</em> so you might use them like this:</p> <pre class="lang-cs prettyprint-override"><code>public class MyUserSettings : ApplicationSettingsBase { [UserScopedSetting()] [DefaultSettingValue(&quot;white&quot;)] ...
C# Application Settings. A quick Question about User V's Application Scope
c#|settings
-3
44
1
72,779,492
72,779,492
0
true
2022-06-28T00:06:41.697Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: C# Application Settings. A quick Question about User V's Application Scope<p>I have just looked at an example from Microsoft Social Network on how to use App...
72,786,303
How do I make one dropdown list show as a new line and one as a separated comma list?<p>Working in excel, I'd like to make several dropdown menus (D3:D400 &amp; E3:E400) a list with a new line each and one(F3:F400) that's text separated by a comma, all on one line. Current code:</p> <pre><code>Private Sub Worksheet_Cha...
<p>Use <code>If Not Intersect(...) Is Nothing</code> to check if the <code>Target</code> is in &quot;D:E&quot; or &quot;F:F&quot;, and then create a variable <code>Separator</code> that is set to either <code>vbNewLine</code> or <code>&quot;, &quot;</code> depending on the result. Then later, join your strings with <co...
How do I make one dropdown list show as a new line and one as a separated comma list?
excel|vba|drop-down-menu
0
44
1
72,789,186
72,789,186
0
true
2022-06-28T12:18:49.490Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How do I make one dropdown list show as a new line and one as a separated comma list?<p>Working in excel, I'd like to make several dropdown menus (D3:D400 &a...
73,016,193
Keep my selected option in a form - laravel 8<p>in my form i have a select and if i edit i want keep select the option i try with isset but i dont know how to use it in a select</p> <p>this is my select:</p> <pre><code> &lt;div class=&quot;form-group&quot;&gt; &lt;label for=&quot;id_raza&quot;&gt;Raza&lt;/lab...
<p>Since <code>mascotas</code> has a <code>id_raza</code>, this value is needed to be able to set the <code>selected</code> option.</p> <pre><code>@foreach ($razas as $raza) @if (!empty($moscatas-&gt;id_raza) &amp;&amp; $moscatas-&gt;id_raza == $raza-&gt;id) &lt;option value=&quot;{{$raza-&gt;id}}&quot; sel...
Keep my selected option in a form - laravel 8
php|laravel-8
1
44
2
73,016,623
73,016,623
0
true
2022-07-18T00:06:56.577Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Keep my selected option in a form - laravel 8<p>in my form i have a select and if i edit i want keep select the option i try with isset but i dont know how t...
72,826,269
Add or edit the typescript array based on the condition which is given<p>I have an array which looks like this</p> <pre><code> people = [ {id:1, name:&quot;Bob&quot;, lang:English}, {id:2, name:&quot;Sally&quot;, lang:German,Hebrew}, {id:3, name:&quot;Trish&quot;, lang:English}, ] </code></pre> <p...
<p>you can try something like this</p> <p>basically addData returns a new array everytime so if you need to update the existing one you have to overwrite <code>people</code> variable</p> <p>the idea is that you are using the name as the field that you check for update or insert the record so first you create an object ...
Add or edit the typescript array based on the condition which is given
javascript|arrays|typescript
0
44
2
72,826,858
72,826,858
0
true
2022-07-01T08:12:06.540Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Add or edit the typescript array based on the condition which is given<p>I have an array which looks like this</p> <pre><code> people = [ {id:1, name:&...
72,890,544
Hack N Slash movement animation - how to end animation?<p>Im quite new to animation in Unity, does anybody know how in this loop I can set my bool to false when my Character will arrive at destination point? Most help I found on Internet was about controling your charracter with keyboard, but mine is conntroled by mous...
<p>Try this:</p> <pre><code>if(agent.remainingDistance &lt; 0.1) { animator.SetBool(&quot;...&quot;, false); } </code></pre>
Hack N Slash movement animation - how to end animation?
c#|unity3d|animation
-2
44
1
72,890,605
72,890,605
0
true
2022-07-06T22:36:10.870Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Hack N Slash movement animation - how to end animation?<p>Im quite new to animation in Unity, does anybody know how in this loop I can set my bool to false w...
72,942,630
Python - Pull most visited store, if tied pull store where most was spent. If tied at 1 then pull most recently visited store<p>I am working in Python with a dataset that looks like the following Original Dataset:</p> <p><a href="https://i.stack.imgur.com/AwtBn.png" rel="nofollow noreferrer"><img src="https://i.stack.i...
<p>Ok I think I got it:</p> <pre class="lang-py prettyprint-override"><code>import pandas as pd CN = [1, 1, 2, 2, 3, 4, 4, 5, 5, 5] SN = [111, 222, 111, 222, 444, 22, 55, 22, 222, 888] Count = [2, 1, 1, 1, 1, 1, 1, 1, 1, 1] SCSA = [40, 100, 50, 20, 30, 20, 50, 2, 200, 100] Date = [&quot;1/2/2021&quot;, &quot;2/2/2021&...
Python - Pull most visited store, if tied pull store where most was spent. If tied at 1 then pull most recently visited store
python|pandas|sorting|if-statement
0
44
2
72,942,900
72,942,900
0
true
2022-07-11T17:43:15.783Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Python - Pull most visited store, if tied pull store where most was spent. If tied at 1 then pull most recently visited store<p>I am working in Python with a...
72,945,695
Remove all non-alphanumerical values from dataframe in R<p>I'm trying to remove special characters from the rows in my data frame. so keep numbers and alphabets. I have tried this code but it also takes out the alphabet rows. Ultimately trying to remove the special characters</p> <pre><code>df[] &lt;- lapply(df, functi...
<p>Try this</p> <pre><code>x &lt;- &quot;I'will remove all 999 - @ ?? -9/.&quot; gsub(&quot;\\W&quot;, &quot; &quot;, x) #&gt; &quot;I will remove all 999 9 &quot; </code></pre> <p>if you want to remove the long spaces , use</p> <pre><code>gsub(&quot;\\W&quot;, &quot; &quot;, x) |&gt; gsub(&quot;\\s{2,}&quot...
Remove all non-alphanumerical values from dataframe in R
r|regex|string|dataframe|str-replace
-1
44
1
72,945,713
72,945,713
0
true
2022-07-11T23:49:41.437Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Remove all non-alphanumerical values from dataframe in R<p>I'm trying to remove special characters from the rows in my data frame. so keep numbers and alphab...
72,955,232
Converting percent column to float in pandas<p>I am trying to turn a set of columns into a float object but I keep getting a value error. I have tried to use <code>.astype('float')</code> and I still end up with the same error. The below is the code I am using right now.</p> <pre><code> for column in pct_columns: d...
<p>You should focus on this exact problem:</p> <pre><code>ValueError: could not convert string to float: '---' </code></pre> <p>Two possible approaches would be:</p> <ol> <li>Remove lines containing the value <code>'---'</code> before doing the string to float conversion.</li> </ol> <pre class="lang-python prettyprint-...
Converting percent column to float in pandas
python|pandas|dataframe
0
44
1
72,955,299
72,955,299
0
true
2022-07-12T16:03:27.630Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Converting percent column to float in pandas<p>I am trying to turn a set of columns into a float object but I keep getting a value error. I have tried to use...
72,799,287
How to type different words as variable entry data<p>I’m new to programming and I’m trying to write a code that does this:</p> <p>Entry data</p> <p>Name 1</p> <p>Time 1</p> <p>Name 2</p> <p>Time 2</p> <p>Output</p> <p>Show the name that has the best time.</p> <p>Now, I’ve managed to create a code that shows the correct...
<p>I think that this should do the trick.</p> <p><a href="https://dotnetfiddle.net/iuaxMe" rel="nofollow noreferrer">Here</a> is the link so you can try it out.</p> <pre><code> Console.WriteLine (&quot;Name 1: &quot;); string name1 = Console.ReadLine(); //put name into a string, so we can use it after Conso...
How to type different words as variable entry data
c#|string|input|casting|character
0
44
2
72,799,693
72,799,693
0
true
2022-06-29T09:48:23.020Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to type different words as variable entry data<p>I’m new to programming and I’m trying to write a code that does this:</p> <p>Entry data</p> <p>Name 1</p...
72,965,471
Component keeps re-rendering after state change<p>I use <code>handleMouseOver</code> and <code>handleMouseOut</code> functions where I change the value of a state <code>count</code>. However, every time the state is changed the component re-renders instead of just the state. What am I missing here? Thanks.</p> <pre><co...
<p>The Issue is with your handleMouseOver function. It is getting executed everytime there is a state Update and the same value is assigned to &quot;count&quot;. All you have to do is place setState inside the condition that will compare the value of event received by the function and the current value of sate. It shou...
Component keeps re-rendering after state change
javascript|reactjs
-1
44
3
72,965,711
72,965,711
0
true
2022-07-13T11:26:07.433Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Component keeps re-rendering after state change<p>I use <code>handleMouseOver</code> and <code>handleMouseOut</code> functions where I change the value of a ...
72,776,759
Populate Tkinter Treeview Hierarchically from Directory List<p>I'm trying to populate a tkinter treeview hierarchically from a list of directories that looks like this:</p> <pre><code>C:/1/1 C:/1/2/1 C:/1/2/2 C:/1/3 C:/2 </code></pre> <p>You get the idea... The hard part is to relate the next item to its parent. I trie...
<p>I solved it. I wanted this result: <a href="https://ibb.co/1zb4PSH" rel="nofollow noreferrer">https://ibb.co/1zb4PSH</a></p> <p>I dit it by 'walking' on each subpath of the pathlist, checking if it already exists, if not, create it on the Treeview and assigning its full path as its ID. Then using that ID to insert o...
Populate Tkinter Treeview Hierarchically from Directory List
python|tkinter
0
44
1
72,785,751
72,785,751
0
true
2022-06-27T18:21:36.327Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Populate Tkinter Treeview Hierarchically from Directory List<p>I'm trying to populate a tkinter treeview hierarchically from a list of directories that looks...
72,910,909
Random Input From A List<p>I want to display a random input option for the user and if the condition is not met it picks another random input from the list.</p> <pre><code>import random choice = '' clues = [] clues.append(fname:= input('What is your first name? ')) clues.append(residence:= input('Where do you live? ')...
<p>I think this <em>might</em> be closer to what you're looking for. It will only show the first question, and then it will keep displaying a random question until you type &quot;smores&quot;. It also saves all of the answers in a dictionary where the question is the key index</p> <pre class="lang-py prettyprint-overri...
Random Input From A List
python|random|input
-1
44
3
72,911,358
72,911,358
0
true
2022-07-08T11:45:20.237Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Random Input From A List<p>I want to display a random input option for the user and if the condition is not met it picks another random input from the list.<...
72,823,916
How can I make Pandas read SQL?<p>I have trouble making Pandas read SQL database.</p> <p>The code below</p> <pre><code>import sqlite3 from sqlite3 import connect connection = sqlite3.connect(&quot;:memory:&quot;) #Create the database in RAM cursor = connection.cursor() sql_file = open(r'https://github.com/jvns/pandas...
<p>Hello Pavel Tashkinov,</p> <p>As far as I'm aware, sqlite3 was only designed to deal with local files. To utilise the database, you might need to download it from the server. And you need the path to the file, not the URL.</p> <pre><code>import pandas as pd import sqlite3 con = sqlite3.connect('path/Downloads/weathe...
How can I make Pandas read SQL?
python|sql|pandas|sqlite
-1
44
1
73,020,302
73,020,302
0
true
2022-07-01T02:52:23.403Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I make Pandas read SQL?<p>I have trouble making Pandas read SQL database.</p> <p>The code below</p> <pre><code>import sqlite3 from sqlite3 import con...
72,881,023
SFCC: Is there a way to automatically remove custom attribute definitions<p>We have a pretty old project where we have a lot of custom attribute definitions but do not trust our <code>sites/site_template/meta/system-objecttype-extensions.xml</code> to be complete.</p> <p>Does anybody know of a way to remove a defined s...
<p>What to do, so I wrote my own parser / analyser / merger: <a href="https://github.com/Andreas-Schoenefeldt/SFCCAnalyser#combine-and-analyse-system-objecttype-extension-xml-files" rel="nofollow noreferrer">https://github.com/Andreas-Schoenefeldt/SFCCAnalyser#combine-and-analyse-system-objecttype-extension-xml-files</...
SFCC: Is there a way to automatically remove custom attribute definitions
salesforce-commerce-cloud
0
44
1
72,979,236
72,979,236
0
true
2022-07-06T09:28:49.237Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: SFCC: Is there a way to automatically remove custom attribute definitions<p>We have a pretty old project where we have a lot of custom attribute definitions ...
72,847,631
Data are overwritten and then print same name<pre><code>import requests import json import pandas as pd headers = { 'Accept-Language': 'en-GB,en-US;q=0.9,en;q=0.8,pt;q=0.7', 'Connection': 'keep-alive', 'Origin': 'https://www.nationalhardwareshow.com', 'Referer': 'https://www.nationalhardwareshow.com/', ...
<p>Why not simply convert <code>req_json['hits']</code> directly into a <code>dataFrame</code>?</p> <pre><code>... req_json=resp df = pd.DataFrame(req_json['hits']) </code></pre> <p>You could filter the information to display:</p> <pre><code>df[['name','representedBrands','description']] </code></pre> <p>Output</p> <pr...
Data are overwritten and then print same name
python|json|web-scraping|beautifulsoup
1
44
1
72,847,810
72,847,810
0
true
2022-07-03T15:14:37.173Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Data are overwritten and then print same name<pre><code>import requests import json import pandas as pd headers = { 'Accept-Language': 'en-GB,en-US;q=0.9...
72,857,242
How to create tests in a Spring boot application without the main class (using Mockito)<p>I have a library, the project is written in springbot, but there is no need to use main class here</p> <pre class="lang-java prettyprint-override"><code>interface Helper{ String transform(int index); } </code></pre> <pre class="...
<p>The @Autowired annotation is a Spring annotation, hence cannot be used without a Spring context being loaded. <br /> There are three usual solutions to provide the instances of the classes required by the classes under test :</p> <h2>Manual instantiations</h2> <p>You don't use Spring, and instantiate the dependencie...
How to create tests in a Spring boot application without the main class (using Mockito)
spring-boot|mocking|integration-testing
0
44
1
72,878,821
72,878,821
0
true
2022-07-04T13:04:58.310Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to create tests in a Spring boot application without the main class (using Mockito)<p>I have a library, the project is written in springbot, but there is...
72,818,499
How to await an RoutedEvent`?<p>How to Wait for a RoutedEvent? Since there is no definition for GetAwaiter i can't use the await keyword. So how should i modify the Code so that it waits for completion of the GIF Animation?</p> <p>The Code who calls the RoutedEvent:</p> <pre><code> public static async Task&lt;Boolea...
<p>You don't await events. Events are synchronous and a different concept than asynchronous methods. While you await asynchronous methods, you listen to events by registering an event handler i.e. callback with the event source (<a href="https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/events/" rel="nof...
How to await an RoutedEvent`?
c#|wpf
0
44
1
72,819,652
72,819,652
0
true
2022-06-30T15:36:04.577Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to await an RoutedEvent`?<p>How to Wait for a RoutedEvent? Since there is no definition for GetAwaiter i can't use the await keyword. So how should i mod...
72,834,833
Webscraping Python BS4 issue not returning data<p>I am new here and have had a read through much of the historic posts but cannot exactly find what I am looking for.</p> <p>I am new to webscraping and have successfully scraped data from a handful of sites.</p> <p>However I am having an issue with this code as I am tryi...
<p>You could try to use this link, it seems to pull the information you desire:</p> <pre class="lang-py prettyprint-override"><code>from bs4 import BeautifulSoup import requests webpage = requests.get(&quot;https://groceries.asda.com/api/items/iconmetadata?request_origin=gi&quot;) sp = BeautifulSoup(webpage.content, ...
Webscraping Python BS4 issue not returning data
python|web-scraping|beautifulsoup
0
44
2
72,835,350
72,835,350
0
true
2022-07-01T21:38:30.777Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Webscraping Python BS4 issue not returning data<p>I am new here and have had a read through much of the historic posts but cannot exactly find what I am look...
72,843,038
Entire body tag skewing to the left on mobile, other elements not affected<p>I know this question has been asked 100 million times... but I am truly at a loss as to why this is happening. I have a simple website with a header, a 'hero' section and a div of the body content. Everything with the layout is fine except for...
<p>SOLVED:</p> <p>There were elements in the code that were forcing the layout be too wide.</p> <p>The first problem was the 'hr' tag in the clinical work div.</p> <p>Also the margins on the hero text were not responsive.</p> <p>Solution:</p> <p>Adding in responsive sizing to the hr tag in CSS.</p> <p>Set the width of ...
Entire body tag skewing to the left on mobile, other elements not affected
css|mobile|sass|responsive|responsive-images
0
44
2
72,849,967
72,849,967
0
true
2022-07-02T23:23:51.073Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Entire body tag skewing to the left on mobile, other elements not affected<p>I know this question has been asked 100 million times... but I am truly at a los...
72,912,262
Splitting one row into two based on condition<p>I have a situation like you can see in the image: <a href="https://i.stack.imgur.com/2EtZd.png" rel="nofollow noreferrer">Here</a></p> <p>Basically, I need to duplicate the rows where are 2 numbers splitted with '+' and then from first row remove part of the number after ...
<p>you can try like this:</p> <pre><code>import pandas as pd df = pd.DataFrame({&quot;Col1&quot;: [&quot;221350*66666&quot;, 99999,123456], &quot;Col2&quot;: [&quot;A&quot;, &quot;B&quot;, &quot;C&quot;]}) df = df.assign(Col3=df[&quot;Col1&quot;].str.split(&quot;*&quot;)).explode(&quot;Col3&quot;) df[&quot;Col3&quot;...
Splitting one row into two based on condition
python|pandas|dataframe
0
44
1
72,912,460
72,912,460
0
true
2022-07-08T13:38:03.667Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Splitting one row into two based on condition<p>I have a situation like you can see in the image: <a href="https://i.stack.imgur.com/2EtZd.png" rel="nofollow...
72,932,473
How would I go about getting another user's UID in flutter with Firestore?<p>I've been trying to implement a send friend request feature in my app made with flutter.</p> <p>However, I ran into an issue as I don't know how I am supposed retrieve another user's UID when they press the List Tile. I am using a document to ...
<p>You should add UID inside each person's doc.</p> <p><a href="https://i.stack.imgur.com/VHGIV.png" rel="nofollow noreferrer">For example like this</a>. Then you can make function in onTap{}.</p> <pre class="lang-dart prettyprint-override"><code>final FirebaseFirestore _firestore = FirebaseFirestore.instance; await _...
How would I go about getting another user's UID in flutter with Firestore?
flutter|google-cloud-firestore
0
44
1
72,933,135
72,933,135
0
true
2022-07-10T23:19:46.817Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How would I go about getting another user's UID in flutter with Firestore?<p>I've been trying to implement a send friend request feature in my app made with ...
72,995,641
in python: How to print message with the number of expected names started with lowercase<p>here I have to print friends names that start with upper letter only and except names with lowercase and then print message with the number of expected names started with lowercase</p> <p>I need to know if my code is right or the...
<p>If you only want to check whether the name begins with a lower/upper case, then you can use a list comprehensions like below to do this:</p> <pre><code>friends = [&quot;Mohamed&quot;, &quot;Shady&quot;, &quot;ahmed&quot;, &quot;eman&quot;, &quot;Sherif&quot;] upper_case = [print(name) for name in friends if name.st...
in python: How to print message with the number of expected names started with lowercase
python|while-loop|do-while
0
44
2
72,995,740
72,995,740
0
true
2022-07-15T14:35:32.163Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: in python: How to print message with the number of expected names started with lowercase<p>here I have to print friends names that start with upper letter on...
72,819,565
Operate inside a list of data frames in R<p>I created a list with</p> <pre><code>list.files(pattern=&quot;*.csv&quot;) file_list &lt;- lapply(list_of_files, read_csv, col_names = TRUE) </code></pre> <p>Do you know can I apply the same function to all the files in the list? I tried with <code>function(df)</code> but it...
<p>Your <code>lapply(list_of_files, read_csv, col_names = TRUE)</code> runs functions read_csv(file=list_of_files[[1]], colnames=TRUE), read_csv(file=list_of_files[[2]], colnames=TRUE) etc. and returns output from each run as a slot of a list.</p> <p>It can run any function. You can either define your own function like...
Operate inside a list of data frames in R
r|list
-1
44
3
72,819,820
72,819,820
0
true
2022-06-30T17:03:57.947Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Operate inside a list of data frames in R<p>I created a list with</p> <pre><code>list.files(pattern=&quot;*.csv&quot;) file_list &lt;- lapply(list_of_files, ...
72,968,292
Excel - Skip Blanks and re-display data in Office 365<p>I have a spreadsheet that displays players names if they haven't been previously chosen on another sheet.</p> <p>This means I have two columns that look like this</p> <pre><code> Column J Column K 101 Position Player 102 Blank Blank 103 Defe...
<p>Try this formula in cell O102:</p> <pre><code>=INDEX(K:K,AGGREGATE(15,6,ROW($K$102:$K$111)/($K$102:$K$111&lt;&gt;&quot;&quot;),ROW(O102)-ROW($O$102)+1)) </code></pre> <p>You can drag it down to the others cell.</p> <p>Excel in office 365 will probably have a easier solution, but this one should work too.</p>
Excel - Skip Blanks and re-display data in Office 365
excel|excel-formula|office365
0
44
1
72,968,648
72,968,648
0
true
2022-07-13T14:50:10.007Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Excel - Skip Blanks and re-display data in Office 365<p>I have a spreadsheet that displays players names if they haven't been previously chosen on another sh...
72,888,846
Find how many times a char is included into an array of names<p>I'm trying to do the following exercise in JavaScript: I need to return the number of times the letter 'l' is used inside an array of names.</p> <p>This is an example of the array I have to use:</p> <pre><code>[&quot;earth (c-137)&quot;,&quot;abadango&quot...
<p>Try this:</p> <pre><code>myStr.split('&lt;my_char&gt;').length - 1. </code></pre> <p>This splits the string everytime you see the char you want and returns the number of strings after splitting at the delimiter minus 1 which is exactly what you want. Do this after converting the array of strings to a single string....
Find how many times a char is included into an array of names
javascript|arrays
0
44
5
72,888,914
72,888,914
0
true
2022-07-06T19:20:25.427Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Find how many times a char is included into an array of names<p>I'm trying to do the following exercise in JavaScript: I need to return the number of times t...
72,812,619
How to remove the duplicate dictionaries from the list of dictionaries where dictionary contains an another dictionary?<p>I have a bit complex list of dictionaries which looks like</p> <pre><code>[ {'Name': 'Something XYZ', 'Address': 'Random Address', 'Customer Number': '-', 'User Info': [{'Registration Number': '...
<p>I think the best way is to make a hash of <code>User Info</code> by sum the hash values of it's elements (sum will tolerate position change).</p> <pre><code>def deepHash(value): if type(value) == list: return sum([deepHash(x) for x in value]) if type(value) == dict: return sum([deepHash(...
How to remove the duplicate dictionaries from the list of dictionaries where dictionary contains an another dictionary?
python
-2
44
1
72,812,763
72,812,763
0
true
2022-06-30T08:31:54.570Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to remove the duplicate dictionaries from the list of dictionaries where dictionary contains an another dictionary?<p>I have a bit complex list of dictio...
72,992,134
How to verify input using try, except and assertion in python?<p>I have made a program to calculate GPA of student but i need to verify that if the letter grade inputted by the user is between A+ to F or not by using try, except and assert. Here's my code:</p> <pre><code>from num2words import num2words courses = {} tot...
<p>You can rewrite the pointValue function in less lines like this</p> <pre><code>#!/usr/bin/python grades ={ &quot;A+&quot; : &quot;4.2 Points&quot;, &quot;A&quot; : &quot;4.0 Points&quot;, &quot;B+&quot; : &quot;3.5 Points&quot;, &quot;B&quot; : &quot;3.0 Points&quot;, &quot;C+&quot; : &quot;2.5 ...
How to verify input using try, except and assertion in python?
python
0
44
3
72,992,534
72,992,534
0
true
2022-07-15T09:48:34.463Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to verify input using try, except and assertion in python?<p>I have made a program to calculate GPA of student but i need to verify that if the letter gr...
72,851,075
Filter an array object by a list in Python<p>What is the easiest way to do the following task ? Many thanks</p> <pre><code>obj = [ { 'uniqueID' : &quot;B111222&quot;, &quot;Fees&quot; : 111}, { 'uniqueID' : &quot;B222111&quot;, &quot;Fees&quot; : 222}, { 'uniqueID' : &quot;B333111&quot;, &quot;Fees&quot;...
<p>A comprehension approach will work:</p> <pre><code>obj = [ { 'uniqueID' : &quot;B111222&quot;, &quot;Fees&quot; : 111}, { 'uniqueID' : &quot;B222111&quot;, &quot;Fees&quot; : 222}, { 'uniqueID' : &quot;B333111&quot;, &quot;Fees&quot; : 333} ] unwanted = [ &quot;B111222&quot;, &quot;B222111&quot;] fi...
Filter an array object by a list in Python
python|python-3.x
-2
44
1
72,851,195
72,851,195
0
true
2022-07-04T01:54:05.990Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Filter an array object by a list in Python<p>What is the easiest way to do the following task ? Many thanks</p> <pre><code>obj = [ { 'uniqueID' : &quot;...
72,991,545
How I can modify my script to randomly pick the consecutive elements of different length?<p>I have a data frame consists of 148 rows and 1500 columns. I require to random pick 2, 6, 12 and 24 points from each column. My script perfectly picking the random points, however, I am facing difficulty to modify my script for ...
<p>You could do this:</p> <pre class="lang-py prettyprint-override"><code>df = data # My data set consists of 148 columns and 1500 rows for i in range(1): hr_ev = df.iloc[:, i] # select particular column N = 1000 # length of data C = 4 # number of columns rand_hr = np.zeros(shape=(1000, 4)) # empty ...
How I can modify my script to randomly pick the consecutive elements of different length?
python|random
0
44
1
72,991,749
72,991,749
0
true
2022-07-15T09:00:15.077Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How I can modify my script to randomly pick the consecutive elements of different length?<p>I have a data frame consists of 148 rows and 1500 columns. I requ...
72,892,685
Progress bar closes too soon with ggplot<p>I wonder if someone can explain the behavior of the progressBar(). I have trimmed my shiny app to the bare minimum to reproduce this post.</p> <p>Now to the problem. When I select &quot;AllRuns&quot;, the progress bar pops up and then goes away before the graphic is displayed....
<p>It is simple that the progress bar is updated by the for-loop and the plot code only run after the for-loop. So the progress-bar reach the end, then plot code started. This kind of progress-bar would work if you are process something along with for-loop for example</p> <pre><code>list_of_files # assume you have a li...
Progress bar closes too soon with ggplot
r|shiny|tidyverse
0
44
1
72,907,426
72,907,426
0
true
2022-07-07T05:28:23.430Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Progress bar closes too soon with ggplot<p>I wonder if someone can explain the behavior of the progressBar(). I have trimmed my shiny app to the bare minimum...
72,782,103
Azure APIM Developer Portal - Authorization flow console errors<p>When trying to use <code>Authorization</code> in the Developer Portal, I keep receiving an error. The popup opens, the login works, the popup closes and no token is sent back due to an error. It worked without Custom Domain. I added Custom Domains for &q...
<p>The problem was caused by Azure Front Door, not correctly setting the 'Backend host header' causing APIM to use the wrong (original) domain.</p> <p>Also another tip for those who run into issues with Front Door. Turn caching off in front door and republish the APIM Developer Portal after every Oauth / domain change....
Azure APIM Developer Portal - Authorization flow console errors
azure|azure-api-management
0
44
1
72,786,806
72,786,806
0
true
2022-06-28T07:11:04.963Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Azure APIM Developer Portal - Authorization flow console errors<p>When trying to use <code>Authorization</code> in the Developer Portal, I keep receiving an ...
72,863,884
Glide for Android: How to include GIFs from Google Drive?<p>I am trying to include GIFs in my android application. My GIFs are shared as a document on Google Drive with public access enabled. Currently, I'm trying to use <a href="https://github.com/bumptech/glide" rel="nofollow noreferrer">Glide</a> to include the GIFs...
<p>It should work. Because Glide trying to fetch image which type you specified. I just tried it and its work. it loads too late. If you wait a bit, you will see that it can be loaded. You can test it more easily if you upload a lower resolution gif file to Drive.</p> <p><a href="https://i.stack.imgur.com/72ars.jpg" re...
Glide for Android: How to include GIFs from Google Drive?
java|android|imageview|gif|android-glide
1
44
1
72,864,025
72,864,025
0
true
2022-07-05T04:05:19.883Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Glide for Android: How to include GIFs from Google Drive?<p>I am trying to include GIFs in my android application. My GIFs are shared as a document on Google...
72,773,769
Is there a way to open a file residing on the server with an external program on a windows machine in C#?<p>I am trying to open a file which is residing on the server on a windows machine. I tried using <strong>System.Diagnostics</strong> like below;</p> <pre><code>var FullPath = &quot;https://localhost:44389/documents...
<p>use this code :</p> <pre><code> var process = new Process(); process.StartInfo = new ProcessStartInfo(&quot;address&quot;) { UseShellExecute = true }; process.Start(); </code></pre> <p>If the address is on your Windows, it will run</p> <p>And if it is an Internet address, it opens it in th...
Is there a way to open a file residing on the server with an external program on a windows machine in C#?
c#|file
1
44
1
72,774,653
72,774,653
1
true
2022-06-27T14:28:03.370Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Is there a way to open a file residing on the server with an external program on a windows machine in C#?<p>I am trying to open a file which is residing on t...
72,775,660
Azure - Update service principal scope<p>I've created a App and added a resource group. How can I update service principal and add a second resource group? Also is it possible to make it subscription wide access instead of just resource group based?</p> <pre><code>az ad sp create-for-rbac --name &quot;MyApp&quot; --ro...
<p>To add an additional resource group you can do this:</p> <pre><code>az ad sp create-for-rbac -n &quot;MyApp&quot; --role Contributor --scopes /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup1} /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup2} </code></pre> <p><strong>Scope</strong> is the ...
Azure - Update service principal scope
azure|azure-active-directory
0
44
1
72,775,800
72,775,800
1
true
2022-06-27T16:47:27.020Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Azure - Update service principal scope<p>I've created a App and added a resource group. How can I update service principal and add a second resource group? ...
72,777,221
SQL retrieve columns based on two rows values conditions<p>I have a table called <code>products</code></p> <pre><code> id | product_id | detail | value ----+----------------+--------------+-------- 1 | 1 | size | medium 2 | 1 | load | yes 5 | 1 ...
<p>Consider below</p> <pre><code>select * except(a,b,c,d) from ( select *, countif(detail=&quot;load&quot; and value=&quot;yes&quot;) over win1 &gt; 0 as a, countif(detail=&quot;deliverable&quot;) over win2 = 0 as b, countif(detail=&quot;load&quot; and value=&quot;no&quot;) over win1 &gt; 0 as c, c...
SQL retrieve columns based on two rows values conditions
sql|google-bigquery
1
44
1
72,777,394
72,777,394
1
true
2022-06-27T19:08:24.510Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: SQL retrieve columns based on two rows values conditions<p>I have a table called <code>products</code></p> <pre><code> id | product_id | detail ...
72,779,089
XPATH: Inputting value for an unknown number of xpaths using .find_elements_by_xpath<p>I've done a lot of searching around for this, but it seems like I can only find the answers in .js . What I would like to do is through python use .find_elements_by_xpath , and having selected an unknown number of elements, input a v...
<p>This is how it will look like on Python. Code with comments:</p> <pre><code>from selenium.webdriver.common.by import By from selenium import webdriver website = &quot;https://YOURWEBSITE.com&quot; driver = webdriver.Chrome(executable_path='YOUR/PATH/TO/chromedriver.exe') driver.get(website) # if you want to find a...
XPATH: Inputting value for an unknown number of xpaths using .find_elements_by_xpath
python-3.x|selenium|xpath
3
44
1
72,779,241
72,779,241
1
true
2022-06-27T22:59:20.333Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: XPATH: Inputting value for an unknown number of xpaths using .find_elements_by_xpath<p>I've done a lot of searching around for this, but it seems like I can ...
72,780,108
Flutter Provider across multiple views and inside other providers<p>Flutter newbie here, I'm currently using Provider for my state management and had a few questions as to how it actually works.</p> <p>I am declaring my providers like this...</p> <p><em>main.dart</em></p> <pre><code>runApp( MultiProvider( provide...
<h3>Question 1</h3> <hr /> <p>Using <code>Provider&lt;ProviderClass&gt;.of(context)</code> always references the same global provider provided (No pun intended)</p> <h3>Question 2</h3> <hr /> <p>It would be better to implement the method on <code>providerBar</code> and call <code>notifyListeners()</code> from it.</p> <...
Flutter Provider across multiple views and inside other providers
flutter|flutter-provider|state-management
0
44
1
72,780,181
72,780,181
1
true
2022-06-28T02:27:16.530Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Flutter Provider across multiple views and inside other providers<p>Flutter newbie here, I'm currently using Provider for my state management and had a few q...
72,782,926
Why my tkinter title bar is not changing?<p>I don't understand why the title bar is not changing:</p> <pre class="lang-py prettyprint-override"><code>from tkinter import* from tkinter import ttk from PIL import Image, ImageTk class Face_Recognization_System: def _init_(self, root): self.root = ...
<p>There are two errors the first is in the syntax of Initialization it's</p> <pre><code>__init__ Not _init_ </code></pre> <p>Second you should enter the root as an input.</p> <p>And finally you change it up a little to separate the initialization from the other method .</p> <pre><code>from tkinter import* from...
Why my tkinter title bar is not changing?
python|tkinter
0
44
2
72,783,125
72,783,125
1
true
2022-06-28T08:12:41.570Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why my tkinter title bar is not changing?<p>I don't understand why the title bar is not changing:</p> <pre class="lang-py prettyprint-override"><code>from tk...
72,779,434
Paint everything outside of polygons in a Pillow image in palette mode?<p>I'm creating a heatmap using Pillow in Python. After painting the heatmap, I want to blank out everything outside a certain area. The area in question is described by a handful of polygons, each containing a couple of thousands of points.</p> <p>...
<p>I think the secret here is to work out how to draw either:</p> <ul> <li>the polygons, or</li> <li>everything that is not the polygons</li> </ul> <p>in black on a white background. Once you have that as a <em>&quot;mask&quot;</em>, you can use it as the parameter to <code>paste()</code> to control where any new colou...
Paint everything outside of polygons in a Pillow image in palette mode?
python|python-3.x|python-imaging-library|polygon|draw
1
44
1
72,786,157
72,786,157
1
true
2022-06-28T00:03:16.320Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Paint everything outside of polygons in a Pillow image in palette mode?<p>I'm creating a heatmap using Pillow in Python. After painting the heatmap, I want t...
72,786,386
Oracle SQL -- Finding count of rows that match date maximum in table<p>I am trying to use a query to return the count from rows such that the date of the rows matches the maximum date for that column in the table.</p> <p>Oracle SQL: version 11.2:</p> <p>The following syntax would seem to be correct (to me), and it com...
<p>I don't know if I understand what you want. Try this:</p> <pre><code>Select x.ourDate, Count(1) as OUR_COUNT from schema1.table1 x where x.ourDate = (select max(y.ourDate) from schema1.table1 y) group by x.ourDate </code></pre>
Oracle SQL -- Finding count of rows that match date maximum in table
oracle|oracle11g|aggregate|aggregate-functions|having
0
44
4
72,786,448
72,786,448
1
true
2022-06-28T12:24:43.690Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Oracle SQL -- Finding count of rows that match date maximum in table<p>I am trying to use a query to return the count from rows such that the date of the row...
72,788,598
Using a tuple in a file string for file names<p>I'm currently writing a forloop that will run a function iteratively chaning a certain parameter each time based on a tuple, then save the output. I'd like the file name for the output to match the variable that was run for that iteration. Here is my code and error:</p> <...
<p>What you want to pass is actually the variable <code>i</code> instead of <code>range_length</code>. Therefore, the line should be</p> <pre><code>file_string = '\\\\C:\\A2_Radium_Range_{0:.0f}'.format(i) </code></pre>
Using a tuple in a file string for file names
python|string|file|tuples
0
44
1
72,788,671
72,788,671
1
true
2022-06-28T14:45:35.230Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Using a tuple in a file string for file names<p>I'm currently writing a forloop that will run a function iteratively chaning a certain parameter each time ba...
72,788,731
Align rows with same column values - Pandas<p>I have two different size tables with approximately 15000 rows each, both on the same excel sheet and following the same <a href="https://i.stack.imgur.com/WX1Ff.png" rel="nofollow noreferrer">template</a>.</p> <p><img src="https://i.stack.imgur.com/WX1Ff.png" alt="template...
<p>Please try this (very similar to other answer, but used <code>merge</code>):</p> <pre><code>df1 = pd.DataFrame({'ProductID': [432, 653, 438,432, 567, 438,432], 'Region': ['SA', 'BR', 'EU', 'NA', 'BR', 'NA', 'SA'], 'Country': ['Columbia', 'Brazil', 'Spain', 'USA', 'Brazil', 'Cana...
Align rows with same column values - Pandas
python|pandas|database|dataframe
0
44
2
72,789,109
72,789,109
1
true
2022-06-28T14:54:31.713Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Align rows with same column values - Pandas<p>I have two different size tables with approximately 15000 rows each, both on the same excel sheet and following...
72,788,947
Azure Tables Storage Query returns 501 (Not Implemented)<p>I have some Data stored in Azure Data Tables and i'm using the following code to query the table:</p> <pre><code>var serviceClient = new TableServiceClient(_configuration[&quot;StorageConnectionString&quot;]); var tableClient = serviceClient.GetTableClient(Tabl...
<p>I think it's because of your filter expression - try enclosing the search value in your filter in single quotes:</p> <pre><code>Pageable&lt;EndpointEntity&gt; queryResultsFilter = tableClient.Query&lt;EndpointEntity&gt;(filter: $&quot;RowKey eq 'Test'&quot;); </code></pre>
Azure Tables Storage Query returns 501 (Not Implemented)
c#|.net|azure-table-storage
1
44
1
72,789,111
72,789,111
1
true
2022-06-28T15:07:13.600Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Azure Tables Storage Query returns 501 (Not Implemented)<p>I have some Data stored in Azure Data Tables and i'm using the following code to query the table:<...
72,789,493
Wix Harvest - Flatten Subfolders using XSLT<p>Assume the following folder structure:</p> <pre><code>rootfolder \_A \_myfile.txt \_myfile2.txt \_myfile.txt \_myfile2.txt </code></pre> <p>So there is a directory named <strong>rootfolder</strong> which contains <code>myfile.txt</code> and <code>myfile...
<p>Your template:</p> <pre><code>&lt;xsl:template match=&quot;wix:Directory[@Name='A']&quot;&gt; &lt;xsl:copy-of select=&quot;node()&quot;/&gt; &lt;/xsl:template&gt; </code></pre> <p>seems to be the problem. It only copies the complete context. I suppose you need to use apply-templates like this:</p> <pre><code>&lt;x...
Wix Harvest - Flatten Subfolders using XSLT
xml|xslt|wix|heat
1
44
1
72,789,625
72,789,625
1
true
2022-06-28T15:41:58.320Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Wix Harvest - Flatten Subfolders using XSLT<p>Assume the following folder structure:</p> <pre><code>rootfolder \_A \_myfile.txt \_myfile2.txt ...
72,789,833
__stdcall in function paramater<p>does anybody know if is possible to add __stdcall (CALLBACK) in function parameter like this?:</p> <pre><code>void Function(LRESULT CALLBACK (*f)(HWND, UINT, WPARAM, LPARAM)); </code></pre> <p>It gives me following error:</p> <pre><code>a calling convention may not be followed by a nes...
<p>Put the calling convention inside the parenthesis.</p> <pre><code>void Function(LRESULT (CALLBACK *f)(HWND, UINT, WPARAM, LPARAM)); </code></pre>
__stdcall in function paramater
c++|winapi|stdcall
0
44
2
72,789,869
72,789,869
1
true
2022-06-28T16:07:27.840Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: __stdcall in function paramater<p>does anybody know if is possible to add __stdcall (CALLBACK) in function parameter like this?:</p> <pre><code>void Function...
73,008,359
Declaring generic type mid-class (not in header) in java, possibly through GenericType class<p>Basically I have a <code>class PA&lt;E&gt; extends ArrayList&lt;E&gt;</code></p> <p>This class creates a numerical code (using any subclass of Number) for the instance of type E, and uses said numerical code to keep the Array...
<p>Figured out an answer to my question... thought I'd post an answer in case anyone else runs into the same issue.</p> <p>It's similar to idea 4, aka using .create() methods that call private constuctors.</p> <pre class="lang-java prettyprint-override"><code>class PA&lt;E , N extends Number&gt;{ public static &lt;...
Declaring generic type mid-class (not in header) in java, possibly through GenericType class
java|oop|generics
-1
44
1
73,270,091
73,270,091
0
true
2022-07-16T23:47:07.583Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Declaring generic type mid-class (not in header) in java, possibly through GenericType class<p>Basically I have a <code>class PA&lt;E&gt; extends ArrayList&l...
72,935,417
Binance API , buy crypto for crypto<p>Is it possible to buy cryptocurrency for another cryptocurrency (for example buy ETH using BTC) using Binance api. Cuz when i was searching inside binance api docs i didn't find anythins similar</p>
<p>Yes you can.</p> <p>To sell BTC for ETH, you will need to place a BUY order on the symbol <code>ETHBTC</code>. In order to create an order from API, you can use the general endpoint <code>POST /api/v3/order</code>. Hope this can be helpful.</p>
Binance API , buy crypto for crypto
api|cryptoapi|binance-api-client
-2
44
1
73,633,402
73,633,402
0
true
2022-07-11T08:03:09.070Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Binance API , buy crypto for crypto<p>Is it possible to buy cryptocurrency for another cryptocurrency (for example buy ETH using BTC) using Binance api. Cuz ...
72,993,485
PDFBox Add Validation Information on Certification Signature<p>how to add validation information on PDF during signing if signature use Certification</p> <pre><code>SigUtils.setMDPPermission(doc, signature, 1); </code></pre> <p>cause warning message on function tell <code>addValidationInformation.validateSignature(inPa...
<blockquote> <p>PDF is certified to forbid changes, some readers may report the document as invalid despite that the PDF specification allows DSS additions</p> </blockquote> <p>Well, the LTV level addition is indeed allowed to PDF documents even with restricted MDP permissions. See &quot;Table 257 — Entries in the DocM...
PDFBox Add Validation Information on Certification Signature
java|pdfbox
0
44
1
73,254,758
73,254,758
1
true
2022-07-15T11:45:35.453Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: PDFBox Add Validation Information on Certification Signature<p>how to add validation information on PDF during signing if signature use Certification</p> <pr...
72,867,405
Can we build a R function/Logic to get record IDs by grouping columns<p>I have below dataset where I want to create a &quot;New_Record_ID&quot; column using the &quot;Current_Record_ID&quot; and &quot;Stores&quot;.</p> <p>For every repeating Current_Record_ID there should only be 2 stores. If Stores exceeds by 2 the re...
<p>There may be no need for a for loop, but it seems to work well enough, using <code>dplyr</code>:</p> <pre><code>library(dplyr) counter &lt;- function(id, row) { count_up &lt;- case_when( id != lag(id) ~ TRUE, id == lag(id, n = 2L) &amp; row %% 2 == 0 ~ FALSE, id == lag(id, n = 2L) ~ TRUE, TRUE ~ F...
Can we build a R function/Logic to get record IDs by grouping columns
r
0
44
1
73,692,001
73,692,001
1
true
2022-07-05T09:55:01.287Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Can we build a R function/Logic to get record IDs by grouping columns<p>I have below dataset where I want to create a &quot;New_Record_ID&quot; column using ...
72,835,062
How to Customize the NetSuite Bank Transfer Form and Record<p>We need to set a default class on the Bank Transfer form in NetSuite. However this form does not have a 'customize' link and there does not appear to be a 'bank transfer', 'transfer funds' or 'transfer' record so a script cannot be deployed and applied to it...
<p>There is an undocumented Record Type called &quot;transfer&quot;, it doesn't show up in record.Type, but if you supply it then it does appear to work.</p>
How to Customize the NetSuite Bank Transfer Form and Record
netsuite|suitescript|suitescript2.0
0
44
1
73,775,039
73,775,039
1
true
2022-07-01T22:15:38.883Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to Customize the NetSuite Bank Transfer Form and Record<p>We need to set a default class on the Bank Transfer form in NetSuite. However this form does no...
72,809,722
Project unloaded after git commit<p>So I have never experienced this issue before and hope that someone else has. I'm working on a application and make a few changes then commit and push to GitHub. Once I do this the project I made changes gets unloaded from Visual Studio. When I try to reload the project I get the fol...
<p>Looks like the project I was working on would only open in VS 2019 and VS 2022 caused this issue. Not sure why, but it works now.</p>
Project unloaded after git commit
git|visual-studio|github
1
44
2
73,811,401
73,811,401
1
true
2022-06-30T02:29:55.907Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Project unloaded after git commit<p>So I have never experienced this issue before and hope that someone else has. I'm working on a application and make a few...
72,788,344
Android Studio 3.1.3 . Build Error while Executing app on build apk or emulator<p>I have upgraded my windows 7 Ultimate to windows 8.1 and after opening my project I try to run build apk and try to run it on emulator it shows this error. May be some file is deleted during the upgrade but I can't find what happen. This ...
<p>I have very similar problem the solution is add these line in gradle.properties:</p> <pre><code>android.useAndroidX=true android.enableJetifier=true </code></pre>
Android Studio 3.1.3 . Build Error while Executing app on build apk or emulator
build.gradle
1
44
1
73,688,864
73,688,864
2
true
2022-06-28T14:30:00.147Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Android Studio 3.1.3 . Build Error while Executing app on build apk or emulator<p>I have upgraded my windows 7 Ultimate to windows 8.1 and after opening my p...
72,237,827
Knockout Binding not happen correctly<p>I want to bind data by knockout but data not binding correctly I have gotten the data by ajax and put it in self.DisplayItem object successfully But the problem in Binding only where data not shown in the div</p> <p>This is javascript code:</p> <pre><code>function CustomItem(pram...
<p>You are overwriting the observable functionality by <strong>assigning</strong> to the observable property.</p> <p>Instead, pass the assigned value to the <code>function</code> that the observable property becomes:</p> <pre><code>self.DisplayItem(new CustomItem({ Id: 0, Name : &quot;&quot;, Title : &quot;&qu...
Knockout Binding not happen correctly
javascript|knockout.js
-2
44
1
72,238,867
72,238,867
0
true
2022-05-14T06:21:33.330Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Knockout Binding not happen correctly<p>I want to bind data by knockout but data not binding correctly I have gotten the data by ajax and put it in self.Disp...
72,239,315
I want to new array of 2 array is not equal data<p>I want to new array of 2 array is not equal data <em>example</em></p> <pre><code>let a = [{id:1, name:&quot;a&quot;},{id:2, name:&quot;b&quot;},{id:3, name:&quot;c&quot;}]; let b = [{id:1, name:&quot;a&quot;},{id:2, name:&quot;b&quot;},{id:3, name:&quot;c&quot;}, {id:...
<p>You can do this using <code>filter()</code> and <code>includes()</code> functions.</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>let a = [{id:1, name:"a"},{id:2, name:"b"}...
I want to new array of 2 array is not equal data
javascript|arrays
0
44
3
72,239,417
72,239,417
0
true
2022-05-14T10:23:28.100Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: I want to new array of 2 array is not equal data<p>I want to new array of 2 array is not equal data <em>example</em></p> <pre><code>let a = [{id:1, name:&quo...