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,803,178 | Flutter datepicker change style of disabled day/month (ideally crossed out or color change)<p>I am using flutter v2.10.3. I am building Android + iOS app. I need to allow user to pick date range (with time). Trouble is that some dates are not available, in this case picker shouldn't allow selecting range.
It looks I ca... | <p>I've tried to modify datepicker source code at <code>flutter/packages/flutter/lib/src/material/date_picker.dart</code></p>
<p>at this part</p>
<pre><code>else if (isDisabled) {
//itemStyle = textTheme.bodyText2?.apply(color: colorScheme.onSurface.withOpacity(0.38));
itemStyle = textTheme.bodyText2?.apply... | Flutter datepicker change style of disabled day/month (ideally crossed out or color change) | flutter | 1 | 76 | 1 | 73,399,141 | 73,399,141 | 0 | true | 2022-06-29T14:32:25.073Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Flutter datepicker change style of disabled day/month (ideally crossed out or color change)<p>I am using flutter v2.10.3. I am building Android + iOS app. I ... |
72,895,140 | JWT Bearer Keeps returning 401 Status - Bearer error="invalid_token", error_description="The iss claim is not valid"<p>I am using postman and spring boot, I use Keycloak for the authentication service. I make the request with postman to the Keycloak server which returns me a Bearear token which I then send to the sprin... | <p>the problem was the slash after the word demo in the issuer-uri.
The correct form was:</p>
<p>issuer-uri: http://localhost:8080/realms/demo</p> | JWT Bearer Keeps returning 401 Status - Bearer error="invalid_token", error_description="The iss claim is not valid" | spring|spring-boot|authentication|jwt|keycloak | 0 | 76 | 2 | 73,525,728 | 73,525,728 | 0 | true | 2022-07-07T09:09:55.527Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
JWT Bearer Keeps returning 401 Status - Bearer error="invalid_token", error_description="The iss claim is not valid"<p>I am using postman and spring boot, I ... |
73,024,232 | Accuracy of same validation dataset differs between last epoch and after fit<p>The following code gives a log ending with</p>
<pre><code>Epoch 19/20
1/1 [==============================] - 0s 473ms/step - loss: 1.4018 - accuracy: 0.8750 - val_loss: 1.8656 - val_accuracy: 0.8900
Epoch 20/20
1/1 [=========================... | <p>I have now <a href="https://discuss.tensorflow.org/t/tf-data-dataset-varies-at-re-iteration-manual-reset-possible/11695/9?u=robert.pollak" rel="nofollow noreferrer">found out</a> that in TensorFlow 2.9.1 <code>model.predict</code> uses the <em>second iteration</em> of the dataset, which is shuffled differently than ... | Accuracy of same validation dataset differs between last epoch and after fit | python|tensorflow|keras|deep-learning | 1 | 76 | 2 | 73,593,392 | 73,593,392 | 0 | true | 2022-07-18T14:45:42.263Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Accuracy of same validation dataset differs between last epoch and after fit<p>The following code gives a log ending with</p>
<pre><code>Epoch 19/20
1/1 [===... |
72,904,483 | C# check telegram login hmac<p>I've tried to implement telegram login widget on my project but faced with problem. I don't know why, but hash that I received from telegram and hash that I calculated (by <a href="https://core.telegram.org/widgets/login" rel="nofollow noreferrer">tutorial from telegram</a>) doesn't equal... | <p>The problem was in I've not registered domain in BotFather. In Telegram Login Widget documentation there is no information about you have to register your domain for your bot in <strong>BotFather</strong>. Also I've discovered that you can register only <code>https</code> domains and <code>'127.0.0.1'</code> for tes... | C# check telegram login hmac | c#|.net|api|telegram | 2 | 76 | 1 | 73,805,965 | 73,805,965 | 2 | true | 2022-07-07T21:36:16.543Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
C# check telegram login hmac<p>I've tried to implement telegram login widget on my project but faced with problem. I don't know why, but hash that I received... |
72,257,795 | Extracting data from a json file into a python file<p>I want to do a Sobol (GSA) Analysis. For that matter, I want to extract data from my parameters, which are stored in a json file, into my python file (extension: ipynb).
I watched a video and a website (<a href="https://www.youtube.com/watch?v=9N6a-VLBa2I" rel="nofo... | <p>Here is the debugging process I would follow:</p>
<p><strong>Interpret the error</strong></p>
<p>You get the following error: <code>TypeError: string indices must be integers</code> which means <code>parameter</code> is a string.</p>
<p>If you print <code>parameter</code> before the error you would see that <code>pa... | Extracting data from a json file into a python file | python|json | -1 | 76 | 2 | 72,258,509 | 72,258,509 | 0 | true | 2022-05-16T10:30:41.267Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Extracting data from a json file into a python file<p>I want to do a Sobol (GSA) Analysis. For that matter, I want to extract data from my parameters, which ... |
72,259,778 | how to store sentences (words) wit h spaces in an single array in cpp dynamically<pre><code>int main()
{
key[100];
int i = 0, t = 0;
cout << "Enter the Keyword :";
while (t < 3)
{
cin.getline(key, 100);
i++;
t++;
}
cout << key[0] <<... | <pre><code>#include <iostream>
int main()
{
// 3 strings of 100 char max (+1 nullchar)
char key[3][101];
int i = 0;
std::cout << "Enter the Keyword :\n";
while(i < 3) {
std::cin.getline(key[i],100);
i++;
}
for(i = 0; i < 3; ++i) {
std::cout << key[i]... | how to store sentences (words) wit h spaces in an single array in cpp dynamically | c++ | -5 | 76 | 2 | 72,259,970 | 72,259,970 | 0 | true | 2022-05-16T13:10:52.450Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
how to store sentences (words) wit h spaces in an single array in cpp dynamically<pre><code>int main()
{
key[100];
int i = 0, t = 0;
cout <&l... |
72,247,264 | Change contenteditable div to false in downloaded html<p>I have a page with divs where the user inputs some information which then can download to save a copy. It's using <code><div contenteditable="true">...</div></code> and when the html is downloaded I would like the divs to not be editable any... | <p>A solution that worked for me is an onClick event that temporarily switches the contenteditable value from "true" to "false" for 1 second; just enough to download the divs as uneditable text and keep them editable on the website.</p>
<pre><code>function editableTimeout() {
var x = document.getE... | Change contenteditable div to false in downloaded html | javascript|html | 0 | 76 | 3 | 72,262,412 | 72,262,412 | 0 | true | 2022-05-15T10:04:00.713Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Change contenteditable div to false in downloaded html<p>I have a page with divs where the user inputs some information which then can download to save a cop... |
72,264,665 | how to convert date format in a dataframe<p>I have a data frame that contains the information below :</p>
<pre><code>N_Ord PSN debut_interval
1 A4BA0D07 01/01/2022
2 04BB0607 01/01/2022
</code></pre>
<p>I need to</p>
<ul>
<li>convert the <code>debut_interval</code> of each row of my dataframe to that... | <p>You can use:</p>
<pre><code>fmt = '%Y-%m-%dT%H:%M:%S'
df2 = (df
.assign(debut_interval=pd.to_datetime(df['debut_interval'], dayfirst=True),
fin_interval=lambda d: d['debut_interval'].add(pd.to_timedelta('23:59:59')).dt.strftime(fmt))
.assign(debut_interval=lambda d: d['debut_interval'].dt.strftime(fmt)... | how to convert date format in a dataframe | python|pandas|dataframe|datetime | 0 | 76 | 2 | 72,265,066 | 72,265,066 | 0 | true | 2022-05-16T19:32:09.120Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
how to convert date format in a dataframe<p>I have a data frame that contains the information below :</p>
<pre><code>N_Ord PSN debut_interval
1 A... |
72,268,531 | In HighMaps how can we pattern fill a world map?<p>I was tring to add dotted pattern to the world map...using highmaps and pattern-fill.js. On doing that i gives a a basic maps with no color.</p>
<p>I used the following template for the same... Help me get it right.</p>
<p>The goal is to get a world continent map where... | <p>Your <code>color</code> settings in <code>plotOptions</code> is overwritten by <code>color</code> in series options. You need to specify color in one of the places.</p>
<pre><code>plotOptions: {
series: {
type: "map",
color: {
pattern: {
path: {
d: 'M 5 5 m -4 0 a 4 4 0 1 ... | In HighMaps how can we pattern fill a world map? | javascript|angular|highcharts|angular-highcharts | 0 | 76 | 1 | 72,274,796 | 72,274,796 | 0 | true | 2022-05-17T05:19:18.530Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
In HighMaps how can we pattern fill a world map?<p>I was tring to add dotted pattern to the world map...using highmaps and pattern-fill.js. On doing that i g... |
72,273,931 | How to change multiple labels in multiple classes with a tkinter dropdown menu<p>So, I want the user to be able to use my program in English. They should be able to switch to their language via a dropdown-menu. My program has only four pages and a few labels on each, translating them with a toolkit would be unnecessary... | <p>One option I can think of would be using <code>StringVar()</code>s to store the labels that need translation for each language option, and the assigning those variables to each label's <code>textvariable</code> parameter</p>
<pre><code># EXAMPLE
lang_label_var = tk.StringVar()
label_search = tk.Label(
textvariab... | How to change multiple labels in multiple classes with a tkinter dropdown menu | python|tkinter|drop-down-menu|python-class|tkinter-menu | 0 | 76 | 1 | 72,275,395 | 72,275,395 | 0 | true | 2022-05-17T12:18:10.037Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to change multiple labels in multiple classes with a tkinter dropdown menu<p>So, I want the user to be able to use my program in English. They should be ... |
72,270,322 | Passing and receiving variables through Process.start parameter (Winform to UWP)<p>My UWP program is registered as protocol and it is made to call through button of Winform program.
I want to receive the value from UWP by passing the variable value in the Winform program, but I'm not sure how to receive the passed argu... | <blockquote>
<p>Only once. when i click a button in Winform</p>
</blockquote>
<p>You could use add the data that you want to app into the <a href="https://docs.microsoft.com/en-us/uwp/api/windows.system.launcher.launchuriasync?view=winrt-22000#windows-system-launcher-launchuriasync(windows-foundation-uri-windows-system... | Passing and receiving variables through Process.start parameter (Winform to UWP) | c#|uwp | 0 | 76 | 2 | 72,284,776 | 72,284,776 | 0 | true | 2022-05-17T08:07:13.803Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Passing and receiving variables through Process.start parameter (Winform to UWP)<p>My UWP program is registered as protocol and it is made to call through bu... |
72,308,775 | Is converting "Integer to String" by appending it to double quotes like 'return ("" + 2)' costly operation? If yes, what is alternative?<p>I have integer status response from a REST API. I need to return string, so I use it like</p>
<pre><code>return "" + statusCode
</code></pre>
<p>Is it fine way to do that ... | <p>No need - if you decompile the class file, you'll see that the compiler does this for you anyway. I think this makes the code very readable, however you might want to ask yourself why are you doing this anyway... if you are confident that returning a number as a string from a method is correct, this is a good way to... | Is converting "Integer to String" by appending it to double quotes like 'return ("" + 2)' costly operation? If yes, what is alternative? | java|string|parseint | -1 | 76 | 1 | 72,308,815 | 72,308,815 | 0 | true | 2022-05-19T17:27:24.290Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Is converting "Integer to String" by appending it to double quotes like 'return ("" + 2)' costly operation? If yes, what is alternative?<p>I have integer sta... |
72,308,840 | Bi-linear interpolation on a trapezoid<p>I am trying to interpolate data based on an input forming a trapezoid. I found <a href="https://stackoverflow.com/a/23921432/19153673">this solution</a> by Nico Schertler, which outlines how to interpolate for any four non-aligned input points. However, I am unable to get it to ... | <p>There is only one unique solution for a trapezoid, which implies that the equations for the parametric coordinates are <em>linear</em>. Therefore the general solution for an arbitrary quadrilateral is undefined since the equations it was derived from are quadratic.</p>
<p>This can of course be proven rigorously, but... | Bi-linear interpolation on a trapezoid | algorithm|interpolation | 0 | 76 | 1 | 72,310,303 | 72,310,303 | 0 | true | 2022-05-19T17:32:07.297Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Bi-linear interpolation on a trapezoid<p>I am trying to interpolate data based on an input forming a trapezoid. I found <a href="https://stackoverflow.com/a/... |
72,326,404 | Android Studio ListView Only 1 Time Clickable<p>I created a class "users" and i add the some names.
Next i created a ArrayAdapter for ListView and i connect them.
But i wont items only one time clickable. I couldn't.
How can i, in listview items only once time clickable?
Show it with a sample code please?</p>... | <p>It can be done in a few ways. But the simplest way for your case is to add a boolean field for clicked items. But note that you need to manage this filed depending on your need. For example if you want the items to be clickable every time your app starts then initially you must set that clicked variables of each use... | Android Studio ListView Only 1 Time Clickable | java|android|listview|android-listview|onitemclicklistener | 0 | 76 | 3 | 72,327,049 | 72,327,049 | 0 | true | 2022-05-21T03:16:18.783Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Android Studio ListView Only 1 Time Clickable<p>I created a class "users" and i add the some names.
Next i created a ArrayAdapter for ListView and ... |
72,330,356 | Converte int to char*<pre><code>int num = 123;
char num_charr[sizeof(char)];
std::sprintf(num_char, "%d", num);
</code></pre>
<p>how to convert int the same way without using sprintf?
I Only Need The Code To Convert Without print.</p> | <pre><code>char num_charr[12]; // space for INT_MIN value -2147483648
itoa( num, num_charr, 10 );
</code></pre>
<p>Note: <code>itoa</code> is not supported on all compilers.</p> | Converte int to char* | c++|data-conversion | -4 | 76 | 1 | 72,330,615 | 72,330,615 | 0 | true | 2022-05-21T14:14:02.157Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Converte int to char*<pre><code>int num = 123;
char num_charr[sizeof(char)];
std::sprintf(num_char, "%d", num);
</code></pre>
<p>how to convert int... |
72,330,388 | delete post method not working with noticed gem rails<p>i have simple module inquest with comments , I used noticed gem to add notifications to comments , but when I delete inquest post , it stops server with page not working , and delete the whole account , like I can't login with that account again.i'm new with this ... | <p>The issue is you have <code>dependent: :destroy</code> in your association:</p>
<pre><code>class Inquest < ApplicationRecord
belongs_to :user, dependent: :destroy
end
</code></pre>
<p>which deletes the user with <code>Inquest</code> so the account is deleted. A <code>User</code> can have many <code>Inquest</cod... | delete post method not working with noticed gem rails | ruby-on-rails|ruby|notifications|rubygems|comments | 0 | 76 | 1 | 72,332,543 | 72,332,543 | 0 | true | 2022-05-21T14:18:12.517Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
delete post method not working with noticed gem rails<p>i have simple module inquest with comments , I used noticed gem to add notifications to comments , bu... |
72,353,786 | Adding function to td table in javascript<p>I'm new to js and looking for someone to help me with it. I have created javascript table with the following code:</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-... | <p>Use:</p>
<p><code><td>${generate_colored_span(ply.name).innerHTML}</td></code></p>
<p>Instead of</p>
<p><code><td>${ply.name}</td></code></p>
<p><div class="snippet" data-lang="js" data-hide="true" data-console="false" data-babel="false">
<div class="snippet-code snippet-currently-hidden">
<p... | Adding function to td table in javascript | javascript | 0 | 76 | 1 | 72,353,919 | 72,353,919 | 0 | true | 2022-05-23T19:17:50.180Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Adding function to td table in javascript<p>I'm new to js and looking for someone to help me with it. I have created javascript table with the following code... |
72,319,400 | Decrypt notification data and use data in iOS - flutter app<p>I am implementing notification in flutter app and checking for iOS. Scenario is when user receive notification in iOS I want to encrypt that data to use for further feature implementation. Here is my function which I write in <code>AppDelegate</code> file</p... | <p>Solution is I have to parse notification data in json and then use it</p>
<pre><code>let data = userInfo[AnyHashable("data")] as? String
let jsonData = data?.data(using: .utf8)!
let json = try! JSONSerialization.jsonObject(with: jsonData!, options: .allowFragments) as! NSDictionary
let param : [String:An... | Decrypt notification data and use data in iOS - flutter app | ios|flutter|push-notification | 0 | 76 | 1 | 72,358,068 | 72,358,068 | 0 | true | 2022-05-20T13:04:24.383Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Decrypt notification data and use data in iOS - flutter app<p>I am implementing notification in flutter app and checking for iOS. Scenario is when user recei... |
72,366,286 | How to write values to CSV in real time while sync it with time in Python<p>I have faced a challenge that I could not solve. the code below generates data continuously. However, I want to put the condition to the value of "y". In other words, I want to sync this code with the time of the computer. I set the v... | <p>First of all, you never use current_hour after setting it, so I don't know what you mean by "first time it is correct".</p>
<p>Secondly, this is not how programming(at least procedural) works.</p>
<p>The only code that gets executed in loop is inside while loop. If you want to use your current time, you se... | How to write values to CSV in real time while sync it with time in Python | python|datetime|conditional-statements|export-to-csv|real-time | 0 | 76 | 1 | 72,366,655 | 72,366,655 | 0 | true | 2022-05-24T16:22:55.427Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to write values to CSV in real time while sync it with time in Python<p>I have faced a challenge that I could not solve. the code below generates data co... |
72,367,883 | changing colors of box in boxplot in r using finalfit / hr_plot<p>I am using the package "<strong>finalfit</strong>" to draw boxplot for showing hazard ratio.
However, the colors of the box is making it difficult to read the boxplot as my CI ends are near 1. Here is how it looks like. I am focusing on the 5th... | <p>This is hard coded. Slight hack, but you can do this.</p>
<pre><code># HR plot
library(finalfit)
explanatory = c("age.factor", "sex.factor", "obstruct.factor", "perfor.factor")
dependent = "Surv(time, status)"
colon_s %>%
hr_plot(dependent, explanatory,
plo... | changing colors of box in boxplot in r using finalfit / hr_plot | r|ggplot2|boxplot | 0 | 76 | 1 | 72,369,223 | 72,369,223 | 0 | true | 2022-05-24T18:35:09.237Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
changing colors of box in boxplot in r using finalfit / hr_plot<p>I am using the package "<strong>finalfit</strong>" to draw boxplot for showing ha... |
72,373,510 | Split pandas dataframe column based on the pipeline symbol<p>I have a pandas data frame which has a single column named Category. I want to split this Category column into 4 separate columns named A, B, C, D based on the pipeline symbol "<em><strong>||</strong></em>"</p>
<p>Sample input: df['Category'] = Oper... | <p>Presumably your version of Pandas is running <code>str.split</code> with regex mode enabled. In that case, you would need to escape the pipes:</p>
<pre class="lang-py prettyprint-override"><code>df[["A", "B", "C", "D"]] = df["Category"].str.split(r'\|\|', expand=Tru... | Split pandas dataframe column based on the pipeline symbol | python|pandas|dataframe | 0 | 76 | 2 | 72,373,583 | 72,373,583 | 0 | true | 2022-05-25T07:29:17.333Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Split pandas dataframe column based on the pipeline symbol<p>I have a pandas data frame which has a single column named Category. I want to split this Catego... |
72,386,127 | read all the file and store in object format in node js / javascript<p>I wrote a code which help me to read all the folder file and make me store them in array format so my code looks like this</p>
<h2>readAll.js</h2>
<pre><code>module.exports = readAllFile = () => {
const arr = [];
fs.readdir(path.join("./... | <p>You can use <strong><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys" rel="nofollow noreferrer">Object.keys()</a></strong> instead of Array.push().
The solution is when you read each files data, you should use Object.keys method and then loop through all available... | read all the file and store in object format in node js / javascript | javascript|node.js|nodes|fs | 0 | 76 | 2 | 72,386,302 | 72,386,302 | 0 | true | 2022-05-26T02:44:17.080Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
read all the file and store in object format in node js / javascript<p>I wrote a code which help me to read all the folder file and make me store them in arr... |
72,390,892 | How to get statistical data of app usage of other applications on IOS using react native?<p>I've been trying to see if it's possible to get information about app usage on IOS. For example, how much time a user spends on his/hers Facebook or Safari applications. How could one go about doing this within a react native ap... | <p><strong>No, it’s not possible. Apple is very strict about this.</strong></p>
<p>An app cannot access other apps' sandboxes, for any reason. Everything an app can do is restricted to its own sandbox, and in no way can other sandboxes be accessed.</p>
<p>User security is very important for Apple.</p>
<p>If the app you... | How to get statistical data of app usage of other applications on IOS using react native? | ios|react-native | 0 | 76 | 1 | 72,391,189 | 72,391,189 | 0 | true | 2022-05-26T11:11:40.480Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to get statistical data of app usage of other applications on IOS using react native?<p>I've been trying to see if it's possible to get information about... |
72,270,662 | How can I create narrow band noise in C#?<p>My problem is very spesific. I want to create narrow band noise for my small wpf application. I am using NAudio library for creating a infinite stream of noise that can be stopped and started by user. I created Tone(Simple sinus wave), Warble(Sinus wave that is modulated by a... | <blockquote>
<p>They were all suggesting bandpass filtering a white noise to generate narrow band noise. I tried that. It sort of did what I wanted but it was narrower than I wanted.</p>
</blockquote>
<p>The approach of applying a bandpass filter to a white noise source makes sense. The problem is just that the bandpas... | How can I create narrow band noise in C#? | c#|audio|filtering|signal-processing|naudio | 1 | 76 | 1 | 72,402,038 | 72,402,038 | 0 | true | 2022-05-17T08:31:15.310Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How can I create narrow band noise in C#?<p>My problem is very spesific. I want to create narrow band noise for my small wpf application. I am using NAudio l... |
72,343,146 | Breaking points and widths for responsive images (srcset) with bootstrap 5?<p>I am curious to hear from others what width sizes they would choose for full-width picture/srcset image replacement with Bootsrap CSS framework. Do you follow Bootstrap's breakpoints? For example, 576w for <576px, 768w for ≥576px, 992w for... | <p>Based on the most common resolutions listed at browserstack.com, I determined the closest Bootstrap equivalent for both portrait and landscape widths.</p>
<pre><code>1920×1080 (8.89%) Bootstrap: 2048w, 1400w (could use 1200w)
1536×864 (3.88%) Bootstrap: 2048w, 992w
1366×768 (8.44%) Bootstrap: 1400w, 992w
414×896 (4.... | Breaking points and widths for responsive images (srcset) with bootstrap 5? | twitter-bootstrap|bootstrap-5|srcset | 0 | 76 | 1 | 72,420,502 | 72,420,502 | 0 | true | 2022-05-23T04:02:05.077Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Breaking points and widths for responsive images (srcset) with bootstrap 5?<p>I am curious to hear from others what width sizes they would choose for full-wi... |
72,267,971 | Out of memory error trying to fetch 1 Eloquent record when eager loading BelongsToMany<p>I have this query:</p>
<pre><code>Order::find('1234')->refunds()->with('orderItems')->get()
</code></pre>
<p>This causes an out of memory error exhausting 256 MB to fetch one row with the loaded <code>items</code> also hav... | <p>In Laravel 6 the primary key is now cast to integer unless explicitly set to string.</p>
<p><a href="https://laravel.com/docs/6.x/upgrade#eloquent-primary-key-type" rel="nofollow noreferrer">https://laravel.com/docs/6.x/upgrade#eloquent-primary-key-type</a></p>
<p>The reason this happened is because we upgraded from... | Out of memory error trying to fetch 1 Eloquent record when eager loading BelongsToMany | laravel|eloquent|laravel-8 | 0 | 76 | 1 | 72,551,953 | 72,551,953 | 0 | true | 2022-05-17T03:44:20.410Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Out of memory error trying to fetch 1 Eloquent record when eager loading BelongsToMany<p>I have this query:</p>
<pre><code>Order::find('1234')->refunds()-... |
72,311,681 | How to maintain type inference when mapping an object of function creators to an object of created functions?<p><strong>TLDR:</strong> I'm trying to create a mapper function that "applies" an HttpClient to function creators, and maintains the typing information of the created functions. Typing example of the ... | <p>what you would like to achieve is possible thanks to mapped types in TypeScript.</p>
<p>I have provided some working code that works as you would expect, except it leverages Axios instead of your custom HTTPClient. I have included comments in the code that should explain everything in detail. You can jump to the bot... | How to maintain type inference when mapping an object of function creators to an object of created functions? | typescript|typescript-generics | 0 | 76 | 1 | 72,325,756 | 72,325,756 | 0 | true | 2022-05-19T22:23:37.143Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to maintain type inference when mapping an object of function creators to an object of created functions?<p><strong>TLDR:</strong> I'm trying to create a... |
72,243,912 | Recursive query to produce edges of a path?<p>I have a table <code>paths</code>:</p>
<pre><code>CREATE TABLE paths (
id_travel INT,
point INT,
visited INT
);
</code></pre>
<p>Sample rows:</p>
<pre><code> id_travel | point | visited
-----------+-------+---------
10 | 35 | 0
10 | 1... | <p>You don't need recursion. Can be plain joins:</p>
<pre class="lang-sql prettyprint-override"><code>SELECT id_travel, p1.point AS point1, p2.point AS point2, d.distance
FROM paths p1
JOIN paths p2 USING (id_travel)
LEFT JOIN distances d ON d.id_port1 = p1.point
AND d.id_port2 = p2.point
... | Recursive query to produce edges of a path? | sql|postgresql|recursion|join|recursive-query | 0 | 76 | 1 | 72,244,672 | 72,244,672 | 0 | true | 2022-05-14T21:15:37.110Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Recursive query to produce edges of a path?<p>I have a table <code>paths</code>:</p>
<pre><code>CREATE TABLE paths (
id_travel INT,
point INT,
vi... |
72,257,940 | Left join Without Subqueries<p>I am getting the below output, I want the same out but without subqueries<a href="https://i.stack.imgur.com/ZQbOS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZQbOS.png" alt="Query Output" /></a>.I am looking to refine the below query by removing the subquery as it ... | <p>Thank you for the help friends. I figured out how to do it. Below is the solution for your refernce.</p>
<pre><code>SELECT
rec.requestno,
COALESCE(totalsub, 0) AS totalsub,
COALESCE(totalsel, 0) AS totalsel,
COALESCE(totalrej, 0) AS totalrej
FROM recruitersubmission rec
LEFT JOIN (
SELECT request... | Left join Without Subqueries | mysql|sql|join|mariadb|subquery | -2 | 76 | 2 | 72,271,293 | 72,271,293 | 0 | true | 2022-05-16T10:42:17.460Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Left join Without Subqueries<p>I am getting the below output, I want the same out but without subqueries<a href="https://i.stack.imgur.com/ZQbOS.png" rel="no... |
72,302,535 | How can I get share link of file/folder by path to the file on insalled google drive in python?<p>I installed Google Drive on my computer (Windows 11 x64) to drive <code>G:\</code>
I want to be able to get a shared link for a specific file/folder that I have a path to.
Google Drive will have duplicate file/folder.
How ... | <p>I managed to create script that works for me.
Packages: <code>pip install --upgrade google-api-python-client google-auth-httplib2 google-auth-oauthlib</code></p>
<pre><code>from __future__ import print_function
import argparse
import os.path
from google.auth.transport.requests import Request
from google.oauth2.crede... | How can I get share link of file/folder by path to the file on insalled google drive in python? | python|google-drive-api | 0 | 76 | 2 | 72,319,596 | 72,319,596 | 0 | true | 2022-05-19T10:00:25.453Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How can I get share link of file/folder by path to the file on insalled google drive in python?<p>I installed Google Drive on my computer (Windows 11 x64) to... |
72,317,502 | Cannot align vertical elements<p>At first, the icons and label are centred correctly. But I need to make the anchor <code>display: inline-block;</code> to make the clickable area the full size of the grid it is in. Only the label itself is centred, while the icon is above the label.</p>
<p>I tried using <code>vertical-... | <p>First, you need to correct the HTML structure of the <code><a></code>s.</p>
<p>Remove the <code><br></code> tags and put the labels in their own <code><span></code>s.</p>
<pre><code><a href="#" id="home">
<span class="material-symbols-outlined">
... | Cannot align vertical elements | html|css | 0 | 76 | 3 | 72,318,115 | 72,318,115 | 0 | true | 2022-05-20T10:37:48.557Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Cannot align vertical elements<p>At first, the icons and label are centred correctly. But I need to make the anchor <code>display: inline-block;</code> to ma... |
72,267,462 | Retrieve Selected Points from ggplotly in Another Part of Shiny App<h3>Desired Outcome</h3>
<p>I would like to be able to click a point in my <code>plotly::ggplotly()</code> graph within my {shiny} app and then display some info about that point in a separate output below.</p>
<h3>MRE</h3>
<p>In this simple example I c... | <p>Using code from <a href="https://github.com/plotly/plotly.R/blob/f1900cc3cd464408a60ffadfe3e95460747430e0/inst/examples/plotlyEvents/app.R" rel="nofollow noreferrer">here</a> I figured out how to use <code>key</code> to identify the points and then retrieve that elsewhere from the <code>event_data()</code>.</p>
<pre... | Retrieve Selected Points from ggplotly in Another Part of Shiny App | r|shiny|plotly|r-plotly|ggplotly | 0 | 76 | 1 | 72,267,523 | 72,267,523 | 0 | true | 2022-05-17T02:12:24.123Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Retrieve Selected Points from ggplotly in Another Part of Shiny App<h3>Desired Outcome</h3>
<p>I would like to be able to click a point in my <code>plotly::g... |
72,345,135 | React update state after updating a different one in useEffect<p>I need to update my state after updating / setting a different state in my useEffect hook. So far it does not work. What am I doing wrong here?</p>
<p>The <code>isDisabled</code> logic depends on the values of the other states.</p>
<pre><code>const Offers... | <p>When computing <code>isDisabled</code> and <code>color</code> state variables, you must use the new values of <code>dialogStatus</code> and <code>dialogType</code>.</p>
<pre><code>const OffersDialogueButton = ({type, status}) => {
const { invitationType, status: cardStatus } = useJobPositionsContext();
const ... | React update state after updating a different one in useEffect | javascript|reactjs|react-hooks | 0 | 76 | 3 | 72,345,307 | 72,345,307 | 0 | true | 2022-05-23T08:03:06.193Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
React update state after updating a different one in useEffect<p>I need to update my state after updating / setting a different state in my useEffect hook. S... |
72,269,177 | Codeigniter: Custom validation is not executed<p>I'm trying to create my custom validation which is customer ID is required if certain option is selected. Right now, I just want to test if the custom validation is working so I don't care about the options and only set message and always return false. I don't want to pu... | <p>Your method is not being triggered because your <code>customer_id</code> field is submitted empty. Codeigniter does not validate empty fields unless the rule is one of <code>required</code>/<code>isset</code>/<code>matches</code> or a callback or a callable. (See <code>Form_validation.php</code> line 700.)</p>
<p>If... | Codeigniter: Custom validation is not executed | php|codeigniter|codeigniter-form-validation | 0 | 76 | 1 | 72,276,632 | 72,276,632 | 0 | true | 2022-05-17T06:35:48.290Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Codeigniter: Custom validation is not executed<p>I'm trying to create my custom validation which is customer ID is required if certain option is selected. Ri... |
72,238,094 | Matplotlib control text properties for legend title<p>I have a matplotlib plot with a title in the legend and the properties of the title text I want to control, like the font family size etc.</p>
<pre class="lang-py prettyprint-override"><code>
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.fon... | <p>The title has a dedicated property for the title, which specifies the settings.</p>
<pre><code>ax.legend(title="My Title", title_fontproperties=font, prop=font)
</code></pre>
<p><a href="https://i.stack.imgur.com/kCNyx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kCNyx.png" alt="enter... | Matplotlib control text properties for legend title | python|matplotlib | 0 | 76 | 1 | 72,238,315 | 72,238,315 | 1 | true | 2022-05-14T07:12:21.633Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Matplotlib control text properties for legend title<p>I have a matplotlib plot with a title in the legend and the properties of the title text I want to con... |
72,247,251 | Fetch data from MongoDB when the user register<p>I am learning MEAN stack environment and I have a question.</p>
<p>I have a registration page, which registers the user in MongoDB:</p>
<pre><code>// register.component.ts
register(){
this.http.post('http://localhost:3001/register', this.input)
.subscribe(
... | <p>The <code>db.collection.insertOne()</code> function returns the inserted document, see <a href="https://www.mongodb.com/docs/manual/reference/method/db.collection.insertOne/" rel="nofollow noreferrer">here</a>. This means you can do a callback or async/await (whichever you prefer) for your <code>insertOne()</code> f... | Fetch data from MongoDB when the user register | node.js|angular|mongodb|express | 0 | 76 | 1 | 72,247,369 | 72,247,369 | 1 | true | 2022-05-15T10:01:47.593Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Fetch data from MongoDB when the user register<p>I am learning MEAN stack environment and I have a question.</p>
<p>I have a registration page, which registe... |
72,262,103 | Reference a variable from a string in Python<p>I have a number of global variables in my script (e.g. group_1, group_2, group_3) and I am trying to refer to them inside a function.</p>
<pre><code>def plot(group_number):
return(f"group_{group_number}")
</code></pre>
<p>I would like the function in this case... | <p>Global variables are available through the <code>dict</code> returned by <code>globals()</code>. So,</p>
<pre><code>>>> group_1 = "one"
>>> group_2 = "two"
>>> group_3 = "three"
>>>
>>> def plot(group_number):
... return globals()[f"... | Reference a variable from a string in Python | python|function | -1 | 76 | 1 | 72,262,153 | 72,262,153 | 1 | true | 2022-05-16T15:56:46.023Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Reference a variable from a string in Python<p>I have a number of global variables in my script (e.g. group_1, group_2, group_3) and I am trying to refer to ... |
72,268,169 | List/Dict comprehension in Python to update a dictionary with keys and values from a string<p>Does anyone know how to convert below for loop into a list or dictionary comprehension in one line? type(letter) = string,type(stringOne) = string,type(dictResult) = dictionary.For example, stringOne = 'abcddd', I want the out... | <p>Find unique keys with set and then count. Note the <code>set</code> doesn't not keep (keys) insertion order!</p>
<pre><code>stringOne = 'abcddd'
dictResult = {char: stringOne.count(char) for char in set(stringOne)}
print(dictResult)
</code></pre> | List/Dict comprehension in Python to update a dictionary with keys and values from a string | python|list-comprehension|dictionary-comprehension | 0 | 76 | 2 | 72,269,172 | 72,269,172 | 1 | true | 2022-05-17T04:20:40.533Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
List/Dict comprehension in Python to update a dictionary with keys and values from a string<p>Does anyone know how to convert below for loop into a list or d... |
72,270,607 | how to disable a link_to with condition, using slim in ruby on rails<p>I'm new to slim and ruby on rails and trying to figure out how to disable a link_to if the
condition isn't required.</p>
<pre><code>f.actions do
= f.submit 'save data'
= link_to 'send data'
</code></pre>
<p>Here f, is a form that the ... | <p>Rails include multiple <code>link_to</code> helpers to display a link if a specific condition is met.</p>
<p><code>link_to_if</code></p>
<p><a href="https://apidock.com/rails/v5.2.3/ActionView/Helpers/UrlHelper/link_to_if" rel="nofollow noreferrer">https://apidock.com/rails/v5.2.3/ActionView/Helpers/UrlHelper/link_t... | how to disable a link_to with condition, using slim in ruby on rails | ruby-on-rails|ruby|slim-lang | 0 | 76 | 1 | 72,271,263 | 72,271,263 | 1 | true | 2022-05-17T08:27:34.257Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
how to disable a link_to with condition, using slim in ruby on rails<p>I'm new to slim and ruby on rails and trying to figure out how to disable a link_to... |
72,270,218 | Dealing with lifetimes in global variables<p>I am currently writing a board support package for an embedded board and would like to set up a serial output over USB. I am basing my design on the <a href="https://docs.rs/hifive1/0.10.0/src/hifive1/stdout.rs.html" rel="nofollow noreferrer"><code>hifive</code> BSP</a>.</p>... | <p>Short answer: whenever you have a lifetime in the type of a static variable, that lifetime needs to be <code>'static</code>.</p>
<p>Rust does not allow for dangling references, so if you having anything living for shorter than the static lifetime in a static variable, there's the possibility for dangling. I think yo... | Dealing with lifetimes in global variables | rust|embedded | 1 | 76 | 1 | 72,276,173 | 72,276,173 | 1 | true | 2022-05-17T08:00:36.427Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Dealing with lifetimes in global variables<p>I am currently writing a board support package for an embedded board and would like to set up a serial output ov... |
72,278,929 | Fastest way to filter csv using pandas and create a matrix<p>input dict</p>
<pre><code>{'basename_AM1.csv': ['AM1286', 'AM1287', 'AM1288']}
</code></pre>
<p>I have large csv files in the below format
basename_AM1.csv
I have large csv files in the below format</p>
<p>basename_AM1.csv</p>
<pre><code> ID1 ... | <p>IIUC, you can use:</p>
<pre><code>input_dict = {'basename_AM1.csv': ['AM1286', 'AM1287', 'AM1288']}
import pandas as pd
for fname, lst in input_dict.items():
df = pd.read_csv(fname, sep='\s+', names=['ID1', 'ID2', 'score'])
df2 = df.pivot('ID1', 'ID2', 'score').reindex(index=lst, columns=lst)
df2 = df2.... | Fastest way to filter csv using pandas and create a matrix | python|pandas|dataframe|csv|dask | 1 | 76 | 2 | 72,279,303 | 72,279,303 | 1 | true | 2022-05-17T18:20:28.687Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Fastest way to filter csv using pandas and create a matrix<p>input dict</p>
<pre><code>{'basename_AM1.csv': ['AM1286', 'AM1287', 'AM1288']}
</code></pre>
<p>... |
72,285,950 | How to write dynamic routing in React?<p>I build an app in React and I try to make a dynamic routing, but my app doesn't wait for the useEffect to end.</p>
<p>What I want to do here is to send to my backend an object from localStorage, check it and send it back to frontend. If the result is true, when I type "/for... | <p>Wrap both of your Routers with {finishedChecking === true ? {both routers} : <></>}. Inside promise .then change the value of finishedChecking to true. After change of state the jsx will be rendered once more and go inside the condition and you will be sure there that you have your promise resolved. If y... | How to write dynamic routing in React? | javascript|reactjs|redux|react-router-dom|use-state | 0 | 76 | 2 | 72,286,521 | 72,286,521 | 1 | true | 2022-05-18T08:47:01.337Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to write dynamic routing in React?<p>I build an app in React and I try to make a dynamic routing, but my app doesn't wait for the useEffect to end.</p>
<... |
72,289,584 | Aligning html elements in a row in their parent container with css<p>I have 4 <code>div</code>s, one outer, and 3 inner <code>div</code>s that I want to align in the same row inside the main <code>div</code>. By default the <code>div</code>s are stacked one on top of another inside the main <code>div</code>, so I used ... | <p>DIV standard display is block. You need to change the outer DIV to display: flex.
The standard behavior of display flex is to put the child DIVs in a row.</p>
<p>If you want to centralize them in the vertical and horizontal axis, you can use along display: flex, align-items: center and justify-content: center.</p>
... | Aligning html elements in a row in their parent container with css | html|css | 1 | 76 | 4 | 72,289,726 | 72,289,726 | 1 | true | 2022-05-18T12:52:55.280Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Aligning html elements in a row in their parent container with css<p>I have 4 <code>div</code>s, one outer, and 3 inner <code>div</code>s that I want to alig... |
72,292,894 | updateCustomerPaymentProfileRequest documentation error? Can't post updated payment information, E00003<p>I post JSON to the test API according to this article:
<a href="https://developer.authorize.net/api/reference/index.html#customer-profiles-update-customer-payment-profile" rel="nofollow noreferrer">https://develope... | <p>Solution: defaultPaymentProfile and customerPaymentProfileId have to be listed AFTER the payment entity inside paymentProfile.</p>
<p>So do this:</p>
<pre><code> "paymentProfile": {
"payment": {
"creditCard": {
"cardNumber"... | updateCustomerPaymentProfileRequest documentation error? Can't post updated payment information, E00003 | authorize.net|authorize.net-cim | 0 | 76 | 1 | 72,294,829 | 72,294,829 | 1 | true | 2022-05-18T16:32:03.500Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
updateCustomerPaymentProfileRequest documentation error? Can't post updated payment information, E00003<p>I post JSON to the test API according to this artic... |
72,294,838 | Clean way of taking first argument without modifiying args<p>This program should take arguments like so: <code><command> n1 n2 n3...</code> e.g <code>mode 1 2 3 3 4</code>. I want to store the <code><command></code> argument string and pass the rest of the arguments into a constructor for parsing.</p>
<pre ... | <p>First, <a href="https://doc.rust-lang.org/stable/std/iter/trait.Iterator.html#method.nth" rel="nofollow noreferrer">std has <code>nth()</code> method</a>: you can use <code>nth(1)</code> instead of <code>skip(1).next()</code>.</p>
<p>Second, <a href="https://doc.rust-lang.org/1.60.0/src/core/iter/traits/iterator.rs.... | Clean way of taking first argument without modifiying args | rust|iterator | 0 | 76 | 1 | 72,294,886 | 72,294,886 | 1 | true | 2022-05-18T19:18:21.033Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Clean way of taking first argument without modifiying args<p>This program should take arguments like so: <code><command> n1 n2 n3...</code> e.g <code>m... |
72,279,867 | Modsecurity finds no geo data for IP<p>I want to block every country except mine, so I downloaded the GeoLite2 database and added it in the crs-setup.conf file. Under <em>-=[ Block Countries ]=-</em> I also added every country code for testing.</p>
<p>This did not work and after trying multiple alternative "countr... | <p>ModSecurity does NOT support new GeoIP2 format of GeoIP database so old, legacy, format need to be used.</p> | Modsecurity finds no geo data for IP | apache|apache2|owasp|mod-security | 0 | 76 | 1 | 72,298,927 | 72,298,927 | 1 | true | 2022-05-17T19:47:16.520Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Modsecurity finds no geo data for IP<p>I want to block every country except mine, so I downloaded the GeoLite2 database and added it in the crs-setup.conf fi... |
72,297,991 | How to access previous index route in nested routes using Link component from react router?<p>I am building a small react app, and I have implemented my routes like this:</p>
<pre><code>import React, { lazy } from "react";
import ReactDOM from "react-dom/client";
import { BrowserRouter, Routes, Rout... | <h1>Issue</h1>
<p>The issue is that paths that start with a <code>"/"</code> character are considered to be absolute paths. This is why the "summary" link is linking all the way back to <code>"/"</code> instead of the parent path <code>"/dashboard"</code>.</p>
<h1>Solution</h1>
<... | How to access previous index route in nested routes using Link component from react router? | reactjs|react-hooks|react-router|react-router-dom | 2 | 76 | 1 | 72,299,530 | 72,299,530 | 1 | true | 2022-05-19T02:29:54.523Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to access previous index route in nested routes using Link component from react router?<p>I am building a small react app, and I have implemented my rout... |
72,285,366 | Start activity from button.setOnClickListener which lies in my RecyclerView<p>I want an activity/class to run on a <code>Button</code> click. The <code>Button</code> is inside my <code>RecyclerView</code>. I first had the code in my <code>MainActivity</code> with:</p>
<pre><code>btnComplete.setOnClickListener {
... | <p>You can use the context like this :</p>
<pre><code>class Adapter(private val context: Context, private val myList: List<String>) :
RecyclerView.Adapter<Adapter.ViewHolder>()
</code></pre>
<p>And pass the context where required like this</p>
<pre><code> private fun confirmdel() {
startActivity(Inte... | Start activity from button.setOnClickListener which lies in my RecyclerView | kotlin|android-recyclerview|start-activity | 1 | 76 | 2 | 72,302,064 | 72,302,064 | 1 | true | 2022-05-18T08:05:55.843Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Start activity from button.setOnClickListener which lies in my RecyclerView<p>I want an activity/class to run on a <code>Button</code> click. The <code>Butto... |
72,321,501 | Javascript set first column style<p>I'm using javascript to modify a page's styling and it's working great. The next step however is to change the styling of the first column of a table. How can I identify and set the styling of the first column only? My other changes so far are based on ID or based on a number of item... | <p>You can just use <code>document.querySelectorAll('tr th:first-child, tr td:first-child')</code> then iterate the result setting the styles you want.</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js pret... | Javascript set first column style | javascript|css | 0 | 76 | 2 | 72,322,103 | 72,322,103 | 1 | true | 2022-05-20T15:37:01.160Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Javascript set first column style<p>I'm using javascript to modify a page's styling and it's working great. The next step however is to change the styling of... |
72,320,969 | Skip first node and Copy rest of the nodes using XSLT 3.0<p>I will need to skip first <code>Worker</code> node and copy rest of the nodes using XSLT 3.0</p>
<p>My source XML is</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<Workers>
<Worker>
<Employee>Emp&... | <p>I would write it</p>
<pre><code><xsl:template match="Worker[1]"/>
</code></pre>
<p>for readability, but it's all the same.</p>
<p>Match patterns with positional predicates can perform badly, so you're right to be cautious, but a simple one like this should be OK. In fact the main adverse consequence ... | Skip first node and Copy rest of the nodes using XSLT 3.0 | xslt|xslt-3.0 | 0 | 76 | 1 | 72,324,510 | 72,324,510 | 1 | true | 2022-05-20T14:52:58.880Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Skip first node and Copy rest of the nodes using XSLT 3.0<p>I will need to skip first <code>Worker</code> node and copy rest of the nodes using XSLT 3.0</p>
... |
72,324,599 | Need help sorting global list by the currently selected value<p>I'm taking a Javascript Basics course and I'm stuck on getting the list to sort. Specifically with Step 8. How do I get it to recognize that they select either ascending or descending and make it populate? Right now it disappears and I see no console error... | <p>Here it is. First of all, you are tracking changes on input field and checking if it's equal to templeNameAscending or templeNameDescending, and based on it sort the results.
Main thing is this part of code:</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div cla... | Need help sorting global list by the currently selected value | javascript|html|sorting|comparison | 1 | 76 | 1 | 72,325,051 | 72,325,051 | 1 | true | 2022-05-20T20:44:06.660Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Need help sorting global list by the currently selected value<p>I'm taking a Javascript Basics course and I'm stuck on getting the list to sort. Specifically... |
72,324,754 | LINQ InvalidOperationException when calling ToList()<p>I want to update records in a table in my database using the code below:</p>
<pre><code>context.Events
.Where(eventDb => !events.Any(@event => eventDb.Guid == @event.Guid))
.ToList()
.ForEach(eventDb => eventDb.IsCurrent = false);
<... | <p>I think the problem is that you are asking the SQL server to perform a <code>.Any()</code> operation on <code>events</code> which is presumably some sort of in-memory C# object and does not exist on the SQL server and is too complicated to be sent to SQL.</p>
<p>If you extract the Guids from <code>events</code> into... | LINQ InvalidOperationException when calling ToList() | entity-framework|linq | 0 | 76 | 2 | 72,327,990 | 72,327,990 | 1 | true | 2022-05-20T21:03:26.270Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
LINQ InvalidOperationException when calling ToList()<p>I want to update records in a table in my database using the code below:</p>
<pre><code>context.Events... |
72,333,825 | Can someone help me with this javascript regex to turn a string of list items into an array with the item texts only (no list item # or new line)<p>I have 2 kinds of strings coming back from an API. They look as follows:</p>
<pre><code>let string1 = "\n1. foo\n2. bar\n3. foobar"
let string2 = "\n\n1. fo... | <p>OP's code, which uses a <code>String.match</code>, is actually better than the proposed solutions. It only needed a minor tweak to make it work, which is what the question asked:</p>
<pre><code>string1.match(/([A-z].+)/g)
</code></pre>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data... | Can someone help me with this javascript regex to turn a string of list items into an array with the item texts only (no list item # or new line) | javascript|regex | 2 | 76 | 4 | 72,334,083 | 72,334,083 | 1 | true | 2022-05-21T23:17:17.170Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Can someone help me with this javascript regex to turn a string of list items into an array with the item texts only (no list item # or new line)<p>I have 2 ... |
72,336,839 | When to use Vert.x cluster<p>I have a java (gradle) project with multiple modules. All of the modules run on the same server but I want them to be independent, i.e. module A should be started and stopped no matter if module B is running or stopped and vice versa.
Each module is a vert.x verticle and the modules should ... | <p>You can <a href="https://vertx.io/docs/apidocs/io/vertx/core/Vertx.html#deployVerticle-java.lang.String-" rel="nofollow noreferrer">deploy verticles</a> to get a deployment id and also <a href="https://vertx.io/docs/apidocs/io/vertx/core/Vertx.html#undeploy-java.lang.String-" rel="nofollow noreferrer">undeploy them<... | When to use Vert.x cluster | module|cluster-computing|vert.x | 1 | 76 | 1 | 72,339,980 | 72,339,980 | 1 | true | 2022-05-22T10:43:53.130Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
When to use Vert.x cluster<p>I have a java (gradle) project with multiple modules. All of the modules run on the same server but I want them to be independen... |
72,343,160 | oracle replace '0' with 'N/A'<p>I would like to replace data in column RANDOM that equal to '0', NULL, 'NONE', 'NA' WITH 'N/A'.
I used nested REPLACE as below:</p>
<pre><code>SELECT IDNO,
REPLACE (
REPLACE (
REPLACE(
REPLACE(RANDOM, 'NONE|NA', 'N/A'),
'0','N/A'),
'-',''),
NULL, 'N/A... | <blockquote>
<p>... RANDOM that <strong>equal</strong> to '0', NULL, 'NONE', 'NA' WITH 'N/A'</p>
</blockquote>
<p>"Equal" means that there's nothing else in that column. In that case, use <code>CASE</code>:</p>
<pre><code>select idno,
case when random in ('0', 'NONE', 'NA') or radnom is NULL then 'N/A'
... | oracle replace '0' with 'N/A' | mysql|oracle|plsql|replace | 0 | 76 | 2 | 72,343,502 | 72,343,502 | 1 | true | 2022-05-23T04:04:31.250Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
oracle replace '0' with 'N/A'<p>I would like to replace data in column RANDOM that equal to '0', NULL, 'NONE', 'NA' WITH 'N/A'.
I used nested REPLACE as belo... |
72,353,697 | AttributeError: 'Solver' object has no attribute 'method' at implementig class solver ODE<p>Now, in addition from my two previous posts <a href="https://stackoverflow.com/questions/72332591/indexerror-invalid-index-to-scalar-variable-in-implementin-numerical-scheme-ode">ODE implements</a> I try to refactro my code and... | <p>Question One:</p>
<p>Well, as the error states, your Solver class doesn't have an attribute called "method". Your attribute is actually "solver", so instead of calling</p>
<pre><code>self.method(self.problem)
</code></pre>
<p>Try</p>
<pre><code>self.solver(self.problem)
</code></pre>
<p>Question ... | AttributeError: 'Solver' object has no attribute 'method' at implementig class solver ODE | python|numpy|numerical-methods|ode | 0 | 76 | 1 | 72,353,800 | 72,353,800 | 1 | true | 2022-05-23T19:09:08.143Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
AttributeError: 'Solver' object has no attribute 'method' at implementig class solver ODE<p>Now, in addition from my two previous posts <a href="https://stac... |
72,333,473 | Is there a way to tweak Common Lisp dotimes macro so that it does not start from zero but from a different number, such as 1?<p>I am using Emacs, Slime, and SBCL.</p>
<p>The default use of <code>dotimes</code> is:</p>
<pre class="lang-lisp prettyprint-override"><code>CL-USER> (defun my-dotimes (n)
(dotime... | <pre><code>CL-USER 15 > (defmacro dotimes-start ((var n start
&optional (result nil))
&body body)
`(loop for ,var from ,start
repeat ,n
do (progn ,@body)
... | Is there a way to tweak Common Lisp dotimes macro so that it does not start from zero but from a different number, such as 1? | iteration|common-lisp | -1 | 76 | 2 | 72,355,135 | 72,355,135 | 1 | true | 2022-05-21T21:53:25.727Z | 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 tweak Common Lisp dotimes macro so that it does not start from zero but from a different number, such as 1?<p>I am using Emacs, Slime, and ... |
72,263,293 | Can't translate 2D with Design Automation API<p>A while ago I was successfully processing DWG files with the Design Automation API, but now these same jobs fail and I can't figure out why. It only successfully processes files that contain 3D entities. The ones with only 2d (like planes, etc) now fail. I think it has to... | <p>Ok. The fix was deployed to production at 15:00PST on 5/23/2022.
I apologize for the disruption.</p> | Can't translate 2D with Design Automation API | autodesk-forge|autodesk-designautomation | 0 | 76 | 1 | 72,355,224 | 72,355,224 | 1 | true | 2022-05-16T17:29:13.020Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Can't translate 2D with Design Automation API<p>A while ago I was successfully processing DWG files with the Design Automation API, but now these same jobs f... |
72,356,502 | How to match text efficiently between two DataFrames<p>I have some text data:
<code>data1</code></p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th style="text-align: left;">id</th>
<th style="text-align: left;">comment</th>
<th style="text-align: left;">title</th>
</tr>
</thead>
<tbody>
<tr>
... | <p>If you have a lot duplicate in your join keys, the output table might be a lot larger than any of the tables you are joining on.</p>
<p>Things that might help in <code>polars</code> are:</p>
<ul>
<li>Using <code>Categorical</code> datatype, so that duplicates are cached.</li>
<li>Deduplicate your join keys, so that ... | How to match text efficiently between two DataFrames | python|pandas|numpy|python-polars | 1 | 76 | 1 | 72,358,039 | 72,358,039 | 1 | true | 2022-05-24T02:11:16.300Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to match text efficiently between two DataFrames<p>I have some text data:
<code>data1</code></p>
<div class="s-table-container">
<table class="s-table">
... |
72,361,848 | JSON string won't print to console<p>I have this service:</p>
<pre><code>getCert(p: string): Promise<string> {
return ApiService.getData(this.apiUrl + p + this.certEndpoint).then(
(response) => response.data
);
}
</code></pre>
<p>This is an example of <code>data</code>:</p>
<pre><code>{
"state... | <p><code>console.log()</code> accepts as many arguments as you like. So you can just use it like this:</p>
<p><code>console.log('response ', response)</code></p>
<p>If you want to log multiple variables, you can do it like this:</p>
<p><code>console.log(variable1, variable2, variable3, 'some string', variable4);</code>... | JSON string won't print to console | javascript|json|rest | -1 | 76 | 3 | 72,361,990 | 72,361,990 | 1 | true | 2022-05-24T11:11:15.183Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
JSON string won't print to console<p>I have this service:</p>
<pre><code>getCert(p: string): Promise<string> {
return ApiService.getData(this.apiUrl ... |
72,368,195 | How to properly use Smote in Classification models<p>I am using smote to balanced the output (y) only for Model train but want to test the model with original data as it makes logic how we can test the model with smote created outputs. Please ask anything for clarification if I didn't explained it well. It's my startin... | <p>I used SMOTE in the past, it is suboptimal. Lately, researchers have proven some flaws in the generated distribution of Synthetic Minority Oversample Technique (SMOTE). I know sometimes we don't have a choice regarding the unbalanced classes, but you can use <code>sklearn.ensemble.RandomForestClassifier</code>, wher... | How to properly use Smote in Classification models | python|machine-learning|scikit-learn|jupyter-notebook|data-science | 0 | 76 | 2 | 72,368,366 | 72,368,366 | 1 | true | 2022-05-24T19:03:31Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to properly use Smote in Classification models<p>I am using smote to balanced the output (y) only for Model train but want to test the model with origina... |
72,370,159 | Compare overlap of groups pairwise using tidyverse<p>I have a tidy data.frame in this format:</p>
<pre><code>library(tidyverse)
df = data.frame(name = c("Clarence","Clarence","Clarence","Shelby","Shelby", "Patricia","Patricia"), fruit = c("Apple... | <p>If the <code>0</code> overlap is not important, a solution is:</p>
<pre><code>> df %>% inner_join(df,by="fruit") %>% filter(name.x<name.y) %>% count(name.x,name.y)
name.x name.y n
1 Clarence Patricia 2
2 Clarence Shelby 1
</code></pre>
<p>If you really need non-overlapping pairs:</p>... | Compare overlap of groups pairwise using tidyverse | r|tidyverse | 0 | 76 | 2 | 72,370,402 | 72,370,402 | 1 | true | 2022-05-24T22:36:03.280Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Compare overlap of groups pairwise using tidyverse<p>I have a tidy data.frame in this format:</p>
<pre><code>library(tidyverse)
df = data.frame(name = c(&quo... |
72,370,999 | Error while querying tables using hibernate<p>I am trying to query a table called <code>student</code> in MySQL. This is the structure:</p>
<p><a href="https://i.stack.imgur.com/VewVN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VewVN.png" alt="mysql_error" /></a></p>
<p>Here is the java code whic... | <p>As per exception stack trace, it looks like <code>antlr/RecognitionException</code> class file is missing. Add below dependency and try. This should solve your issue.</p>
<pre><code><dependency>
<groupId>org.antlr</groupId>
<artifactId>antlr-complete</artifactId>
<version>3.5.3... | Error while querying tables using hibernate | java|mysql|spring|hibernate|jdbc | 0 | 76 | 1 | 72,371,994 | 72,371,994 | 1 | true | 2022-05-25T01:10:55.253Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Error while querying tables using hibernate<p>I am trying to query a table called <code>student</code> in MySQL. This is the structure:</p>
<p><a href="https... |
72,378,685 | is there any way to display two different table structure (compare two table), table from two different database in oracle?<p>--this is way to compare inside single database tables how can i compare over different database tables?</p>
<pre><code>CREATE OR REPLACE PROCEDURE compareTwoTables is
BEGIN
FOR i in (SELECT c... | <p>You need to create a DB link to the remote database. After that you can use a script similar to:</p>
<pre><code>DECLARE
l_table VARCHAR2(100) := &tbl;
l_res NUMBER;
BEGIN
FOR col IN (SELECT column_name, ownder, data_type, data_length, data_precision, data_scale, nullable, column_id
FROM ... | is there any way to display two different table structure (compare two table), table from two different database in oracle? | sql|oracle|plsql | 0 | 76 | 1 | 72,379,038 | 72,379,038 | 1 | true | 2022-05-25T13:37:22.207Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
is there any way to display two different table structure (compare two table), table from two different database in oracle?<p>--this is way to compare inside... |
72,353,376 | Typescript index access with strictNullChecks turned off<p>The following code works when <code>strictNullChecks</code> are enabled.</p>
<pre class="lang-js prettyprint-override"><code>interface IData {
a: number;
b: string;
}
const data: Partial<IData> = {};
// I am doing "as const" to make 'a' an... | <p>This seems to be a limitation of TypeScript when <a href="https://www.typescriptlang.org/tsconfig#strictNullChecks" rel="nofollow noreferrer">the <code>--strictNullChecks</code> compiler option</a> is off, but I have not found an existing issue in GitHub about it. It is almost universally <a href="https://www.types... | Typescript index access with strictNullChecks turned off | typescript | 2 | 76 | 2 | 72,381,378 | 72,381,378 | 1 | true | 2022-05-23T18:37:42.887Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Typescript index access with strictNullChecks turned off<p>The following code works when <code>strictNullChecks</code> are enabled.</p>
<pre class="lang-js p... |
72,380,764 | How to mock NODE_ENV in unit test using Jest<p>I want to set NODE_ENV in one of the unit test but it's always set to test so my tests fails.</p>
<p><strong>loggingService.ts</strong></p>
<pre><code>...
const getTransport = () => {
if (process.env.NODE_ENV !== "production") {
let console = new transp... | <p>The core problem you are facing is caused by the fact that once you attempt to import the file that you are trying to test into your test suite - the code within it will be immediately evaluated and the implicitly invoked functions will be executed, meaning that <code>logger.add(getTransport());</code> will be calle... | How to mock NODE_ENV in unit test using Jest | javascript|typescript|unit-testing|jestjs | 0 | 76 | 1 | 72,385,545 | 72,385,545 | 1 | true | 2022-05-25T15:52:12.557Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to mock NODE_ENV in unit test using Jest<p>I want to set NODE_ENV in one of the unit test but it's always set to test so my tests fails.</p>
<p><strong>l... |
72,804,913 | When to use --version option in helm upgrade<p>I'm trying to understand when and how <code>--version</code> option in <code>helm upgrade</code> works. In the <a href="https://v2.helm.sh/docs/helm/#options-43" rel="nofollow noreferrer">docs</a> it says:</p>
<blockquote>
<p>--version string Specify the exact chart ver... | <p>You use <code>--version</code> when pulling a chart from a chart repository. For example:</p>
<pre><code>helm upgrade app chart_name \
--version 1.0.0 \
--repo https://chart.repo.example.com \
--install --values ./values.yml
</code></pre>
<p>This says to find and use version 1.0.0 found at the url defined by <... | When to use --version option in helm upgrade | kubernetes-helm|helm3 | 0 | 76 | 1 | 72,805,701 | 72,805,701 | 1 | true | 2022-06-29T16:31:28.313Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
When to use --version option in helm upgrade<p>I'm trying to understand when and how <code>--version</code> option in <code>helm upgrade</code> works. In th... |
72,785,802 | Android, manifest variables using C++ encryption (with NDK)<p>I've just recently implemented NDK, and everything seems to work fine.
Now.. I'm not sure on how to use the c++ method in the manifest, I managed to use it in some section of my code by creating an object which load the cpp library:</p>
<pre><code>object Api... | <p>I found out that with the newer Facebook SDK there no need anymore to specifically set meta-data in the manifest (we can just remove them) and that you can do it via code like this:</p>
<pre><code>class LoginActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
FacebookSd... | Android, manifest variables using C++ encryption (with NDK) | android|android-studio|kotlin|android-ndk|manifest | 1 | 76 | 1 | 72,819,639 | 72,819,639 | 1 | true | 2022-06-28T11:44:33.073Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Android, manifest variables using C++ encryption (with NDK)<p>I've just recently implemented NDK, and everything seems to work fine.
Now.. I'm not sure on ho... |
72,818,802 | Why does 100vh produce horizontal and vertical scroll bar?<p>Hello I am a beginner learning Html & CSS.
I was creating this website from my method and I ran into trouble.
I tried searching many solutions on stack overflow none of them seems to work,
or I don't understand how they work.</p>
<p>I have tried solutions... | <p>You simply need to add <code>display: block;</code> to the <code>.bg-video</code> and it fixes the issue</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-css lang-css prettyprint-override"><code>* {
margin: 0;
... | Why does 100vh produce horizontal and vertical scroll bar? | html|css | 0 | 76 | 1 | 72,819,657 | 72,819,657 | 1 | true | 2022-06-30T15:59:38.920Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Why does 100vh produce horizontal and vertical scroll bar?<p>Hello I am a beginner learning Html & CSS.
I was creating this website from my method and I ... |
72,822,150 | How to convert Base64 to a comma separated binary<p>I'm modifying the explaination so its clearer.</p>
<p>I had this data in an image column within sql server.</p>
<pre><code>This is the original data
0x00B0A04500B898450070954500A89345006893450028944500109545005095450088944500D8924500D0904500288F4500608E4500A08E450098... | <p>Given a string of comma-delimited binary digits, one approach is to split the string into rows to get each binary value and then convert each to an integer, then re-aggregate into a delimited string.</p>
<p>First it would be useful to have a function to convert to an integer, one such function could use a simple tal... | How to convert Base64 to a comma separated binary | sql|base64|blob|sql-server-2019-express | 1 | 76 | 1 | 72,822,590 | 72,822,590 | 1 | true | 2022-06-30T21:19:33.280Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to convert Base64 to a comma separated binary<p>I'm modifying the explaination so its clearer.</p>
<p>I had this data in an image column within sql serve... |
72,824,306 | Go x/crypto/bcrypt: Using a custom salt when generating the password hash<p>I am trying to implement a basic authentication system for a Go server that consists of users with multiple server-generated passwords (tokens essentially) which must be securely stored in a database.</p>
<p>One way of accomplishing this would ... | <p>By design each hash would have it's own salt, this is stored in the database. as a string with the salt, password hash, bcrypt passes etc. It appears all or most newer gen cryptography does this so each hash would have to be cracked individually. If you want something stored in your code I'd add a pepper to every pa... | Go x/crypto/bcrypt: Using a custom salt when generating the password hash | go|authentication|bcrypt | 0 | 76 | 1 | 72,825,648 | 72,825,648 | 1 | true | 2022-07-01T04:14:53.167Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Go x/crypto/bcrypt: Using a custom salt when generating the password hash<p>I am trying to implement a basic authentication system for a Go server that consi... |
72,820,879 | How to change a value in a field in an Avro object with Kafka Streams application<p>My Kafka Streams App is filtering for an Avro Object that look like this:</p>
<pre><code> "num_enterprise_txn_entity_edition": 1,
"num_enterprise_txn_entity_version": 1,
"dte_event_occurred": "2... | <p>Try this. let me know if doesn't work</p>
<pre><code> .mapValues(pocEntity -> {
return POCEntity.newBuilder()
.setIdtEnterpriseTxnEntity(pocEntity.getIdtEnterpriseTxnEntity())
.setNumEnterpriseTxnEntityEdition(pocEntity.getNumEnterpriseTxnEntityEdition())
... | How to change a value in a field in an Avro object with Kafka Streams application | java|apache-kafka|apache-kafka-streams|avro | 0 | 76 | 1 | 72,827,000 | 72,827,000 | 1 | true | 2022-06-30T19:05:48.910Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to change a value in a field in an Avro object with Kafka Streams application<p>My Kafka Streams App is filtering for an Avro Object that look like this:... |
72,827,413 | Dispose of entity objects created by DbContext<p>We are implementing DAL with EF Core and Postgres Npgsql provider.</p>
<p>Some tables have <code>jsonb</code> columns and we map them to <code>JsonDocument</code> properties in entity objects.</p>
<p>The page <a href="https://www.npgsql.org/efcore/mapping/json.html?tabs=... | <p>Not OK. Your implementation loads whole table during dispose, because when enumerating DbSet - it loads data from database.</p>
<p>Consider to change function signature and dispose entities from <code>Local</code> collection:</p>
<pre class="lang-cs prettyprint-override"><code>private static void DisposeEntities<... | Dispose of entity objects created by DbContext | c#|.net-core|entity-framework-core|npgsql | 1 | 76 | 2 | 72,828,455 | 72,828,455 | 1 | true | 2022-07-01T09:46:10.883Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Dispose of entity objects created by DbContext<p>We are implementing DAL with EF Core and Postgres Npgsql provider.</p>
<p>Some tables have <code>jsonb</code... |
72,823,343 | s3fs not receiving s3 updates on ECS container<p>I have an ECS container running that is not receiving updates from new files written to the s3 bucket it is mounting.</p>
<p>Meaning, when a new file is written to the S3 bucket, I am unable to see it in the container I am mounting in.</p>
<p>Image:</p>
<pre><code>FROM c... | <p>s3fs 1.87 and later have a <code>stat_cache_expire</code> value of 900 seconds (15 minutes) which can delay updates. You can reduce this value although it will make operations like <code>readdir</code> slower. s3fs 1.86 and older cached files forever which made multi-client updates impossible. Some older Linux di... | s3fs not receiving s3 updates on ECS container | amazon-ecs|s3fs | 0 | 76 | 1 | 72,829,844 | 72,829,844 | 1 | true | 2022-07-01T00:41:28.103Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
s3fs not receiving s3 updates on ECS container<p>I have an ECS container running that is not receiving updates from new files written to the s3 bucket it is ... |
72,835,013 | creating multiple asyncFileUpload dynamically<p>I have a asp .net web form where I am using Ajax asyncFileUpload1, so that when I browse an image it triggers a function and uploads the file.</p>
<p>Now when the file gets uploaded I want to create another asyncFileUpload2 on the same page. But it's not working.</p>
<p><... | <p>Well, why not use the one same up-load control?</p>
<p>And since you gone to the HUGE step, leap, jump and were willing to make the effort to adopt the ajaxtool kit?</p>
<p>Then why not using the AjaxfileUploader in place of the AsyncFileUpload ?</p>
<p>It allows 1 or 20 files. It didsplays a nice list of files. All... | creating multiple asyncFileUpload dynamically | c#|asp.net|file-upload|asyncfileupload | 1 | 76 | 1 | 72,835,148 | 72,835,148 | 1 | true | 2022-07-01T22:05:30.127Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
creating multiple asyncFileUpload dynamically<p>I have a asp .net web form where I am using Ajax asyncFileUpload1, so that when I browse an image it triggers... |
72,785,473 | How To Make IF And using Python ( tried IF but didn't work , also tried np.where but also not worked)<p>Support needed as i want to make logic if and with python but i can't get the result i wanted or error appear
Data frame i got is four column</p>
<p>1- first column under header (Segment) contain only one of two stat... | <p>The logic you decribed seems to be sufficiently appropriate to use with the <code>np.where</code>, you just need to use the parentheses for each condition between the logic and.</p>
<pre class="lang-py prettyprint-override"><code>import pandas as pd
import numpy as np
PG = pd.read_csv('sample.csv')
PG["Inboun... | How To Make IF And using Python ( tried IF but didn't work , also tried np.where but also not worked) | python|pandas|if-statement | 1 | 76 | 2 | 72,841,003 | 72,841,003 | 1 | true | 2022-06-28T11:17:48.227Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How To Make IF And using Python ( tried IF but didn't work , also tried np.where but also not worked)<p>Support needed as i want to make logic if and with py... |
72,840,869 | Change tabbar selected index<p>I need to change tabbar selected item when view updates. So, i have tabbar with 4 items, i want that when clicking on the button that is in the last index, view updates and selected item also stays the last(3). But when i am clicking on the button, the selected item changes and it shows f... | <p>If you need to refresh all the vcs</p>
<pre><code>let tabBarVC = UIStoryboard(name: "TabBarViewController", bundle: nil).instantiateViewController(withIdentifier: "CustomTabBarViewController") as! CustomTabBarViewController
tabBarVC.selectedIndex = 3
let nav = UINavigationController(rootViewContr... | Change tabbar selected index | ios|swift|uikit|tabbar | 0 | 76 | 2 | 72,841,014 | 72,841,014 | 1 | true | 2022-07-02T16:54:30.037Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Change tabbar selected index<p>I need to change tabbar selected item when view updates. So, i have tabbar with 4 items, i want that when clicking on the butt... |
72,822,357 | Git: Ignore Subfolder of All Folders Except One<p>currenty I have an repository that looks like this:</p>
<pre><code>Git-Repository
└─── A
│ └─── X
│ └─── Y
└─── B
│ └─── X
│ └─── Y
└─── C
│ └─── X
│ └─── Y
│ ....
</code></pre>
<p>I want to edit my <em>.gitignore</em> file to somehow <strong>ignore all X subdirec... | <p>From the <a href="https://git-scm.com/docs/gitignore" rel="nofollow noreferrer">gitignore docs</a>.</p>
<blockquote>
<p>If there is a separator at the beginning or middle (or both) of the pattern, then the pattern is relative to the directory level of the particular .gitignore file itself.</p>
</blockquote>
<p>That ... | Git: Ignore Subfolder of All Folders Except One | git|gitignore | -2 | 76 | 1 | 72,841,257 | 72,841,257 | 1 | true | 2022-06-30T21:45:21.387Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Git: Ignore Subfolder of All Folders Except One<p>currenty I have an repository that looks like this:</p>
<pre><code>Git-Repository
└─── A
│ └─── X
│ └─── ... |
72,842,047 | SQL: Get all rows where a logically linked columns (by their title) contains specific value<p>I have a SQL Server table like this:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Part-ID</th>
<th>ProjectA_Responsible</th>
<th>ProjectA_Result</th>
<th>ProjectB_Responsible</th>
<th>ProjectB_R... | <pre><code>select *
from [TableName]
where (ProjectA_Responsible = 'Simpson' and ProjectA_Result = 'open')
or (ProjectB_Responsible = 'Simpson' and ProjectB_Result = 'open')
</code></pre> | SQL: Get all rows where a logically linked columns (by their title) contains specific value | sql|sql-server | -1 | 76 | 2 | 72,842,289 | 72,842,289 | 1 | true | 2022-07-02T19:52:34.280Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
SQL: Get all rows where a logically linked columns (by their title) contains specific value<p>I have a SQL Server table like this:</p>
<div class="s-table-co... |
72,843,107 | Best way to index faces with AWS Rekognition and associate them to the userId in MySQL<p>I'm including facial recognition in my Electron app using Node.js and I would like to know if I'm doing the process correctly, as I was a little confused by some points in the documentation.</p>
<p>I'm using the <code>aws-sdk</code... | <p>Yes, that is the purpose of the <code>ExternalImageId</code> field -- it is for you to associate your own reference to the face. You are doing it correctly (assuming that the code works).</p> | Best way to index faces with AWS Rekognition and associate them to the userId in MySQL | node.js|amazon-web-services|aws-sdk|face-recognition|amazon-rekognition | 0 | 76 | 1 | 72,843,275 | 72,843,275 | 1 | true | 2022-07-02T23:43:21.127Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Best way to index faces with AWS Rekognition and associate them to the userId in MySQL<p>I'm including facial recognition in my Electron app using Node.js an... |
72,845,957 | How to get an average mean of columns Flask/Pandas<p>I need to calculate an average of two columns 'Height(Inches)' and 'Weight(Pounds)', when i use the code below , i getting the error 500 'Internal Server Error'.</p>
<pre><code>@app.route('/csv')
def get_average_parameters():
dataset = pd.read_csv('hw.csv')
average =... | <p>The second way is correct, but it's wrong that you return the value directly as a string. <code>dataset.mean()</code> returns a series, that is why your output looks like that. In order to just get the mean of certain column, lets say height column, you just have to do it like this</p>
<pre class="lang-py prettyprin... | How to get an average mean of columns Flask/Pandas | python|pandas | 2 | 76 | 1 | 72,846,083 | 72,846,083 | 1 | true | 2022-07-03T11:05:38.903Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to get an average mean of columns Flask/Pandas<p>I need to calculate an average of two columns 'Height(Inches)' and 'Weight(Pounds)', when i use the code... |
72,839,843 | How to show individual values from specific condition of dataframe for each bar using plotly python?<p>I have a several dataframes with user's order information like that:</p>
<pre><code>A = {
'user': ['a', 'b', 'c', 'd', 'e', 'f'],
'country': ['UK', 'US', 'US', 'UK', 'UK', 'US'],
'order': [1, 2, 2, 4, 4, 4... | <p>To get the hover templates as you need, please change the <code>hovertemplate</code> line to this...</p>
<pre><code>hovertemplate="Users: %{text}", text = country_list,
</code></pre>
<p>A bit more explanation - the country_list is a list of lists. For hovertemplate, it is expecting a list for each <code>ad... | How to show individual values from specific condition of dataframe for each bar using plotly python? | python|python-3.x|pandas|plotly|plotly-python | 1 | 76 | 1 | 72,848,020 | 72,848,020 | 1 | true | 2022-07-02T14:29:39.363Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to show individual values from specific condition of dataframe for each bar using plotly python?<p>I have a several dataframes with user's order informat... |
72,823,549 | Having some problems making relative reference work with an ArrayFormula<p>I'm trying to use the ArrayFormula of Google Sheets to set an auto-fill system where the contents of one column update as I add more data to another column, but, with the formula I'm using, the first set of cells will just use the first value in... | <p>I ended up using Google Apps Script to solve my issue, since regular formulas proved to be inefficient for what I was trying to do. Below is the code I ended up using, which populates some more fields aside from the name and icon, which still has some issues, but they're beyond the scope of this question.</p>
<pre><... | Having some problems making relative reference work with an ArrayFormula | google-apps-script|google-sheets|google-sheets-formula | 0 | 76 | 2 | 72,850,653 | 72,850,653 | 1 | true | 2022-07-01T01:27:58.200Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Having some problems making relative reference work with an ArrayFormula<p>I'm trying to use the ArrayFormula of Google Sheets to set an auto-fill system whe... |
72,864,913 | mysql How to delete all data except some data<p>I use mysql, nestjs, typeorm.</p>
<p>When I delete <code>user</code> table, I want to delete all but not some table data.</p>
<p>If a <code>user</code> withdraws from my service, I want to delete everything except the information in the <code>cat</code> table.</p>
<pre cl... | <p>I understand you need to make some value to be null in column 2 when you delete user as example you can use <strong>onDelete : <em>"SET NULL"</em></strong></p>
<p>in cat Entity you can use</p>
<pre class="lang-js prettyprint-override"><code> @ManyToOne(() => UserEntity, user => user,
{
... | mysql How to delete all data except some data | mysql|nestjs|typeorm | 0 | 76 | 1 | 72,867,070 | 72,867,070 | 1 | true | 2022-07-05T06:34:50.740Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
mysql How to delete all data except some data<p>I use mysql, nestjs, typeorm.</p>
<p>When I delete <code>user</code> table, I want to delete all but not some... |
72,828,799 | DeadSystemException in HMSPackageManager<p>I faced DeadSystemException in app on Huawei devices when HMSPackageManager tries to get info about services from Android PackageManager.</p>
<p>Stacktrace:</p>
<pre><code>Fatal Exception: java.lang.RuntimeException: android.os.DeadSystemException
at android.app.Application... | <p>Huawei support said that problem in Android OS, but they try to fix error in next HMS SDK update in mid of september.</p> | DeadSystemException in HMSPackageManager | android|huawei-mobile-services | 1 | 76 | 1 | 72,869,521 | 72,869,521 | 1 | true | 2022-07-01T11:47:19.823Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
DeadSystemException in HMSPackageManager<p>I faced DeadSystemException in app on Huawei devices when HMSPackageManager tries to get info about services from ... |
72,868,398 | Get only numeric values from a string<p>I'm formatting the output of an SMTP server log for output on a secured website. I already formatted the IP addresses with and without added port numbers (123.123.123.123 and 123.123.123.123:456, <code>/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\:\d{1,5}|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3... | <p>Since you wrap your matches with other strings, you should use <code>preg_replace</code> directly.</p>
<p>To match the numbers after whitespaces that are not followed with a dot + another digits, you can use <code>(?<=\h)\d+\b(?!\.\d)</code> pattern.</p>
<p>The whole solution for the current problem will look lik... | Get only numeric values from a string | php|regex | 1 | 76 | 1 | 72,869,713 | 72,869,713 | 1 | true | 2022-07-05T11:07:58.030Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Get only numeric values from a string<p>I'm formatting the output of an SMTP server log for output on a secured website. I already formatted the IP addresses... |
72,866,240 | How to create solidity function only callable by a wallet address (not a contract)<p>I want to make sure that my function isn't able to be called programmatically by another smart contract.</p>
<p>Is there a way to create a function in my contract that doesn't allow it to be called by other contracts while still allowi... | <p>So, <code>msg.sender</code> returns the address who called your method, and <code>tx.origin</code> returns the address of the account that sent the transaction.</p>
<pre><code>/// @dev Check if method was called by user.
require(msg.sender == tx.origin, "Reverting, Method can only be called directly by user.&qu... | How to create solidity function only callable by a wallet address (not a contract) | solidity | 0 | 76 | 1 | 72,870,941 | 72,870,941 | 1 | true | 2022-07-05T08:26:36.047Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to create solidity function only callable by a wallet address (not a contract)<p>I want to make sure that my function isn't able to be called programmati... |
72,870,729 | Can the validation data be used in model.fit for prediction?<p>I am trying to build an LSTM model to forecast stock prices. I have split the data into training and test. I'm using the test data inside <code>model.fit</code> as <code>validation_data</code>. After that I pass the test data to <code>model.predict()</code>... | <p>Usually, you would split the data into 3 sets:</p>
<ol>
<li>train set: used to train the model</li>
<li>validation set: used for frequent evaluation of the model, allow to fine-tune hyper-parameters. MUSTN'T be used to train, as the evaluation must be the most unbiased possible.</li>
<li>test set: final set used for... | Can the validation data be used in model.fit for prediction? | python|machine-learning|keras|lstm|overfitting-underfitting | -1 | 76 | 1 | 72,871,290 | 72,871,290 | 1 | true | 2022-07-05T13:59:47.797Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Can the validation data be used in model.fit for prediction?<p>I am trying to build an LSTM model to forecast stock prices. I have split the data into traini... |
72,866,857 | Waiting for linkerd-viz extension to become available<p>I have minikube running on AWS EC2 instance, installed linkerd and meshed with the application. And installed linkerd viz, when i try to view the dashboard using the command <strong>linkerd viz dashboard &</strong> gets the following error. it says socat not f... | <p><code>linkerd viz</code> uses <code>kubectl port-forward</code> under the hood, which itself relies on the <code>socat</code> binary to be installed in the kubernetes host. It appears Minikube doesn't provide <code>socat</code>, at least in older versions. You can try a newer Minikube version, or I'd recommend inste... | Waiting for linkerd-viz extension to become available | kubernetes|amazon-ec2|devops|linkerd | 0 | 76 | 1 | 72,871,291 | 72,871,291 | 1 | true | 2022-07-05T09:15:32.103Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Waiting for linkerd-viz extension to become available<p>I have minikube running on AWS EC2 instance, installed linkerd and meshed with the application. And i... |
72,880,591 | Using uPlot with svelte, does not render<p>I'm struggling to make <a href="https://github.com/leeoniya/uPlot" rel="nofollow noreferrer">uPlot</a> work with <a href="https://svelte.dev/" rel="nofollow noreferrer">svelte</a>. I can't find any minimal working example, so I'm crafting one myself and it does not render. Rep... | <p>There are several things to fix or improve:</p>
<ul>
<li>uPlot does <em>not</em> take typed arrays as data</li>
<li>The reactive statement is a bit pointless, as it only triggers in a meaningful once after uPlot has been loaded</li>
<li>One should not query the DOM in Svelte but use <code>bind:this</code> or events ... | Using uPlot with svelte, does not render | javascript|svelte|uplot | 0 | 76 | 1 | 72,881,761 | 72,881,761 | 1 | true | 2022-07-06T08:57:15.523Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Using uPlot with svelte, does not render<p>I'm struggling to make <a href="https://github.com/leeoniya/uPlot" rel="nofollow noreferrer">uPlot</a> work with <... |
72,883,447 | Dynamically update scss class attribute by using variable in typescript React Application<p>I'm writing a react app where I use an scss stylesheet. In this I set <code>width = 240px;</code>, and this is then used in my component. I would like to dynamically update the scss.styles.ActiveWide width attribute depending on... | <p>Use inline styling for that.</p>
<pre><code><div style={{width: 10*betweenTimeIndexes.length + "px" }}>
...
</div>
</code></pre> | Dynamically update scss class attribute by using variable in typescript React Application | css|reactjs|typescript|sass | 0 | 76 | 1 | 72,883,530 | 72,883,530 | 1 | true | 2022-07-06T12:18:48.647Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Dynamically update scss class attribute by using variable in typescript React Application<p>I'm writing a react app where I use an scss stylesheet. In this I... |
72,878,629 | dropbox api - token expired ( fastest way to refresh )<p>I've generated the access token manually over the Dropbox App Console on their webpage. <a href="https://www.dropbox.com/developers/apps/" rel="nofollow noreferrer">Developer Apps</a></p>
<p>With that token I was able to download the file</p>
<pre><code>mydropbox... | <p>To retrieve a refresh token, you'll need to use <a href="https://developers.dropbox.com/oauth-guide" rel="nofollow noreferrer">the OAuth app authorization flow</a>.</p>
<p>It is not possible to fully automate the OAuth process where the user chooses to authorize the app and the app then receives the resulting access... | dropbox api - token expired ( fastest way to refresh ) | python|dropbox-api | 0 | 76 | 1 | 72,885,547 | 72,885,547 | 1 | true | 2022-07-06T06:07:47.547Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
dropbox api - token expired ( fastest way to refresh )<p>I've generated the access token manually over the Dropbox App Console on their webpage. <a href="htt... |
72,890,562 | Count Non-Blank Cells in Column<p>Is there an alternative method to counting a column's non-blank cells than the below method? The method below does the trick, but when there is no data in the column, the script generates an <code>No Cells Were Found Error</code>. Looking for a script that just returns 0 in the event o... | <h2>Count Non-Blank or Non-Empty Cells in a Column</h2>
<ul>
<li>The code was used in a new workbook. In <code>Sheet1</code>, in cell <code>A2</code> I entered the formula <code>=""</code> and in cell <code>A3</code> I entered a single quote (<code>'</code>). These two cells appear to be empty, but they are n... | Count Non-Blank Cells in Column | excel|vba | 1 | 76 | 1 | 72,890,887 | 72,890,887 | 1 | true | 2022-07-06T22:39:11.047Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Count Non-Blank Cells in Column<p>Is there an alternative method to counting a column's non-blank cells than the below method? The method below does the tric... |
72,888,310 | Spreadsheet uploading appropriate for business/end-users in Foundry<p>Does Foundry have native support for uploading and appending spreadsheets (identical schema) to one dataset, with an interface appropriate for business/end-users?</p>
<p>I'm evaluating a user workflow that involves receiving tabular spreadsheets ad-h... | <p>There are a number of robust approaches to enable this workflow. Foundry Actions combined with Workshop present a robust option to enable ad-hoc uploads and appends of spreadsheets (or any file formats) to a specific dataset, with an interface appropriate for business/end-users.</p>
<p>Actions can be configured to s... | Spreadsheet uploading appropriate for business/end-users in Foundry | palantir-foundry | 2 | 76 | 1 | 72,904,039 | 72,904,039 | 1 | true | 2022-07-06T18:26:47.897Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Spreadsheet uploading appropriate for business/end-users in Foundry<p>Does Foundry have native support for uploading and appending spreadsheets (identical sc... |
72,915,233 | Flutter web getting blank white screen<p>The web app was working fine, but when I added firebase to it, it started giving a blank screen with an error:</p>
<blockquote>
<p>Error: Assertion failed:
file:///D:/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core_web-1.6.6/lib/src/firebase_core_web.dart:273:11... | <p>You need to initialize your firebase app properly in main file.</p>
<pre><code> main() async{
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp(
options: FirebaseOptions(
apiKey: ********,
appId: ******,
messagingSenderId: **, projectId: *****);
}
</code></pre> | Flutter web getting blank white screen | flutter|dart | 0 | 76 | 1 | 72,916,922 | 72,916,922 | 1 | true | 2022-07-08T17:54:51.533Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Flutter web getting blank white screen<p>The web app was working fine, but when I added firebase to it, it started giving a blank screen with an error:</p>
<... |
72,917,467 | Execute function only once after multiple clicks in a row JavaScript<p>I have two quantity selector buttons.</p>
<p>After the user clicks in any of these buttons (increasing or decreasing quantity), I need to run a function.</p>
<p>But the user can click several times in a row, and I want to execute the function only o... | <p>You described a classic <code>debounce</code> technique. Here is an implementation:</p>
<p>Taken from <a href="https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore#_debounce" rel="nofollow noreferrer">https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore#_debounce</a></p>
<p>Another way is to ... | Execute function only once after multiple clicks in a row JavaScript | javascript | 0 | 76 | 4 | 72,917,592 | 72,917,592 | 1 | true | 2022-07-08T22:09:49.130Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Execute function only once after multiple clicks in a row JavaScript<p>I have two quantity selector buttons.</p>
<p>After the user clicks in any of these but... |
72,920,734 | Multi steps Dropbox logic in React JS<p>I hope you and your families are well.
I need your guidance on a small issue which I am facing, I have been trying to find/do the solution for the past 3 days and couldn't find it.</p>
<p>I am using a simple React library for the below.</p>
<p><strong>Scenario</strong>
I have cre... | <p>First of all, you pass a string to <code>setFruitList</code>, also inside the <code>populateFruits</code> function you change <code>setIdNumber</code> which is the list of the first select, and the <code>useEffect</code> has dependence with <code>fruitList</code> and inside it set <code>setFruitList</code> which can... | Multi steps Dropbox logic in React JS | javascript|reactjs|react-native|react-hooks|scripting | 0 | 76 | 1 | 72,921,061 | 72,921,061 | 1 | true | 2022-07-09T10:49:11.493Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Multi steps Dropbox logic in React JS<p>I hope you and your families are well.
I need your guidance on a small issue which I am facing, I have been trying to... |
72,923,308 | Flask Python: Sending form data with Flask mail<p>I there a smooth way on how to send html form data with flask mail?</p>
<p>I am trying to get the input from the user from my contact.html.</p>
<pre><code>{% block content %}
<h1 class="title">
Contact Us
</h1>
<form action="/contact"... | <p>You need to add all the posted information to the mail, assuming you want it to the mail body, you could format the <code>msg.body</code> as:</p>
<pre><code>msg.body = "Contact form submitted with data:\n\nName: {}\n\nE-mail: {}\n\nMessage: {}".format(name, email, message)
</code></pre>
<p>you can use <cod... | Flask Python: Sending form data with Flask mail | python|html|flask | 2 | 76 | 1 | 72,923,778 | 72,923,778 | 1 | true | 2022-07-09T17:11:28.387Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Flask Python: Sending form data with Flask mail<p>I there a smooth way on how to send html form data with flask mail?</p>
<p>I am trying to get the input fro... |
72,927,898 | How do I make numba compile python functions before initial invocation?<p>I am aware of <a href="https://numba.readthedocs.io/en/stable/user/pycc.html?highlight=aot#compiling-code-ahead-of-time" rel="nofollow noreferrer">Ahead of Time compilation (AOT)</a> but it has certain <a href="https://numba.readthedocs.io/en/sta... | <p>What you want is called <a href="https://numba.readthedocs.io/en/stable/user/jit.html?highlight=eager#eager-compilation" rel="nofollow noreferrer"><strong>eager compilation</strong></a> as opposed to lazy compilation (which is the default mode). As the documentation states, you need to provide the signature. Multipl... | How do I make numba compile python functions before initial invocation? | python|python-3.x|performance|numba|jit | 0 | 76 | 1 | 72,928,697 | 72,928,697 | 1 | true | 2022-07-10T10:48:15.990Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How do I make numba compile python functions before initial invocation?<p>I am aware of <a href="https://numba.readthedocs.io/en/stable/user/pycc.html?highli... |
72,938,311 | Solidity struct mapping not stored in contract<p>I read many articles on how to use mappings, mappings in struct and came out with something that should be correct to me, based on a few threads.
I know that since solidity 0.7.0 things have changed with nested mappings in struct and did the following :</p>
<pre><code>co... | <p>If you are talking about <code>auctions</code> mapping, ensure you use the correct index when accessing mapping items. In your case, the first <code>Auction</code> item you add to the mapping will have a <code>0</code> index. I tried your contract in <a href="https://remix.ethereum.org/" rel="nofollow noreferrer">Re... | Solidity struct mapping not stored in contract | struct|mapping|storage|solidity | 1 | 76 | 1 | 72,938,794 | 72,938,794 | 1 | true | 2022-07-11T12:05:38.600Z | Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Solidity struct mapping not stored in contract<p>I read many articles on how to use mappings, mappings in struct and came out with something that should be c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.