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,888,355
SSIS export data to flat file and omit header from the output<p>I am creating an SSIS package to query a database and extract the results to a csv file. I'm using Visual Studio 2019. I have set &quot;Header rows to skip:&quot; to 0 - 4. I did the same with data rows in the Preview tab, and nothing changes. I do not see...
<p>The answer is to set header rows to skip to 0 and uncheck the column names in the first data row. To get this to create a file manager with the column headings, I used the following steps:</p> <ol> <li>Delete the flat file destination and file manager, if exists</li> <li>Add new flat file destination and click new ...
SSIS export data to flat file and omit header from the output
visual-studio|ssis|header
0
42
1
72,915,871
72,915,871
0
true
2022-07-06T18:30:50.107Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: SSIS export data to flat file and omit header from the output<p>I am creating an SSIS package to query a database and extract the results to a csv file. I'm ...
72,908,898
PowerShell Producing Unreadable Output<p><a href="https://i.stack.imgur.com/ekAVz.png" rel="nofollow noreferrer">Image Here For Reference</a> Specifically the text after &quot;Similarity&quot; and &quot;-&gt;&quot;</p> <p>I have a small PowerShell script that uses ssh to connect to a server and run a command. I believe...
<p>Solved it, turns out that the command I needed was <code>ssh -t host command</code> to enable the colour display</p> <p>More info here: <a href="https://explainshell.com/explain?cmd=ssh+-t+my_host+my_command" rel="nofollow noreferrer">https://explainshell.com/explain?cmd=ssh+-t+my_host+my_command</a></p>
PowerShell Producing Unreadable Output
powershell
0
42
2
72,919,520
72,919,520
0
true
2022-07-08T08:48:04.883Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: PowerShell Producing Unreadable Output<p><a href="https://i.stack.imgur.com/ekAVz.png" rel="nofollow noreferrer">Image Here For Reference</a> Specifically th...
72,919,847
How casting of array address are coming differently in C<p>After long time, I was doing some experiments on array with this program and printing output in decimal using %lu.</p> <p>The confusing part I observed is when I use cast with unsigned long, array address '&amp;thing+1' increment by just +1,</p> <pre><code>1407...
<p>In the first example, you are adding 1 to unsigned long values, so that just adds 1</p> <p>In the second example, you are adding 1 to a pointer, which increases the pointer value by the size of the pointed at type. So with <code>thing + 1</code>, <code>thing</code> is an <code>int *</code>, so it increases by sizeo...
How casting of array address are coming differently in C
c|pointers
0
42
1
72,919,881
72,919,881
0
true
2022-07-09T07:54:28.640Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How casting of array address are coming differently in C<p>After long time, I was doing some experiments on array with this program and printing output in de...
72,884,090
issues with TextField + xcode on macos big sur on not-upgradable-anymore macbook air 2014<p>XCode 13.2.1 has issues not sure how to overcome on older hardware.</p> <p>macbook air 2014 cannot upgrade to any macos past big sur.</p> <p>doing a clean install (Cmd+R) recovery from the internet + installing the last allowed ...
<p>The textfield input (cursor and typed text not showing) got resolved in the following way:</p> <p>a. I did a clean install of MacOS Big Sur</p> <p>b. then I did a</p> <pre><code>xcode-select --install </code></pre> <p>I did step b. because I need it for installing other apps with brew etc.</p> <p>*** c. after the xc...
issues with TextField + xcode on macos big sur on not-upgradable-anymore macbook air 2014
ios|xcode|swiftui
-1
42
1
72,922,310
72,922,310
0
true
2022-07-06T13:05:03.560Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: issues with TextField + xcode on macos big sur on not-upgradable-anymore macbook air 2014<p>XCode 13.2.1 has issues not sure how to overcome on older hardwar...
72,924,422
The function of adding a recipe to the database favorites does not work<p>I have a problem in the application, I want to make a function to add a recipe to my favorites, but there is a problem, everything seems to look fine, but when I click on the save button, I first compare the current icon with two icons selected a...
<p>The problem is in this sort of code:</p> <pre><code>mRef4.addValueEventListener(new ValueEventListener() { @Override public void onDataChange(@NonNull DataSnapshot snapshot1) { try { if (holder.saveBtn.getDrawable().getConstantState().equals(context.getDrawable(R.drawable.save).getConstan...
The function of adding a recipe to the database favorites does not work
java|android|firebase
0
42
1
72,924,674
72,924,674
0
true
2022-07-09T20:26:51.643Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: The function of adding a recipe to the database favorites does not work<p>I have a problem in the application, I want to make a function to add a recipe to m...
72,925,116
Trying to find out which Android control this is?<p>I am new to Android so please bear with me...</p> <p>Can someone tell which what the name of this control is in Android studio, I have been trying to google it but i just cant seem to find it!?</p> <p><a href="https://i.stack.imgur.com/nSoZa.png" rel="nofollow norefer...
<p>If that is at the top of the screen, it would be a <a href="https://developer.android.com/reference/com/google/android/material/tabs/TabLayout" rel="nofollow noreferrer">TabLayout</a>. That usually sits below the Toolbar and is used along with a <a href="https://developer.android.com/jetpack/androidx/releases/viewpa...
Trying to find out which Android control this is?
android|android-studio
0
42
1
72,925,377
72,925,377
0
true
2022-07-09T22:55:00.020Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Trying to find out which Android control this is?<p>I am new to Android so please bear with me...</p> <p>Can someone tell which what the name of this control...
72,924,209
How to raise customizable ValueError for input containing two dates?<p>I am trying to understand raising an exception little better.Below is <code>python</code> code, as you can see I am asking for two date inputs from user. If user types &quot;2022&quot; and hit enter it is returning <code>python</code> <code>ValueErr...
<p>I was able to resolve my issue using below code. Basically, I needed another try &amp; except block in while statement. Thanks @Иван Балван for feedback!</p> <pre><code>def validate(date_text): try: datetime.datetime.strptime(date_text, '%Y-%m-%d') return True except ValueErro...
How to raise customizable ValueError for input containing two dates?
python|python-3.x|validation|input|valueerror
0
42
2
72,925,571
72,925,571
0
true
2022-07-09T19:53:08Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to raise customizable ValueError for input containing two dates?<p>I am trying to understand raising an exception little better.Below is <code>python</co...
72,925,702
Is there a way I can make this program shorter/simpler or any improvements I can make to it?<p>I have written a program that can convert a Quadratic equation written in standard form to vertex form. I am a beginner in Python and coding in general. I have posted programs on StackOverflow before but have received a lot o...
<p>Don't explicitly evaluate the boolean opposite of an expression you just evaluated. Example:</p> <pre><code> if k &gt;= 0: if hReverse &gt;= 0: ... elif hReverse &lt; 0: ... elif k &lt; 0: </code></pre> <p>No point in testing if <code>hReverse &l...
Is there a way I can make this program shorter/simpler or any improvements I can make to it?
python|python-3.x|quadratic
0
42
1
72,925,850
72,925,850
0
true
2022-07-10T02:00:38.447Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Is there a way I can make this program shorter/simpler or any improvements I can make to it?<p>I have written a program that can convert a Quadratic equation...
72,918,738
RuntimeError: 'empty_form' is not used in polymorphic formsets, use 'empty_forms' instead<p>I am developing a django api project based on the django rest framework. I have 4 models:</p> <pre class="lang-py prettyprint-override"><code>class Module(models.Model): name = models.CharField(null=False, max_length=50, ver...
<p>I solved the problem on my own.</p> I just changed ModuleAdmin from</p> <pre><code>@admin.register(Module) class ModuleAdmin(admin.ModelAdmin, PolymorphicInlineSupportMixin): inlines = (LevelInline,) </code></pre> <p>to</p> <pre><code>@admin.register(Module) class ModuleAdmin(PolymorphicInlineSupportMixin, admin...
RuntimeError: 'empty_form' is not used in polymorphic formsets, use 'empty_forms' instead
django|django-models|django-forms
-1
42
1
72,925,942
72,925,942
0
true
2022-07-09T03:30:15.290Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: RuntimeError: 'empty_form' is not used in polymorphic formsets, use 'empty_forms' instead<p>I am developing a django api project based on the django rest fra...
72,926,949
Pass setState function as callback to onChangeText<p>Can I directly pass <code>setState</code> to <code>onChangeText</code> in <code>TextInput</code> component instead of passing a callback function and calling <code>setState</code> function in a callback? e.g</p> <pre><code>const [state, setState] = useState(initialSt...
<p>Yes, you can directly trigger functions. E.g.:</p> <pre><code>const [state, setState] = useState(initialState); /* Other code logic */ &lt;TextInput onChangeInput={(evt) =&gt; { setState(evt.target.value) } /&gt; </code></pre>
Pass setState function as callback to onChangeText
reactjs|react-native
-1
42
1
72,926,988
72,926,988
0
true
2022-07-10T07:51:14.117Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Pass setState function as callback to onChangeText<p>Can I directly pass <code>setState</code> to <code>onChangeText</code> in <code>TextInput</code> compone...
72,927,565
How can i add a function to show me history of calculations and results?<p>How can i add a function to show me history of calculations and results? Either in the console or create a .txt file. This is code I got from the internet BTW. I am a beginner to python also.</p> <h1>Program make a simple calculator</h1> <pre><c...
<p>Modification of your text to write to a file (e.g. 'log.txt')</p> <ul> <li>Opens file in append mode</li> <li>Using Python <a href="https://peps.python.org/pep-0498/" rel="nofollow noreferrer">string interpolation</a> to compose string to write</li> </ul> <p><strong>Code</strong></p> <pre><code># This function adds ...
How can i add a function to show me history of calculations and results?
python
-1
42
4
72,927,694
72,927,694
0
true
2022-07-10T09:46:42.210Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can i add a function to show me history of calculations and results?<p>How can i add a function to show me history of calculations and results? Either in...
72,928,636
Having issue in loading files from static folder<p>I am new to <code>django</code> and I am having issues while following a tutorial on <em>YouTube</em>. Please help me so my static page which I changed into dynamic will load with changes that I made. Everything is working fine except when I try to run it by using <cod...
<p>Not sure exactly what your problem is here but, as I understand it, you are trying to use images from your static folder in a <code>django</code> template. This can be achieved by correctly configuring django and using template tags.</p> <h1>In Development</h1> <p>To make this work with the development server, you n...
Having issue in loading files from static folder
django|web-services|django-rest-framework|django-views|django-templates
0
42
1
72,929,609
72,929,609
0
true
2022-07-10T12:57:45.257Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Having issue in loading files from static folder<p>I am new to <code>django</code> and I am having issues while following a tutorial on <em>YouTube</em>. Ple...
72,923,773
Ubuntu (WSL): How should I be setting these paths for Android Studio?<p>I recently installed Android Studio on Ubuntu (WSL) for my Meteor project but it installed to <code>/opt/android-studio</code>. I see that the <code>SDK</code> is installed to <code>/root/Android/Sdk</code>. I've added it to the <code>ANDROID_SDK...
<p>Moving the <code>Android</code> directory to <code>/etc</code> solved it:</p> <pre><code>sudo su mv /root/Android /etc </code></pre>
Ubuntu (WSL): How should I be setting these paths for Android Studio?
android-studio|meteor
0
42
2
72,929,905
72,929,905
0
true
2022-07-09T18:32:09.993Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Ubuntu (WSL): How should I be setting these paths for Android Studio?<p>I recently installed Android Studio on Ubuntu (WSL) for my Meteor project but it inst...
72,925,847
How to print Jenkin jobs details<p>Is there a way to list details of every jenkins job, such as the execute shell command? There is a shell script that is getting executed from two jobs, I know of one job from where it's running from. Need to find a second Jenkins job which is executing this script.</p> <p>Found this l...
<p>One option is to check the build logs of the Jobs. Logs typically have the command you execute. For this, you can use a script like the below.</p> <pre><code>def commandToCheck = &quot;docker --version&quot; Jenkins.instance.getAllItems(Job.class).each { jobitem -&gt; if(jobitem.getLastBuild() != null) { def ...
How to print Jenkin jobs details
jenkins|groovy|jenkins-groovy
1
42
1
72,931,075
72,931,075
0
true
2022-07-10T02:47:40.563Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to print Jenkin jobs details<p>Is there a way to list details of every jenkins job, such as the execute shell command? There is a shell script that is ge...
72,931,135
How can I pass HTML data from Python to an already created HTML page for display?<p>I am working on a Django project and would like to take markdown texts, convert them to HTML, and then display them on the browser. I did some research and tried different ways, but none worked as I wanted.</p> <p>This is my code:</p> <...
<p>There is no need for a HTML parser, as ou already get HTML from the markdown library.</p> <pre class="lang-py prettyprint-override"><code>def display_entry(request, entry): entry_content = util.get_entry(entry.capitalize()) if entry_content != None: markdowner = Markdown() body_html = markdow...
How can I pass HTML data from Python to an already created HTML page for display?
python|html|django|jinja2
-1
42
2
72,931,395
72,931,395
0
true
2022-07-10T19:02:23.133Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I pass HTML data from Python to an already created HTML page for display?<p>I am working on a Django project and would like to take markdown texts, c...
72,931,483
Play a sound when a certain value is selected on slider<p>I'm trying to make a simple slider that when choosing a certain value on it (in this case 76), the button that says &quot;Continue&quot; plays a certain sound instead of redirecting, but i don't seem to get it to work, could you guys help me out on this? here is...
<p>Fixed a few things in the code, a couple of which could have been from forgetting to copy the bottom couple of lines .</p> <pre><code>&lt;div id=&quot;Slider&quot;&gt; &lt;span id=&quot;rangeValue&quot;&gt;0&lt;/span&gt; &lt;Input class=&quot;range&quot; type=&quot;range&quot; name &quot;&quot; value...
Play a sound when a certain value is selected on slider
javascript|html|audio|slider
0
42
2
72,931,642
72,931,642
0
true
2022-07-10T19:56:02.500Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Play a sound when a certain value is selected on slider<p>I'm trying to make a simple slider that when choosing a certain value on it (in this case 76), the ...
72,915,048
how to use OUTPUT pane in vscode when working on virtualenv<p>I have created the <code>virtualenv</code> for my project. I want my output to be in <strong>OUTPUT</strong> pane but whenever I am using <code>virtualenv</code> I can only get output in terminal only I am using python.</p> <p>Is there any way I can get outp...
<p>Because VS Code uses the built-in powershell of the computer, choosing to run the code will output the result in the terminal window by default.</p> <p><a href="https://i.stack.imgur.com/2IK4S.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2IK4S.png" alt="enter image description here" /></a></p> ...
how to use OUTPUT pane in vscode when working on virtualenv
python|visual-studio-code
0
42
1
72,932,939
72,932,939
0
true
2022-07-08T17:36:33.623Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to use OUTPUT pane in vscode when working on virtualenv<p>I have created the <code>virtualenv</code> for my project. I want my output to be in <strong>OU...
72,934,439
Can't bind to 'matCellDefTrackBy' since it isn't a known property of 'mat-cell'<p>How to use <code>trackBy</code> in angular material? I get the following error:</p> <blockquote> <p>Can't bind to 'matCellDefTrackBy' since it isn't a known property of 'mat-cell'</p> </blockquote> <p><strong>html:</strong></p> <pre><code...
<p>It is giving you an error because you have added it in the wrong place. It is the input attribute of the mat-table, not in the mat-cell.</p> <p><code>&lt;mat-table [dataSource]=&quot;data&quot; matSort ... [trackBy]=&quot;trackByFn&quot; &gt;</code></p>
Can't bind to 'matCellDefTrackBy' since it isn't a known property of 'mat-cell'
angular|angular-material
0
42
1
72,934,583
72,934,583
0
true
2022-07-11T06:21:38.140Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Can't bind to 'matCellDefTrackBy' since it isn't a known property of 'mat-cell'<p>How to use <code>trackBy</code> in angular material? I get the following er...
72,909,539
Different CSS Display on Ubuntu and Windows with same code and browser<p>I have encountered a curious thing: a part of a html code shows differently in the same browsers; I am guessing that it has to do with the operating system, but maybe not.</p> <p>Here are the screenshots. The code is an identical repository in git...
<p><strong>The issue was a missing font.</strong> We use Verdana and it was not installed on the ubuntu system. After installing verdana everything looked finally the same.</p>
Different CSS Display on Ubuntu and Windows with same code and browser
html|css|ubuntu|firefox
1
42
1
72,935,706
72,935,706
0
true
2022-07-08T09:44:15.650Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Different CSS Display on Ubuntu and Windows with same code and browser<p>I have encountered a curious thing: a part of a html code shows differently in the s...
72,935,742
How to add some minutes to a Date format<p>So I'm working with the Google Calendar API and because the required date format I´m using the next way to get the starting time:</p> <pre><code> const date1 = (mail._doc.Data[1].Date + 'T' + mail._doc.Data[1].Time ) const startingTime = new Date (date1) </code></pre> <p...
<p>You can use timestamp in <code>getTime()</code> and use this formula to extend the current timestamp</p> <pre><code>45 minutes x 60 seconds x 1000 miliseconds </code></pre> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-...
How to add some minutes to a Date format
javascript|html
0
42
2
72,935,820
72,935,820
0
true
2022-07-11T08:35:54.897Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to add some minutes to a Date format<p>So I'm working with the Google Calendar API and because the required date format I´m using the next way to get th...
72,934,253
How to use multi-threading in C++ binomial pricing?<p>I'm new to multithreading in C++, and I am not sure how to apply it. Can anyone help?</p> <p>I'm trying to make the <code>BinomialTree</code> function multithreaded,</p> <p>This is what I have tried so far:</p> <pre><code>thread th1(BinomialTree,S0, r, q, sigma, T,...
<p>From</p> <pre><code> BinomialTree tree(S0, r, q, sigma, T, N); double callPrice1 = tree.Price(europeanCall); </code></pre> <p>it looks like <code>BinomialTree tree(...)</code> is the definition of an object, and <code>tree.Price</code> is the actual function call. Your thread probably should be running the <c...
How to use multi-threading in C++ binomial pricing?
c++|multithreading|c++14
0
42
2
72,939,243
72,939,243
0
true
2022-07-11T05:56:02.363Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to use multi-threading in C++ binomial pricing?<p>I'm new to multithreading in C++, and I am not sure how to apply it. Can anyone help?</p> <p>I'm tryin...
72,939,590
Discord Bot doesnt recognize commands<p>I tried to code a Discord Bot but I cant even get the commands to work. Used replit.com as the IDE and to run the bot.</p> <p>This is the main.py:</p> <pre><code>import discord from discord.ext import commands import music cogs = [music] client = commands.Bot(command_prefix='?'...
<p>As @TheFungusAmongUs pointed out, your indentation is off. Your test function, and all others under the <code>music</code> class for that matter, should be on the same indentation level as <code>__init__()</code>.</p> <pre class="lang-py prettyprint-override"><code>import discord from discord.ext import commands imp...
Discord Bot doesnt recognize commands
python|discord|discord.py|command|bots
-1
42
1
72,943,218
72,943,218
0
true
2022-07-11T13:45:32.817Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Discord Bot doesnt recognize commands<p>I tried to code a Discord Bot but I cant even get the commands to work. Used replit.com as the IDE and to run the bot...
72,943,836
How to execute Scitools Understand commands from python<p>I want to execute Scitools Understand commands from python. It has its own shell which can be run using <code>$ ./und</code> and switches to <code>und&gt;</code>. I want to run its commands from python. Any idea how can I do that?</p>
<p>First you should consider using the Python API for Ada Understand. This will be more comfortable than talking to the Understand console.</p> <p>But using the console application is also possible. Ada Understand uses the standard input and output. Assuming you use Linux I have just a small demonstration for this.</p>...
How to execute Scitools Understand commands from python
python|shell|terminal|scitools|scitools-understand
0
42
1
72,944,190
72,944,190
0
true
2022-07-11T19:41:57.320Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to execute Scitools Understand commands from python<p>I want to execute Scitools Understand commands from python. It has its own shell which can be run u...
72,945,105
How to extract an id from id field in html to send it via axios in Vue?<p>I've no idea how to get the id of element in order to send it. I use Vue 2.</p> <p>** offers array i get from the API, so it is just an example.</p> <p>I need getting id dynamically in order to send a comment for the exact offer.</p> <p>Maybe it ...
<p>Great thanks to @don_aman!</p> <p>The final code will look like:</p> <pre><code>&lt;div v-for=&quot;offer in offers&quot;&gt; &lt;p&gt; {{ offer.description }}&lt;/p&gt; &lt;div class=&quot;form-group col-md-9&quot;&gt; &lt;b-form-textarea :id=&quot;`${offer.id}`&quot; placeholder=&quot;Commen...
How to extract an id from id field in html to send it via axios in Vue?
javascript|vue.js
-1
42
1
72,945,314
72,945,314
0
true
2022-07-11T22:03:02.833Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to extract an id from id field in html to send it via axios in Vue?<p>I've no idea how to get the id of element in order to send it. I use Vue 2.</p> <p>...
72,951,546
SAS proc transpose duplicate values issue<p>I need your help, please!</p> <p>I'm doing a proc transpose on SAS, from a table that as only unique lines. However it is returning the following error</p> <blockquote> <p>ERROR: The ID value &quot;'OUTROS_CANAIS_Fatura Eletrónica'n&quot; occurs twice in the same BY group. NO...
<p><code>Proc TRANSPOSE</code> <code>ID</code> statement turns data values into columns names when pivoting data. Column names are limited to 32 characters (and column labels are limited to 200 characters). Your ID values when truncated to 32 characters are the same value and you get the 'occurs twice' LOG message.</...
SAS proc transpose duplicate values issue
sas|proc-sql
0
42
2
72,952,222
72,952,222
0
true
2022-07-12T11:25:06.163Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: SAS proc transpose duplicate values issue<p>I need your help, please!</p> <p>I'm doing a proc transpose on SAS, from a table that as only unique lines. Howev...
72,956,813
Understanding np.ix_<p>Code:</p> <pre><code>import numpy as np ray = [1,22,33,42,51], [61,71,812,92,103], [113,121,132,143,151], [16,172,183,19,201] ray = np.asarray(ray) type(ray) ray[np.ix_([-2:],[3:4])] </code></pre> <p>I'd like to use index slicing and get a subarray consisting of the last two rows and the 3rd/4...
<p>So you want to make a slice of an array. The most straightforward way to do it is... slicing:</p> <pre><code>slice = ray[-2:,3:] </code></pre> <p>or if you want it explicitly</p> <pre><code>slice = ray[-2:,3:5] </code></pre> <p>See it explained in <a href="https://stackoverflow.com/questions/509211/understanding-sli...
Understanding np.ix_
python|arrays|numpy
0
42
1
72,957,122
72,957,122
0
true
2022-07-12T18:22:56.337Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Understanding np.ix_<p>Code:</p> <pre><code>import numpy as np ray = [1,22,33,42,51], [61,71,812,92,103], [113,121,132,143,151], [16,172,183,19,201] ray = n...
72,958,148
flutter macOS build error: accessing build database disk I/O error ** BUILD FAILED **<p>I received the following error while trying to build my Flutter project for MacOS,</p> <pre><code>error: accessing build database &quot;...&quot; disk I/O error ** BUILD FAILED ** </code></pre> <p>I tried running <code>flutter clea...
<p>If you have Google Drive Desktop syncing your desktop, make sure you don't sync the folder you're developing in. Either pause the sync or move the development folder outside of wherever Google Drive is syncing.</p>
flutter macOS build error: accessing build database disk I/O error ** BUILD FAILED **
flutter|macos|build
-1
42
2
72,958,149
72,958,149
0
true
2022-07-12T20:41:59.390Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: flutter macOS build error: accessing build database disk I/O error ** BUILD FAILED **<p>I received the following error while trying to build my Flutter proje...
72,961,082
How do I create bootstrap like menus for React with TailwindCSS or styled-compenents?<p>I am just getting into React and want to either use <code>TailwindCSS</code> or <code>styled-components</code>. I really love the idea of <code>styled-components</code> through am concerned with the lack of pre built functionality t...
<p>You can use TailwindCSS with React with <a href="https://tailwindcss.com/docs/guides/create-react-app" rel="nofollow noreferrer">this</a>.</p> <p>However first I would like you to try something from your own .</p> <p>You can find such similar examples at</p> <ul> <li><p><a href="https://tailwindui.com/components/mar...
How do I create bootstrap like menus for React with TailwindCSS or styled-compenents?
css|reactjs|tailwind-css|styled-components|bootstrap-5
0
42
1
72,961,237
72,961,237
0
true
2022-07-13T04:49:52Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How do I create bootstrap like menus for React with TailwindCSS or styled-compenents?<p>I am just getting into React and want to either use <code>TailwindCSS...
72,908,982
Airflow run python script connected via gcsfuse using PythonOperator<p>I want to run a Python script that is stored in this gcp directory:</p> <pre><code> /home/airflow/gcsfuse/dags/external/projectXYZ/test.py </code></pre> <p>I used the Bash Operator before to execute the script which works in theory but I'm getting s...
<p>So after some researching and testing I came to the conclusion that it is not possible to execute a python file which is located on a gcp storage bucket with the PytonOperator. If there is a python file in a gcp storage bucket which is connected to Airflow via gcsfuse then you need to use the BashOperator. If you wa...
Airflow run python script connected via gcsfuse using PythonOperator
python|airflow
0
42
1
72,963,385
72,963,385
0
true
2022-07-08T08:54:49.293Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Airflow run python script connected via gcsfuse using PythonOperator<p>I want to run a Python script that is stored in this gcp directory:</p> <pre><code> /h...
72,964,567
Custom URI regular expression<p>I would like to restrict access to my site using a custom URI regular expression.</p> <p>I would like to allow access for such URIs:</p> <pre><code>https://example.com/item/page/2/?wpv_view_count=258 https://example.com/item/page/3/?wpv_view_count=258 </code></pre> <p>and restrict conten...
<p>Based on the info in the question you want to match everything <em>except</em> requests which start with <code>/item/page/</code> so:</p> <pre><code>/item/(?!page/).+ </code></pre> <p>That is:</p> <pre><code>/item/ # literal string (?! # Begin negative lookahead page/ # literal string ) # End negative l...
Custom URI regular expression
regex|wordpress|memberpress
1
42
1
72,964,974
72,964,974
0
true
2022-07-13T10:13:14.863Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Custom URI regular expression<p>I would like to restrict access to my site using a custom URI regular expression.</p> <p>I would like to allow access for suc...
72,963,445
Textfield with different borders in SwiftUI<p>Is it possible to have a Textfield with a different bottom stroke? I want to have a thicker bottom stoke and the rest of the strokes need to be thin.</p> <p><a href="https://i.stack.imgur.com/akhqo.jpg" rel="nofollow noreferrer">Desired layout</a></p> <p>Thanks!</p>
<p>I believe you can do it with a custom extension and view(code is below the image). <a href="https://i.stack.imgur.com/TRsxq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TRsxq.png" alt="enter image description here" /></a></p> <pre><code>//main view import SwiftUI struct ContentView: View { @St...
Textfield with different borders in SwiftUI
swiftui
-5
42
1
72,966,141
72,966,141
0
true
2022-07-13T08:52:30.983Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Textfield with different borders in SwiftUI<p>Is it possible to have a Textfield with a different bottom stroke? I want to have a thicker bottom stoke and th...
72,968,098
Modify swiftui back button<p>I am trying to modify swiftui back button by giving it different word and color. But an extra back button still appear even i did not include it. How can i get rid of it and make my cancel button does the navigate back like the original back button?</p> <p><a href="https://i.stack.imgur.com...
<p>Hide default one explicitly, like</p> <pre><code>List { Text(&quot;Fish&quot;) Text(&quot;Octopus&quot;) Text(&quot;Shark&quot;) } .navigationBarBackButtonHidden(true) // &lt;&lt; here !! </code></pre>
Modify swiftui back button
swiftui|swiftui-navigationview
0
42
1
72,968,230
72,968,230
0
true
2022-07-13T14:36:08.457Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Modify swiftui back button<p>I am trying to modify swiftui back button by giving it different word and color. But an extra back button still appear even i di...
72,969,021
How can I edit the URL without changing pages?<p>I want to edit the URL of the page without changing to another. Something like this:</p> <pre><code>For Example: Original URL: localhost:3000/sagsdfgs New URL: localhost:3000/fgdgs </code></pre> <p>Same Host, different URL, same page. I think in react-router...
<p>Try out !</p> <pre><code>let url = window.location.toString(); window.location = url.replace(/function=login/, '/function=userloggedIn/'); </code></pre>
How can I edit the URL without changing pages?
javascript|reactjs|react-router-dom|react-router-v5
-5
42
1
72,969,248
72,969,248
0
true
2022-07-13T15:40:26.913Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I edit the URL without changing pages?<p>I want to edit the URL of the page without changing to another. Something like this:</p> <pre><code>For Exam...
72,968,875
ini-parser add key in a for loop<p>hi can anyone please help me? im trying to add a some keys with ini-parser, but i only get the last index of the loop.</p> <pre><code> var parser = new FileIniDataParser(); IniData data = parser.ReadFile(&quot;devreorder.ini&quot;); foreach (DeviceInstance di i...
<p>One thing that could really help you debug is to go from DeviceInstance enumeration to <code>List&lt;KeyValuePair&lt;string, string&gt;&gt;</code>, and then in a separate loop use the list of pairs to update the INI file.</p> <pre><code>var devenum = Manager.GetDevices(DeviceClass.GameControl, EnumDevicesFlags.Attac...
ini-parser add key in a for loop
c#|visual-studio|ini
0
42
1
72,969,563
72,969,563
0
true
2022-07-13T15:30:09.373Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: ini-parser add key in a for loop<p>hi can anyone please help me? im trying to add a some keys with ini-parser, but i only get the last index of the loop.</p>...
72,971,299
How to get access to child component?<p>I have a component that accepts a <code>config</code> object and redners form inside:</p> <pre><code> &lt;dynamic-form (submitted)=&quot;formSubmitted($event)&quot; [config]=&quot;config&quot;&gt; &lt;div class=&quot;actions&quot;&gt; &lt;button pButton type...
<p>Another way I could think of is <code>@ViewChild</code>, Using <code>@ViewChild</code> get access to the child component, and access form or any property of the component(example below).</p> <pre><code>@ViewChild(DynamicFormComponent) dynamicFormComponent: DynamicFormComponent; someAction() { console.log(this.dyn...
How to get access to child component?
angular
0
42
1
72,971,511
72,971,511
0
true
2022-07-13T18:54:45.310Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to get access to child component?<p>I have a component that accepts a <code>config</code> object and redners form inside:</p> <pre><code> &lt;dynamic-for...
72,966,708
Using BeautifulSoup to grab the second part of a URL and store that text in a variable<p>I have a list of urls that all have the same first part of the url. All the urls have 'ingredient-disclosure' with the product category coming after seperated by a /. I want to create a list that contains all the product categori...
<p>You might want to consider using a Python set to store the categories so you end up with one of each.</p> <p>Try the following example that uses their index page to get possible links:</p> <pre class="lang-py prettyprint-override"><code>import requests from bs4 import BeautifulSoup import csv url = &quot;https://ch...
Using BeautifulSoup to grab the second part of a URL and store that text in a variable
python|web-scraping|beautifulsoup
0
42
2
72,972,124
72,972,124
0
true
2022-07-13T12:55:36.540Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Using BeautifulSoup to grab the second part of a URL and store that text in a variable<p>I have a list of urls that all have the same first part of the url. ...
72,971,771
Yet another ecs-cli and Parameter Store question<p>Hoping I'll catch a break as a complete ECS <strong>NOOB</strong> =)</p> <p>So far I <em>think</em> I've managed to build out a good start, using ECS-CLI to create a cluster for two docker containers that go together and should run on the same instance (x2). However, a...
<p>See the <code>secrets</code> section in the <code>ecs-cli</code> documentation <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/cmd-ecs-cli-compose-ecsparams.html" rel="nofollow noreferrer">here</a>. You would configure ECS to pull those secrets from SSM Parameter Store and inject them as environ...
Yet another ecs-cli and Parameter Store question
amazon-ec2|docker-compose|amazon-ecs|aws-cli|aws-parameter-store
0
42
1
72,972,257
72,972,257
0
true
2022-07-13T19:41:10.060Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Yet another ecs-cli and Parameter Store question<p>Hoping I'll catch a break as a complete ECS <strong>NOOB</strong> =)</p> <p>So far I <em>think</em> I've m...
72,972,974
strange behaviour of promise looping indefinitely<p>Having this script:</p> <pre><code>const got = require(&quot;got&quot;); const getStream = require(&quot;get-stream&quot;); const app = require(&quot;express&quot;)(); async function httpGet() { console.log(&quot;getting response&quot;); let targetUrl = &quot;htt...
<blockquote> <p>what is going on?</p> </blockquote> <p>You've registered the <code>apiMiddleware</code> for all routes (<code>/</code>), that includes the <code>/api</code> route. So whenever you are requesting anything from the server, <code>apiMiddleware()</code> is getting called, which will - wait for it - make a h...
strange behaviour of promise looping indefinitely
javascript|promise|next.js
0
42
1
72,973,581
72,973,581
0
true
2022-07-13T21:46:41.643Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: strange behaviour of promise looping indefinitely<p>Having this script:</p> <pre><code>const got = require(&quot;got&quot;); const getStream = require(&quot;...
72,969,438
FindWindowA function does not yield the expected output in dart foreign function interface<p>The following dart code's expected output is the handle to the file explorer window but the output always comes out to be 0 even though the file explorer window does exist!</p> <pre><code>import 'package:ffi/ffi.dart'; import '...
<p><code>FindWindowA</code> does not take pointers to UTF-16 strings. The <code>A</code> in <code>FindWindowA</code> stands for &quot;ANSI&quot;, which is Microsoft's way of indicating that it uses strings with single-byte code units encoded in the system's local encoding. (This is also indicated by <a href="https://do...
FindWindowA function does not yield the expected output in dart foreign function interface
dart|user32|dart-ffi
0
42
1
72,976,237
72,976,237
0
true
2022-07-13T16:12:28.240Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: FindWindowA function does not yield the expected output in dart foreign function interface<p>The following dart code's expected output is the handle to the f...
72,955,985
Start Play Store app in Android using navigation component<p>I have an Android application with a button to find other games on Play Store. This button should open the Google Play Store application. I have a working version which uses the <code>startActivity()</code> function and <code>Intent</code> flags, just as ment...
<p>I figured it out in the end:</p> <pre><code> &lt;activity android:id=&quot;@+id/playstore&quot; android:label=&quot;Travel to PlayStore&quot; app:action=&quot;android.intent.action.VIEW&quot; app:data=&quot;@string/playstore_path&quot; app:targetPackage=&quot;com.android.vending&quot; ...
Start Play Store app in Android using navigation component
java|android|navigation|google-play
0
42
1
72,978,581
72,978,581
0
true
2022-07-12T17:06:14.523Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Start Play Store app in Android using navigation component<p>I have an Android application with a button to find other games on Play Store. This button shoul...
72,980,389
Reference field in the Interface subclass (Kotlin)<p>Is there a possible way to reference interface's static field in the class, which implements interface without importing, or calling referencing to interface explicitly.</p> <p>I want to do like this:</p> <pre><code>interface Globals { companion object { ...
<p>I'm pretty sure there's no way to do this in Kotlin.</p> <p>The closest I think you could get is to define your global stuff at the top level in its own package, and then import that package<code>.*</code> in files where you want to access them.</p> <pre><code>package com.foo.globals val mc get() = Bloomware.mc val...
Reference field in the Interface subclass (Kotlin)
java|kotlin|interface|field
1
42
1
72,981,272
72,981,272
0
true
2022-07-14T12:19:42.587Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Reference field in the Interface subclass (Kotlin)<p>Is there a possible way to reference interface's static field in the class, which implements interface w...
72,982,787
Postgres SELECT .. FOR UPDATE and WHERE clause order<p>I am trying to select some with lock and use select for update with where clause. Should I check in my service that this where actually worked? I mean, is this right order?</p> <ul> <li>Raw is selected using where clause</li> <li>Waiting for lock (in another transa...
<p>The query is guaranteed to return only rows that satisfy the <code>WHERE</code> condition.</p>
Postgres SELECT .. FOR UPDATE and WHERE clause order
sql|postgresql|locking|select-for-update
0
42
1
72,983,136
72,983,136
0
true
2022-07-14T15:08:56.453Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Postgres SELECT .. FOR UPDATE and WHERE clause order<p>I am trying to select some with lock and use select for update with where clause. Should I check in my...
72,957,219
Firebase data lost when updating document from multiple devices at same time<p>I am creating a angular web app for playing games.</p> <p>Users can create rooms to which an unlimited number of players can join.</p> <p>Rooms are saved as documents in firestore. Users and their states are saved in a array. Here is a simpl...
<p>So i found a solution to the problem.</p> <p>As described in my post, i didn't like the idea of a collection for players because of price and performance reasons. The suggestion to use <code>arrayUnion()</code> and <code>arrayRemove()</code> also did not satisfy me because that way i would not be able to update a en...
Firebase data lost when updating document from multiple devices at same time
angular|firebase|google-cloud-firestore
0
42
1
72,985,178
72,985,178
0
true
2022-07-12T19:03:22.050Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Firebase data lost when updating document from multiple devices at same time<p>I am creating a angular web app for playing games.</p> <p>Users can create roo...
72,986,213
rename batch of files<p>is there a way rename multiple items in a way that words switch place or move word to the end of the phrase/item name ?</p> <p><code>ABCD 12550.txt</code> into <code>12550 ABCD.txt</code></p> <p>im assuming this will start with <code>Rename-Item</code>, but what then?</p> <p>There is a space bet...
<p>Use <a href="https://docs.microsoft.com/powershell/module/microsoft.powershell.management/rename-item" rel="nofollow noreferrer"><code>Rename-Item</code></a> with a <a href="https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_script_blocks#using-delay-bind-script-blocks-with-para...
rename batch of files
powershell|rename|file-rename
1
42
1
72,986,638
72,986,638
0
true
2022-07-14T20:18:07.057Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: rename batch of files<p>is there a way rename multiple items in a way that words switch place or move word to the end of the phrase/item name ?</p> <p><code>...
72,974,287
How to create a separate and persistent command prompt session in C?<p>I am writing a C program that should able to take and run command prompt commands and then spit out the output to stdout. This is easy enough, as all it takes is <code>system(&quot;dir&quot;)</code> which works perfectly and does what you would thin...
<p>Each process has its own current directory, so the shell launched by <code>system</code> changes its current directory, but this has no effect on the calling process nor after the shell exits. The simplest way to achieve your goal is to parse certain commands and execute them locally:</p> <pre><code>#include &lt;cty...
How to create a separate and persistent command prompt session in C?
c|system
1
42
1
72,987,465
72,987,465
0
true
2022-07-14T01:37:45.513Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to create a separate and persistent command prompt session in C?<p>I am writing a C program that should able to take and run command prompt commands and ...
72,985,457
How to split a spark scala dataframe if number of rows are greater than threshold<p>I am trying to load a huge dataframe in to parts if the number of rows are greater than threshold. We have a threshold of 3 mil rows if the data frame has let's say 4 mil rows we want to load 3 mil rows first then load 1 mil in next loo...
<p>I wrote this piece of code, I hope you can understand that. I also wrote some comments to make it easier. Assume <code>csv</code> is your dataset:</p> <pre><code> // Assign an increasing ID to the column, so we know which rows to get csv = csv.withColumn(&quot;ID&quot;, expr(&quot;row_number() over (order by ...
How to split a spark scala dataframe if number of rows are greater than threshold
scala|apache-spark|databricks
0
42
2
72,987,577
72,987,577
0
true
2022-07-14T18:59:27.977Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to split a spark scala dataframe if number of rows are greater than threshold<p>I am trying to load a huge dataframe in to parts if the number of rows ar...
72,988,901
AddEventListener is not working for one element<p>AddEventListener is working fine for the first function but not triggering the second one, not even showing in the <code>console.log</code>. Please see where I'm going wrong?</p> <pre><code> &lt;ul id=&quot;nv&quot;&gt; &lt;li class=&quot;nvItem&quot;&gt;&lt;a ...
<p>You should take some time and read this about event listeners: <a href="https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener" rel="nofollow noreferrer">https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener</a></p> <p>They can not be attached to NodeLists <a href="http...
AddEventListener is not working for one element
javascript|addeventlistener
-2
42
1
72,988,962
72,988,962
0
true
2022-07-15T03:59:25.687Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: AddEventListener is not working for one element<p>AddEventListener is working fine for the first function but not triggering the second one, not even showing...
72,988,943
include unicode character within long regex<p>I have a regex:</p> <pre><code>/[a-zA-Zɑôáīúȑìêɑ͡iɑ͡uŋġḧn̐ƞġg̶̃čḣñt́d́ŕŕńȶv̈m̈ᵯǰɏæǽÿẇẏs̃śś̶]+/gm </code></pre> <p>which works great except there is one character I can't include (or that doesn't seem to work as expected when included). The character is (within) the last...
<p>It doesn't seem to be related to ś char. As you said your self, it's being captured. The reason for the splitting is the lack of another char: k̇.</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 pretty...
include unicode character within long regex
javascript|regex|unicode|regex-group|unicode-escapes
0
42
1
72,989,016
72,989,016
0
true
2022-07-15T04:06:35.603Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: include unicode character within long regex<p>I have a regex:</p> <pre><code>/[a-zA-Zɑôáīúȑìêɑ͡iɑ͡uŋġḧn̐ƞġg̶̃čḣñt́d́ŕŕńȶv̈m̈ᵯǰɏæǽÿẇẏs̃śś̶]+/gm </code></p...
72,989,850
CSS: Container is not aligned correctly in Safari<p>I have designed a banner for a website but there is an issue in the container placement on Safari browser (All other browsers are working fine).</p> <p>This is my intended style for the banner, the Prime Day text should be on the right as in the following image: <a hr...
<p>Maybe try <code>justify-content: flex-start;</code> or <code>justify-content: flex-end;</code>.</p> <p>While <code>left</code> and <code>right</code> are part of the spec, some browser don't support those values for <code>justify-content</code>. See <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/justify-c...
CSS: Container is not aligned correctly in Safari
html|css|safari|responsive-design
0
42
1
72,990,392
72,990,392
0
true
2022-07-15T06:30:50.207Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: CSS: Container is not aligned correctly in Safari<p>I have designed a banner for a website but there is an issue in the container placement on Safari browser...
72,991,408
How to reference a prefab<pre><code>public Gem gem; public int coins; public static SaveSystem instance {get; private set;} void Awake() { coins = gem.LastCoins; } </code></pre> <p>The &quot;Gem&quot; here means the Gem script and ofcourse the gems here are an prefabs , so how i can reference it in the inspector o...
<p>Without more context, the solution would be to drag the Prefab from the 'Project' Tab into the 'gem' field in the Inspector of the object with the script attached.</p>
How to reference a prefab
c#|unity3d|game-development
-2
42
1
72,991,676
72,991,676
0
true
2022-07-15T08:48:41.747Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to reference a prefab<pre><code>public Gem gem; public int coins; public static SaveSystem instance {get; private set;} void Awake() { coins = gem.L...
72,971,310
Why is my grep lookahead retrieving the same value twice?<p>Context: I am trying to use cat|grep lookahead to get the very next word in a file after grep finds the original targetword(including the colon), so I can set a variable to equal that word.</p> <p><strong>For example:</strong> TARGETWORD: NEXTWORD</p> <pre><co...
<p>I ended up finding the issue. Felt quite silly after figuring out what it was, but it was simply that there were two instances of my grep &quot;TARGETWORD&quot; instead of one in the file.txt so it was returning both values to the variable.</p>
Why is my grep lookahead retrieving the same value twice?
shell|grep|regex-lookarounds|csh|positive-lookahead
0
42
1
72,995,893
72,995,893
0
true
2022-07-13T18:56:39.253Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why is my grep lookahead retrieving the same value twice?<p>Context: I am trying to use cat|grep lookahead to get the very next word in a file after grep fin...
72,998,889
VBA Run time error 1004 Sort Method of Range class failed<p>I recently started working for a company that recently acquired another company that uses VBA and excel macros. I have next to no experience in these things but I've been tasked with fixing errors and while I've been able to debug some issues this one has got ...
<h2>Sort a (Table) Range</h2> <pre class="lang-vb prettyprint-override"><code>Option Explicit Sub SortRange() Dim ws As Worksheet: Set ws = ActiveSheet ' improve! ' If this worksheet is in the workbook containing this code, ' then in the VBE Project Explorer, you can identify its names, ' e.g. 'Sheet1...
VBA Run time error 1004 Sort Method of Range class failed
excel|vba
1
42
1
72,999,739
72,999,739
0
true
2022-07-15T19:37:41.960Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: VBA Run time error 1004 Sort Method of Range class failed<p>I recently started working for a company that recently acquired another company that uses VBA and...
72,945,801
How to correctly check if there's at least one outlier in a OHLC price series on Python? Pandas related<p>Say you have the following df called <code>df_trading_pair</code> which contains price series registered in the 30m timeframe:</p> <pre><code> Start Date Open Price High Price Low Price Close Pr...
<p>I finally managed to figure out a solution adjusted to my case, first I create a function called <code>outlier</code>:</p> <pre><code>def outlier(df, col_name): q1 = np.percentile(np.array(df[col_name].tolist()), 25) q3 = np.percentile(np.array(df[col_name].tolist()), 75) IQR = q3 - q1 ...
How to correctly check if there's at least one outlier in a OHLC price series on Python? Pandas related
python-3.x|pandas|statistics|outliers|trading
1
42
1
73,001,190
73,001,190
0
true
2022-07-12T00:08:36.963Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to correctly check if there's at least one outlier in a OHLC price series on Python? Pandas related<p>Say you have the following df called <code>df_tradi...
72,996,456
Heroku App, Created File with Python, how can I get the download url?<p>with my Flask App I created some files to the heroku filesystem. I know that the files are deleted by each dyno restart.</p> <p>In my html/javascript frontend I want to download it now via button.</p> <p>The question is, how can I get the download ...
<p>I got the solution for my problem:</p> <p>Python:</p> <pre><code>@app.route(&quot;/test&quot;, methods=['GET', 'POST']) def test(): if request.method == &quot;POST&quot;: print(&quot;hello1&quot;) f = open(&quot;myfile.txt&quot;, &quot;w&quot;) f.write(&quot;content&quot;) f.close() f = open(&q...
Heroku App, Created File with Python, how can I get the download url?
javascript|html|file|heroku|download
0
42
1
73,002,319
73,002,319
0
true
2022-07-15T15:38:04.463Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Heroku App, Created File with Python, how can I get the download url?<p>with my Flask App I created some files to the heroku filesystem. I know that the file...
73,002,884
Laravel Model primary key change error Illegal offset type<p>The illegal offset type shows this error when</p> <pre class="lang-php prettyprint-override"><code>protected $primaryKey = ['user_id']; public $incrementing = false; </code></pre>
<p>The <code>primaryKey</code> takes a string not <code>array</code> all you need is to change it to <code>string</code></p> <pre class="lang-php prettyprint-override"><code>protected $primaryKey = 'user_id'; </code></pre>
Laravel Model primary key change error Illegal offset type
laravel|model
1
42
1
73,002,925
73,002,925
0
true
2022-07-16T09:02:20.803Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Laravel Model primary key change error Illegal offset type<p>The illegal offset type shows this error when</p> <pre class="lang-php prettyprint-override"><co...
73,003,742
Laravel error: Missing required parameters for Route Error<p>I keep getting this error</p> <blockquote> <p>Illuminate  \  Routing  \  Exceptions  \  UrlGenerationException PHP 8.1.1 9.1.0 Missing required parameter for [Route: client.brand_clicked] [URI: brands/{brand_id}] [Missing parameter: brand_id].</p> </blockquot...
<p>My guess is that problem is this line:</p> <pre><code>&lt;a href=&quot;{{ route('client.brand_clicked',['brand_id'=&gt;$brand-&gt;ma_TH])}}&quot;&gt; </code></pre> <p>ad least one $brand object does not have &quot;ma_TH&quot; attribute. $brand-&gt;ma_TH is null or empty.</p>
Laravel error: Missing required parameters for Route Error
php|laravel|laravel-routing
1
42
1
73,003,942
73,003,942
0
true
2022-07-16T11:18:17.403Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Laravel error: Missing required parameters for Route Error<p>I keep getting this error</p> <blockquote> <p>Illuminate  \  Routing  \  Exceptions  \  UrlGener...
73,003,256
Why interface produces TS2345, but type not?<p>Let's have the following code:</p> <pre class="lang-js prettyprint-override"><code>type FooType = { foo: string } function fooType(a: FooType &amp; Partial&lt;Record&lt;string, string&gt;&gt;) { } function barType(a: FooType) { fooType(a) } interface FooInterface {...
<p>The issue seems to be tracked by <a href="https://github.com/microsoft/TypeScript/issues/15300" rel="nofollow noreferrer">https://github.com/microsoft/TypeScript/issues/15300</a>.</p> <p>Clarification by <a href="https://github.com/RyanCavanaugh" rel="nofollow noreferrer">https://github.com/RyanCavanaugh</a>:</p> <b...
Why interface produces TS2345, but type not?
typescript|types
1
42
1
73,004,870
73,004,870
0
true
2022-07-16T10:00:27.907Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why interface produces TS2345, but type not?<p>Let's have the following code:</p> <pre class="lang-js prettyprint-override"><code>type FooType = { foo: strin...
73,006,390
Python JSON/Dict Converting Key:Pair to Key=Pair<p>I am new to coding in Python and I am trying to convert key:pair's to key=pairs but only in certain parts of a JSON/Dictionary hierarchy.</p> <p>I currently have this:</p> <pre><code> {'AdditionalInfo': 'string', 'AmiVersion': 'string', 'Applications': [{ ...
<p>You can define your own wrapper over json, to produce the <code>__str__</code> of your requirements.<br /> Below an example program</p> <pre class="lang-py prettyprint-override"><code>import json class data: def __init__(self,text): self.text=text def __repr__(self): js=json.loads(self.text) ...
Python JSON/Dict Converting Key:Pair to Key=Pair
python|json|python-3.x|dictionary
-1
42
1
73,006,481
73,006,481
0
true
2022-07-16T17:37:25.257Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Python JSON/Dict Converting Key:Pair to Key=Pair<p>I am new to coding in Python and I am trying to convert key:pair's to key=pairs but only in certain parts ...
73,011,784
How can I send information with HTML to PHP without using forms?<p>I am trying to make an Instagram like website in order to enhance my coding skills. I am echoing the image and a form with a button in it if the posted picture belongs to the logged-in user to delete the posted picture.</p> <p>Here is the index.php:</p>...
<p>I'd be tempted, as I mentioned, use AJAX rather than several inline forms - it is easy enough to assign the relevant properties from the recordset to the image and use the image itself ( or other element ) to fire the ajax request. I could not test this but I hope it gives an idea</p> <pre><code>&lt;?php sessio...
How can I send information with HTML to PHP without using forms?
php|forms
1
42
1
73,012,143
73,012,143
0
true
2022-07-17T12:30:31.033Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I send information with HTML to PHP without using forms?<p>I am trying to make an Instagram like website in order to enhance my coding skills. I am e...
73,012,150
how can I write a query in mySQL which shows the average trips in a day?<p>I have a list of IDs and the detail of the trips they've taken. I want to see how many trips each ID takes in a day on average but I don't know how to write this query. The data I have in my table is something like this:</p> <div class="s-table-...
<p>First count the trips on each day for each id, then make the average over those counts.</p> <pre><code>select id, avg(trips) from (select id, count(*) as trips from trips -- where id in(1,2,3) group by id, date) t group by id </code></pre> <p>If you need to, you can uncomment the <code>where</code>...
how can I write a query in mySQL which shows the average trips in a day?
mysql
0
42
1
73,012,302
73,012,302
0
true
2022-07-17T13:23:32.823Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how can I write a query in mySQL which shows the average trips in a day?<p>I have a list of IDs and the detail of the trips they've taken. I want to see how ...
73,012,454
R list keeps returning NAs, how can I fix?<p>I'm not really sure why I'm receiving multiple NA values from this loop despite getting the correct values when I manually multiply the individual list values, and would appreciate any help fixing this code.</p> <pre><code>q = 5 B_theta = 7.32 B_B = c(1,2,3,4,5,6,7,8,9,10) Z...
<p>2 options. The first one is to append elements to a vector such as below:</p> <pre><code>x_t = function (B_theta,B_B,Z_t){ XX_t = c() for (k in 1:q){ XX_t &lt;- c(XX_t, B_theta*B_B[k]*Z_t[k]) } return(XX_t) } big_I = x_t(B_theta,B_B,Z_t) &gt; big_I [1] 7.32 29.28 65.88 117.12 183.00 </code>...
R list keeps returning NAs, how can I fix?
r|list|statistics
1
42
2
73,012,527
73,012,527
0
true
2022-07-17T14:05:24.833Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: R list keeps returning NAs, how can I fix?<p>I'm not really sure why I'm receiving multiple NA values from this loop despite getting the correct values when ...
73,012,560
Need an EMail with HTML table using filtered google sheet data<p>I need to send an email to the recipients based on certain criteria. I have done this code about 200 mails received. Loop is not been ending and the filtering function also didn't work. The complete table has been received. Kindly help me with this.</p> <...
<p>Try</p> <pre><code>function createTable() { var sheet1 = SpreadsheetApp.getActiveSpreadsheet().getSheetByName(&quot;Sheet1&quot;); const dataRange = sheet1.getRange(&quot;A2:AH&quot;); var criterias = [&quot;Report Pending&quot;, &quot;Site Visit Pending&quot;, &quot;Query Raised&quot;] var backgrounds = da...
Need an EMail with HTML table using filtered google sheet data
google-apps-script|google-sheets|html-email
0
42
1
73,013,372
73,013,372
0
true
2022-07-17T14:18:13.360Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Need an EMail with HTML table using filtered google sheet data<p>I need to send an email to the recipients based on certain criteria. I have done this code a...
73,013,563
How slowly move object in function with help Vector2.Lerp in unity?<p>How can i stay in a function for a certain amount of time? I know about coroutines, so i should call coroutines every times for simple things? For example: when i press the key, at that time call function, which slowly move the character. The functio...
<p>Yeah, depending on your final goal your could use a coroutine.</p> <p>You could also want to use a float timer :</p> <ul> <li>When your press your key, set that timer to whaterver x seconds you want</li> <li>In your Update loop, move your character by a tiny bit and remove Time.deltaTime from your timer</li> </ul> <...
How slowly move object in function with help Vector2.Lerp in unity?
c#|unity3d
-1
42
2
73,015,393
73,015,393
0
true
2022-07-17T16:35:32.557Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How slowly move object in function with help Vector2.Lerp in unity?<p>How can i stay in a function for a certain amount of time? I know about coroutines, so ...
73,016,203
R Shiny unable to start png device after running a few hours<p>I have had various R Shiny applications running successfully (some for over a year) on a Windows PC serving a local intranet network.</p> <p>In the last couple of weeks, the applications started to fail loading plots with the error:</p> <blockquote> <p>unab...
<p>I have seen similar behaviour using a ubuntu shiny server and it was traced back to running out of system resources (disk space in my case) which ment that temporary files could not be created.</p> <p>Your error message ... <em>&quot;unable to open file 'C:\Users\jgerla03\AppData\Local\Temp\Rtmp4QtNQ2\file91819b6155...
R Shiny unable to start png device after running a few hours
r|shiny|png
0
42
1
73,016,264
73,016,264
0
true
2022-07-18T00:09:34.693Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: R Shiny unable to start png device after running a few hours<p>I have had various R Shiny applications running successfully (some for over a year) on a Windo...
73,016,304
How can I iterate through rows of web form using selenium?<p>Please I have a web form that I use selenium script to autofill in data row by row. Each time I run <strong>add_event_button</strong>, a new row is created, then I autofill the <strong>date_field</strong> to the <strong>remarks_field</strong>. All the fields ...
<pre><code>for i in range(2,21): remarks_field = wait.until(EC.element_to_be_clickable((By.XPATH, f&quot;//*[@id='WGItem06_voyage_log-{i}_4']&quot;))) remarks_field.send_keys(remarks_data_col[i-1]) </code></pre> <p>Did you mean looping it like so and using f string to access the element with that xpath.</p>
How can I iterate through rows of web form using selenium?
python|selenium|for-loop|range|nested-for-loop
0
42
1
73,017,563
73,017,563
0
true
2022-07-18T00:33:31.530Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I iterate through rows of web form using selenium?<p>Please I have a web form that I use selenium script to autofill in data row by row. Each time I ...
73,018,590
Program crash when using boost::iter_split?<p>my main function in vs2022-v143 and boost-v1.79:</p> <pre><code> struct func_info { func_info(const std::wstring&amp; _var, const std::wstring&amp; _name) :var(_var), func_name(_name) { } std::wstring var; std::wstring func_name; std::vec...
<p>You have <a href="https://en.wikipedia.org/wiki/Undefined_behavior" rel="nofollow noreferrer">Undefined Behavior</a> elsewhere. The problem is not in the code shown (modulo obvious typos):</p> <p><a href="https://godbolt.org/z/Gfr1s59hs" rel="nofollow noreferrer">Live On MSVC as well as GCC with ASAN</a>:</p> <pre><...
Program crash when using boost::iter_split?
c++|boost|split
0
42
1
73,021,254
73,021,254
0
true
2022-07-18T07:22:47.593Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Program crash when using boost::iter_split?<p>my main function in vs2022-v143 and boost-v1.79:</p> <pre><code> struct func_info { func_info(const...
72,991,897
Quarkus k8s uses wrong properties file<p>I have an odd one I think. I have a service that has three different config files for prod and staging and one as a base as well as dev:</p> <p><a href="https://i.stack.imgur.com/QwR9W.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QwR9W.png" alt="enter image...
<p>This morning I restarted the deployment and it now appears to be working. I suspect there was some delay in our registry but I can not say for certain</p>
Quarkus k8s uses wrong properties file
kubernetes|quarkus|quarkus-rest-client
1
42
1
73,022,212
73,022,212
0
true
2022-07-15T09:30:50.337Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Quarkus k8s uses wrong properties file<p>I have an odd one I think. I have a service that has three different config files for prod and staging and one as a ...
73,023,859
Exception in thread "main" java.util.InputMismatchException in Java<p>when i try to run below error code but getting error, i also used &quot;givenArray[i] = sc.next(); or givenArray[i] = sc.nextLine(); &quot; but still failing. I tried many different ways but still got the same error. it seems Scanner is unable to re...
<p>You should enter array elements one by one. Do not enter with comma separated. It will be considered as String not int.</p> <p>Else, remove the for loop and get the array elements as comma separated using nextLine(), then split the input string based on ',' using string.split(&quot;,&quot;) which returns an array.</...
Exception in thread "main" java.util.InputMismatchException in Java
java
0
42
1
73,026,324
73,026,324
0
true
2022-07-18T14:19:50.823Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Exception in thread "main" java.util.InputMismatchException in Java<p>when i try to run below error code but getting error, i also used &quot;givenArray[i] ...
73,026,878
Component is being rendered at the bottom of the page when its not supposed to<p>I have two files, one where an API call is made that returns a <code>div</code> with a 3rd party <code>&lt;script&gt;</code> tag, but when rendering it on another page it's below all components for some reason.</p> <p>Here is the component...
<p>If anyone has this issue in the future this is what i did</p> <p>so in the Component im trying to render i change all <code>document.body.append...</code> to <code>document.getElementById('mycustomdiv').append...</code> and works fine now! Then i wrapped the imported component on the other component inside the div ...
Component is being rendered at the bottom of the page when its not supposed to
javascript|reactjs
0
42
1
73,027,291
73,027,291
0
true
2022-07-18T18:19:24.050Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Component is being rendered at the bottom of the page when its not supposed to<p>I have two files, one where an API call is made that returns a <code>div</co...
73,002,345
How can I extract only executable path and args from cmdline in linux?<p>I am writing a python application, which uses Popen to start other exectutables. I then use Psutil to collect information about them.</p> <p>One of the things I need is the exact CMD I used to start the application. For example:</p> <pre><code>&gt...
<p>Looks like I would have to answer my own question. I wished there was a better way to do this but looks like there isn't.</p> <p>The workaround I ended up doing assumes that the cmdline list ends with the arguments of the executable, preceded by the absolute executable path (which I know). So I use this to extract i...
How can I extract only executable path and args from cmdline in linux?
python|linux|psutil|musl|cmdline-args
0
42
1
73,027,493
73,027,493
0
true
2022-07-16T07:23:37.377Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I extract only executable path and args from cmdline in linux?<p>I am writing a python application, which uses Popen to start other exectutables. I t...
73,028,637
Class imported in the same package is not being recognized<p>I have these two java files: <code>Xls_Reader.java</code> and <code>WriteXMLFile.java</code> in the same directory called <code>filegeneration</code>. I am trying to use <code>Xls_Reader</code> class in <code>WriteXMLFile.java</code> so I did this</p> <pre><c...
<p>In order to let the compiler knows about the classes to be compiled, you need to specify the classes explicitly. The compiler won't use the same folder to know that. You can read more about how ClassPath works here (<a href="https://docs.oracle.com/javase/tutorial/essential/environment/paths.html" rel="nofollow nore...
Class imported in the same package is not being recognized
java
0
42
1
73,029,386
73,029,386
0
true
2022-07-18T21:06:43.453Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Class imported in the same package is not being recognized<p>I have these two java files: <code>Xls_Reader.java</code> and <code>WriteXMLFile.java</code> in ...
73,028,792
Dynamically update jQuery/CSS objects<p>I have a program that creates 2 concentric circles by taking the user input for outer diameter for outer circle and circle thickness for inner circle. Occasionally, I will create a large outer diameter (50 inches) with a small thickness (2 inches) giving me the image below.</p> <...
<p>I don't know if this will be helpful, but if you call all three input methods as function when any one of the changes it seam to work much better</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 prettyp...
Dynamically update jQuery/CSS objects
javascript|html|jquery|css
0
42
1
73,029,869
73,029,869
0
true
2022-07-18T21:23:16.127Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Dynamically update jQuery/CSS objects<p>I have a program that creates 2 concentric circles by taking the user input for outer diameter for outer circle and c...
73,029,851
why the starvation is caused by notifyAll()?<p>Here is my code,</p> <pre class="lang-java prettyprint-override"><code>class Shared { private static int index = 0; public synchronized void printThread() { try { while(true) { Thread.sleep(1000); System.out.print...
<p>This isn't 'starvation'. Your 5 threads are all doing nothing. They all want to 'wake up' - <code>notify()</code> will wake up an arbitrary one. It is neither unreliably random: The JMM does not ascribe an order to this, so one of them will wake up, you can't rely on it being random (do not use this to generate rand...
why the starvation is caused by notifyAll()?
java|multithreading|wait|notify|starvation
0
42
1
73,030,033
73,030,033
0
true
2022-07-19T00:19:44.140Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: why the starvation is caused by notifyAll()?<p>Here is my code,</p> <pre class="lang-java prettyprint-override"><code>class Shared { private static int i...
73,027,667
Can I remove .subscribe() from map by using another RxJS operator?<p>Is there an alternative to doing .subscribe() in map?</p> <pre><code>return this.http.patch&lt;any&gt;(URL, { test: true }).pipe( tap(_ =&gt; this.nextSomething$.next({})), filter(_ =&gt; this.filter), map(resp =&gt; { this.someObser...
<p>If your observable is not completing when you switch to using the flattening operator then that means the target observable in that operator isn't completing. So you might want to check what's going on in <strong>someObservable</strong> that causes it to never complete. It is likey that behavior isn't desirable.</...
Can I remove .subscribe() from map by using another RxJS operator?
rxjs
0
42
2
73,038,044
73,038,044
0
true
2022-07-18T19:32:24.843Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Can I remove .subscribe() from map by using another RxJS operator?<p>Is there an alternative to doing .subscribe() in map?</p> <pre><code>return this.http.pa...
72,864,091
how to work locally with laravel when third-party api need only production IP to whitelist?<p>The scenario like this, I deployed my laravel app to heroku. The third-party api needs my production IP for whitelisting in order to use their resources. Heroku doesn't provide ip, I use add on to get ip. It connected ok betwe...
<p>You need to set the QUOTAGUARDSTATIC_URL environment variable to what is in the QuotaGuard Admin dashboard or in Heroku's heroku config -a APPNAME command.</p>
how to work locally with laravel when third-party api need only production IP to whitelist?
laravel|heroku|quotaguard
0
42
1
73,042,584
73,042,584
0
true
2022-07-05T04:41:22.993Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to work locally with laravel when third-party api need only production IP to whitelist?<p>The scenario like this, I deployed my laravel app to heroku. Th...
72,862,564
Flask Migrate - IndexError on migration<p>I'm using Flask Migrate with SQLite3. I have the following upgrade script:</p> <pre><code>from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'e0b1170b3c02' down_revision = '9fac07025424' branch_labels = None depends_on = None ...
<p>I commented out</p> <pre><code>batch_op.drop_constraint(None, type_='foreignkey') </code></pre> <p>and that seemed to fix it.</p>
Flask Migrate - IndexError on migration
python|sqlite|sqlalchemy|alembic|flask-migrate
-1
42
1
73,080,049
73,080,049
0
true
2022-07-04T22:42:12.660Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Flask Migrate - IndexError on migration<p>I'm using Flask Migrate with SQLite3. I have the following upgrade script:</p> <pre><code>from alembic import op im...
73,001,521
How to get prevState value or all object in useState in React?<p>In trek_tours i have an array and inside array i have define object and inside object their are some array and the format is in below</p> <pre><code>treks_tours[ { title: &quot;Everest Base Camp&quot;, Prices: [ &quot;Price Start from 300 per/pers...
<pre><code>{treks_tours.slice(0, 3).map((trek_tour, key) =&gt; { &lt;p className=&quot;text-lg text-black&quot;&gt; Starting from : $ {trek_tour.Prices[0].split(&quot; &quot;)[3]} &lt;/p&gt; ); })} </code></pre>
How to get prevState value or all object in useState in React?
reactjs|react-hooks
1
42
3
73,089,471
73,089,471
0
true
2022-07-16T04:28:13.190Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to get prevState value or all object in useState in React?<p>In trek_tours i have an array and inside array i have define object and inside object their ...
72,893,507
Understanding SVN's WebDAV client protocol<p>I am trying to use <a href="https://github.com/thomfang/svnjs" rel="nofollow noreferrer">svnjs</a> to implement a client SVN on the web. However, the library is not finished, and doesn't work at all. So I've decided to fix it.</p> <p>For example, when I add a file and commit...
<p>Thanks to @bahrep 's comment, i found some documentation about how WebDAV/DeltaV works. Here are the links, if anyone is interested:</p> <ul> <li>WebDAV: <a href="http://www.webdav.org/specs/rfc4918.html" rel="nofollow noreferrer">http://www.webdav.org/specs/rfc4918.html</a></li> <li>DeltaV: <a href="http://www.webd...
Understanding SVN's WebDAV client protocol
http|svn|webdav
1
42
1
73,248,660
73,248,660
0
true
2022-07-07T06:59:40.910Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Understanding SVN's WebDAV client protocol<p>I am trying to use <a href="https://github.com/thomfang/svnjs" rel="nofollow noreferrer">svnjs</a> to implement ...
72,894,672
Remove duplicate value on nested list python<p>I have a problem here when I want to remove duplicate in a list that has a nested list, how can I remove the duplicate value from list? What I got here from my script, it can remove a duplicate, but the nested list has a different result from what I expect.</p> <p>This is ...
<p>You need to initialize <code>result = []</code> inside the loop:</p> <pre><code>sam_list = [[11, 17, 11, 13, 13, 15, 16, 11], [4, 7, 11, 34, 4, 7, 11, 6], [1, 6, 11, 13, 13, 4, 1, 6]] hasil = [] for item in sam_list: result = [] print(&quot;START&quot;) for x in item: print(x, result) if...
Remove duplicate value on nested list python
python|duplicates|nested-lists
0
42
3
72,894,764
72,894,764
0
true
2022-07-07T08:35:10.420Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Remove duplicate value on nested list python<p>I have a problem here when I want to remove duplicate in a list that has a nested list, how can I remove the d...
72,794,642
ReactJS Array Parse inside Object<p>I have a object</p> <pre><code>{ &quot;id&quot;: 1, &quot;collectionName&quot;: &quot;dsa&quot;, &quot;collectionItemsID&quot;: [ &quot;ad&quot;, &quot;deneme1&quot; ], &quot;ownerOfCollection&quot;: &quot;117961395738439786389&quot;, &quot;cre...
<h2>Solution</h2> <p>If you want have each entry in <code>collectionItemsID</code> to have it's own link, you need to use the <code>map</code> method of an array</p> <pre><code>collection.collectionItemsID.map(function(itemID) { return &lt;a href={`/${itemID}`}&gt;{itemID}&lt;/a&gt; ...
ReactJS Array Parse inside Object
javascript|reactjs
1
42
3
72,794,709
72,794,709
0
true
2022-06-29T00:54:33.577Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: ReactJS Array Parse inside Object<p>I have a object</p> <pre><code>{ &quot;id&quot;: 1, &quot;collectionName&quot;: &quot;dsa&quot;, &quot;collec...
72,791,284
I want my to - do app to put a line through on each task when the complete button is pressed<p>I have created a function that completes a task when the user clicks the complete button, however, I am using a for loop to loop through the array so that it can mark it off.</p> <p>Currently, what it is doing no matter what ...
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>// variables object const el = { form: document.querySelector(".form"), input: document.querySelector(".user-input"), li...
I want my to - do app to put a line through on each task when the complete button is pressed
javascript
2
42
1
72,791,351
72,791,351
0
true
2022-06-28T18:09:42.267Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: I want my to - do app to put a line through on each task when the complete button is pressed<p>I have created a function that completes a task when the user ...
72,819,852
function in page.evaluate() is not working/being executed - Puppeteer<p>My Code below tries to collect a bunch of hyper links that come under the class name &quot;.jss2&quot;. However, I do not think the function within my page.evaluate() is working. When I run the code, the link_list const doesn't get displayed.</p> <...
<pre><code>const link_list = await page.$$eval('.classname', links =&gt; links.map(link =&gt; link.href)); </code></pre> <p>Found the answer here: <a href="https://stackoverflow.com/questions/57504201/puppeteer-unable-to-extract-elements-on-certain-websites-using-page-evaluate">PUPPETEER - unable to extract elements on...
function in page.evaluate() is not working/being executed - Puppeteer
javascript|node.js|puppeteer
0
42
1
72,824,286
72,824,286
0
true
2022-06-30T17:32:19.887Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: function in page.evaluate() is not working/being executed - Puppeteer<p>My Code below tries to collect a bunch of hyper links that come under the class name ...
72,825,408
GCP VM Startup script to determine VMs serving traffic<p>I have a VM startup script which is supposed to show me which instance behind the load balancer is serving the traffic. Unfortionately the variable is not working correctly. Below is the simple script:</p> <pre><code> #! /bin/bash sudo apt-get update s...
<p>You need to remove sudo from the six steps it will be like the script below.</p> <p><code>vm_hostname=&quot;$(curl -H &quot;Metadata-Flavor:Google&quot; \ http://169.254.169.254/computeMetadata/v1/instance/hostname)&quot;</code></p> <p><strong>Your final script will be:</strong></p> <pre><code>#! /bin/bash sudo apt-...
GCP VM Startup script to determine VMs serving traffic
google-cloud-platform|google-compute-engine
0
42
1
72,827,200
72,827,200
0
true
2022-07-01T06:55:15.850Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: GCP VM Startup script to determine VMs serving traffic<p>I have a VM startup script which is supposed to show me which instance behind the load balancer is s...
72,913,139
How to differentiate Snowflake unistore table in information schema?<p>I created a table with &quot;create hybrid table&quot; and I expected to be able to tell the difference between this table and regular tables by querying information_schema.tables, but I do not see anything that would allow me to tell the difference...
<p>Look for column <em>is_hybrid</em> in SHOW TABLES. I would expect a similarly named column in INFORMATION_SCHEMA.TABLES.</p> <p><a href="https://i.stack.imgur.com/Pc5J1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Pc5J1.png" alt="SHOW TABLES" /></a></p>
How to differentiate Snowflake unistore table in information schema?
snowflake-cloud-data-platform
0
42
1
72,914,449
72,914,449
0
true
2022-07-08T14:44:30.283Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to differentiate Snowflake unistore table in information schema?<p>I created a table with &quot;create hybrid table&quot; and I expected to be able to te...
72,981,605
Update but only what is different (what've changed)<p>I've tried something like this:</p> <pre><code>UPDATE Person SET Name = @Name, Phone = @Phone, Email = @Email, Status = @Status WHERE Id = @Id AND Name != @Name AND Phone != @Phone AND Email != @Email AND Status != @Status; </code></pre> <p>But isn't working.</p>
<p>If <code>Id</code> is your primary key then you probably want:</p> <pre><code>UPDATE Person SET Name = @Name, Phone = @Phone, Email = @Email, Status = @Status WHERE Id = @Id AND (Name != @Name OR Phone != @Phone OR Email != @Email OR Status != @Status); </code></pre> <p>But there generally isn't any harm in up...
Update but only what is different (what've changed)
sql-server|sql-update
0
42
2
72,981,681
72,981,681
0
true
2022-07-14T13:48:32.613Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Update but only what is different (what've changed)<p>I've tried something like this:</p> <pre><code>UPDATE Person SET Name = @Name, Phone = @Phone, Email =...
73,005,629
not able to understand 2nd while loop in code below-:<pre class="lang-py prettyprint-override"><code>def summer_of69(arr): total =0 add = True for num in arr: while add: if num!= 6: total+=num break else: add = False whi...
<p>In order to understand how any complex system of loops works you just have to go through the code step by step and evaluate the logic the way the computer does.</p> <p>When <code>num</code> becomes <code>6</code>, think about what happens when it goes through both <code>while</code> loops.</p> <p>The first <code>whi...
not able to understand 2nd while loop in code below-:
python|python-3.x|windows
-1
42
1
73,005,732
73,005,732
0
true
2022-07-16T15:52:03.173Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: not able to understand 2nd while loop in code below-:<pre class="lang-py prettyprint-override"><code>def summer_of69(arr): total =0 add = True fo...
73,027,459
If cell on Sheet4 is not blank/empty, then make Values of cells on Sheet1 = Values of cells on Sheet4<p>Trying to get VBA to test if A2 on Sheet4 is not blank/empty, and if so, in other words when I paste there, to make Values of specific cells on Sheet1 to be same as Values of specific cells on Sheet4. But getting thi...
<h2>A Worksheet Change: Write Values to Another Worksheet</h2> <ul> <li>Note that your posted image is showing the code names, not the (tab) names of the worksheets, the ones in parentheses.</li> <li>Also, the image is clearly showing that the worksheet, whose code name is <code>Sheet1</code> is not named <code>Sheet1<...
If cell on Sheet4 is not blank/empty, then make Values of cells on Sheet1 = Values of cells on Sheet4
excel|vba
1
42
2
73,027,896
73,027,896
0
true
2022-07-18T19:11:20.843Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: If cell on Sheet4 is not blank/empty, then make Values of cells on Sheet1 = Values of cells on Sheet4<p>Trying to get VBA to test if A2 on Sheet4 is not blan...
73,023,251
Calculate the mean of column A based on a 2 minute time window in Datetime Column<p>I want to take the average power computed for 2 minute windows based on my time column t which is set as index.</p> <pre><code> power cadence t 00:00:00 171.0 74.0 00:00:01 229.0 71.0 00:00:02 229.0 71...
<p>When you reduce the data to 2 minute windows, the frequency of the average data would switch to 2 minutes instead of 1 second.</p> <p>You can use resample to get the averages.</p> <p>Here is a small example</p> <pre class="lang-py prettyprint-override"><code>power = np.random.rand(600) cadence = np.random.rand(600) ...
Calculate the mean of column A based on a 2 minute time window in Datetime Column
python
0
42
1
73,024,435
73,024,435
0
true
2022-07-18T13:37:34.183Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Calculate the mean of column A based on a 2 minute time window in Datetime Column<p>I want to take the average power computed for 2 minute windows based on m...
73,030,363
Moving data from Hadoop to Teradata<p>I was asked to pull data from Hadoop (Impala or Hive) and insert it into Teradata. I tried to pull the data as csv and insert it into Teradata using the python script. However, every time I tried to download the csv, it failed (it says Network error, so might be an issue with my in...
<p>Yes, you can use <code>sqoop export</code>. You need to setup jdbc driver first and then you are good to go. Hopefully your admin can help here.</p> <pre><code>sqoop export --connect jdbc:teradata://server-name:server-port/database-server-name --username uname --password pwd --table Teradata_table --hcatalog-databas...
Moving data from Hadoop to Teradata
sql|hadoop|hive|teradata|impala
1
42
1
73,034,094
73,034,094
0
true
2022-07-19T02:06:18.137Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Moving data from Hadoop to Teradata<p>I was asked to pull data from Hadoop (Impala or Hive) and insert it into Teradata. I tried to pull the data as csv and ...
72,858,906
ORA-00933: SQL command not properly ended ORA-06512: at "SYS.DBMS_XMLGEN"<p>I can compile the below code successfully:</p> <pre><code>open po_service_characteristic for select x.* from XMLTable( '/ROWSET/ROW/*' passing DBMS_XMLGEN.GETXMLType('SELECT b.equipment_type type,...
<p>You need to add escaped quotes around any string values you are embedding. If you print out the SQL string you'll see that, with the values you are using, it ends up as invalid SQL - exactly what error you get will depend on the values, and which are numeric or strings.</p> <p>If the IDs are numeric and other things...
ORA-00933: SQL command not properly ended ORA-06512: at "SYS.DBMS_XMLGEN"
xml|oracle|plsql
0
42
1
72,859,438
72,859,438
0
true
2022-07-04T15:15:59.893Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: ORA-00933: SQL command not properly ended ORA-06512: at "SYS.DBMS_XMLGEN"<p>I can compile the below code successfully:</p> <pre><code>open po_service_charact...
72,865,996
Facing problems in my first time handling CMake, Third party(header only) libraries<p>I want to use the following library <a href="https://github.com/gmeuli/caterpillar" rel="nofollow noreferrer">https://github.com/gmeuli/caterpillar</a></p> <p>It's documentation says that it's a header-only library, and that I should ...
<p>Firstly, modern cmake recommends <code>target_include_directories()</code> instead of old <code>include_directories()</code> for better scope management.</p> <p>Actually <code>&lt;caterpillar/caterpillar.hpp&gt;</code> is not in <code>$PROJECT_SOURCE_DIR/lib</code> directory. That's why your code not works.</p> <p>C...
Facing problems in my first time handling CMake, Third party(header only) libraries
c++|linux|cmake|build|header-only
0
42
1
72,866,174
72,866,174
0
true
2022-07-05T08:05:41.690Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Facing problems in my first time handling CMake, Third party(header only) libraries<p>I want to use the following library <a href="https://github.com/gmeuli/...
72,899,399
Problema Datatable PDF<p>I am building a Datatable and everything is fine, except for one small detail. Although I have the PDF button apparently fine, the PDF option does not appear, only the options to copy, print and Excel appear. Any idea why?</p> <p>This is my code:</p> <pre><code>$(document).ready(function () { ...
<p>Where are the PDFMake library and related VFS Fonts library? See the <a href="https://datatables.net/extensions/buttons/examples/html5/pdfPage.html" rel="nofollow noreferrer">example</a> - specifically, look at the list of libraries shown in the JavaScript tab on that page:</p> <blockquote> <p><em>In addition to the...
Problema Datatable PDF
javascript|datatable
0
42
1
72,900,611
72,900,611
0
true
2022-07-07T14:14:30.080Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Problema Datatable PDF<p>I am building a Datatable and everything is fine, except for one small detail. Although I have the PDF button apparently fine, the P...
72,921,812
Return day of the week of 2016 using python<pre><code>def solution(a, b): # date date_31 = 31 date_30 = 30 date_29_yun = 29 # day of the week(요일) d_o_w = ['THU','FRI','SAT','SUN','MON','TUE','WED'] cnt_date = 0 # 7로 나눠서 나머지를 요일의 인덱스로 잡는 아이디어 # 1/2분기로 계산하는 아이디어 if a...
<p>If the <code>calendar</code> module is allowed then you can use this:</p> <pre class="lang-py prettyprint-override"><code>from calendar import weekday def get_day(a, b): return ['MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT', 'SUN'][weekday(2016, a, b)] print(get_day(5, 24)) # TUE print(get_day(3, 20)) # SUN print...
Return day of the week of 2016 using python
python
-1
42
1
72,923,069
72,923,069
0
true
2022-07-09T13:37:16.370Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Return day of the week of 2016 using python<pre><code>def solution(a, b): # date date_31 = 31 date_30 = 30 date_29_yun = 29 # day of...
72,898,298
Get value and element id from input on button click<p>I have many repeats of this code below where a value in the input needs a calculation made to it on button click. Please can someone tell me how to get the value and replace it with a new one or get the id of the input element and I can update it. I have tried var...
<p>Your example code <code>alert($(this).parent().prev().attr('id'));</code> doesn't go UP into the appropriate <code>&lt;td&gt;</code> element, so it's looking for the <code>id</code> of the <code>&lt;td&gt;</code> itself.</p> <p>Change it to the following, and it should work...</p> <pre><code>alert($(this).parent().p...
Get value and element id from input on button click
jquery
0
42
4
72,898,370
72,898,370
0
true
2022-07-07T13:01:07.013Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Get value and element id from input on button click<p>I have many repeats of this code below where a value in the input needs a calculation made to it on but...
72,821,915
Why comparing the length of sets to remove duplicates in a doubly linked list doesn't work? (python)<p>so recently I was learning python data structure, more specifically, the &quot;doubly linked list&quot;. I came across a problem where I need to write code to remove duplicates in a doubly-linked list and I tried to u...
<p>There are two issues with your code. The first issue is that you're adding the <code>Node</code> instance, not the value within the node, to the <code>seen</code> set. Unless your linked list is circular, you're not going to run into the exact same node again, so you'll never see any duplicates this way.</p> <p>Try ...
Why comparing the length of sets to remove duplicates in a doubly linked list doesn't work? (python)
python-3.x|debugging|data-structures
0
42
2
72,822,638
72,822,638
0
true
2022-06-30T20:55:26.190Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why comparing the length of sets to remove duplicates in a doubly linked list doesn't work? (python)<p>so recently I was learning python data structure, more...
72,780,341
Search for text embed<p>I use embed tag to display 1 pdf file, how do I make when I press Ctrl + F it only searches the pdf file, not the current page. I tried searching on google but no desired result.</p>
<p>You will not find a single answer on google they use two methods themselves.</p> <p>Generally it should not be possible unless the embedment has control of the pdf search function, You need to understand that a binary pdf viewer embedded in a html page cannot be controlled by the html page, it can pass options like ...
Search for text embed
javascript|html|pdf
-1
42
1
72,791,448
72,791,448
0
true
2022-06-28T03:10:05.653Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Search for text embed<p>I use embed tag to display 1 pdf file, how do I make when I press Ctrl + F it only searches the pdf file, not the current page. I tri...
72,880,800
PowerShell: store Out-String results formatted in an array<p>I have a script that is looking for some values in xml-like files:</p> <pre><code>$path = &quot;C:\Users\*.xml&quot; Get-ChildItem $path | Select-String -Pattern &quot;&lt;status&gt;&quot;, &quot;&lt;logicalIdentifier&gt;&quot; | Out-File out.txt </code><...
<p>This code works for your xml structure:</p> <pre><code>Clear-Host $path = &quot;C:\tmp\xml\*.xml&quot; $foundFiles = Get-ChildItem $path $arrayTable = $null $arrayTable = @() foreach($file in $foundFiles) { $file.FullName [xml]$fileXML = Get-Content $file | Select-Object -Skip 1 $currentLogicalIdentifier...
PowerShell: store Out-String results formatted in an array
arrays|powershell|formatting|powershell-5.1
0
42
1
72,881,541
72,881,541
0
true
2022-07-06T09:13:12.397Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: PowerShell: store Out-String results formatted in an array<p>I have a script that is looking for some values in xml-like files:</p> <pre><code>$path = &quot;...
72,850,472
How to deal with an 64 digit input for a Karatsuba algorithm implementation in java<p>This is my implementation and what i need for it is to calculate the multiplication of two 64 digit number. So type Long is not enough (even tho the one with parameter type of long worked just fine). However when running with String,...
<p>Use <a href="https://docs.oracle.com/javase/7/docs/api/java/math/BigInteger.html" rel="nofollow noreferrer"><code>java.math.BigInteger</code></a>. Here's an example multiplying <code>Long.MAX_VALUE</code> with <code>Long.MAX_VALUE</code>, also showing the output:</p> <pre><code>BigInteger maxLong = BigInteger.valueO...
How to deal with an 64 digit input for a Karatsuba algorithm implementation in java
java|algorithm|multiplication|karatsuba
0
42
1
72,850,650
72,850,650
0
true
2022-07-03T23:06:10.817Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to deal with an 64 digit input for a Karatsuba algorithm implementation in java<p>This is my implementation and what i need for it is to calculate the mu...
72,925,509
Adding values to fixed array of strings only appends to the first element of the array<p>I am trying to create a function that returns an array of strings. Sadly instead of returning an array that has N number of elements of type string, it just appends all my string values to the first and only element in the array.</...
<p>the contract is working. Solidity display the elements in array with commas between them. Array return start with &quot;0&quot; string[].</p> <p>Hope it will help</p> <pre><code>// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.7; contract Store{ struct Product { string name; uint32 quan...
Adding values to fixed array of strings only appends to the first element of the array
ethereum|solidity
0
42
1
72,927,438
72,927,438
0
true
2022-07-10T00:49:29.953Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Adding values to fixed array of strings only appends to the first element of the array<p>I am trying to create a function that returns an array of strings. S...
72,864,551
Linting errors in react testing<p>I am running some tests on a custom hook and the tests are working fine, although I'm getting a lot of errors under my localStorage, TEST_VALUE. Under localStorage I receive the following:</p> <pre><code>Argument of type 'string | null' is not assignable to parameter of type 'string'. ...
<h2>Second error</h2> <p>The second one is easier, so lets start there.</p> <p><code>localStorage.getItem</code> is typed as:</p> <pre><code>Storage.getItem(key: string): string | null </code></pre> <p>Which means it accepts a <code>string</code> argument, but you pass it <code>string | null</code></p> <pre><code>const...
Linting errors in react testing
typescript|unit-testing|react-testing-library|higher-order-functions|react-tsx
0
42
1
72,872,821
72,872,821
0
true
2022-07-05T05:53:19.950Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Linting errors in react testing<p>I am running some tests on a custom hook and the tests are working fine, although I'm getting a lot of errors under my loca...