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
72,922,849
Creating aggregated JSON objects<p>My database looks like this:</p> <p>Raw Table Data :</p> <p><a href="https://i.stack.imgur.com/u7aYH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/u7aYH.png" alt="enter image description here" /></a></p> <p>The Result returned :</p> <p><a href="https://i.stack.img...
<p>Unfortunately, SQL Server does not have the <code>JSON_AGG</code> function, which would have made this easier. Instead we need to hack it with a combination of <code>STRING_AGG</code> to aggregate, <code>STRING_ESCAPE</code> to correctly escape the values, and <code>JSON_QUERY</code> to prevent double-escaping.</p> ...
Creating aggregated JSON objects
sql|json|sql-server|tsql|aggregate-functions
-1
76
1
72,925,898
72,925,898
2
true
2022-07-09T16:01:34.683Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Creating aggregated JSON objects<p>My database looks like this:</p> <p>Raw Table Data :</p> <p><a href="https://i.stack.imgur.com/u7aYH.png" rel="nofollow no...
72,935,897
Typescript - Detect unique sentence in an array of words<p>I'm trying to detect unique sentences (a string) in an array of words in typescript but i'm not sure if i'm going the right way.</p> <p>My first approach is to convert the array of words in a big string and then use indexOf to return the indices of the matches ...
<pre><code>function findText(searchStr: string, str: string) { // get both in array form const splitString = str.split(&quot; &quot;); const splitSearch = searchStr.split(&quot; &quot;); let idxs: number[] = []; splitString.forEach((string, idx) =&gt; { splitSearch.forEach((search) =&gt; { ...
Typescript - Detect unique sentence in an array of words
javascript|typescript|algorithm|math
1
76
4
72,936,345
72,936,345
2
true
2022-07-11T08:50:37.293Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Typescript - Detect unique sentence in an array of words<p>I'm trying to detect unique sentences (a string) in an array of words in typescript but i'm not su...
72,908,823
Delete text in switch<p>I try to delete a text from a switch but i cant, the switch code is:</p> <pre><code> &lt;Switch x:Name=&quot;styleSwitch&quot; HorizontalOptions=&quot;Center&quot; Scale=&quot;1.3&quot;/&gt; </code></pre> <p>And the style is:</p> <pre><code>&lt;Style TargetType=&quot;Switch&quo...
<p>Yes, it is a known issue about swich in maui.</p> <p>And you can follow up the issue here: <a href="https://github.com/dotnet/maui/issues/6177" rel="nofollow noreferrer">https://github.com/dotnet/maui/issues/6177</a> .</p> <p>Thanks for your feedback about this problem.</p> <p>Have a nice day.</p>
Delete text in switch
xaml|maui
3
76
1
72,949,023
72,949,023
2
true
2022-07-08T08:41:04.717Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Delete text in switch<p>I try to delete a text from a switch but i cant, the switch code is:</p> <pre><code> &lt;Switch x:Name=&quot;styleSwitch&quot; ...
72,950,350
Cluster Autoscaler on Baremetal kubernetes<p>Is it possible to attach Cluster Autoscaler (CA) on baremetal kubernetes cluster? (want to scale in/out via AWS EC2)</p> <p>I did checked <a href="https://github.com/kubernetes/autoscaler/issues/1060" rel="nofollow noreferrer">https://github.com/kubernetes/autoscaler/issues/...
<p>This is a little bit complicated for the simple reason that your typical cloud based k8s instances are virtual machines which are managed through a simple API. This allows k8s to easily integrate with cloud providers and manage autoscaling simply by issuing API calls to your provider.</p> <p>With a bare metal setup ...
Cluster Autoscaler on Baremetal kubernetes
kubernetes|autoscaling
0
76
1
72,950,935
72,950,935
2
true
2022-07-12T09:51:39.997Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Cluster Autoscaler on Baremetal kubernetes<p>Is it possible to attach Cluster Autoscaler (CA) on baremetal kubernetes cluster? (want to scale in/out via AWS ...
72,970,497
Closing sidebar crashes react application<p>I am currently working on a dashboard application in react.js. However, after adding some functionality to a child component involving the useState hook, the application crashes every time I close/open the sidebar in the parent component. This is the error i get:<a href="http...
<p>The error occurs because you are doing:</p> <pre><code> const [content, setContent] = useState(Settings); </code></pre> <p>and Settings is a component. When <code>useState</code> receives a function that returns a value this is called <strong>lazy initial state</strong>. In this case, react is trying to set the valu...
Closing sidebar crashes react application
javascript|reactjs|primereact
1
76
1
72,971,354
72,971,354
2
true
2022-07-13T17:41:43.660Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Closing sidebar crashes react application<p>I am currently working on a dashboard application in react.js. However, after adding some functionality to a chil...
73,028,208
Argument error due to ruby 3.0 deprecation<p>I recently upgraded the ruby version of my app to <code>3.0</code>. After which multiple test cases were failing but all of them were of the same kind. For ex, <code>post :create, :params =&gt; { :identifiedBy =&gt; { :label =&gt; epc }, :model =&gt; { :productId =&gt; produ...
<p><code>:params =&gt; {}</code> is a <code>Hash</code> of <code>{params: {}}</code> to use kwargs (keyword arguments) the syntax is similar but distinctly different to the parser.</p> <p>To resolve this (and clean up your code a bit) change all instances of <code>:symbol =&gt; value</code> to be <code>symbol: value</c...
Argument error due to ruby 3.0 deprecation
ruby-on-rails|ruby|testing
1
76
1
73,028,422
73,028,422
2
true
2022-07-18T20:24:56.773Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Argument error due to ruby 3.0 deprecation<p>I recently upgraded the ruby version of my app to <code>3.0</code>. After which multiple test cases were failing...
73,026,400
Scored similarity searches in Snowflake<p><strong>Goal</strong>: Implement a SQL query in a Snowflake database that, given an address-like string string (user input), does a fuzzy/approximate search against a single field, returning results with a similarity score, ordered by that score.</p> <p>I see that Snowflake off...
<p>There are three built-in fuzzy matching functions in Snowflake, <code>JAROWINKLER_SIMILARITY</code> (mentioned by NickW), <code>EDITDISTANCE</code> and <code>SOUNDEX</code>. It's a simple matter to extend this library using Java, Python, or JavaScript code in a UDF.</p> <p>Here is an example of the three built-in fu...
Scored similarity searches in Snowflake
snowflake-cloud-data-platform
0
76
1
73,029,308
73,029,308
2
true
2022-07-18T17:37:27.163Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Scored similarity searches in Snowflake<p><strong>Goal</strong>: Implement a SQL query in a Snowflake database that, given an address-like string string (use...
72,857,628
Efficient controlled random walks in gremlin<h2>Goal</h2> <p>The objective is to efficiently generate random walks on a relatively large graph with uneven probabilities of going through edges depending on their type.</p> <h2>Configuration</h2> <ul> <li>Ubuntu VM, 23Go RAM</li> <li>JanusGraph 0.6.1 full</li> <li>Local g...
<p>Thanks to <a href="https://stackoverflow.com/users/5442034/kelvin-lawrence">@Kelvin Lawrence</a>'s <a href="https://kelvinlawrence.net/book/Gremlin-Graph-Guide.html" rel="nofollow noreferrer">Practical Gremlin</a> (especially the <a href="https://kelvinlawrence.net/book/Gremlin-Graph-Guide.html#union" rel="nofollow ...
Efficient controlled random walks in gremlin
gremlin|janusgraph|random-walk|gremlinpython
2
76
1
73,203,450
73,203,450
2
true
2022-07-04T13:34:57.767Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Efficient controlled random walks in gremlin<h2>Goal</h2> <p>The objective is to efficiently generate random walks on a relatively large graph with uneven pr...
73,018,197
With JQ search multiple key: value pairs and replace with define variable already<p>I have a couple of json files and both or one of the keys below, might exist or none exists.</p> <pre><code>{ &quot;parent1&quot;: { &quot;parent1key&quot;: &quot;parent1value&quot; }, &quot;parent2&quot;: { &quot;parent2k...
<p>A simple <code>walk/1</code> expression would be sufficient to check for existence of the key recursively. It can be further improved by making it a function.</p> <pre class="lang-none prettyprint-override"><code>def replace(k; v): walk(if type == &quot;object&quot; and has(k) then .[k] = v else . end); replace(...
With JQ search multiple key: value pairs and replace with define variable already
json|jq
0
76
3
73,019,222
73,019,222
2
true
2022-07-18T06:40:41.140Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: With JQ search multiple key: value pairs and replace with define variable already<p>I have a couple of json files and both or one of the keys below, might ex...
72,806,046
Hover over div buttons with pseudo class doesn't sync correctly<p>I'm trying to create a transition for both an div button and a pseudo element, but for some reason, these transitions appear to be out of sync with each other, resulting in the pseudo element reaching a background color before the div does. I've tried va...
<p>You're transitioning at different speeds, you're also transitioning <code>all</code> attributes which in this case involves things you aren't trying to transition on the pseudo-elements so they're lagging. Sync up your transitions and specify that you're targeting the <code>color</code> and <code>background</code> a...
Hover over div buttons with pseudo class doesn't sync correctly
html|css
3
76
3
72,806,658
72,806,658
2
true
2022-06-29T18:12:00.913Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Hover over div buttons with pseudo class doesn't sync correctly<p>I'm trying to create a transition for both an div button and a pseudo element, but for some...
72,795,585
How to Enclose an Entire Google Sheets .csv Column in Quotes?<p>I'm currently trying to enclose an entire column in a Google Sheets CSV file in double quotes for a script that I'm writing. I've attached a link for the sample CSV sheet below:</p> <p><a href="https://docs.google.com/spreadsheets/d/1qhXEG_IxBzjTDkq0r2L-9M...
<p>You can run this function before exporting the content of your sheets to enclose the entire 2nd column with double quotes:</p> <pre><code>function myFunction() { var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getActiveSheet(); var range = sheet.getRange(1,2,sheet.getLastRow(),1); var values...
How to Enclose an Entire Google Sheets .csv Column in Quotes?
excel|csv|google-sheets
0
76
1
72,795,770
72,795,770
2
true
2022-06-29T03:46:17.833Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to Enclose an Entire Google Sheets .csv Column in Quotes?<p>I'm currently trying to enclose an entire column in a Google Sheets CSV file in double quotes...
72,768,331
The method '[]' can't be unconditionally invoked because the receiver can be 'null'. how to put conditions in this code<pre><code>import 'package:firebase_database/firebase_database.dart'; class Post { static const KEY = &quot;key&quot;; static const DATE = &quot;date&quot;; static const TITLE = &quot;title&quot...
<p>The <code>value</code> in <code>snap.value</code> can be <code>null</code> on line 25. And then, trying to use <a href="https://api.dart.dev/stable/2.17.5/dart-core/List/operator_get.html" rel="nofollow noreferrer">the index operator</a> <code>[]</code> on it (a possible <code>null</code> value) shows this error (It...
The method '[]' can't be unconditionally invoked because the receiver can be 'null'. how to put conditions in this code
flutter|firebase|firebase-realtime-database
1
76
1
72,768,436
72,768,436
2
true
2022-06-27T07:23:19Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: The method '[]' can't be unconditionally invoked because the receiver can be 'null'. how to put conditions in this code<pre><code>import 'package:firebase_da...
72,977,132
JFreeChart alternate background color<p>I'm trying to set two colors that need to be switched at every vertical tick label as background of a JFreeChart linechart.</p> <p>I want the line chart to appear as the image in this link, where two different light grays alternate as background:</p> <p><img src="https://docs.ora...
<p>Starting from this <em>time series</em> <a href="https://stackoverflow.com/a/66713994/230513">example</a> and using <a href="https://www.jfree.org/jfreechart/javadoc/org/jfree/chart/plot/XYPlot.html#setRangeTickBandPaint(java.awt.Paint)" rel="nofollow noreferrer"><code>setRangeTickBandPaint()</code></a>, I get the r...
JFreeChart alternate background color
java|plot|jfreechart|linechart
1
76
1
73,015,647
73,015,647
2
true
2022-07-14T08:00:05.173Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: JFreeChart alternate background color<p>I'm trying to set two colors that need to be switched at every vertical tick label as background of a JFreeChart line...
72,937,139
Invalid conversion on template argument type?<p>With help from this question, I have gradually built up this code, a wrapper around a class member function. The idea is that I can use operator* on my property to write to the class object:</p> <pre><code>#include &lt;cstdio&gt; #include &lt;type_traits&gt; #include &lt...
<p><strong>The cause of the problem:</strong><br /> <code>struct Wrapper</code> is a struct with 4 template parameters, and the last of them has a default:</p> <pre><code>template&lt;typename Retriever, typename Updater, typename OwningClass, template&lt;typename PropertyType&gt; class WRA...
Invalid conversion on template argument type?
c++|templates
1
76
1
72,937,419
72,937,419
2
true
2022-07-11T10:29:32.570Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Invalid conversion on template argument type?<p>With help from this question, I have gradually built up this code, a wrapper around a class member function. ...
72,940,821
storing object in cosmos db returns bad request?<p>I seem to be unable to store a simple object to cosmos db?</p> <p>this is the database model.</p> <pre><code>public class HbModel { public Guid id { get; set; } public string FormName { get; set; } public Dictionary&lt;string, object&gt; Form { get; s...
<p>There are several things wrong with the attached code.</p> <ol> <li>You are enabling Bulk but you are not following the Bulk pattern</li> </ol> <p><code>cosmosClient.ClientOptions.AllowBulkExecution = true</code> is being set, but you are not parallelizing work. If you are going to use Bulk, make sure you are follow...
storing object in cosmos db returns bad request?
entity-framework-core|azure-cosmosdb|cosmos-sdk
0
76
1
72,941,073
72,941,073
2
true
2022-07-11T15:15:36.490Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: storing object in cosmos db returns bad request?<p>I seem to be unable to store a simple object to cosmos db?</p> <p>this is the database model.</p> <pre><co...
72,993,066
Python: Plotting average Weekdays in succession for different Seasons<p>I have a <code>DateTimeSeries Dataframe</code> with 15 Minutes values. Index is a <code>DatetimeIndex</code>. First Column holds the Values, 2nd the Day of the Week, 3rd the season. (I have custom defined seasons)</p> <p>I would like to plot all th...
<p>I use the <code>df</code> from yours.</p> <pre><code>df2 = df.reset_index() df3 = df2.groupby([df2['date'].dt.dayofweek, df2['Day'], df2['date'].dt.hour, df2['season']]).mean().unstack() df3.index.set_names(['dayofweek','weekday_abr','hour'], inplace=True) df3 </code></pre> <p><a href="https://i.stack.imgur.com/LZNB...
Python: Plotting average Weekdays in succession for different Seasons
python|pandas|matplotlib|plot
2
76
2
72,995,780
72,995,780
2
true
2022-07-15T11:09:10.083Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Python: Plotting average Weekdays in succession for different Seasons<p>I have a <code>DateTimeSeries Dataframe</code> with 15 Minutes values. Index is a <co...
72,863,564
Subtract last timestamp from first timestamp for each Id in Pandas Dataframe<p>I have a dataframe (df) with the following structure:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>retweet_datetime</th> <th>tweet_id</th> <th>tweet_datetime</th> </tr> </thead> <tbody> <tr> <td>2020-04-24 03:...
<p>Use <a href="https://pandas.pydata.org/docs/user_guide/groupby.html#named-aggregation" rel="nofollow noreferrer">named aggregation</a> with subtract column with <a href="http://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Series.sub.html" rel="nofollow noreferrer"><code>Series.sub</code></a>, <a href="h...
Subtract last timestamp from first timestamp for each Id in Pandas Dataframe
python|pandas|datetime|timestamp|subtraction
3
76
2
72,863,986
72,863,986
3
true
2022-07-05T02:58:08.607Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Subtract last timestamp from first timestamp for each Id in Pandas Dataframe<p>I have a dataframe (df) with the following structure:</p> <div class="s-table-...
72,889,992
How can I reproduce index/match lookup with wildcards in Excel data model?<p><strong>TL;DR:</strong> The title says it all: is there any way to reproduce an excel INDEX-MATCH look up in the data model with wildcards</p> <p>I am trying to reorganize an Excel file that uses PowerQuery to import and transform data from ex...
<p>Try this Calculated Column:</p> <pre><code>= PATHITEM( CONCATENATEX( FILTER( tblLookUp, SEARCH( tblLookUp[LUKey], MainTable[LUValue],, 0 ) ), tblLookUp[Message], &quot;|&quot; ), 1 ) </code></pre> <p><code>SEARCH</code> supports wildcards.</p>
How can I reproduce index/match lookup with wildcards in Excel data model?
excel|dax|powerquery
-1
76
1
72,892,995
72,892,995
3
true
2022-07-06T21:22:26.720Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I reproduce index/match lookup with wildcards in Excel data model?<p><strong>TL;DR:</strong> The title says it all: is there any way to reproduce an ...
72,906,274
Using WTO to write multi-line message via __asm__ in C language<p>I have successfully written out single line WTO messages using __asm__ from a C language program, thus:-</p> <pre><code>typedef struct WTO_Parm { short int len; /* Total length of structure */ short int mcsflags; unsigned char mess...
<p>Since your program is <em>not an authorized one</em>, you ought to read the WTO description in the <em>non-authorized</em> version of the manuals. See <a href="https://www.ibm.com/docs/en/zos/2.1.0?topic=communication-writing-deleting-messages-wto-wtor-dom-wtl" rel="nofollow noreferrer">z/OS MVS Programming: Assembl...
Using WTO to write multi-line message via __asm__ in C language
c|inline-assembly|mainframe|zos|mvs
3
76
1
72,909,077
72,909,077
3
true
2022-07-08T03:15:04.867Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Using WTO to write multi-line message via __asm__ in C language<p>I have successfully written out single line WTO messages using __asm__ from a C language pr...
72,960,845
Logical AND implementation in x86_64 Linux assembly<p>I'm trying to implement logical NOT and logical AND in assembly, I did logical NOT already using <code>x &lt; 1</code> but I can't think of how to implement AND, I can use binary and but that's broken for negative numbers (it assumes -1 is <code>true</code>) and it ...
<p>The standard solution is to implement <code>a &amp;&amp; b</code> as</p> <pre><code>if (a) return (b); else return (0); </code></pre> <p>i.e. use a conditional jump. On sufficiently new x86, you can also use a <code>cmov</code> instruction like this:</p> <pre><code>; assumes input in eax and ebx mov ecx, ea...
Logical AND implementation in x86_64 Linux assembly
linux|assembly|x86-64|fasm|logical-and
2
76
3
72,961,084
72,961,084
3
true
2022-07-13T04:09:51.653Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Logical AND implementation in x86_64 Linux assembly<p>I'm trying to implement logical NOT and logical AND in assembly, I did logical NOT already using <code>...
72,997,871
R dplyr subset rows that contain any character value<p>I have a dataset in which a particular column (<code>x</code> in this case) has certain rows with character values.</p> <p>How can I slice/subset these rows which contain any character value for data exploration purposes?</p> <p>Please note that I don't want to har...
<p>Easiest would be to convert to numeric with <code>as.numeric</code>, which will return NA for all non-numeric elements, then use <code>is.na</code> to find the NA elements as a logical vector for <code>subset</code>ting (there would be a warning as part of the forced conversion to numeric)</p> <pre><code>subset(df, ...
R dplyr subset rows that contain any character value
r|dplyr
2
76
3
72,997,901
72,997,901
3
true
2022-07-15T17:43:09.463Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: R dplyr subset rows that contain any character value<p>I have a dataset in which a particular column (<code>x</code> in this case) has certain rows with char...
73,000,283
PL/SQL stored procedure to update values of a column that is specified by the parameter<p>I am trying to create a stored procedure in PL/SQL that can update values by taking 3 parameters</p> <ol> <li>old_value</li> <li>new_value</li> <li>column_name</li> </ol> <p>How can I achieve this without having to rewrite the set...
<p>You'd have to use dynamic SQL.</p> <pre><code>CREATE OR REPLACE PROCEDURE dp_replace_values ( old_value varchar2, new_value varchar2, column_name varchar2 ) IS BEGIN EXECUTE IMMEDIATE 'UPDATE dp_mock_data ' || ' SET ' || column_name || ' = :1 ' ' WHERE ' || ...
PL/SQL stored procedure to update values of a column that is specified by the parameter
sql|oracle|plsql
0
76
1
73,000,667
73,000,667
3
true
2022-07-15T22:53:45.637Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: PL/SQL stored procedure to update values of a column that is specified by the parameter<p>I am trying to create a stored procedure in PL/SQL that can update ...
72,832,140
Map get with null key<p>I'm confused by Kotlin's null safety features when it comes to maps. I have a <code>Map&lt;String, String&gt;</code>. Yet I can call <code>map.get(null)</code> and it returns <code>null</code> to indicate that the key is not present in the map. I expected a compiler error, because <code>map</cod...
<p>The <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/get.html" rel="nofollow noreferrer"><code>get</code></a> method in <code>Map</code> is declared like this:</p> <pre><code>abstract operator fun get(key: K): V? </code></pre> <p>so for a <code>Map&lt;String, String&gt;</code>, its <code...
Map get with null key
kotlin|kotlin-null-safety
2
76
1
72,832,724
72,832,724
3
true
2022-07-01T16:21:47.980Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Map get with null key<p>I'm confused by Kotlin's null safety features when it comes to maps. I have a <code>Map&lt;String, String&gt;</code>. Yet I can call ...
72,937,546
Is there any python/unix command specifically to delete a line after reading a file? (I'm dealing with 64.2 GB file)<p>I'm a bioinformatician and I'm dealing with a very large text file. The size of the file is 64.2 GB. I did word count on my text file and got this result after quite some time.</p> <p>1052454251 10524...
<p>Use a specialized tool like <a href="https://bioinf.shenwei.me/seqkit/usage/#seq" rel="nofollow noreferrer">seqkit</a> to filter your sequences by header pattern.</p> <p><code>seqkit grep -v -p chrM GRCh38.fa -o chrMremoved.fa</code></p>
Is there any python/unix command specifically to delete a line after reading a file? (I'm dealing with 64.2 GB file)
python|python-3.x|bioinformatics|file-handling|fasta
1
76
1
72,939,486
72,939,486
3
true
2022-07-11T11:06:07.017Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Is there any python/unix command specifically to delete a line after reading a file? (I'm dealing with 64.2 GB file)<p>I'm a bioinformatician and I'm dealing...
72,989,290
SvelteKit async function load not working or Firebase onAuthStateChanged cannot be made blocking<p>I am building a website with SvelteKit. My auth provider is Firebase. I am trying to protect some pages with Authentication, so I am programming an auth listener in <code>__layout.svelte</code>. However, no matter how I t...
<p><code>load</code> always runs before the component is created, your code is incorrect.</p> <p><a href="https://firebase.google.com/docs/reference/js/auth.auth.md#authonauthstatechanged" rel="nofollow noreferrer"><code>onAuthStateChanged</code></a> is <em>not</em> awaitable and returns an unsubscribe function instead...
SvelteKit async function load not working or Firebase onAuthStateChanged cannot be made blocking
firebase|firebase-authentication|svelte|sveltekit
1
76
1
72,989,631
72,989,631
3
true
2022-07-15T05:09:42.800Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: SvelteKit async function load not working or Firebase onAuthStateChanged cannot be made blocking<p>I am building a website with SvelteKit. My auth provider i...
72,963,134
How to validate brackets with * equation string in PHP<pre><code>()* -&gt; In-valid ()(* -&gt; valid *)() -&gt; valid ()** -&gt; valid )( -&gt; In-valid )* -&gt; In-valid </code></pre> <p>I tried and stuck to implement the code, as I know that we have to do with Stack, but I just stuck there, can someone PHP exper...
<p>You can check for balance validity with 4 conditions:</p> <ul> <li><p>If there is a <code>)</code>, we should have at least 1 <code>(</code> or <code>*</code> in our account so far, both would work.</p> </li> <li><p>If there are enough <code>*</code> for <code>(</code> to be paired with <code>)</code>.</p> </li> <li...
How to validate brackets with * equation string in PHP
php|string|validation|math
3
76
2
72,963,531
72,963,531
3
true
2022-07-13T08:29:13.237Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to validate brackets with * equation string in PHP<pre><code>()* -&gt; In-valid ()(* -&gt; valid *)() -&gt; valid ()** -&gt; valid )( -&gt; In-valid )...
72,828,790
How to deal with bash shell expansions and fopen()<p>I am writing a program to make copies of files in Linux. The program takes two arguments:</p> <ul> <li>a <code>char *source</code> which is the path to the source file that needs copying</li> <li>a <code>char *dest</code> which is the path to the destination where a ...
<blockquote> <p>So far i have noticed <code>fopen()</code> does not recognize common bash shell expansions</p> </blockquote> <p>Indeed it does not. <em>shell</em> expansions such as tilde substitution and globbing are performed <em>by the shell</em>. If you want them to be performed by your program, too, then you nee...
How to deal with bash shell expansions and fopen()
c|bash|file|fopen
0
76
2
72,829,116
72,829,116
3
true
2022-07-01T11:46:35.623Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to deal with bash shell expansions and fopen()<p>I am writing a program to make copies of files in Linux. The program takes two arguments:</p> <ul> <li>a...
72,887,988
Why is underscore not a valid name in new Python match?<p><code>_</code> score can be used as a variable name anywhere in Python, such as:</p> <pre><code>_ = 10 print(_) </code></pre> <p>However, it is not accepted here:</p> <pre><code>d = dict(john = 10, owen=12, jenny=13) match d: case {'john' : 10, 'jenny': _}: ...
<p>In a match statement, <code>_</code> is a <a href="https://peps.python.org/pep-0622/#wildcard-pattern" rel="nofollow noreferrer">wildcard pattern</a>. It matches anything without binding any names, so you can use it multiple times in the same <code>case</code> without having to come up with a bunch of different name...
Why is underscore not a valid name in new Python match?
python|python-3.10|structural-pattern-matching
3
76
1
72,888,046
72,888,046
4
true
2022-07-06T17:56:36.717Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why is underscore not a valid name in new Python match?<p><code>_</code> score can be used as a variable name anywhere in Python, such as:</p> <pre><code>_ =...
72,917,964
Why does strncpy() produce garbage when the dest is smaller than the src but large enough to fit the wanted substring of src?<p>I tried to limit the number of n bytes copied to dest (here <strong>str1</strong>) by using <strong>strncpy()</strong>. The dest is big enough for the n bytes, but the output produced garbage ...
<p>from man page <a href="https://linux.die.net/man/3/strncpy" rel="nofollow noreferrer">https://linux.die.net/man/3/strncpy</a></p> <blockquote> <p>The strncpy() function is similar, except that at most n bytes of src are copied. Warning: If there is no null byte among the first n bytes of src, the string placed in de...
Why does strncpy() produce garbage when the dest is smaller than the src but large enough to fit the wanted substring of src?
c|string|strcpy|strncpy
3
76
3
72,917,994
72,917,994
4
true
2022-07-08T23:49:00.677Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why does strncpy() produce garbage when the dest is smaller than the src but large enough to fit the wanted substring of src?<p>I tried to limit the number o...
72,959,619
Pandas rolling correlation always returns NaN when there is a NaN. Not the same behavior as DataFrame.corr<p>The below code will output only Nan Values</p> <pre><code>df = pd.DataFrame({'B': [0, 1, 3, np.nan, 4,5,6],'A': [0, 1, 2,3, 4,5,6]}) df[&quot;corr&quot;] = df['A'].rolling(4).corr(df['B'],min_periods=1) print(df...
<p>You may check with <code>min_periods</code> with <code>rolling</code></p> <pre><code>df['cor'] = df['A'].rolling(4,min_periods=1).corr(df['B']) Out[305]: 0 NaN 1 1.00000000 2 0.98198051 3 0.98198051 4 0.92857143 5 0.98198051 6 1.00000000 dtype: float64 </code></pre>
Pandas rolling correlation always returns NaN when there is a NaN. Not the same behavior as DataFrame.corr
python|pandas|dataframe
1
76
1
72,959,890
72,959,890
4
true
2022-07-13T00:19:50.643Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Pandas rolling correlation always returns NaN when there is a NaN. Not the same behavior as DataFrame.corr<p>The below code will output only Nan Values</p> <...
72,954,661
How can I run multiple tasks sequentially without blocking the UI?<p>I'm trying to run these tasks sequentially without any blocking in the UI , however, I've test all methods that I've found but I'm still have a problem , when I get tasks runs without UI block I get a missed steps in the tasks or an infinite running o...
<p>You should await each Task like</p> <pre><code>public async Task StartAsync(CancellationToken cancellationToken, string path, int i) { await Task.Run(() =&gt; Task1(path, step, i)); await Task.Run(() =&gt; Task2(cancellationToken)); await Task.Run(() =&gt; Task3(cancellationToken)); await Task.R...
How can I run multiple tasks sequentially without blocking the UI?
c#|wpf|multithreading
2
76
1
72,954,914
72,954,914
4
true
2022-07-12T15:17:47.777Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I run multiple tasks sequentially without blocking the UI?<p>I'm trying to run these tasks sequentially without any blocking in the UI , however, I'v...
72,898,684
What is going wrong in this sum divisors program?<p>function should return the sum of all the divisors of a number, without including it. A divisor is a number that divides into another without a remainder. so for this I have written below function in python.</p> <pre><code>def sum_divisors(n): k = 1 sum = 0 ...
<p>You're incrementing <code>k</code> twice, once conditionally inside the <code>if</code>, once unconditionally outside it, so you can never find adjacent factors. Remove the one inside the <code>if</code>.</p> <p>Better, just replace it with a <code>for</code>+<code>range</code> loop and stop managing <code>k</code> ...
What is going wrong in this sum divisors program?
python|python-3.x
-1
76
4
72,898,764
72,898,764
4
true
2022-07-07T13:26:24.943Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: What is going wrong in this sum divisors program?<p>function should return the sum of all the divisors of a number, without including it. A divisor is a numb...
72,782,329
how to compare value in array php<p>i have data in array</p> <pre><code>[list] =&gt; Array ( [0] =&gt; Array ( [id] =&gt; 216 [name] =&gt; item A [nilai] =&gt; 0.456 ) [1] =&gt; Array ( [id] =&gt; 21...
<pre><code> &lt;?php $val_array = array_column($res['method']['list'], 'nilai'); $hightestValueIndex = array_keys($val_array, max($val_array)); foreach($res['method']['list'] as $key=&gt;$row) { ?&gt; &lt;div class=&quot;form-check&quot;&gt; &lt;input class=&quot;form-check-input&quot; type=&quot...
how to compare value in array php
php|codeigniter
-1
76
2
72,783,666
72,783,666
5
true
2022-06-28T07:29:15.817Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to compare value in array php<p>i have data in array</p> <pre><code>[list] =&gt; Array ( [0] =&gt; Array ( [id] =...
72,929,159
How to use concepts to pass an argument to a class method?<p>I have an optional_monadic class that I inherit from the std::optional class</p> <pre><code> template &lt;class T&gt; class monadic_optional : public std::optional&lt;T&gt; { public: using std::optional&lt;T&gt;::optional; monadic_o...
<p>This is pretty trivial with <code>invokable</code>. And you don't have to require it to become a <code>std::function</code>:</p> <pre><code>auto and_then(std::invocable&lt;T&gt; auto func) -&gt; monadic_optional&lt;std::invoke_result_t&lt;decltype(func), T&gt;&gt; { if(this-&gt;has_value()) return std::invok...
How to use concepts to pass an argument to a class method?
c++|c++20|c++-concepts|c++-templates
3
76
1
72,929,258
72,929,258
9
true
2022-07-10T14:16:29.503Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to use concepts to pass an argument to a class method?<p>I have an optional_monadic class that I inherit from the std::optional class</p> <pre><code> ...
72,909,972
How to call an array from a data file in a blade template with Laravel?<p>I'm learning Laravel and I need your help to display an array in a blade template. First,I created a data file containing an array in App (I don't use a database in my project yet =&gt; everything is in a file).But in my template, I can't include...
<p>Finally found an issue! My routing was :</p> <pre><code>Route::get('/competences',SkillsController@allSkills); </code></pre> <p>Actually the good method is :</p> <pre><code>Route::get('/competences',[SkillsController::class, 'allSkills']); </code></pre> <p>Nothing was working until I found this on Laracast's forums<...
How to call an array from a data file in a blade template with Laravel?
php|laravel|laravel-blade
-1
76
1
72,913,188
72,913,188
-1
true
2022-07-08T10:19:40.333Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to call an array from a data file in a blade template with Laravel?<p>I'm learning Laravel and I need your help to display an array in a blade template. ...
72,991,904
Can I merge existing state of an Azure resource with an Azure Bicep or Pulumi file?<p>I'm currently working with a solution that uses an Azure Application Gateway deployed with ARM/Bicep. Over time, other applications are deployed that use this AppGw, so rules/backend pools/listeners are created for those applications ...
<p>Using Bicep, you could always retrieve existing configuration if the app gateway already exists. Here is a sample using <code>httpListeners</code>.</p> <p>You could define a <code>app-gateway.bicep</code> module like that:</p> <pre><code>param appGatewayName string param location string = resourceGroup().location .....
Can I merge existing state of an Azure resource with an Azure Bicep or Pulumi file?
azure|pulumi|azure-bicep
1
76
1
73,001,774
73,001,774
-1
true
2022-07-15T09:31:33.080Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Can I merge existing state of an Azure resource with an Azure Bicep or Pulumi file?<p>I'm currently working with a solution that uses an Azure Application Ga...
72,768,622
Flutter http.get() giving null as data,<p>I am newbie in coding &amp; started by learning flutter, so i am struggling to execute the this in dart,somebody please explain</p> <p>i want return email id in widget,but when i print the output its giving me null as output,i cant find what's the error,please tell why it is re...
<p>There is mistake here : use Modelclass instead of Data while parse as it inside that.</p> <pre><code>import 'package:http/http.dart' as http; import 'package:neww/Model/Modelclass.dart'; import 'package:neww/Model/model2.dart'; const url = 'https://reqres.in/api/users/'; class Repository { Future&lt;Modelclass?&...
Flutter http.get() giving null as data,
flutter|dart|http|flutter-dependencies
0
77
2
72,770,205
72,770,205
0
true
2022-06-27T07:48:46.200Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Flutter http.get() giving null as data,<p>I am newbie in coding &amp; started by learning flutter, so i am struggling to execute the this in dart,somebody pl...
72,769,390
Next JS Middlewares - URLs is malformed. Please use only absolute URLs<p>This is the code in my <code>_middleware</code> file located in the <code>pages</code> folder it keeps giving me the URL malformed error anytime a request is sent:</p> <pre><code>const token = await getToken({req,secret:process.env.JWT_SECRET}); ...
<p>It will deprecate soon if you want to use the redirect method you can create an absolute URL by</p> <pre><code> const url = req.nextUrl.clone() url.pathname = '/login' return NextResponse.redirect(url) </code></pre>
Next JS Middlewares - URLs is malformed. Please use only absolute URLs
javascript|next.js
0
77
1
72,770,324
72,770,324
0
true
2022-06-27T08:53:59.973Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Next JS Middlewares - URLs is malformed. Please use only absolute URLs<p>This is the code in my <code>_middleware</code> file located in the <code>pages</cod...
72,779,810
Pass value from one component to another (siblings) in react/nextjs<p>I have a problem trying to pass one value to a modal in another sibling component in NextJS, i know about context but it's too hard to understand for me and the structure is not done for that.</p> <p>Ex (i will use one value called test):</p> <pre><c...
<blockquote> <p>You mess both class-based and functional component</p> </blockquote> <pre><code>import React,{useState} from 'react'; import Formulario from '../components/formulario'; import Ambiente from '../components/ambiente'; const App = () =&gt; { const [message,setMessage]=useState(&quot;&quot;); const callba...
Pass value from one component to another (siblings) in react/nextjs
reactjs|next.js
0
77
2
72,795,214
72,795,214
0
true
2022-06-28T01:29:39.650Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Pass value from one component to another (siblings) in react/nextjs<p>I have a problem trying to pass one value to a modal in another sibling component in Ne...
72,800,383
how can i remove all commas at the end of the string?<p>I want to remove all the commas that are in last of every string i tried s.rstrip it work only for the last comma</p> <p><code>l = [['kjkng,rkggg,,,,,,,,,,', 'aaaa, , ', 'sssssss, , , '],['rjfjrejn lelkkd ,,,,,'], ['fffff , , ,'],[], .....]]</code></p> <p>i want r...
<p>Try this because you have a nested list:</p> <pre><code>&gt;&gt;&gt; [[b.rstrip(', ') for b in a] for a in l] [['kjkng,rkggg', 'aaaa', 'sssssss'], ['rjfjrejn lelkkd'], ['fffff']] </code></pre>
how can i remove all commas at the end of the string?
python|string|list
-4
77
5
72,800,483
72,800,483
0
true
2022-06-29T11:09:39.260Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how can i remove all commas at the end of the string?<p>I want to remove all the commas that are in last of every string i tried s.rstrip it work only for th...
72,826,477
Python float and integer values to bytearray<p>I am working on sending data to another program via serial communication.</p> <p>This receiver program accepts 78 bytes arrays and, each data must be in its own dedicated byte index for the receiver to understand.</p> <p>Ex: I have an integer altitude value=2500</p> <p>and...
<p>To expand on Niko's answer, this problem can be solved with Python's builtin <a href="https://docs.python.org/3/library/struct.html" rel="nofollow noreferrer">struct library</a>. However, you don't seem to have specified anything about the required byte order of your application. For example, the following expressio...
Python float and integer values to bytearray
python|arrays|byte
0
77
2
72,826,759
72,826,759
0
true
2022-07-01T08:29:51.243Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Python float and integer values to bytearray<p>I am working on sending data to another program via serial communication.</p> <p>This receiver program accepts...
72,832,637
Could not create unique index "" when I use string PK<p>I have the following entities:</p> <pre><code>public class File { [Key] [DatabaseGenerated(DatabaseGeneratedOption.None)] public string Name { get; set; } } </code></pre> <p>and</p> <pre><code>public class FamilyTree { public int Id { get; set; } ...
<p>It seems I just had data in the <code>FamilyTrees</code> table that interfered me to perform the migration somehow. What a pity that I did not receive an appropriate message.</p>
Could not create unique index "" when I use string PK
c#|.net|postgresql|.net-core|entity-framework-6
2
77
1
72,833,695
72,833,695
0
true
2022-07-01T17:12:12.253Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Could not create unique index "" when I use string PK<p>I have the following entities:</p> <pre><code>public class File { [Key] [DatabaseGenerated(Da...
72,833,692
delete the always last row in angular-reactive -form<p>I have created a reactive form in angular with the ability to dynamically delete rows in a form how to delete the last row of index when user click on any row using angular reactive form</p>
<p>You can delete the last row by using the array length.</p> <p><code>this.getter.removeAt(this.getter.length-1)</code></p> <p>The getter is your formArray</p>
delete the always last row in angular-reactive -form
angular|typescript|angular-reactive-forms
-1
77
1
72,833,790
72,833,790
0
true
2022-07-01T19:08:04.843Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: delete the always last row in angular-reactive -form<p>I have created a reactive form in angular with the ability to dynamically delete rows in a form how to...
72,837,932
Is " const wchar_t* " a pointer?<p>Normally when we write:</p> <pre><code>int a = 10; int* ptr = &amp;a; std::cout &lt;&lt; *ptr; </code></pre> <p>Code output is:</p> <pre><code>&gt; 10 </code></pre> <p>But when I write this:</p> <pre><code>const wchar_t* str = L&quot;This is a simple text!&quot;; std::wcout &lt;&lt; s...
<p><code>L&quot;This is a simple text!&quot;</code> is an array of type <code>const wchar_t[23]</code> containing all the string characters plus a terminating 0 char. Arrays can decay in which case they turn into a pointer to the first element in the array which is what happens in</p> <pre><code>const wchar_t* str = L&...
Is " const wchar_t* " a pointer?
c++|pointers|wchar-t
-2
77
1
72,837,987
72,837,987
0
true
2022-07-02T09:23:04.303Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Is " const wchar_t* " a pointer?<p>Normally when we write:</p> <pre><code>int a = 10; int* ptr = &amp;a; std::cout &lt;&lt; *ptr; </code></pre> <p>Code outpu...
72,855,282
org/springframework/boot/autoconfigure/web/ServerPropertiesAutoConfiguration.class cannot be opened because it does not exist Maven Dependency Issue<p>I am not able to run the project I wanted to update the spring boot version and cloud version in the previous project but the error comes</p> <blockquote> <p>Caused by: ...
<p>Stop fighting the dependency management that the Spring Boot starters do, also stop mixing jars from different versions of libraries (regardless of the library).</p> <ul> <li>Spring Boot Starter Data JPA includes Hibernate and Spring ORM (remove those, as well as jdbc and tx)</li> <li>Use <code>spring-boot-starter-s...
org/springframework/boot/autoconfigure/web/ServerPropertiesAutoConfiguration.class cannot be opened because it does not exist Maven Dependency Issue
java|spring|spring-boot|maven|dependencies
0
77
1
72,864,654
72,864,654
0
true
2022-07-04T10:26:50.867Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: org/springframework/boot/autoconfigure/web/ServerPropertiesAutoConfiguration.class cannot be opened because it does not exist Maven Dependency Issue<p>I am n...
72,874,410
Run "npm install" as if package was not in workspace<p>I am working on an <a href="https://docs.npmjs.com/cli/v7/using-npm/workspaces" rel="nofollow noreferrer">NPM workspace</a> node project. To deploy one of the workspace's packages, I would like to run <code>npm install</code> and obtain a <code>node_modules</code> ...
<p>While I did not find a standard way to achieve this, there is a slightly hacky way that worked for me:</p> <p>Copying the <code>node_modules</code> directory allows the package to act as a stand-alone module. However, there is one caveat: The <code>node_modules</code> directory contains a symlink for each package in...
Run "npm install" as if package was not in workspace
node.js|npm
0
77
2
72,874,411
72,874,411
0
true
2022-07-05T19:08:28.187Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Run "npm install" as if package was not in workspace<p>I am working on an <a href="https://docs.npmjs.com/cli/v7/using-npm/workspaces" rel="nofollow noreferr...
72,823,620
Use SDK (libraries, header files, etc) during creating a C++ ROS package<p>I am working with Teledyne Lumenera USB Camera. I installed <code>lucam-sdk_2.4.3.94</code> for Linux on my Ubuntu 18.04. It includes these files:</p> <p><a href="https://i.stack.imgur.com/L8IAH.png" rel="nofollow noreferrer"><img src="https://i...
<p>I solved the problem. Working with CMakeList and ROS was confusing.</p> <p>Go to this repository, and read instalation part, then look at CMakeList.txt:</p> <p><a href="https://github.com/farhad-dalirani/lumenera_camera_package" rel="nofollow noreferrer">https://github.com/farhad-dalirani/lumenera_camera_package</a>...
Use SDK (libraries, header files, etc) during creating a C++ ROS package
c++|c++11|cmake|makefile|ros
0
77
1
72,874,932
72,874,932
0
true
2022-07-01T01:46:22.973Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Use SDK (libraries, header files, etc) during creating a C++ ROS package<p>I am working with Teledyne Lumenera USB Camera. I installed <code>lucam-sdk_2.4.3....
72,883,226
Problem running Selenium 4 code in PyCharm<p>I am trying to run a very simple selenium python code in PyCharm, but it throws out the following error every time when I call <code>driver = webdriver.Firefox(driver_path)</code>.</p> <pre><code>/home/kimilao/PycharmProjects/pythonOne/main.py:7: DeprecationWarning: firefox_...
<p>I'm pretty sure this happens because PyCharm automatically creates and enters a <code>virtual environment</code>, where you probably didn't run a <code>pip install</code>. To make sure, try launching these commands from vscode:</p> <pre><code>source venv/bin/activate python your_script.py deactivate # after executin...
Problem running Selenium 4 code in PyCharm
python|python-3.x|selenium|selenium-webdriver|pycharm
0
77
2
72,883,608
72,883,608
0
true
2022-07-06T12:00:30.843Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Problem running Selenium 4 code in PyCharm<p>I am trying to run a very simple selenium python code in PyCharm, but it throws out the following error every ti...
72,876,882
'MyMaps' cannot be used as a JSX component<p>As the title says I cannot use MyMaps as a JSX component... this is the entire error message.</p> <blockquote> <p>'MyMaps' cannot be used as a JSX component. Its return type 'void' is not a valid JSX element.</p> </blockquote> <p>here is the code of my index.tsx file where t...
<p>Just fixed the issue...</p> <p>MyMaps component maps.jsx file had the error output like this</p> <pre><code> if (loadError) return 'Error'; if (!isLoaded) return 'Loading...'; </code></pre> <p>instead of this way, which is the JSX way</p> <pre><code> if (loadError) { return &lt;div&gt;Map cannot be loaded ri...
'MyMaps' cannot be used as a JSX component
reactjs|typescript|jsx
0
77
1
72,884,776
72,884,776
0
true
2022-07-06T00:46:47.233Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: 'MyMaps' cannot be used as a JSX component<p>As the title says I cannot use MyMaps as a JSX component... this is the entire error message.</p> <blockquote> <...
72,892,140
Binance API entering order gives me MIN_NOTIONAL<p>I'm currently using an open source Binance API from nuget, called Binance.Net from JKrof <a href="https://github.com/JKorf/Binance.Net" rel="nofollow noreferrer">https://github.com/JKorf/Binance.Net</a></p> <p>I already have my API and keys in place, but when i tried t...
<p>ok, my qty is too low. i just needed to increase the qty. thanks</p>
Binance API entering order gives me MIN_NOTIONAL
c#|api|async-await|cryptocurrency|binance-api-client
0
77
1
72,893,255
72,893,255
0
true
2022-07-07T04:01:23.247Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Binance API entering order gives me MIN_NOTIONAL<p>I'm currently using an open source Binance API from nuget, called Binance.Net from JKrof <a href="https://...
72,913,145
Exclude fields from Java object using Spring<pre><code>@PostMapping(&quot;/searchCarBigList&quot;) public ResponseEntity&lt;Cars&gt; searchBigList( @Parameter(description = &quot;some searchRequest dto&quot;) @RequestBody SearchRequest searchRequest) { return ResponseEntity.ok(someService.search(searchRequ...
<p>I fully agree with Tod Harter that it's better and easier to use DTOs.</p> <p>That being said, I don't know how you've tried to use the @JSonView annotation. I use it in some of my DTOs. One way of getting the @JsonView annotation to work is to first create an interface. i.e.:</p> <pre><code>public interface Views {...
Exclude fields from Java object using Spring
java|json|spring-boot|hibernate|spring-mvc
0
77
3
72,913,747
72,913,747
0
true
2022-07-08T14:44:43.223Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Exclude fields from Java object using Spring<pre><code>@PostMapping(&quot;/searchCarBigList&quot;) public ResponseEntity&lt;Cars&gt; searchBigList( @...
72,919,652
How do you fix and error of an Invalid version of NPM for installing @nestjs/core?<p>Hey so i just recently started learning Nestjs and I was asked to setup the environment on my Chromebook(Linux terminal). All packages have been successfully installed except a package <em>@nesjs/core</em>. I've tried running the comma...
<p>If your Node version is very recent, try downgrading. Stable version 14.16.1 worked.</p>
How do you fix and error of an Invalid version of NPM for installing @nestjs/core?
node.js|npm|npm-install|npm-scripts|npm-start
0
77
1
72,919,696
72,919,696
0
true
2022-07-09T07:20:46.447Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How do you fix and error of an Invalid version of NPM for installing @nestjs/core?<p>Hey so i just recently started learning Nestjs and I was asked to setup ...
72,926,004
Spring RestTemplate to ping google<p>How can I use spring restTemplate in java for a GET request to google.com or any other website? I tried like below but didn't work. Got error while extracting response for type [class java lang.String] and content type [text/html;charset=utf-8]</p> <pre><code> ResponseEntity&lt;St...
<p>From the snippet above seems that the problem arise from messageConverters, you are overwriting the whole default RestTemplate messageConverters causing it to fail.</p> <pre><code>List&lt;HttpMessageConverter&lt;?&gt;&gt; messageConverters = new ArrayList&lt;&gt;(); ... restTemplate.setMessageConverters(messageConve...
Spring RestTemplate to ping google
java|html|spring|resttemplate|spring-resttemplate
-1
77
1
72,926,856
72,926,856
0
true
2022-07-10T03:41:14.917Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Spring RestTemplate to ping google<p>How can I use spring restTemplate in java for a GET request to google.com or any other website? I tried like below but d...
72,930,489
Unclosed '(' does not match '}'<p>I'm trying to display an image on a laravel blade, but I'm having trouble displaying the $d[&quot;photo&quot;] variable in the image address in the {{ url(' ') }}</p> <p><a href="https://i.stack.imgur.com/s9ulQ.png" rel="nofollow noreferrer">code</a><a href="https://i.stack.imgur.com/z...
<p>You have an error on the template, change the second line for this:</p> <pre><code> &lt;img src='{{ url('img/foto-pengurus/' . $d['foto']) }}' class=&quot;img-fluid&quot; alt=''&gt; </code></pre>
Unclosed '(' does not match '}'
php|laravel|laravel-8|laravel-9
0
77
1
72,930,611
72,930,611
0
true
2022-07-10T17:25:34.067Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Unclosed '(' does not match '}'<p>I'm trying to display an image on a laravel blade, but I'm having trouble displaying the $d[&quot;photo&quot;] variable in ...
72,931,268
How to use multi page mode in quasar?<p>Is it possible to have multi page mode in quasar? In pure VueJS it's possible by configuring this option <a href="https://cli.vuejs.org/config/#pages" rel="nofollow noreferrer">https://cli.vuejs.org/config/#pages</a>.</p> <p>In quasar I can't figure out whether this is possible a...
<blockquote> <ol> <li>Create a new project using @vue/cli (Vue3)</li> <li>Add as Quasar a plug in ( <a href="https://quasar.dev/start/vue-cli-plugin" rel="nofollow noreferrer">https://quasar.dev/start/vue-cli-plugin</a>) - Enable Quasar tree-shaking (recommended)</li> <li>Configure Vue 3 to generate multiple pages usin...
How to use multi page mode in quasar?
quasar-framework|multi-page-application
2
77
1
72,942,096
72,942,096
0
true
2022-07-10T19:24:06.420Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to use multi page mode in quasar?<p>Is it possible to have multi page mode in quasar? In pure VueJS it's possible by configuring this option <a href="htt...
72,949,883
Save input fields with the help of a button<p>I would need a little help with my script. The user can edit the table cells manually through input fields if something goes wrong. This works also so far already. But now I want to save the data that has been typed in with a confirmation button and write it there. The inpu...
<p>This is the complete html document demoing the concept of saving and loading user edited table content into and from the local storage.</p> <p>The <code>tbody</code> element is <code>contenteditable</code> and there are actions you can trigger like: empty, save and load.</p> <p>The strategy is just storing and setti...
Save input fields with the help of a button
javascript|html
0
77
1
72,967,938
72,967,938
0
true
2022-07-12T09:17:12.623Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Save input fields with the help of a button<p>I would need a little help with my script. The user can edit the table cells manually through input fields if s...
72,987,763
Module not found: Error: Can't resolve 'fs' in '/home/bassam/throwaway/chakra-ts/node_modules/dotenv/lib' in freshly created chakra app<p>Created app via <code>yarn create react-app chakra-ts --template @chakra-ui/typescript</code>.</p> <p>Added dotenv via <code>yarn add dotenv</code></p> <p>Added the following to <cod...
<p>TL;DR Since you created your project with create-react-app, you should add environment variables <a href="https://create-react-app.dev/docs/adding-custom-environment-variables/" rel="nofollow noreferrer">the way the docs suggest</a>.</p> <p>The reason you are running into this error is because <code>dotenv</code> is...
Module not found: Error: Can't resolve 'fs' in '/home/bassam/throwaway/chakra-ts/node_modules/dotenv/lib' in freshly created chakra app
reactjs|typescript|dotenv|chakra-ui
1
77
1
72,988,193
72,988,193
0
true
2022-07-14T23:56:11.590Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Module not found: Error: Can't resolve 'fs' in '/home/bassam/throwaway/chakra-ts/node_modules/dotenv/lib' in freshly created chakra app<p>Created app via <co...
73,010,143
Godot: Text on mesh surface<p>I want to add text on the surface of a mesh. Is there a simple way to do that through GDScript? The mesh could be a built in mesh object or an imported one (from blender for example).</p>
<p>If you mean text on a 3d mesh, here's how to do it:</p> <ol> <li><p>Add a Sprite3D</p> </li> <li><p>Add a Viewport (plain) as a child of your Sprite3D</p> </li> <li><p>Add a Label as a child of your Viewport</p> </li> <li><p>Type the text you want to display into text, in the label</p> </li> <li><p>Attach a script t...
Godot: Text on mesh surface
godot|gdscript
0
77
1
73,010,805
73,010,805
0
true
2022-07-17T08:05:47.163Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Godot: Text on mesh surface<p>I want to add text on the surface of a mesh. Is there a simple way to do that through GDScript? The mesh could be a built in me...
73,023,940
Azure AVD connectivity to on-premises network without outbound internet<p>Can we disable outbound internet from azure virtual desktop(VM) running remoteApp streaming and still use azure site-to-site vpn connectivity to connect AVD to on-premises network?! Many thanks</p>
<p>To disable Outbound Internet Connectivity from azure virtual desktop (VM)</p> <p><em><strong>Go to azure portal -&gt; virtual machine -&gt; Networking -&gt; outbound port rule -&gt; add outbound port rule</strong></em></p> <p><img src="https://i.imgur.com/lZFvO08.png" alt="enter image description here" /></p> <p>In ...
Azure AVD connectivity to on-premises network without outbound internet
azure|networking|azure-virtual-network
-1
77
1
73,026,602
73,026,602
0
true
2022-07-18T14:25:16.737Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Azure AVD connectivity to on-premises network without outbound internet<p>Can we disable outbound internet from azure virtual desktop(VM) running remoteApp s...
72,978,070
How to read preference with glance Widget Jetpack compose?<p>I'm trying to do a weather app with a widget. I call open weather map api and I can see the wether in the main screen on the phone. I save them in dataStore with :</p> <pre><code>mainViewModel.setCity(city) </code></pre> <pre><code>fun setCity(city: String){ ...
<p>I found a very good exemple If it can help someone : <a href="https://itnext.io/schedule-image-displaying-in-glance-widget-with-work-manager-api-cc474ed8571c" rel="nofollow noreferrer">https://itnext.io/schedule-image-displaying-in-glance-widget-with-work-manager-api-cc474ed8571c</a></p>
How to read preference with glance Widget Jetpack compose?
android|kotlin|android-widget|android-jetpack-compose
0
77
1
73,063,132
73,063,132
0
true
2022-07-14T09:14:36.803Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to read preference with glance Widget Jetpack compose?<p>I'm trying to do a weather app with a widget. I call open weather map api and I can see the weth...
73,021,591
What is the relation between Android vitals JankStats and firebase total/frozen/slow frames<p>I'm trying to send new JankStats performance statics to <a href="https://firebase.google.com/docs/perf-mon" rel="nofollow noreferrer">firebase performance monitoring</a>.</p> <p>Firebase performance dashboard accepts the follo...
<p>Answered on <a href="https://youtu.be/gD8iF0Jildk?list=PLl-K7zZEsYLm9G2M1W5ztrDvMv-CiFzLM&amp;t=164" rel="nofollow noreferrer">https://youtu.be/gD8iF0Jildk?list=PLl-K7zZEsYLm9G2M1W5ztrDvMv-CiFzLM&amp;t=164</a>. Firebase supports now activities and fragment performance metrics automatically</p>
What is the relation between Android vitals JankStats and firebase total/frozen/slow frames
android|firebase-performance|android-vitals
0
77
1
73,130,535
73,130,535
0
true
2022-07-18T11:27:01.370Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: What is the relation between Android vitals JankStats and firebase total/frozen/slow frames<p>I'm trying to send new JankStats performance statics to <a href...
72,894,527
Error: Bad response statusCode [422]. cluster [c-***] status version is not available yet. Cannot validate kube version for template<p>I am deploying a AWS (ap-south-1) rancher setup with terraform version 1.1.9 :</p> <p>Getting the below error while terraform apply : Used : Rancher version : Rocky-8.5-rancher-2.6.3 ku...
<p><strong>Note Cluster monitoring version 0.2.0 or above, can't be enabled until cluster is fully deployed as kubeVersion requirement has been introduced to helm chart</strong></p> <p>By passing version as null in the mentioned code, Error passed and created setup.</p> <pre><code> } version = &quot;&quot; ...
Error: Bad response statusCode [422]. cluster [c-***] status version is not available yet. Cannot validate kube version for template
kubernetes|amazon-ec2|terraform|monitoring|rke
0
77
1
73,139,107
73,139,107
0
true
2022-07-07T08:23:32.393Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Error: Bad response statusCode [422]. cluster [c-***] status version is not available yet. Cannot validate kube version for template<p>I am deploying a AWS (...
73,005,480
Printing array as sub blocks<p>I have array and I am trying to print this array as sub blocks, where each block has size = 5. the out put of this code not as I expected it just print the first 5 values. How to print the array as sub blocks?</p> <pre><code>int arr[298] = {some int values}; int in = 0; int siz = 298; in...
<p>Following your request for clarification in the comment section, there are a few problems with your code, for me the biggest one is that it's needlessly complicated, but the one you are looking for is in this line:</p> <pre><code>ind = ind + rang; </code></pre> <p><code>ind</code> is is not declared in your code but...
Printing array as sub blocks
arrays|c|nested-loops
3
77
2
73,005,615
73,005,615
0
true
2022-07-16T15:34:41.657Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Printing array as sub blocks<p>I have array and I am trying to print this array as sub blocks, where each block has size = 5. the out put of this code not as...
72,986,356
Find the first line in a multi-line import from statement with Python's AST<p>I'm currently trying to find all <code>ast.Import</code> and <code>ast.ImportFrom</code> nodes in a Python file. However, in a multi-line import statement, like</p> <pre><code>from foo import ( bar, baz, coo ) </code></pre> <p>the lineno ment...
<p>You could just use the <code>lineno</code> attribute of the <code>ast.ImportFrom</code> node, which is the line number of the start of the statement. (There's also an <code>end_lineno</code> attribute, probably less useful for this case.)</p> <p>Here's a small example:</p> <pre class="lang-py prettyprint-override"><...
Find the first line in a multi-line import from statement with Python's AST
python|abstract-syntax-tree
0
77
1
72,988,227
72,988,227
0
true
2022-07-14T20:32:58.060Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Find the first line in a multi-line import from statement with Python's AST<p>I'm currently trying to find all <code>ast.Import</code> and <code>ast.ImportFr...
72,823,065
i want to change every single pixel of an img to black exluding transparent python<p>I want to edit all the pixels of a PNG image except for the transparent pixels. I have this code:</p> <pre><code> img_da_maskerare = Image.open(&quot;temp.png&quot;) width = img_da_maskerare.size[0] height = img_da_maskerar...
<h2><code>if data[3] == 255</code></h2> <p>The <code>data</code> has a length of <code>4</code> representing the <code>RGBA</code>. Where <code>A</code> alpha represents the opacity of the pixel. which has values from <code>0</code> to <code>255</code>. <code>0</code> means completely transparent, and <code>255</code> ...
i want to change every single pixel of an img to black exluding transparent python
python|image|png
0
77
2
72,823,381
72,823,381
0
true
2022-06-30T23:41:41.570Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: i want to change every single pixel of an img to black exluding transparent python<p>I want to edit all the pixels of a PNG image except for the transparent ...
72,838,877
File pond prevent duplicate file upload<p>Hello I am using filepond for uploading files from here <a href="https://pqina.nl/filepond/docs/getting-started/examples/" rel="nofollow noreferrer">https://pqina.nl/filepond/docs/getting-started/examples/</a></p> <p>I have explored the documentation and from the answer here I ...
<p>OK I came up with this approach in addition to this answer here</p> <p><a href="https://stackoverflow.com/questions/59736525/prevent-same-files-photos-select">Prevent same files/photos select</a></p> <pre><code>var pond; var filenames = []; pond = FilePond.create( document.querySelector('input.filepond') ); pond.o...
File pond prevent duplicate file upload
jquery|filepond
0
77
1
72,839,161
72,839,161
0
true
2022-07-02T12:01:29.977Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: File pond prevent duplicate file upload<p>Hello I am using filepond for uploading files from here <a href="https://pqina.nl/filepond/docs/getting-started/exa...
72,786,055
Compare two list of dictionaries and get difference<p>I am new to python. In Python, I want to compare two list of dictionaries</p> <p>Below are 2 list of dictionary I want to compare based on key which is &quot;zrepcode&quot; and id which is the number &quot;1&quot;, &quot;3&quot;, and &quot;4&quot;...</p> <p><strong>...
<p>Here is my solution:</p> <pre class="lang-py prettyprint-override"><code>list_1 = [ {&quot;3&quot;:[{&quot;period&quot;:&quot;P13&quot;,&quot;value&quot;:10,&quot;year&quot;:2022}],&quot;zrepcode&quot;:&quot;55&quot;}, {&quot;1&quot;:[{&quot;period&quot;:&quot;P10&quot;,&quot;value&quot;:5,&quot;year&quot;:2023}],&q...
Compare two list of dictionaries and get difference
python|python-3.x|list|sorting|dictionary
0
77
1
72,788,049
72,788,049
0
true
2022-06-28T12:01:25.010Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Compare two list of dictionaries and get difference<p>I am new to python. In Python, I want to compare two list of dictionaries</p> <p>Below are 2 list of di...
72,882,316
Row is getting duplicated in Vue<p>My column is duplicating and I don't understand why. It doesn't happen to the columns that don't have the class applied to them.</p> <p>What can I do?</p> <pre><code>&lt;tr v-for=&quot;(item, key) in array.filter(el =&gt; el.Id !== null)&quot;&gt; &lt;td&gt;@{{ key + 1 }}.&lt;/td&gt...
<p>Problem is here:</p> <pre><code>&lt;div v-for=&quot;subitem in array.filter(el =&gt; el.Id === item.Id &amp;&amp;)&quot; v-bind:class=&quot;array.filter(el =&gt; el.Id === item.Id).length &gt; 1 ? 'children-row' : ''&quot; &gt; </code></pre> <p>The <strong>div</strong> component with its content will be genera...
Row is getting duplicated in Vue
javascript|vue.js
1
77
1
72,883,258
72,883,258
0
true
2022-07-06T10:54:52.197Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Row is getting duplicated in Vue<p>My column is duplicating and I don't understand why. It doesn't happen to the columns that don't have the class applied to...
72,830,154
SQL how to express "not equal to and not less than"<p>I am trying to use a comparison operator in SQL to say where <strong>not</strong> equal to or less than zero.</p> <p>I have tried this but it comes up with an error</p> <pre><code>WHERE amount (&lt;&gt; 0 or &lt; 0) </code></pre> <p>I have also tried:</p> <pre><code...
<p>You can simply use:</p> <pre><code> WHERE amount &gt; 0 </code></pre>
SQL how to express "not equal to and not less than"
sql
-1
77
3
72,830,222
72,830,222
0
true
2022-07-01T13:37:32.977Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: SQL how to express "not equal to and not less than"<p>I am trying to use a comparison operator in SQL to say where <strong>not</strong> equal to or less than...
73,011,059
NodeJS - HMAC-SHA512 Equivalent code in Node from C#<pre class="lang-cs prettyprint-override"><code>using System; using System.Text; using System.Globalization; using System.Security.Cryptography; public class Program { public static void Main() { var id = &quot;integration&qu...
<p>Was found by a colleague</p> <p>The issue is <code>expiry.ToString(&quot;O&quot;, CultureInfo.InvariantCulture)</code> produces the Date string... &quot;2022-07-28T05:19:33.2720140Z&quot; <code>new Date().toJSON()</code> produces the Date string... &quot;2022-07-28T05:18:33.778Z&quot;</p> <p>The difference is the de...
NodeJS - HMAC-SHA512 Equivalent code in Node from C#
node.js|azure|cryptojs|node-crypto
1
77
1
73,017,810
73,017,810
0
true
2022-07-17T10:37:25.120Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: NodeJS - HMAC-SHA512 Equivalent code in Node from C#<pre class="lang-cs prettyprint-override"><code>using System; using System.Text; using System.Globa...
72,970,279
How to detect delay or silence in an audio file?<p>I want to detect silence or delay in audio for a given duration file and remove it. For example, if someone started speaking and then paused for some duration to think.</p> <p>There's this <a href="https://stackoverflow.com/questions/42507879/how-to-detect-the-silence-...
<p>The <code>Sox</code> man page describes this in detail.</p> <pre><code> silence [-l] above-periods [duration threshold[d|%] [below-periods duration threshold[d|%]] </code></pre> <p>if we start with a sample command:</p> <pre><code>sox input.mp3 out.mp3 -S silence -l 1 0.2 1% -1 0.2 1% `-S` - show p...
How to detect delay or silence in an audio file?
audio|ffmpeg|mp3|audio-streaming|sox
0
77
1
72,977,408
72,977,408
0
true
2022-07-13T17:21:10.710Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to detect delay or silence in an audio file?<p>I want to detect silence or delay in audio for a given duration file and remove it. For example, if someon...
72,854,426
Get cumulative distinct count of active ids(ids where deleted date is null as of/before the modified date)<p>I am facing a problem while getting the cumulative distinct count of resource ids as of different modified dates in vertica. If you see the below table I have resource id, modified date and deleted date and I wa...
<p>To me, a <code>DATE</code> has no hours, minutes, seconds, let alone second fractions, so I renamed the time containing attributes to <code>%_ts</code>, as they are <code>TIMESTAMP</code>s.</p> <p>I had to completely start from scratch to solve it.</p> <p>I think this is the first problem I had to solve with as much...
Get cumulative distinct count of active ids(ids where deleted date is null as of/before the modified date)
sql|vertica
-1
77
1
72,869,953
72,869,953
0
true
2022-07-04T09:20:16.957Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Get cumulative distinct count of active ids(ids where deleted date is null as of/before the modified date)<p>I am facing a problem while getting the cumulati...
72,859,987
Comparing string numbers in Scala<p>I have a usage case like;</p> <pre><code>val fieldType = &quot;int&quot; // we know what is the type of field val value1 = &quot;1&quot; // can be double/int/long/float etc. val value2 = &quot;2&quot; // can be double/int/long/float etc. val operator = &quot;=&quot; // can be &gt;, ...
<p>The advantage of this solution is that it's generic, so it will work for all numeric types.</p> <p>I'm using the implicit ordering that Scala provides for every numeric type. And I provide a generic compare method that works for very numeric type. But I still had to parse <code>fieldType</code> to figure out what ty...
Comparing string numbers in Scala
scala
4
77
1
72,860,308
72,860,308
0
true
2022-07-04T16:58:53.057Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Comparing string numbers in Scala<p>I have a usage case like;</p> <pre><code>val fieldType = &quot;int&quot; // we know what is the type of field val value1 ...
73,016,212
How to perform calculations on dictionaries like data frames<p>I'm using binance websocket api to get bids and asks from an orderbook as a json and would like to perform some calculations. The dictionary looks like this:<code>{'bids': [['20768.16000000', '0.07273000'], [....]] 'asks': [['20770.77000000', '0.00096000'],...
<p>is this what you are looking for</p> <pre><code>df = read_csv(path_to_file) def mult(x,y):return x*y result = list(map(mult,df['0_x'],df['1_x'])) result2 = list(map(mult,df['0_y'],df['1_y'])) </code></pre> <p>the output</p> <pre><code>result [431302555.11840004, 0.0009833096000000001, 431432779.28550005, 3.264000...
How to perform calculations on dictionaries like data frames
python|json|pandas|dictionary|binance
0
77
1
73,016,250
73,016,250
0
true
2022-07-18T00:12:15.723Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to perform calculations on dictionaries like data frames<p>I'm using binance websocket api to get bids and asks from an orderbook as a json and would lik...
72,779,794
Using unlabelled custom images instead of Mnist and CIFAR for a simple GAN with Pytorch<p>I am trying to replace standardized data from pytorch such as MNIST and CIFAR with unlabeled custom images in png format in a simple GAN. Unfortunately most examples always use such datasets and dont show the process of preparing ...
<p>In the example that you shared above, you are trying to train your generator on single-channel images. Specifically, your Generator and Discriminator layers are written to handle images of dimension <code>1x28x28</code> which are the dimensions of MNIST or Fashion-MNIST datasets.</p> <p>I am supposing that you are t...
Using unlabelled custom images instead of Mnist and CIFAR for a simple GAN with Pytorch
python|image|pytorch|mnist|generative-adversarial-network
0
77
1
72,781,257
72,781,257
0
true
2022-06-28T01:25:49.977Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Using unlabelled custom images instead of Mnist and CIFAR for a simple GAN with Pytorch<p>I am trying to replace standardized data from pytorch such as MNIST...
72,902,781
Is there a way to access the date of the last installed Windows update using C#?<p>I'm working on adapting part of a powershell script to a WPF C# windows service and I'm having trouble finding a way to get the last installed windows update like the following script does. I need a way to check that a workstation has in...
<p>In comments, you mentioned these (compile-time) errors:</p> <blockquote> <p>The type or namespace name 'UpdateSessionClass' could not be found (are you missing a using directive or an assembly reference?)<br /> The type or namespace name 'IUpdateSearcher' could not be found (are you missing a using directive or an a...
Is there a way to access the date of the last installed Windows update using C#?
c#|windows
1
77
2
72,909,597
72,909,597
0
true
2022-07-07T18:42:51.217Z
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 access the date of the last installed Windows update using C#?<p>I'm working on adapting part of a powershell script to a WPF C# windows se...
73,018,887
How to enable caching in google chrome in cypress<p>I have an application that loads the main.js file. Running tests on Cypress every time a &quot;cy.Visit&quot; loads it, if using Google. Other browsers don't have this problem, they cache this file, how do I get cypress to cache it on google?</p> <p>I can't find infor...
<p>Found a solution to the problem</p> <p>Google's security policy implies that if there is a problem with the certificate, caching is disabled. see chromium bugs <a href="https://bugs.chromium.org/p/chromium/issues/detail?id=110649#c8" rel="nofollow noreferrer">https://bugs.chromium.org/p/chromium/issues/detail?id=110...
How to enable caching in google chrome in cypress
automated-tests|cypress
0
77
2
73,034,463
73,034,463
0
true
2022-07-18T07:48:40.360Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to enable caching in google chrome in cypress<p>I have an application that loads the main.js file. Running tests on Cypress every time a &quot;cy.Visit&q...
72,984,467
Gitlab: Fail job in "after_script"?<p>Consider this .gitlab-ci.yml:</p> <pre><code>variables: var1: &quot;bob&quot; var2: &quot;bib&quot; job1: script: - &quot;[[ ${var1} == ${var2} ]]&quot; job2: script: - echo &quot;hello&quot; after_script: - &quot;[[ ${var1} == ${var2} ]]&quot; </code></pre>...
<p>The status of a job is determined solely by its <code>script:</code>/<code>before_script:</code> sections (the two are simply concatenated together to form the job script).</p> <p><code>after_script:</code> is a completely different construct -- it is not part of the job script. It is mainly for taking actions after...
Gitlab: Fail job in "after_script"?
gitlab|continuous-integration|gitlab-ci|pipeline
1
77
1
72,984,677
72,984,677
0
true
2022-07-14T17:27:56.707Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Gitlab: Fail job in "after_script"?<p>Consider this .gitlab-ci.yml:</p> <pre><code>variables: var1: &quot;bob&quot; var2: &quot;bib&quot; job1: script...
73,021,827
bi-gram probability<p>Trying to find the probability of a phrase using bi-gram</p> <p><code>filename.txt</code></p> <pre><code># how many times bigram occurs bg_count = bigrams.count(('word1', 'word2')) # probabilty of bigram in text P(word1 word2) bg_count/number_of_bigrams </code></pre>
<p>In a bigram langauge model:</p> <p><code>P(w1,w2,w3,...wn) = P(w1)*P(w2|w1)*P(w3|w2).....*P(wn-1|wn)</code></p> <p>So <code>P(life, might) = P(life)*P(might|life)</code> where</p> <ul> <li><code>P(life) = Count(life)/Number of unigrams</code></li> <li><code>P(might|life) = Count(life, might)/Count(life)</code></li> ...
bi-gram probability
python|nlp|artificial-intelligence|probability|n-gram
-1
77
1
73,026,566
73,026,566
0
true
2022-07-18T11:46:02.200Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: bi-gram probability<p>Trying to find the probability of a phrase using bi-gram</p> <p><code>filename.txt</code></p> <pre><code># how many times bigram occurs...
72,773,027
Is there a way to handle `empty csv` in python when using `read_csv` of polars<p>My question is pretty like <a href="https://stackoverflow.com/questions/42143249/how-to-not-read-csv-if-csv-is-empty">this</a> but I'm using polars.</p> <p>Environment: python 3.8, polars &gt;=0.13.24</p> <p>I have a CSV file to parse ever...
<p>Does the error look like this?</p> <pre><code>SyntaxError: 'return' outside function </code></pre> <p>If so, it means that you are trying to use a <code>return</code> statement that is not part of a function definition.</p> <p>The <code>return</code> statement can only be used in a function definition, such as:</p> ...
Is there a way to handle `empty csv` in python when using `read_csv` of polars
python|csv|python-polars
0
77
2
72,773,712
72,773,712
1
true
2022-06-27T13:35:45.350Z
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 handle `empty csv` in python when using `read_csv` of polars<p>My question is pretty like <a href="https://stackoverflow.com/questions/4214...
72,783,880
React MUI Chip onDelete access to stopPropagation method<p>I have a Chip like:</p> <pre class="lang-js prettyprint-override"><code> const onDelete = (e) =&gt; { e.stopPropagation(); // e.nativeEvent.stopPropagation(); }; return ( &lt;Chip label={name} sx={sx} component={NavLink} ...
<p>The <code>stopPropagation()</code> prevents further propagation of the current event but redirecting to links are still processed. If you want to stop those behaviors, you can use <code>preventDefault()</code> method :</p> <pre><code>const onDelete = (e) =&gt; { e.preventDefault(); // e.nativeEvent.stopProp...
React MUI Chip onDelete access to stopPropagation method
reactjs|react-hooks|material-ui
1
77
1
72,784,990
72,784,990
1
true
2022-06-28T09:24:12.550Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: React MUI Chip onDelete access to stopPropagation method<p>I have a Chip like:</p> <pre class="lang-js prettyprint-override"><code> const onDelete = (e) =&g...
72,824,959
VScode extension Markdown All in One toggle list<p>With Visual Studio Code extension <a href="https://marketplace.visualstudio.com/items?itemName=yzhang.markdown-all-in-one" rel="nofollow noreferrer">Markdown All in One - Visual Studio Marketplace</a>, I can toggle list with command <code>markdown.extension.editing.tog...
<p>The pull request <a href="https://github.com/yzhang-gh/vscode-markdown/pull/1145" rel="nofollow noreferrer">Let Toggle List cycle through a configurable list of markers</a> was merged, and the configuration will be available soon in the next build.</p> <pre class="lang-js prettyprint-override"><code>&quot;markdown.e...
VScode extension Markdown All in One toggle list
visual-studio-code|markdown
0
77
1
73,755,708
73,755,708
0
true
2022-07-01T05:57:24.970Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: VScode extension Markdown All in One toggle list<p>With Visual Studio Code extension <a href="https://marketplace.visualstudio.com/items?itemName=yzhang.mark...
72,243,699
Two Way Sync of Specific Ranges Across Two Separate Files In Google Sheets via Apps Script<p>Apologies if this is a somewhat long post - I can further clarify anything here if needed. I basically have an Apps script question in regards to two way sync across two separate Google Sheet files on two separate accounts.</p>...
<p>I think you can do this with the onEdit(e) triggered script. This will run with every edit and if the if statement in the script is true it will set the value in the target file-&gt;sheet-&gt;range.</p> <blockquote> <p>Note: This will copy only values, not formula's, formatting etc...</p> </blockquote> <ol> <li>Exte...
Two Way Sync of Specific Ranges Across Two Separate Files In Google Sheets via Apps Script
google-apps-script|google-sheets
0
77
1
72,243,892
72,243,892
0
true
2022-05-14T20:37:47.740Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Two Way Sync of Specific Ranges Across Two Separate Files In Google Sheets via Apps Script<p>Apologies if this is a somewhat long post - I can further clarif...
72,274,065
Unixtimestamp convert in date Y-m-d H:i:s PHP<p>I have a date in Unixtimestamp (1100861208). I am recovering it from an xml file and I have to write it in format (Y-m-d H: i: s) on the database. How can I convert it?</p> <p>i tried this way but it doesn't work:</p> <pre><code>$data_ins1 = $empl-&gt;data_ins; $data_agg...
<p>You don't need to convert it just use the raw value</p> <pre><code>$data_ins1 = $empl-&gt;data_ins; $data_agg1 = $empl-&gt;data_agg; $data_ins = date(&quot;Y-m-d H:i:s&quot;, $data_ins1); $data_agg = date(&quot;Y-m-d H:i:s&quot;, $data_agg1); </code></pre> <p>or</p> <pre><code>$data_ins = gmdate(&quot;Y-m-d H:i:s&q...
Unixtimestamp convert in date Y-m-d H:i:s PHP
php|timestamp|unix-timestamp
0
77
1
72,274,202
72,274,202
0
true
2022-05-17T12:26:44.863Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Unixtimestamp convert in date Y-m-d H:i:s PHP<p>I have a date in Unixtimestamp (1100861208). I am recovering it from an xml file and I have to write it in fo...
72,270,274
How to share a photo from gallery to xamarin app<p>I'm looking for a way to share a photo from the gallery using the &quot;forward to&quot; function and make my xamarin app appear among those available as whatapp or instagram</p>
<p>You can use <a href="https://docs.microsoft.com/en-us/xamarin/essentials/share?tabs=android" rel="nofollow noreferrer">Xamarin.Essentials: Share</a> to achieve this.</p> <p>The <code>Share</code> class enables an application to share data such as text and web links to other applications on the device.</p> <p>Xamarin...
How to share a photo from gallery to xamarin app
c#|android|xamarin|xamarin.forms
0
77
1
72,282,432
72,282,432
0
true
2022-05-17T08:05:01.447Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to share a photo from gallery to xamarin app<p>I'm looking for a way to share a photo from the gallery using the &quot;forward to&quot; function and make...
72,281,276
How to save Github Personal Access(or any such) token in Angular App<p>I'm new to angular, so right now I have created an Angular SPA, which takes GitHub username and displays some profile and repos info</p> <p>For this, I need to pass my Personal Access Token in Headers while calling Github REST API's</p> <p>Currently...
<p>Angular has environment files too. A project's src/environments/ folder contains the base configuration file, environment.ts, which provides a default environment.</p> <p>You could declare environment variables, like a access token in there. Those are unreachable for the users using the application, though other dev...
How to save Github Personal Access(or any such) token in Angular App
angular|github-api
-1
77
1
72,282,944
72,282,944
0
true
2022-05-17T22:19:55.460Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to save Github Personal Access(or any such) token in Angular App<p>I'm new to angular, so right now I have created an Angular SPA, which takes GitHub use...
72,283,238
generate string of random letters and spaces in R<p>I am trying to generate random strings of words from randomly selected letters and compare their similarity to a string.</p> <p>Using the random package, I can easily generate random sequences of letters of the same length as my string, however I want to go beyond a s...
<pre><code>text = 'THIS IS A DEMO' textlength &lt;- nchar(text) n &lt;- 10 string &lt;- random::randomStrings( n = n, len = textlength, digits = FALSE, upperalpha = TRUE, loweralpha = FALSE, unique = FALSE, check = TRUE) spaces &lt;- replicate(n, structure(sort(sample(textlength, sample(t...
generate string of random letters and spaces in R
r|string|random
0
77
1
72,283,855
72,283,855
0
true
2022-05-18T04:31:28.457Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: generate string of random letters and spaces in R<p>I am trying to generate random strings of words from randomly selected letters and compare their similari...
72,305,747
Yew application unable to access static files when hosted in GitHub pages<p>I have <a href="https://github.com/s1n7ax/my-website" rel="nofollow noreferrer">this</a> website I'm planning to host in GitHub pages. The URL for the home page contains the name of the repository <code>https://s1n7ax.github.io/my-website/</cod...
<p>Following adds the /my-website base to all the static file links.</p> <pre><code>trunk serve --public-url /my-website </code></pre>
Yew application unable to access static files when hosted in GitHub pages
github|github-pages|yew
1
77
1
72,307,792
72,307,792
0
true
2022-05-19T13:47:49.393Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Yew application unable to access static files when hosted in GitHub pages<p>I have <a href="https://github.com/s1n7ax/my-website" rel="nofollow noreferrer">t...
72,311,356
Loop Option Values in the dropdown<p>I want to loop the value options displayed in the dropdown menu in an HTML web page. The option values seems to be in alpha numeric for which i write the code below, it is reading all the values within correctly, but i am not able to loop it continuously. Its showing the error stati...
<p>The method <code>.select_by_value()</code> cannot be used on webelements directly, you have first to import the following library</p> <pre><code>from selenium.webdriver.support.ui import Select </code></pre> <p>and then do one of the following</p> <pre><code>Select(select_box).select_by_index(...) Select(select_box)...
Loop Option Values in the dropdown
python|python-3.x|selenium|selenium-webdriver|selenium-chromedriver
1
77
1
72,315,189
72,315,189
0
true
2022-05-19T21:40:37.247Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Loop Option Values in the dropdown<p>I want to loop the value options displayed in the dropdown menu in an HTML web page. The option values seems to be in al...
72,315,719
GraphQL response returns [Object] instead of data<p>New to GraphQL and using it to return data from Wordpress API. When creating a query in GraphiQL Wordpress IDE it returns the correct data, but when I implemented the query in my NEXTJS app and did a <code>console.log</code> I see <code>[Object]</code> instead of the ...
<p>If you really want to see what's the actual data present within the console.log, you can use</p> <pre><code>console.log(JSON.stringify(posts)): </code></pre> <p>also you can access specific objects by using,</p> <pre><code>console.log(data.posts.nodes): </code></pre>
GraphQL response returns [Object] instead of data
reactjs|wordpress|next.js|graphql
0
77
1
72,319,982
72,319,982
0
true
2022-05-20T08:22:06.273Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: GraphQL response returns [Object] instead of data<p>New to GraphQL and using it to return data from Wordpress API. When creating a query in GraphiQL Wordpres...
72,321,136
ttk Progressbar display only in the end of the process<p>As per object, the progress bar is displayed only at the end of the completion of the <code>for</code> loop. Instead I would like it to show the progress of the cycle step by step.</p> <pre><code>from tkinter import ttk from tkinter import * import time def inne...
<p>Use p.update() inside the loop_fun function for loop:</p> <pre><code>for i in range(end): start(end, p) inner_loop_func() print(i, &quot; of &quot;, end) p.update() </code></pre>
ttk Progressbar display only in the end of the process
python|tkinter|progress-bar
0
77
1
72,321,415
72,321,415
0
true
2022-05-20T15:06:06.800Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: ttk Progressbar display only in the end of the process<p>As per object, the progress bar is displayed only at the end of the completion of the <code>for</cod...
72,281,907
Django: Point not passing from ModelForm clean to Model clean<p>I have an <code>Occurrence</code> model that I am putting as <code>TabularInline</code> on the admin page of another model. It has a <code>PointField</code> and a <code>PolygonField</code>, of which at least one must exist.</p> <p>Here is part of the model...
<p>I will post the solution, since it might be useful for someone.</p> <hr /> <p>The problem was that I did not put the <code>PointField</code> that I have defined in the model into the <code>fields</code> defined in <code>OccurrencesInline</code>.</p> <p>The solution was to add the field, but as I didn't want it visib...
Django: Point not passing from ModelForm clean to Model clean
django|django-models|django-forms|django-admin|geodjango
0
77
1
72,326,371
72,326,371
0
true
2022-05-18T00:04:05.480Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Django: Point not passing from ModelForm clean to Model clean<p>I have an <code>Occurrence</code> model that I am putting as <code>TabularInline</code> on th...
72,305,553
Derive multiple PDAs for one Public Key with a UUID<p>I am trying to derive multiple PDAs with a generated seed and get the error shown in the screenshot. If i don't use the uuid and only the seed and the public key for the PDA it works fine.</p> <p><a href="https://i.stack.imgur.com/TQc1a.png" rel="nofollow noreferrer...
<p>In your lib.rs in the planet struct the seeds are not in the correct format</p> <p>it should be like this <code>seeds=[b&quot;planet&quot;,payer.key.as_ref(),&amp;[uuid as u8]]</code></p> <p>and in your rpc call file</p> <pre><code>[anchor.utils.bytes.utf8.encode(&quot;planet&quot;), wallet.publicKey.toBuf...
Derive multiple PDAs for one Public Key with a UUID
rust|solana|solana-web3js|anchor-solana|solana-cli
0
77
1
72,327,177
72,327,177
0
true
2022-05-19T13:35:44.953Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Derive multiple PDAs for one Public Key with a UUID<p>I am trying to derive multiple PDAs with a generated seed and get the error shown in the screenshot. If...
72,332,444
php showing message sent but didn't receive it to my email<p>So my smtp php mailer is showing that the message was successfully sent but in reality it's not. I am now using email from the same domain that Synchro suggested because I was using gmail <a href="https://stackoverflow.com/questions/72331805/smtp-working-good...
<p>It's not quite clear what you're doing, but at a guess it looks like you are sending from a gmail address without sending through a gmail server, and that will always fail SPF checks, because google doesn't allow that. It's nothing to do with the submitter's address, but the email server that you send the message th...
php showing message sent but didn't receive it to my email
php|phpmailer|spf
1
77
1
72,332,655
72,332,655
0
true
2022-05-21T18:57:00.747Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: php showing message sent but didn't receive it to my email<p>So my smtp php mailer is showing that the message was successfully sent but in reality it's not....
72,335,105
Change data on UI without refresh<p>how do I change some data on UI without refreshing the screen in a web app using node js? I need to change only a few things on the screen. And one more doubt is how the data update on screen whenever the data on the database changes.</p>
<p>You do not have any code here, so I can't give you the exact answer for your situation. And You have not told me how you want it to not 'refresh' e.g a button click or something like that.</p> <p>In your case my best tip would be to check out Socket.io, socket.io is a framework in Nodejs that can help you interact w...
Change data on UI without refresh
javascript|html|node.js
0
77
2
72,335,193
72,335,193
0
true
2022-05-22T05:49:58.257Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Change data on UI without refresh<p>how do I change some data on UI without refreshing the screen in a web app using node js? I need to change only a few thi...
72,307,245
Word cloud not displaying correctly with d3.v4<p>I'm trying out this <a href="https://github.com/jasondavies/d3-cloud" rel="nofollow noreferrer">example</a> of an animated word cloud, using <a href="https://github.com/jasondavies/d3-cloud" rel="nofollow noreferrer">jasondavies's d3.layout.cloud</a>.</p> <p>It works wit...
<p>Ok so I did some digging, they basically merged the enter and update function into one using <code>merge</code> starting from version v4.</p> <p>So for the above to work, you have to replace</p> <pre><code>//Entering words cloud.enter() .append(&quot;text&quot;) .style(&quot;font-fami...
Word cloud not displaying correctly with d3.v4
javascript|d3.js|word-cloud
0
77
1
72,354,857
72,354,857
0
true
2022-05-19T15:27:34.047Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Word cloud not displaying correctly with d3.v4<p>I'm trying out this <a href="https://github.com/jasondavies/d3-cloud" rel="nofollow noreferrer">example</a> ...
72,388,844
how can i get just title from this json array? (javascript/discord.js)<p>how can I get &quot;title&quot; from this json array in javascript? I want to get all of &quot;title&quot;s from this json array and put them into another array like <strong>this :</strong></p> <pre><code>array( `hey title1`, `hey title2`, ... ) <...
<pre class="lang-js prettyprint-override"><code>var arry = { data: [ { id: '46475273517', user_name: 'testtwo', title: 'Hello this is my test for the eJx2', is_set: true }, { id: '46471542013', user_name: 'testone', title: 'Hello this is my test for the eJx3', is_set: false }, { id: '46474254233', user_name: 'testt...
how can i get just title from this json array? (javascript/discord.js)
javascript|arrays|json|discord.js
-1
77
1
72,388,887
72,388,887
0
true
2022-05-26T08:21:32.993Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how can i get just title from this json array? (javascript/discord.js)<p>how can I get &quot;title&quot; from this json array in javascript? I want to get al...
72,391,251
undefined is not an object (evaluating 'navigation.navigate') when trying to navigate to a file that will open camera on the phone<p>I'm trying to navigate to my page &quot;CameraPage.js&quot; but I'm getting this error &quot;undefined is not an object (evaluating 'navigation.navigate')&quot;. Can anybody see the probl...
<p>Your navigation container must be wrapped around the root of your application or otherwise the navigation object will not be passed to the components that you have defined as screens.</p> <p>The following fixes your issue.</p> <pre class="lang-js prettyprint-override"><code>export default const App = () =&gt; { ...
undefined is not an object (evaluating 'navigation.navigate') when trying to navigate to a file that will open camera on the phone
javascript|react-native|react-navigation
-1
77
2
72,391,497
72,391,497
0
true
2022-05-26T11:41:51.210Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: undefined is not an object (evaluating 'navigation.navigate') when trying to navigate to a file that will open camera on the phone<p>I'm trying to navigate t...
72,340,180
Can't update extension in chrome web store, no errors<p>I've been struggling to get my update to go through. I incremented my version in the manifest and updated a lot of code, I upload the new package successfully and submit, but I never see the manifest version update in the chrome web store and there are no errors. ...
<p>There were a few .pem files in a random node module. I hadn't realize I should just remove node_modules from the zipped up package, but for some reason it only errored out and warned me about including .pem files sometimes. Most of the time updating the package seemed to work fine and didn't error. Very strange. Reg...
Can't update extension in chrome web store, no errors
google-chrome-extension|chrome-web-store|chrome-extension-manifest-v3
1
77
1
72,395,233
72,395,233
0
true
2022-05-22T18:13:37.293Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Can't update extension in chrome web store, no errors<p>I've been struggling to get my update to go through. I incremented my version in the manifest and upd...
72,251,378
Laravel 7: How to calculate difference between two time format value and store in database?<p>I want to calculate late entry from difference between check_in time and opening_time from Settings table and store the time value in attendance table. <code>Time formate : 10:15:00</code>. The check_in and check_out time will...
<p>You get a collection, not a single record.</p> <p>If you need a single record instead of a collection, you can get it by this way</p> <pre><code>$id = 1; $settings = Setting::find($id); echo $settings-&gt;opening_time; </code></pre> <p>or</p> <pre><code>$id = 1; $settings = Setting::where('id', $id)-&gt;firstOrFail...
Laravel 7: How to calculate difference between two time format value and store in database?
php|laravel-7|difference|calculation|date-difference
0
77
1
72,251,889
72,251,889
0
true
2022-05-15T19:02:48.140Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Laravel 7: How to calculate difference between two time format value and store in database?<p>I want to calculate late entry from difference between check_in...