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,355,762
How to send a array with input file to PHP on Fetch API<p>I have one form in HTML</p> <p><a href="https://i.stack.imgur.com/qyqLT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qyqLT.png" alt="HTML form" /></a></p> <p>I have a <code>fetch</code> AJAX and I can send more than one form in a request to...
<p>I resolve that, solution:</p> <p>Yesterday, I created a solution. I pass a unique identifier for the index file to your data set. Then I can find out which one is in which dataset.</p> <p>ex : [[arrayDataSet_300], [FormDataFile_300000]]</p> <p>I multiply the index for 1000 (100 * 1000) then I can send to Laravel mor...
How to send a array with input file to PHP on Fetch API
javascript|php|laravel
0
65
1
72,363,130
72,363,130
0
true
2022-05-23T23:29:43.553Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to send a array with input file to PHP on Fetch API<p>I have one form in HTML</p> <p><a href="https://i.stack.imgur.com/qyqLT.png" rel="nofollow noreferr...
72,272,659
Detect posedge for sync signal [Without using @posedge signal]<p>I'm trying to detect the posedge of a synchronous signal, but I don't know how to implement it relative to the clock [Without using <code>@posedge signal</code>]. Can I implement it like <code>@(posedge clk iff -----</code>)?</p>
<p>Synchronous design should provide and sample signals on same clock edge.</p> <p>To find a positive edge (low to high transition), you have to save signal previous value, so you can find positive edge when current value is 1, but previous value is 0.</p> <p>Example:</p> <pre><code>logic sig_prev; logic positive_edge_...
Detect posedge for sync signal [Without using @posedge signal]
verilog|system-verilog
-1
65
1
72,276,455
72,276,455
0
true
2022-05-17T10:46:32.170Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Detect posedge for sync signal [Without using @posedge signal]<p>I'm trying to detect the posedge of a synchronous signal, but I don't know how to implement ...
72,363,652
Extract values from API source (nested dictionary)<p>I'm trying to extract only the dates and the cotton values in a dataframe. My attempts with pd.json_normalize / pd.DataFrame.from_dict did not work...</p> <p><strong>Exemple :</strong></p> <pre><code> {'data': {'success': True, 'timeseries': True, 'start_date': '...
<pre><code>data = [[key, value.get('COTTON')] for key,value in response['data']['rates'].items()] df = pd.DataFrame(data, columns=['Date', 'Cotton_prices']) </code></pre> <p>Result:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th style="text-align: left;">Date</th> <th style="text-align: ri...
Extract values from API source (nested dictionary)
python|pandas|api|dictionary
0
65
2
72,364,065
72,364,065
0
true
2022-05-24T13:20:52.360Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Extract values from API source (nested dictionary)<p>I'm trying to extract only the dates and the cotton values in a dataframe. My attempts with pd.json_norm...
72,398,707
Why is my nested while loop not working? if and second while loop is expected<p>the program should search for a image in the first loop and add it to a list, in the secon loop should he search till he find a image that isnt already in the list. PyCharm give me the errors that <code>while search = True:</code> <code>and...
<p>Try this</p> <pre><code>used = [] #First Loop while True: search = True #moved search = True here so that the nested loop will run each iteration of the main loop as it will be set back to True pic = driver.find_element(By.CSS_SELECTOR,value=&quot;.image-post img&quot;) time.sleep(2) pic_url = pic.g...
Why is my nested while loop not working? if and second while loop is expected
python|selenium|loops|while-loop|nested-loops
2
65
2
72,399,047
72,399,047
0
true
2022-05-26T22:39:23.563Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why is my nested while loop not working? if and second while loop is expected<p>the program should search for a image in the first loop and add it to a list,...
72,286,513
SQL | Min and Max dates from multiple rows by sequence<p>I'm trying to get the below result from my table.</p> <p>When the sequence is the same I want to take Min of <code>start_dt</code> and Max of <code>end_dt</code>. But I also have <code>null</code> in the sequence, and I don't want those to be grouped.</p> <p>I tr...
<p>You can use <code>union all</code> to combine the grouped results with the individual results that have a <code>null</code> as <code>sequence</code>:</p> <pre><code>select id, min(start_dt), max(end_dt), sequence from mytable group by id, sequence having sequence is not null union all select id, start_dt, ...
SQL | Min and Max dates from multiple rows by sequence
sql|sql-server|snowflake-cloud-data-platform
1
65
2
72,286,966
72,286,966
0
true
2022-05-18T09:26:07.457Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: SQL | Min and Max dates from multiple rows by sequence<p>I'm trying to get the below result from my table.</p> <p>When the sequence is the same I want to tak...
72,310,457
p-value borderline significant? Further study?<p>I am learning about AB testing and have run into some questions.</p> <p>In the events of borderline significant p-value, say p = 0.049 and p = 0.051, is it really that different?</p> <p>In the events of that I have a p-value of 0.051, what should I do? Gather further inf...
<p>In any case, you must have in mind that testing each hypothesis has a price, and if you are testing multiple hypothesis, you must be aware of inflation of type I error that can happen ( <a href="https://en.wikipedia.org/wiki/Multiple_comparisons_problem" rel="nofollow noreferrer">https://en.wikipedia.org/wiki/Multip...
p-value borderline significant? Further study?
statistics|p-value|ab-testing
1
65
1
72,310,727
72,310,727
0
true
2022-05-19T20:01:21.100Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: p-value borderline significant? Further study?<p>I am learning about AB testing and have run into some questions.</p> <p>In the events of borderline signific...
72,238,095
Is there a material TimerPicker widget in Flutter?<p>I want to implement a time picker widget to allow users to record duration (hours and minutes) and I also want to show differently depending on the device platform (iOS or Android).</p> <p>For iOS, I can use <code>CupertinoTimerPicker</code> and <code>CupertinoAction...
<p>Yes, Work is in progress, see in github.. <a href="https://i.stack.imgur.com/0WBWZ.png" rel="nofollow noreferrer">https://github.com/flutter/flutter/issues/91605</a></p>
Is there a material TimerPicker widget in Flutter?
android|ios|flutter|timepicker|cupertinopicker
0
65
1
72,238,173
72,238,173
0
true
2022-05-14T07:12:27.950Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Is there a material TimerPicker widget in Flutter?<p>I want to implement a time picker widget to allow users to record duration (hours and minutes) and I als...
72,333,996
refactoring my JavaScript code to remove more then just white space<p>The following code is functional but I would like to refactor the !== part that allows my ternary to run only on values that are not white space so I can include edge case test's. This would include any non letter value as well as white space and I k...
<p>you can also do that...</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>const letterPositions = str =&gt; { if (typeof str !== 'string') return console.log('Sorry y...
refactoring my JavaScript code to remove more then just white space
javascript
3
65
2
72,334,164
72,334,164
0
true
2022-05-22T00:11:36.517Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: refactoring my JavaScript code to remove more then just white space<p>The following code is functional but I would like to refactor the !== part that allows ...
72,313,860
trying to send some data from nodejs to script in html<p>I am using hbs as view in frontend. I tried to send data to my script in html from nodejs like this :</p> <pre><code>router.get('/home',authController.isLoggedIn, (req ,res) =&gt; { if(req.user){ db.query('SELECT * FROM posts ORDER BY id desc ', (error,result...
<p>For EJS example if pass data <code>msgs</code>:</p> <pre><code> res.render(&quot;index.ejs&quot;, { msgs }) </code></pre> <ol> <li>js handle data:</li> </ol> <pre><code> &lt;p&gt; &lt;% msgs = msgs.map(function(msg) { return '&lt;div&gt;' + msg.name + '&lt;/di...
trying to send some data from nodejs to script in html
javascript|html|node.js
0
65
1
72,314,107
72,314,107
0
true
2022-05-20T05:14:24.857Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: trying to send some data from nodejs to script in html<p>I am using hbs as view in frontend. I tried to send data to my script in html from nodejs like this ...
72,240,410
searching in range between columns using sqlite3 in pandas<p>I have found solution to my problem in one question <a href="https://stackoverflow.com/questions/30627968/merge-pandas-dataframes-where-one-value-is-between-two-others">Merge pandas dataframes where one value is between two others</a> I tried to modify it for...
<p>As commented, by properly converting the date strings to actual <code>datetime</code> in pandas using <code>pd.to_datetime</code>, the SQL join operation should return expected results:</p> <p>Input Data <em>(with date conversion)</em></p> <pre class="lang-py prettyprint-override"><code>dates_of_discount = pd.DataFr...
searching in range between columns using sqlite3 in pandas
python|sql|pandas|sqlite
0
65
1
72,242,281
72,242,281
1
true
2022-05-14T12:55:09.440Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: searching in range between columns using sqlite3 in pandas<p>I have found solution to my problem in one question <a href="https://stackoverflow.com/questions...
72,240,030
how to change word wrap mode for QListView?<p>I created a <code>QComboBox</code> and set a custom view for it:</p> <pre><code>self.list_view = QListView() self.list_view.setWordWrap(True) self.list_view.setVerticalScrollBarPolicy(Qt.ScrollBarAlwaysOff) self.settings = QComboBox() self.settings.setFixedHeight(28) self....
<p>The only way to achieve so while maintaining the model data is to implement a custom item delegate that uses QTextDocument for both <a href="https://doc.qt.io/qt-5/qstyleditemdelegate.html#sizeHint" rel="nofollow noreferrer"><code>sizeHint()</code></a> and <a href="https://doc.qt.io/qt-5/qstyleditemdelegate.html#pai...
how to change word wrap mode for QListView?
python|pyqt|pyside|pyside6|pyqt6
0
65
1
72,244,112
72,244,112
1
true
2022-05-14T12:06:39.800Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to change word wrap mode for QListView?<p>I created a <code>QComboBox</code> and set a custom view for it:</p> <pre><code>self.list_view = QListView() se...
72,249,278
Uncaught SyntaxError: Unexpected end of input for <script> </script><p>I am using the following JavaScript / html to play in a video in Chrome.</p> <p>The console logs &quot;Uncaught SyntaxError: Unexpected end of input&quot;.</p> <p>I don't see what I'm doing wrong. What is my mistake here?</p> <p>Thank you!</p> <pre>...
<p>You have a few issues:</p> <ol> <li>You missed the final brace from your code. Using good tabbing structure would help you see more easily where the brace was missing.</li> <li>You used assignment <code>=</code> instead of <code>==</code></li> </ol> <p>Look for **** below:</p> <pre><code>function playPause(e) { ...
Uncaught SyntaxError: Unexpected end of input for <script> </script>
javascript|html|google-chrome
1
65
1
72,249,322
72,249,322
1
true
2022-05-15T14:40:40.897Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Uncaught SyntaxError: Unexpected end of input for <script> </script><p>I am using the following JavaScript / html to play in a video in Chrome.</p> <p>The co...
72,248,235
How to detect whether my Go code is running on Raspberry Pi and which architecture<p>I'm using this code to differentiate the platform my application is running on:</p> <pre class="lang-golang prettyprint-override"><code>import ( &quot;runtime&quot; ) func Get() (string, error) { // Detect platform we are runn...
<p>You can try reading Raspberry Pi serial number. For example, <a href="https://linuxhint.com/find-serial-number-raspberry-pi/#:%7E:text=Your%20device%20serial%20number%20is,the%20content%20of%20the%20file" rel="nofollow noreferrer">https://linuxhint.com/find-serial-number-raspberry-pi/#:~:text=Your%20device%20serial%...
How to detect whether my Go code is running on Raspberry Pi and which architecture
go
1
65
1
72,252,242
72,252,242
1
true
2022-05-15T12:25:41.903Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to detect whether my Go code is running on Raspberry Pi and which architecture<p>I'm using this code to differentiate the platform my application is runn...
72,253,055
Python List of tuple how to remove duplicates?<p>I have a small doubt I have a list of tuple</p> <pre class="lang-py prettyprint-override"><code>test_lst=[[], [], [('boy', 20, 23), ('boy', 30, 33)], [], [('school', 20, 25), ('school', 30, 35)], [('jack', 20, 24), ('Mile', 40, 44)]] </code></pre> <p>I do not want d...
<p>You can try using <code>itertools.groupby</code> to check for duplicates of first value in tuple</p> <pre><code>import itertools test_lst=[[], [], [('boy', 20, 23), ('boy', 30, 33)], [], [('school', 20, 25), ('school', 30, 35)], [('jack', 20, 24), ('Mile', 40, 44)]] final_lst = [[next(b) for a, b in itertools.g...
Python List of tuple how to remove duplicates?
python|list|tuples
-2
65
2
72,253,093
72,253,093
1
true
2022-05-16T00:15:02.437Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Python List of tuple how to remove duplicates?<p>I have a small doubt I have a list of tuple</p> <pre class="lang-py prettyprint-override"><code>test_lst=[[]...
72,259,186
Dictionary lookup with LinQ to find a subset where the Value is a List element<p>The dictionary is in the form that is similar to this:</p> <pre><code> var dictionary = new Dictionary&lt;string, List&lt;DummyObject&lt;int, string, string&gt;&gt;&gt;() { { &quot;one&quot;, new List&lt;DummyOb...
<p>I think you want something like the following:</p> <pre class="lang-csharp prettyprint-override"><code>dictionary .Where(entry =&gt; entry.Value .Any(item =&gt; item.ActionType == &quot;TWO&quot;)) .ToDictionary( entry =&gt; entry.Key, entry =&gt; entry.Value); </code></pre>
Dictionary lookup with LinQ to find a subset where the Value is a List element
c#|linq|dictionary
0
65
2
72,261,979
72,261,979
1
true
2022-05-16T12:25:59.270Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Dictionary lookup with LinQ to find a subset where the Value is a List element<p>The dictionary is in the form that is similar to this:</p> <pre><code> var d...
72,262,205
Unbind event in Javascript<p>I'm just getting started with A/B test using Dynamic Yield. I'm facing a few issues overwriting events that are fired by Javascript.</p> <p>Let's for the sake of this example take this function written in the frontend:</p> <pre class="lang-js prettyprint-override"><code> $('body') ...
<p>Use the <code>.off()</code> method:</p> <pre><code>$('body').off('mouseenter focusin', 'class1'); </code></pre> <p>Note that this will remove all handlers for these events delegated to this class, not just the ones added by the original code. If you want be more selective you need to use a named function rather than...
Unbind event in Javascript
javascript|jquery
-2
65
3
72,262,288
72,262,288
1
true
2022-05-16T16:03:54.897Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Unbind event in Javascript<p>I'm just getting started with A/B test using Dynamic Yield. I'm facing a few issues overwriting events that are fired by Javascr...
72,265,481
Make a UNION return a single result in SPARQL<p>I am trying to query for the <code>sh:description</code> of a property shape, and if there is none, I want to follow the path to a property and get the <code>rdfs:comment</code> (Also for <code>sh:name</code> and <code>rdfs:label</code>). My data looks like the following:...
<p>You should be able to use a sequence of <code>OPTIONAL</code> blocks to do this:</p> <pre><code>SELECT ?propertyShape ?property ?name ?description WHERE { :File sh:property ?propertyShape . ?propertyShape sh:path ?property . OPTIONAL { ?propertyShape sh:name ?name } OPTIONAL { ?property rdfs:label ?...
Make a UNION return a single result in SPARQL
sparql|graphdb|shacl
0
65
2
72,265,761
72,265,761
1
true
2022-05-16T20:50:20.487Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Make a UNION return a single result in SPARQL<p>I am trying to query for the <code>sh:description</code> of a property shape, and if there is none, I want to...
72,266,617
Can't connect to Terraform-created instance with Private Key, but CAN connect when I create instance in Console<p>I've created the following key pair and EC2 instance using Terraform. I'll leave the SG config out of it, but it allows SSH from the internet.</p> <p>When I try to SSH into this instance I get the errors &q...
<p>As specified in the comments, removing the <code>metadata_options</code> from the instance resource resolves the issue.</p> <p>The fix is to update the <code>metadata_options</code> to be:</p> <pre><code> metadata_options { #Enabling IMDSv2 http_endpoint = &quot;enabled&quot; http_tokens = &quot;required&qu...
Can't connect to Terraform-created instance with Private Key, but CAN connect when I create instance in Console
amazon-web-services|terraform
1
65
1
72,276,109
72,276,109
1
true
2022-05-16T23:25:46.743Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Can't connect to Terraform-created instance with Private Key, but CAN connect when I create instance in Console<p>I've created the following key pair and EC2...
72,285,676
Django: ajax not returning or sending any data in django<p>i am creating a simple like button with ajax, i have followed the tutorial but it seems, that i am missing something, i am not getting any error either in the console in my django terminal but when i click the button no data get sent, evrything just remains the...
<p>Update your code like this and I've doubt about your like table provide that inside your question.</p> <p>inside your <strong>views.py</strong></p> <pre><code>@login_required def like(request): if request.method == 'POST': result = &quot;&quot; course_id = int(request.POST.get('courseid')) ...
Django: ajax not returning or sending any data in django
python|django|ajax|django-rest-framework
0
65
1
72,287,115
72,287,115
1
true
2022-05-18T08:28:56.130Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Django: ajax not returning or sending any data in django<p>i am creating a simple like button with ajax, i have followed the tutorial but it seems, that i am...
72,287,480
How to generate HTML using template literal with data coming from an object literal in JavaScript?<p>As the title says, I'm trying to dynamically generate my HTML buttons by using object literal data and use those to fill the template literal.</p> <p>Been trying with no luck and can't find an answer about this..</p> <p...
<p>You can try this code</p> <pre><code>const btnList = dockButtons .lists; document.getElementById('dock-buttons-data').innerHTML = `${btnList.map((btn) =&gt; &lt;button class=&quot;${btn.classes} ${btn.access}&quot; id=&quot;${btn.id}&quot; onclick=&quot;${btn.onclick}&quot; ${btn.attributes} title=&q...
How to generate HTML using template literal with data coming from an object literal in JavaScript?
javascript|html|object-literal|template-literals
1
65
1
72,287,998
72,287,998
1
true
2022-05-18T10:30:44.437Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to generate HTML using template literal with data coming from an object literal in JavaScript?<p>As the title says, I'm trying to dynamically generate my...
72,290,643
How to group a list of objects into a dictionary of lists based on id<p>I have a list of items with id. I want to group the items into separate lists according to a shared id.</p> <p>For example, this is my original list:</p> <pre><code>[ { &quot;id&quot;: &quot;x&quot;, &quot;v&quot;: &quot;a&quot; }, { ...
<p>Use <code>dict.setdefault</code>:</p> <pre><code>&gt;&gt;&gt; result = {} &gt;&gt;&gt; for dct in your_list: ... result.setdefault(dct['id'], []).append(dct) ... &gt;&gt;&gt; result {'x': [{'id': 'x', 'v': 'a'}, {'id': 'x', 'v': 'b'}], 'y': [{'id': 'y', 'v': 'c'}]} </code></pre> <p>Or <code>collections.defaultdi...
How to group a list of objects into a dictionary of lists based on id
python
-1
65
4
72,290,720
72,290,720
1
true
2022-05-18T14:02:05.850Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to group a list of objects into a dictionary of lists based on id<p>I have a list of items with id. I want to group the items into separate lists accordi...
72,293,300
bottomNavigationView = findViewById(R.id.navigation); returns null java<p>I really have no idea why this is happening. I am very new to android development so sorry if this a very nooby question. Basically bottomNavigationView is null after using the method &quot;findViewById()&quot;. I know it's null because I've made...
<p>You're setting as a layout activity_main.xml</p> <p><code>setContentView(R.layout.activity_main);</code></p> <p>And then method</p> <p><code>findViewById</code> will search for view id inside of activity_main.xml file.</p> <p>So you need to use view id(that you use for <code>BottomNavigationView</code>) from your ac...
bottomNavigationView = findViewById(R.id.navigation); returns null java
java|android|null|bottomnavigationview|findviewbyid
0
65
1
72,293,877
72,293,877
1
true
2022-05-18T17:06:51.907Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: bottomNavigationView = findViewById(R.id.navigation); returns null java<p>I really have no idea why this is happening. I am very new to android development s...
72,308,848
how to style the variable on JS without DOM<p>I'm about to style the &quot;newResult&quot; with green if passed and red if failed. I'm confused how to style them since the &quot;newResult&quot; is not DOM.</p> <pre><code>@param {string} idIn function checkId(idIn) { let isIDin = false; let regexID = /^n|N[0-9]{8}...
<p>You can make use of JavaScript template literals, ternary/conditional operator and inline CSS to accomplish what you're looking for.</p> <p>The syntax might look confusing at first look, but it does the job.</p> <pre><code>let msg = &quot;&quot; ; msg+=`Value tested:&quot;${valueIn}&quot; | Expected result:&quot;${e...
how to style the variable on JS without DOM
javascript
1
65
3
72,310,012
72,310,012
1
true
2022-05-19T17:32:33.313Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to style the variable on JS without DOM<p>I'm about to style the &quot;newResult&quot; with green if passed and red if failed. I'm confused how to style ...
72,326,263
How can we get list of IDs of last inserted set of rows using C# and EF Core<p>I have a set of images and I tried to add them into a table (ImageGalleries) using EF Core. The insertion goes well. After the insertion I need IDs (there is an identity column in the table) of inserted records. I tried below post in StackOv...
<p>Just remember all the gallery you make, and retrieve their Id after you save:</p> <pre><code> var newRGs = new List&lt;RoomGallery&gt;(); foreach (var image in images) { var fileContent = ContentDispositionHeaderValue.Parse(image.ContentDisposition); ...
How can we get list of IDs of last inserted set of rows using C# and EF Core
c#|entity-framework-core
0
65
2
72,327,089
72,327,089
1
true
2022-05-21T02:34:32.507Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can we get list of IDs of last inserted set of rows using C# and EF Core<p>I have a set of images and I tried to add them into a table (ImageGalleries) u...
72,326,126
How to use Trim in select queries for data in SQL tables<p>I have a table which stores data for AD users in one of columns like abc\sam, abc\bill, xyz\Ramos etc.. (domain\username)</p> <p>I am trying to use select query to trim anything after\ and just give me domain with their location. That is, after trimming abc for...
<p>your data</p> <pre><code>create table test (c1 varchar(max)); insert into test values ('abc\sam'), ('abc\bill'), ('xyz\Ramos' ); </code></pre> <p>you can use following queries to get your desired result using <code>CHARINDEX</code> and <code>LEFT</code> and <code>RIGHT</code> functions</p> <pre><code>select LEFT...
How to use Trim in select queries for data in SQL tables
sql|sql-server|sql-server-2019
-2
65
2
72,329,969
72,329,969
1
true
2022-05-21T01:57:27.337Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to use Trim in select queries for data in SQL tables<p>I have a table which stores data for AD users in one of columns like abc\sam, abc\bill, xyz\Ramos ...
72,329,332
How i can to pass parameter to model method in django template?<p>Hi everyone i have a question about django template and models method include function parameter.</p> <p>example code in models.py</p> <pre><code>class Item(models.Model): name = models.CharField(max_length=30) price = models.IntegerField() ...
<p>You can use a custom tag for that case. Check <a href="https://www.geeksforgeeks.org/how-to-create-custom-template-tags-in-django/" rel="nofollow noreferrer">this</a> . I also had to build it for my project as I had to send arguments from template to my model's method. I created a folder in my app called templatetag...
How i can to pass parameter to model method in django template?
django|django-models|django-views|django-templates
1
65
1
72,334,662
72,334,662
1
true
2022-05-21T11:57:52.453Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How i can to pass parameter to model method in django template?<p>Hi everyone i have a question about django template and models method include function para...
72,353,454
How can I create a dynamic CSS system in a Vue 3 app?<p>I am working on an app that many different clients will use, but the &quot;themes&quot; can't be shared between clients because their color schemes are considered proprietary and confidential even though I'm aware that sounds absurd.</p> <p>Right now, the colors a...
<p>You can create one <code>.css</code> file exporting these css variables for every client. Then, on your <code>main.js</code> entry point, you can import the file corresponding to that client:</p> <pre class="lang-js prettyprint-override"><code>const clientName = import.meta.env.CLIENT_NAME import `@/assets/themes/$...
How can I create a dynamic CSS system in a Vue 3 app?
css|vue.js|vuejs3|vite
1
65
1
72,353,854
72,353,854
1
true
2022-05-23T18:43:58.477Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I create a dynamic CSS system in a Vue 3 app?<p>I am working on an app that many different clients will use, but the &quot;themes&quot; can't be shar...
72,355,620
Time data: Wide to Long<p>I am not sure if I am even using the term wide/long correctly, but I am trying to reformat shift data in a way that I can see how much labor is being used in hourly increments.</p> <p>Suppose I have the following dataset:</p> <pre><code>library(data.table) sample_DT &lt;- data.table( store =...
<p>This can be done a few ways, here's a way using pivoted data so that each shift start is turned into a <code>+1</code> and each shift end into a <code>-1</code>.</p> <pre><code>library(dplyr); library(tidyr); library(lubridate) sample_df %&gt;% transmute(store, start_hr = ymd_h(paste(date, start_hr)),...
Time data: Wide to Long
r|dplyr|data.table
1
65
3
72,355,758
72,355,758
1
true
2022-05-23T23:05:38.043Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Time data: Wide to Long<p>I am not sure if I am even using the term wide/long correctly, but I am trying to reformat shift data in a way that I can see how m...
72,357,274
How can we select rows based on the column condition in MySQL?<p>We have a table like the following:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>id</th> <th>transaction_id</th> <th>item</th> </tr> </thead> <tbody> <tr> <td>2100</td> <td>20010904</td> <td>item1</td> </tr> <tr> <td>2100</...
<p><code>Having COUNT()</code> with <code>GROUP BY</code> can help in your case:</p> <pre><code>SELECT id, transaction_id, item FROM TransactionTable WHERE id IN ( SELECT id FROM TransactionTable WHERE item IN ('item1', 'item4') GROUP BY id HAVING COUNT(DISTINCT item) != 2 ) Q </code></pre>
How can we select rows based on the column condition in MySQL?
mysql|sql
1
65
4
72,357,308
72,357,308
1
true
2022-05-24T04:38:27.440Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can we select rows based on the column condition in MySQL?<p>We have a table like the following:</p> <div class="s-table-container"> <table class="s-tabl...
72,358,262
check same names in two array of objects in javascript /typescript?<p>I have two array of objects</p> <pre><code>array1=[{name:'apple',deleted:false}, {name:'road',deleted:false}, {name:'tree',deleted:false}] </code></pre> <p>and</p> <pre><code>array2=[{name:'apple'}, {name:'tree'}] </code></pre> <...
<p>Use <code>forEach()</code> to loop array1 and use <code>include()</code> to set value of deleted</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>const array1=[{name:'apple',...
check same names in two array of objects in javascript /typescript?
javascript|arrays
2
65
4
72,358,545
72,358,545
1
true
2022-05-24T06:41:40Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: check same names in two array of objects in javascript /typescript?<p>I have two array of objects</p> <pre><code>array1=[{name:'apple',deleted:false}, ...
72,368,621
Grouping objects of different types based on common fields<p>I want to group different objects types based on same content of fields <code>incomeCode</code>, <code>endDate</code> and <code>codeRef</code> on both classes. I omitted many fields on both classes that make each object unique for simplicity.</p> <pre><code>p...
<p>As it has been pointed out in the comments, if you need to mix different type of objects your resulting <code>List</code> will be a <code>List&lt;List&lt;Object&gt;&gt;</code>.</p> <p>To group them by like that, you could use the <code>collect()</code> terminal operation in conjunction with a <code>Collectors.groupi...
Grouping objects of different types based on common fields
java|collections|java-stream
0
65
2
72,369,105
72,369,105
1
true
2022-05-24T19:40:40.747Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Grouping objects of different types based on common fields<p>I want to group different objects types based on same content of fields <code>incomeCode</code>,...
72,372,218
When writing a DateTime value using openxlsx, a "x" is written followed by DateTime value in the next row instead of just the DateTime value<p>I would like to write DateTime values to an excel sheet using openxlsx. When I try to do this, instead of just the DateTime value, I get a lowercase &quot;x&quot; on one row fol...
<p>The documentation of <a href="https://www.rdocumentation.org/packages/openxlsx/versions/4.2.5/topics/write.xlsx" rel="nofollow noreferrer"><code>write.xlsx</code></a> says in section Arguments that <code>x</code> is (my emphasis)</p> <blockquote> <p>A <strong>data.frame</strong> or a <strong>(named) list</strong> of...
When writing a DateTime value using openxlsx, a "x" is written followed by DateTime value in the next row instead of just the DateTime value
r|datetime|openxlsx
2
65
1
72,372,425
72,372,425
1
true
2022-05-25T05:10:05.750Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: When writing a DateTime value using openxlsx, a "x" is written followed by DateTime value in the next row instead of just the DateTime value<p>I would like t...
72,376,342
Are there multiple reasons for Azure error: "The specified resource does not exist"?<p>I have a project with tons of users and their uploaded files. The database has all files available, but around a year ago, when connecting the project to Azure and migrating the files, some files were forgotten in the process. While ...
<p>There are 2 possible reasons when you can get <code>StorageError: The specified resource does not exist.</code>:</p> <ol> <li>Blob does not exist and</li> <li>Blob container for that blob does not exist.</li> </ol> <p>If you are not able to delete a blob for any other reasons (e.g. incorrect authorization, blob is l...
Are there multiple reasons for Azure error: "The specified resource does not exist"?
javascript|azure|azure-files
2
65
1
72,377,355
72,377,355
1
true
2022-05-25T10:56:33.070Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Are there multiple reasons for Azure error: "The specified resource does not exist"?<p>I have a project with tons of users and their uploaded files. The data...
72,375,283
Map an integer to a unique permutation with duplicate and without high storage<p>I want to create a function f that maps integer indexes to a <strong>unique</strong> permutation of a list L, no matter the language. A quite similar problem has been adressed <a href="https://stackoverflow.com/questions/25105871/get-a-per...
<p>A general algorithm for this would be as follows:</p> <ol> <li>Convert the list into a set of unique items associated with the number of times each item appears in the list. For example: <code>[&quot;A&quot;,&quot;C&quot;,&quot;A&quot;,&quot;C&quot;,&quot;B&quot;,&quot;A&quot;]</code> → <code>[[&quot;A&quot;,3], [&q...
Map an integer to a unique permutation with duplicate and without high storage
algorithm|permutation
1
65
1
72,377,608
72,377,608
1
true
2022-05-25T09:42:54.773Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Map an integer to a unique permutation with duplicate and without high storage<p>I want to create a function f that maps integer indexes to a <strong>unique<...
72,792,647
Loading data from SQL Server to Snowflake using Data Factory is giving error<p>I have the following table in SQL Server which I am trying to load into Snowflake using Azure Data Factory:</p> <p>It has 7 columns:</p> <pre><code>ID, StartDate, Assigner, Priority, Operation, OldValue, NewValue (THIS IS CREATING iSSUE) </c...
<p>See the following link: <a href="https://docs.microsoft.com/en-us/answers/questions/559372/delimiter-error-in-copy-actibity-of-adf.html" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/answers/questions/559372/delimiter-error-in-copy-actibity-of-adf.html</a></p> <p>From that reference:</p> <p>The issue co...
Loading data from SQL Server to Snowflake using Data Factory is giving error
sql-server|snowflake-cloud-data-platform|azure-data-factory-2
-1
65
1
72,793,461
72,793,461
1
true
2022-06-28T20:15:19.103Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Loading data from SQL Server to Snowflake using Data Factory is giving error<p>I have the following table in SQL Server which I am trying to load into Snowfl...
72,796,258
Publish existing API in WSO2 API Manager<p>I am trying to publish an API using the API Manager. I am getting the following error: &quot;API validation failed.&quot; My API also has a password, but I can not find out how to add this to the API Manager.<a href="https://i.stack.imgur.com/T0q8g.png" rel="nofollow noreferre...
<p>You are trying to create an API using an OpenAPI definition. The OpenAPI definition is validated when you provide the URL here. Please make sure that you have a valid OpenAPI definition in that URL.</p> <p>If you are a trying to create a simple API without an OpenAPI definition, please use the option <strong>Start f...
Publish existing API in WSO2 API Manager
api|rest|wso2|wso2-esb|wso2-api-manager
0
65
2
72,796,518
72,796,518
1
true
2022-06-29T05:38:09.023Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Publish existing API in WSO2 API Manager<p>I am trying to publish an API using the API Manager. I am getting the following error: &quot;API validation failed...
72,777,813
Apply filters to different paths of the same URI in Spring Cloud Gateway<p>I have filters defined like this:</p> <pre><code>- id: Some route uri: http://localhost filters: - name: Filter1 - name: Filter2 predicates: - Path=/api/** </code></pre> <p>However, I would like to apply...
<p>Switch the order of route definitions. Define <em>Some route2</em> first and then <em>Some route1</em> like this</p> <pre><code>- id: Some route2 uri: http://localhost filters: - name: Filter2 predicates: - Path=/api/somepath/** - id: Some route1 uri: http://localhost filters: - name: Filter1 p...
Apply filters to different paths of the same URI in Spring Cloud Gateway
spring-cloud-gateway
0
65
1
72,800,223
72,800,223
1
true
2022-06-27T20:12:35.597Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Apply filters to different paths of the same URI in Spring Cloud Gateway<p>I have filters defined like this:</p> <pre><code>- id: Some route uri: http:...
72,812,190
How to map Enum attribute into an Enum of another type with Mapstruct - Java<p>I have two similar enums used respectively in Domain and Entity class. Here is an Example :</p> <p><em><strong>Classes</strong></em></p> <pre><code>public class Entity { String name; State state; } </code></pre> <pre><code>public class...
<p>You can get rid of <code>StatusMapper</code> and instead of <code>EntityMapper</code> you can using the following interface.</p> <pre><code>import com.package.domain.Domain; import com.package.entity.Entity; import org.mapstruct.Mapper; import org.mapstruct.Mapping; import org.springframework.core.convert.converter...
How to map Enum attribute into an Enum of another type with Mapstruct - Java
java|enums|mapstruct
1
65
1
72,812,733
72,812,733
1
true
2022-06-30T07:56:37.270Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to map Enum attribute into an Enum of another type with Mapstruct - Java<p>I have two similar enums used respectively in Domain and Entity class. Here is...
72,814,124
Import "faker" could not be resolved (PylancereportMissingImports)<pre><code>import os os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'first_project.settings') import django django.setup() #FAKE POP SCRIPT import random from first_app.models import Topic, AccessRecord, Webpage from faker import Faker fakegen = Fake...
<p>The indentation of <code>if __name__ == '__main__':</code> is wrong. The right way is outside the <code>populate</code> function like the following:</p> <pre class="lang-py prettyprint-override"><code>import os os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'first_project.settings') import django django.setup() #...
Import "faker" could not be resolved (PylancereportMissingImports)
python|django|pip|faker
2
65
1
72,814,256
72,814,256
1
true
2022-06-30T10:20:12.607Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Import "faker" could not be resolved (PylancereportMissingImports)<pre><code>import os os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'first_project.setting...
72,808,511
I keep getting the error "Assets\ThirdPersonMovement.cs(49,30): error CS0117: 'Input' does not contain a definition for 'getAxis'"<p>Here is my code:</p> <pre><code>using System.Collections; using System.Collections.Generic; using UnityEngine; public class ThirdPersonMovement : MonoBehaviour { public CharacterCon...
<p>C# is case-sensitive.</p> <pre><code> moveVector.x = Input.GetAxis(&quot;Horizontal&quot;) * speed; moveVector.y = verticalVelocity; moveVector.z = Input.GetAxis(&quot;Vertical&quot;) * speed; </code></pre>
I keep getting the error "Assets\ThirdPersonMovement.cs(49,30): error CS0117: 'Input' does not contain a definition for 'getAxis'"
c#|unity3d
-1
65
1
72,814,340
72,814,340
1
true
2022-06-29T22:28:35.013Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: I keep getting the error "Assets\ThirdPersonMovement.cs(49,30): error CS0117: 'Input' does not contain a definition for 'getAxis'"<p>Here is my code:</p> <pr...
72,814,475
Time validation error on input when setting hour in flutter<p>Hi everyone I have some troubles with Flutter <a href="https://pub.dev/packages/flutter_form_builder" rel="nofollow noreferrer"><code>FormBuilderDateTimePicker</code></a></p> <p>My problem is that when I set the value manually (with a keyboard not using grap...
<p>On <code>flutter_form_builder: ^7.3.1</code> source code, <code>alwaysUse24HourFormat</code> has not being used. As matias-de-andrea mention on <a href="https://github.com/danvick/flutter_form_builder/issues/826" rel="nofollow noreferrer">git issue</a> which is still open.</p> <p>To make it work, they override the <...
Time validation error on input when setting hour in flutter
flutter|dart|flutter-form-builder
1
65
1
72,817,680
72,817,680
1
true
2022-06-30T10:47:42.927Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Time validation error on input when setting hour in flutter<p>Hi everyone I have some troubles with Flutter <a href="https://pub.dev/packages/flutter_form_bu...
72,836,216
How to stop user from holding down space bar?<p>I am creating a scratch project where you have to press space bar to move and I have found an exploit: holding down space bar because the project is designed to improve your SBPS (space bars per second) not just hold down space bar. How can I stop the user from holding sp...
<p>I already know that you are checking if the user is pressing the space bar, that's a good start!</p> <p>You have to stop recording any space bar press when the user has pressed the space bar.</p> <p>After that start recording the space bar press again once the user has <strong><code>released</code></strong> the spac...
How to stop user from holding down space bar?
mit-scratch
2
65
2
72,836,280
72,836,280
1
true
2022-07-02T03:20:53.880Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to stop user from holding down space bar?<p>I am creating a scratch project where you have to press space bar to move and I have found an exploit: holdin...
72,837,663
Using data as Lists or Arrays in ASP.NET Web API response<p>When I receive data from a database in my ASP.NET Web API, I generally call them in form of a List if expect to receive multiple entries. So this is fine because LINQ provides some cool methods for work with Lists.</p> <p>But my question is, I have seen some d...
<p>As you observed, there is no difference between returning an array or a list from the API, in JSON both will end up as an array. So just return the form that your data is in.</p>
Using data as Lists or Arrays in ASP.NET Web API response
c#|asp.net-web-api|collections
0
65
1
72,837,954
72,837,954
1
true
2022-07-02T08:35:39.437Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Using data as Lists or Arrays in ASP.NET Web API response<p>When I receive data from a database in my ASP.NET Web API, I generally call them in form of a Lis...
72,844,381
How to get output of the ffmpeg to the var and upload it using curl?<p>how to get the output of the ffmpeg to the var and upload it using curl, like here</p> <pre><code>ffmpeg -i test.mp4 -f avi pipe:1 | cat &gt; out | curl -F document=@&quot;$out&quot; https://api.telegram.org/bot&lt;token&gt;/sendDocument?chat_id=&lt...
<p>This is an unusual way of using <code>ffmpeg</code>. I think there might be a way of using <code>stdout</code> as the output of <code>ffmpeg</code> command but it is a dirty way if any! You should set the output file of <code>ffmpeg</code> command and then send this file by <code>curl</code>. Then you can delete the...
How to get output of the ffmpeg to the var and upload it using curl?
curl|ffmpeg|telegram
-1
65
1
72,844,457
72,844,457
1
true
2022-07-03T06:32:10.033Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to get output of the ffmpeg to the var and upload it using curl?<p>how to get the output of the ffmpeg to the var and upload it using curl, like here</p>...
72,845,847
Typescript conditional extends with nested object<p>I am building a type that checks if a member of a class-type is an object and if so, a specific type must be assigned. I provide a more explanatory example below.</p> <p>Here we have the class example we are going to use.</p> <pre class="lang-js prettyprint-override">...
<p>You are right when you say this happens because <code>parent?</code> is an optional member.</p> <p>But what does it mean to be an optional member?</p> <p>In JS it means the property can either have a value or be undefined.</p> <p>In TS, it means that the type of <code>parent?</code> is actually something like: <cod...
Typescript conditional extends with nested object
typescript|extends
3
65
2
72,845,972
72,845,972
1
true
2022-07-03T10:49:18.587Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Typescript conditional extends with nested object<p>I am building a type that checks if a member of a class-type is an object and if so, a specific type must...
72,844,325
how to assign a condition to an imageView by using if else?<p>I tried to show a random imageView out of 2(one,two) with this <code>binding.imageView.setImageResource(oneandtwo[random.nextInt(oneandtwo.size)])</code> it works fine and</p> <p>i wanted to increase score when i clicked on imageView but score increases inde...
<p>You've got two problems that both the answers cover - if clicking a particular image is meant to give you points, you have to check the image <em>before</em> you change it. And if you're using random items, you need to pick <em>one</em> and keep a reference to it. This:</p> <pre><code>binding.imageView.setImageResou...
how to assign a condition to an imageView by using if else?
android|kotlin|if-statement|random
0
65
3
72,849,532
72,849,532
1
true
2022-07-03T06:22:12.590Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to assign a condition to an imageView by using if else?<p>I tried to show a random imageView out of 2(one,two) with this <code>binding.imageView.setImage...
72,853,092
iOS Outlook App only allowing a single media query in HTML email<p>I am wanting to change the font size of some text in an HTML email at 2 different screen widths with media queries. This works as expected on all devices/clients except in Outlook App for iOS.</p> <p>Here is an example of the inline HTML:</p> <pre><code...
<p>The issue is due to a bug in their implementation, as documented here: <a href="https://github.com/hteumeuleu/email-bugs/issues/92" rel="nofollow noreferrer">https://github.com/hteumeuleu/email-bugs/issues/92</a></p> <p>The easiest solution, since perhaps your minifying code may be removing whitespace and creating t...
iOS Outlook App only allowing a single media query in HTML email
css|ios|outlook|media-queries|html-email
0
65
1
72,863,315
72,863,315
1
true
2022-07-04T07:24:59.093Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: iOS Outlook App only allowing a single media query in HTML email<p>I am wanting to change the font size of some text in an HTML email at 2 different screen w...
72,863,722
Can't figure out how to finish my loop (how to reset loop?)<p>I have a spreadsheet with one column that has a small number in every row (for example: 1, 1, 3, 4, 5, 5 etc)</p> <p>The goal is to use a loop to count each row until the count gets to 3, then highlight that row, and start over. So my loop can successfully c...
<p>If you simply want the loop to continue until it reaches the end of your sheet, you can use:</p> <pre><code>function forloop() { let spreadsheet = SpreadsheetApp.getActiveSpreadsheet(); let sheet = spreadsheet.getSheetByName(&quot;Sheet1&quot;); var rows = sheet.getDataRange().getValues().length; for (let ...
Can't figure out how to finish my loop (how to reset loop?)
google-apps-script
0
65
2
72,863,889
72,863,889
1
true
2022-07-05T03:32:15.217Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Can't figure out how to finish my loop (how to reset loop?)<p>I have a spreadsheet with one column that has a small number in every row (for example: 1, 1, 3...
72,870,300
Need someone to cast an eye over this code to see what I have missed<p>I wrote this code a few months ago (with the help of folks here) to handle data submission to an Excel sheet, everything worked fine. I revisited the sheet today and found that everything still works apart the list box submission, I get the confirma...
<p><code>If WkOrderList.ListIndex &lt;&gt; -1</code> doesn't test if the list box is empty as you suggest you expect (in a comment). It tests if something is selected in the list.</p> <p>To test for not empty, use</p> <pre><code>If Me.WkOrderList.ListCount &gt; 0 </code></pre>
Need someone to cast an eye over this code to see what I have missed
excel|vba
0
65
1
72,873,240
72,873,240
1
true
2022-07-05T13:29:26.180Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Need someone to cast an eye over this code to see what I have missed<p>I wrote this code a few months ago (with the help of folks here) to handle data submis...
72,847,871
What does arena means in the output of JVM NMT<p>I ran 'jcmd VM.native_memory detail' for a Java application, and the output was like:</p> <pre><code>Total: reserved=4741MB, committed=3506MB - Java Heap (reserved=2350MB, committed=2350MB) (mmap: reserved=2350MB, committed=23...
<p>This is unrelated to glibc arenas.</p> <p>In HotSpot, Arena is a structure for fast native memory allocation, optimized for the particular pattern:</p> <ol> <li>Allocation from Arena is thread local. No synchronization is involved.</li> <li>Memory from an Arena cannot be reclaimed partially. Arena is disposed all at...
What does arena means in the output of JVM NMT
java|linux|memory|jvm|malloc
0
65
1
72,876,177
72,876,177
1
true
2022-07-03T15:45:00.370Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: What does arena means in the output of JVM NMT<p>I ran 'jcmd VM.native_memory detail' for a Java application, and the output was like:</p> <pre><code>Total:...
72,877,439
How to use value of selected option to run query?<p>I'm fairly new to JavaScript and PHP so I have no idea what I'm doing for the most part. I'm making a Room Reservation System. What I want to do is get the selected option value from the 'room' select box so that I can use that value to run a query so that the time r...
<p>You are missing the quotes in the selected option value. There is a short way to get the select value with jquery or raw js.</p> <p>With jQuery you can use <code>onchange=&quot;$(this).val()&quot;</code></p> <p>With Raw JS you can use <code>onchange=&quot;this.value&quot;</code></p> <p>Both will return the selected ...
How to use value of selected option to run query?
javascript|php|html
1
65
2
72,877,699
72,877,699
1
true
2022-07-06T02:48:51.083Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to use value of selected option to run query?<p>I'm fairly new to JavaScript and PHP so I have no idea what I'm doing for the most part. I'm making a Ro...
72,859,190
How to use PySCIPOpt with gurobi solver?<p>I use SCIP because it has nice branching tools like handler, but the solver is not as fast as I would like. I got access to gurobi (and maybe cplex) because I know they can work together, but have no idea.</p> <p>Disclaimer: I have use cmake and install pyscipopt trough conda....
<p>You cannot use PySCIPOpt with Gurobi (or any other LP solver or custom SCIP build) if you are using the conda installation package. This package already includes a pre-built SCIP.</p> <p>To customize your setup, you need to build SCIP yourself and then build PySCIPOpt by pointing to this SCIP build via the <code>SCI...
How to use PySCIPOpt with gurobi solver?
python|optimization|gurobi|scip|pyscipopt
0
65
1
72,882,346
72,882,346
1
true
2022-07-04T15:38:44.070Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to use PySCIPOpt with gurobi solver?<p>I use SCIP because it has nice branching tools like handler, but the solver is not as fast as I would like. I got ...
72,898,964
Best way to Deserialize JSON to Dynamic using C#<p>I'd like to know which is the best way do Deserialize to Dynamic, using NewtonSoft.Json and C#</p> <p>The code below works, but I didn't like it. I would like to simplify it, using &quot;named properties&quot;.</p> <p>The main purpose is to get the last object named &q...
<p>It's not super clear what you don't like about what you have, but if you're looking to be able to access things by path / property name, something like this might work out for you. (getting strings into C# annoys me, I popped it to a file)</p> <pre><code>[TestMethod] public void GetNode() { ...
Best way to Deserialize JSON to Dynamic using C#
c#|json|object|dynamic|deserialization
0
65
2
72,899,459
72,899,459
1
true
2022-07-07T13:45:16.510Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Best way to Deserialize JSON to Dynamic using C#<p>I'd like to know which is the best way do Deserialize to Dynamic, using NewtonSoft.Json and C#</p> <p>The ...
72,902,466
Reduce a tree by recursively rolling up the parent's child nodes<p>Attempting to reduce a flat list of items (each with a list of their own statuses) into a tree, where the status of the child node influences the parent.</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"...
<p>There are two issues, both in <code>calculateStatus</code>:</p> <ol> <li><p>It lacks a return statement, and so the recursive call will always return <code>undefined</code>. It should end with <code>return status;</code></p> </li> <li><p>The initial value of <code>status</code> should not be <code>UNKNOWN</code>. Wh...
Reduce a tree by recursively rolling up the parent's child nodes
javascript|tree|reduce|traversal
1
65
2
72,902,749
72,902,749
1
true
2022-07-07T18:11:32.933Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Reduce a tree by recursively rolling up the parent's child nodes<p>Attempting to reduce a flat list of items (each with a list of their own statuses) into a ...
72,900,435
Should the AngularJS application send the AuthToken or IDToken? When do use ID token vs Auth Token?<p>I have the following configuration in my ASP.NET Core Web API:</p> <pre><code>// Adds Microsoft Identity platform (AAD v2.0) support to protect this Api services.AddMicrosoftIdentityWebApiAuthentication(configuration);...
<p>Please note that, <a href="https://docs.microsoft.com/en-us/azure/active-directory/develop/access-tokens" rel="nofollow noreferrer"><strong>access tokens</strong></a> are used to perform actions like authentication and authorization to protect the web APIs.</p> <p><a href="https://docs.microsoft.com/en-us/azure/acti...
Should the AngularJS application send the AuthToken or IDToken? When do use ID token vs Auth Token?
oauth|azure-active-directory|asp.net-core-3.1|webapi|auth-token
0
65
1
72,907,657
72,907,657
1
true
2022-07-07T15:21:19.403Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Should the AngularJS application send the AuthToken or IDToken? When do use ID token vs Auth Token?<p>I have the following configuration in my ASP.NET Core W...
72,912,291
R Psych package: extract factor number from fa.parallel function<p>I conducted a parallel analysis with the <code>Psych</code> package in R. I want to extract the number of factors from the output of <code>fa.parallel()</code> function, and save it to a variable for further processing. I checked the <a href="https://cr...
<p>This document <em><a href="https://cran.r-project.org/web/packages/psych/psych.pdf" rel="nofollow noreferrer">psych: Procedures for Psychological, Psychometric, and Personality Research</a></em>(P160) lists the return values of <code>fa.parallel</code> function. Among them, <code>nfact</code> is the number of factor...
R Psych package: extract factor number from fa.parallel function
r|statistics|psych|factor-analysis
0
65
1
72,914,399
72,914,399
1
true
2022-07-08T13:40:15.160Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: R Psych package: extract factor number from fa.parallel function<p>I conducted a parallel analysis with the <code>Psych</code> package in R. I want to extrac...
72,928,579
Place green tick icon in angular control after validation<p>I am trying to place a green tick in the e-mail input control after the successful validation of its content. Something like the following</p> <pre><code> &lt;label for=&quot;useremail&quot;&gt;User E-mail&lt;/label&gt; &lt;input type=&quot;emai...
<p>Yes, simple way is to use any icon library and theme color class which can help easily to add gree tick icon. <code>&lt;i class=&quot;bi bi-check&quot;&gt;&lt;/i&gt;</code>. [Bootstap icons link] <a href="https://icons.getbootstrap.com/icons/check/" rel="nofollow noreferrer">https://icons.getbootstrap.com/icons/chec...
Place green tick icon in angular control after validation
angular|bootstrap-4
-1
65
2
72,928,628
72,928,628
1
true
2022-07-10T12:48:21.860Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Place green tick icon in angular control after validation<p>I am trying to place a green tick in the e-mail input control after the successful validation of ...
72,920,787
how to correctly backup room database<p>I read <a href="https://stackoverflow.com/questions/50987119/backup-room-database">Backup Room database</a> but I think answers contains errors for new releases of android studio and I want to know how to correctly backup and restore room database in 2022 in kotlin or java.</p>
<p>Finally, I found a solution. Database has 3 files that I have to save those files for backup:</p> <pre class="lang-kotlin prettyprint-override"><code>val dbName = RoomDb.DATABASENAME val documentFolder = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOCUMENTS) when (item.itemId) { R.id.mnu...
how to correctly backup room database
android|android-room
-1
65
1
72,931,505
72,931,505
1
true
2022-07-09T10:58:20.947Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to correctly backup room database<p>I read <a href="https://stackoverflow.com/questions/50987119/backup-room-database">Backup Room database</a> but I thi...
72,912,965
Profinet LUA dissector without ports to extract specific bits<p>How can I make a Lua dissector/post-dissector/chained dissector that would get attached under the <code>PROFINET IO Cyclic Service Data Unit</code> and for example extract only the last 3 bits of the 5th byte, highlighted in the image below?</p> <p>All the...
<p>You should be able to achieve what you want using the following example as a rough guide, where I illustrate both how to add the field to the tree as well as to grab the data and do something with it (e.g., append the relevant data to the Info column):</p> <pre> local pn_io_post = Proto("PNIOPost", "PNIO Postdissect...
Profinet LUA dissector without ports to extract specific bits
lua|wireshark|wireshark-dissector
0
65
1
72,940,712
72,940,712
1
true
2022-07-08T14:32:25.530Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Profinet LUA dissector without ports to extract specific bits<p>How can I make a Lua dissector/post-dissector/chained dissector that would get attached under...
72,940,375
How to call function with type cid in postgres<p>I need to call the function which has cid ass attribute from jdbc. The documentation says about type cid - &quot;Command identifiers are also 32-bit quantities.&quot; I create simple function with cid</p> <pre><code>CREATE OR REPLACE FUNCTION simplecid(in_param cid) RETU...
<p>String literals (type <code>unknown</code>) can be converted to any data type. So you have three ways to write a constant of type <code>cid</code>:</p> <ul> <li><p><code>CID '123'</code></p> </li> <li><p><code>'123'::cid</code> or <code>CAST ('123' AS cid)</code></p> </li> <li><p><code>cid('123')</code></p> </li> </...
How to call function with type cid in postgres
postgresql|jdbc|plpgsql|postgresql-12
1
65
2
72,940,775
72,940,775
1
true
2022-07-11T14:45:09.800Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to call function with type cid in postgres<p>I need to call the function which has cid ass attribute from jdbc. The documentation says about type cid - &...
72,945,329
How to transform dictionary in python<p>How can modify the object A to look like Object B:</p> <p>Obeject A:</p> <pre><code>{ 'first_name': {' 'required': false, 'enabled': false '}, 'last_name': {' 'required': false, 'enabled': false '} } </code></pre> <p>Object(I want it look like this):</...
<p>You can use:</p> <pre><code># Python &gt;= 3.5 d = [{**{'name': k}, **v} for k, v in d.items()] # Python &gt;= 3.9 d = [{'name': k} | v for k, v in d.items()] print(d) # Output [{'name': 'first_name', 'required': False, 'enabled': False}, {'name': 'last_name', 'required': False, 'enabled': False}] </code></pre> <...
How to transform dictionary in python
python
-3
65
3
72,945,379
72,945,379
1
true
2022-07-11T22:37:34.317Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to transform dictionary in python<p>How can modify the object A to look like Object B:</p> <p>Obeject A:</p> <pre><code>{ 'first_name': {' 'requir...
72,947,409
Why am i getting undefined in the console log instead of the input value?<p>I am trying to get the input value as my result but after clicking on the button I am getting 'undefined' as the console result. Please help to understand the reason. Sharing the HTML and js code</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html la...
<p>You are using a class for multiple elements which is why undefined is shown. Among many ways, I will discuss two here, you have to either use indices with classes if using queryselector to get the correct element or use an ID to select the input element. Here I have used ID to get the input searchbox. See the follow...
Why am i getting undefined in the console log instead of the input value?
javascript|console.log
0
65
2
72,947,451
72,947,451
1
true
2022-07-12T05:29:13.463Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why am i getting undefined in the console log instead of the input value?<p>I am trying to get the input value as my result but after clicking on the button ...
72,944,543
Why the background color of the top bar changes automatically not as I set it? Material Design 3<p>I'm trying to change the background color of the top bar and make it like the main background. I'm using <a href="https://m3.material.io/" rel="nofollow noreferrer">Material You (MD3)</a>.</p> <p>The user can change from ...
<p>The different color is due to <a href="https://m3.material.io/libraries/mdc-android/dark-theme#:%7E:text=Elevation%20overlays,on%20the%20canvas." rel="nofollow noreferrer">elevation overlay</a>. You can either remove the elevation or disable the elevation overlay.</p> <p>To disable elevation overlay in the theme add...
Why the background color of the top bar changes automatically not as I set it? Material Design 3
android|material-design|android-toolbar|material-components-android
0
65
1
72,949,647
72,949,647
1
true
2022-07-11T20:50:47.767Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why the background color of the top bar changes automatically not as I set it? Material Design 3<p>I'm trying to change the background color of the top bar a...
72,941,453
How to make a chip retain its shape after click-event in compose?<p>I am currently trying to make it so that when the user has clicked the chip it still retains it's initial form/shape, in this case round. How can I achieve this?</p> <p>This is how it operates currently: <a href="https://gyazo.com/bdbe867adb5c9e75381f7...
<p>You should set the shape for your Modifier.background(color, shape) but it won't clip your click ripple and it will be as in gif with a Rectangle shape. You can use Modifier.clip() to clip background and ripple as</p> <pre><code> modifier = Modifier .wrapContentSize() .border( width = ...
How to make a chip retain its shape after click-event in compose?
android|kotlin|material-design|android-chips
1
65
2
72,953,725
72,953,725
1
true
2022-07-11T16:03:32.473Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to make a chip retain its shape after click-event in compose?<p>I am currently trying to make it so that when the user has clicked the chip it still reta...
72,953,630
NOT NULL constraint failed: Movies_comment.movie_id djnago<p>I get the error NOT NULL constraint failed: Movies_comment.movie_id . I'm trying to return the average of comments and ratings in a model Class Movie, but I get the error NOT NULL constraint failed: Movies_comment.movie_id . How can I fix it?</p> <pre><code>c...
<p>As you didn't provide traceback, the only place that may cause such error is here:</p> <pre><code>Comment(comment=comment, stars = stars, user=user,movie_id=movie_id).save() </code></pre> <p>You are creating new object, but your variable <code>movie_id</code> seems empty (<code>None</code>). You need to make sure it...
NOT NULL constraint failed: Movies_comment.movie_id djnago
python|django
-1
65
1
72,954,715
72,954,715
1
true
2022-07-12T14:02:22.493Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: NOT NULL constraint failed: Movies_comment.movie_id djnago<p>I get the error NOT NULL constraint failed: Movies_comment.movie_id . I'm trying to return the a...
72,953,737
Difference between two dates in business days? Google Bigquery<p>How do I calculate the difference between two dates in business days in Google Bigquery?</p> <p>I want to replicate this example below:</p> <p><a href="https://i.stack.imgur.com/4PWmI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4PWm...
<p>Consider below</p> <pre><code>create temp function BusinessDateDiff(delivery DATE, eta DATE) AS (( select if(delivery &gt; eta, 1, -1) * count(*) from unnest(generate_date_array( least(delivery, eta), greatest(delivery, eta) - 1 )) day where not extract(dayofweek from day) in (1, 7) )); select *, Bus...
Difference between two dates in business days? Google Bigquery
sql|google-bigquery|datediff
1
65
2
72,956,747
72,956,747
1
true
2022-07-12T14:11:00.173Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Difference between two dates in business days? Google Bigquery<p>How do I calculate the difference between two dates in business days in Google Bigquery?</p>...
72,954,585
Shell Script to lookup a value from one column of a file to another column of another file and compare the value of 2nd column<p>I have two files - Dir.txt (gets generated everyday with top 5 directories and the bytes used) Config.txt (user defined. it contains the directory name and the ideal size for that directory)<...
<p>So, here is an idea:</p> <pre><code>#! /bin/bash sed -n '1,2 d ; s/\(|\)\(.*\)\(|\)/\2/w config.sorted' config.txt sed -n '1,2 d ; s/\(|\)\(.*\)\(|\)/\2/w dir.sorted' dir.txt join --nocheck-order -t '|' dir.sorted config.sorted &gt; joined.txt dir_size=($(cat joined.txt | cut -d '|' -f2)) allowed_size=($(cat joined....
Shell Script to lookup a value from one column of a file to another column of another file and compare the value of 2nd column
bash|shell
0
65
1
72,959,128
72,959,128
1
true
2022-07-12T15:12:17.217Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Shell Script to lookup a value from one column of a file to another column of another file and compare the value of 2nd column<p>I have two files - Dir.txt (...
72,947,727
Apache POI - Java - Get Section Name - PowerPoint<p>Microsoft Powerpoint has a feature to split the slides by <a href="https://support.microsoft.com/en-us/office/organize-your-powerpoint-slides-into-sections-de4bf162-e9cc-4f58-b64a-7ab09443b9f8" rel="nofollow noreferrer">section (a logical grouping)</a>. What's the bes...
<p>The Office Open XML which Apache POI uses is Office Open XML defined in 2006 and first published in Office 2007. This OOXML does not know something about sections in presentations. Sections were introduced later (2010).</p> <p>Even ECMA-376 5th edition does not contain anything about sections in presentations. So Mi...
Apache POI - Java - Get Section Name - PowerPoint
java|apache-poi|powerpoint
0
65
1
72,967,468
72,967,468
1
true
2022-07-12T06:08:24.667Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Apache POI - Java - Get Section Name - PowerPoint<p>Microsoft Powerpoint has a feature to split the slides by <a href="https://support.microsoft.com/en-us/of...
72,969,488
Nuxt Docker: Exit code 0<p>I am building a Dockerfile for my Nuxt app. Whenever the container starts it gets exited with error code 0 immediately.</p> <p>Here is my Dockerfile:</p> <pre><code># Builder image FROM node:16-alpine as builder # Set up the working directory WORKDIR /app # Copy all files (Nuxt app) into th...
<p>OK, I needed to add .dockerignore file</p> <pre><code>frontend/.nuxt/ frontend/dist/ frontend/node_modules/ </code></pre>
Nuxt Docker: Exit code 0
docker|docker-compose|dockerfile|nuxt.js
1
65
1
72,970,737
72,970,737
1
true
2022-07-13T16:16:50.690Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Nuxt Docker: Exit code 0<p>I am building a Dockerfile for my Nuxt app. Whenever the container starts it gets exited with error code 0 immediately.</p> <p>Her...
72,965,582
Why is data from useQuery undefined when I start screen?<p>When I start screen, I get data from <code>useQuery</code></p> <p>And by using <code>useEffect</code>, I get data and immediately sort this data.</p> <p>After sorting data, I put this data to <code>useState</code> named flatlistdata.</p> <p>And I draw screen by...
<p>The query is an asynchronous operation, so, the <code>data</code> variable will always start out as undefined while the network request completes. There are two possible solutions.</p> <ol> <li><p>In your useEffect, only set your state if <code>data</code> is defined. Wrap your setFlatlistData with <code>if (allFee...
Why is data from useQuery undefined when I start screen?
react-native|use-effect|use-state|gql
0
65
1
72,973,886
72,973,886
1
true
2022-07-13T11:35:44.617Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why is data from useQuery undefined when I start screen?<p>When I start screen, I get data from <code>useQuery</code></p> <p>And by using <code>useEffect</co...
72,967,376
Return inferred generic type<p>I want to return the inferred type from a function on a class, but the return type is of the extended generic type, not the actual result of the function. I want to instead return the inferred type of the function.</p> <p>I tried a few things surrounding wrapping and unwrapping, but was ...
<p>In your shorter example, you are using the <a href="https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-7.html#instantiation-expressions" rel="nofollow noreferrer">instantiation expression</a> <code>typeof DocumentSet&lt;TDocumentType, TEntity&gt;</code> to refer to the type of a <a href="https:/...
Return inferred generic type
typescript|typescript-generics
1
65
1
72,985,408
72,985,408
1
true
2022-07-13T13:43:57.060Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Return inferred generic type<p>I want to return the inferred type from a function on a class, but the return type is of the extended generic type, not the ac...
72,968,960
pandoc: "No such file or directory" when converting file with Unicode characters in filename<p>Using the <a href="https://pandoc.org/" rel="nofollow noreferrer">pandoc</a> tool on Windows 11, I am trying to convert to HTML a Markdown file with Unicode characters in its name with the following command:</p> <pre><code>pa...
<p>Executing the <code>chcp 65001</code> command before running the <code>pandoc</code> command solved the issue. Thanks <a href="https://stackoverflow.com/users/2425163/tarleb">@tarleb</a> for providing this suggestion.</p>
pandoc: "No such file or directory" when converting file with Unicode characters in filename
windows|unicode|utf-8|filenames|pandoc
0
65
1
72,985,921
72,985,921
1
true
2022-07-13T15:35:58.837Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: pandoc: "No such file or directory" when converting file with Unicode characters in filename<p>Using the <a href="https://pandoc.org/" rel="nofollow noreferr...
72,987,595
Implementation of Insertion Sort Algorithm in python<p>I was trying to implement the insertion sort algorithm in python and was able to code it as below, I am not getting the whole array sorted and was wondering if this implementation has the proper thought process behind it, if not I would greatly appreciate if someon...
<p>The goal of your function would be to shift <code>array[i]</code> into the sorted partition, but it actually does that for <code>array[i-1]</code>, because the inner loop starts with <code>j</code> equal to <code>i-1</code>.</p> <p>So the easy fix is to change:</p> <pre><code> for j in reversed(range(1, i)): </co...
Implementation of Insertion Sort Algorithm in python
python|algorithm|sorting|insertion-sort
0
65
2
72,989,757
72,989,757
1
true
2022-07-14T23:24:32.507Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Implementation of Insertion Sort Algorithm in python<p>I was trying to implement the insertion sort algorithm in python and was able to code it as below, I a...
72,983,643
Datatable adding a new row with row.add.draw() but with different content then the other rows<p>I am trying to add a new row to the datatable loaded by ajax, but need the content of the new row to be different then the previous rows. I am using row.add.draw() and a new row is added to the table but with the same fields...
<p>In your data add a <code>type</code> property that will tell DataTables if this is a new row or an existing one. You will need to modify your Ajax return to include this property also (but with the value &quot;existing&quot;)</p> <pre class="lang-js prettyprint-override"><code>{&quot;mls&quot;: '',&quot;street&quot;...
Datatable adding a new row with row.add.draw() but with different content then the other rows
javascript|jquery|datatable|datatables|wordpress-plugin-creation
1
65
1
72,991,049
72,991,049
1
true
2022-07-14T16:14:08.120Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Datatable adding a new row with row.add.draw() but with different content then the other rows<p>I am trying to add a new row to the datatable loaded by ajax,...
72,971,576
Can we get columns names sorted in the order of their tf-idf values (if exists) for each document?<p>I'm using sklearn TfIdfVectorizer. I'm trying to get the column names in a list in the order of thier tf-idf values in decreasing order for each document? So basically, If a document has all the stop words then we don't...
<p>I think this code does what you want and avoids using pandas:</p> <pre><code>from itertools import groupby sort_func = lambda v: v[0] # sort by first value in tuple all_dicts = [] for row in tfidf_matrix.toarray(): sorted_vals = sorted(zip(row, tfidf_vect.get_feature_names()), key=sort_func, reverse=True) a...
Can we get columns names sorted in the order of their tf-idf values (if exists) for each document?
python-3.x|pandas|tf-idf|columnsorting|tfidfvectorizer
0
65
2
72,991,608
72,991,608
1
true
2022-07-13T19:22:36Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Can we get columns names sorted in the order of their tf-idf values (if exists) for each document?<p>I'm using sklearn TfIdfVectorizer. I'm trying to get the...
73,004,745
Python Networkx route though all nodes<p>I'm trying to write a small route planning application in python just to learn about graphs. In the end, the user should be able to pass in his &quot;home&quot; location and enter some locations he wants to stop by. The application will then calculate the optimal path that start...
<p>If you have a graph G and want to find the route from A (home) to B to C to D (final destination) in order, you'd call <a href="https://networkx.org/documentation/stable/reference/algorithms/generated/networkx.algorithms.shortest_paths.weighted.dijkstra_path.html#networkx.algorithms.shortest_paths.weighted.dijkstra_...
Python Networkx route though all nodes
python|graph|networkx
0
65
3
73,004,782
73,004,782
1
true
2022-07-16T13:50:18.733Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Python Networkx route though all nodes<p>I'm trying to write a small route planning application in python just to learn about graphs. In the end, the user sh...
73,005,694
How can optimize this boolean function for speed?<p>I have 2 unsigned 8 bit integers a,b.</p> <p>The result of the calculation is either -1 or 1.</p> <p>I work with the binary representation of the integers a,b</p> <pre><code>a=173; b=154; bina = &quot;10101101&quot; binb = &quot;10011010&quot; </code></pre> <p>first, ...
<p>First: aANb and bANa need to be calculated only once outside of the loop.</p> <p>Second: you don't have to calculate the sum since adding an odd number to sum will invert the &quot;odd&quot; state you can use only an XOR operation:</p> <pre><code>int a = 173; int b = 154; int odd = 0; int aANb = a &amp; ~b; int bAN...
How can optimize this boolean function for speed?
c#|optimization
-1
65
1
73,006,042
73,006,042
1
true
2022-07-16T15:59:00.033Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can optimize this boolean function for speed?<p>I have 2 unsigned 8 bit integers a,b.</p> <p>The result of the calculation is either -1 or 1.</p> <p>I wo...
73,002,826
Spring Data/JPA and errorType : object references an unsaved transient instance - save the transient instance before flushing<p><a href="https://i.stack.imgur.com/tFuSU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tFuSU.png" alt="enter image description here" /></a></p> <p>I have this error with J...
<p><a href="https://i.stack.imgur.com/2QfEN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2QfEN.png" alt="i" /></a></p> <p>In fact the problem concerned entities mapping. Instead of @ElementCollection i use now @OneToMany for the user's weights list and it's ok. I have imported a screenshoot of my...
Spring Data/JPA and errorType : object references an unsaved transient instance - save the transient instance before flushing
java|hibernate|spring-data-jpa
0
65
1
73,006,762
73,006,762
1
true
2022-07-16T08:51:06.307Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Spring Data/JPA and errorType : object references an unsaved transient instance - save the transient instance before flushing<p><a href="https://i.stack.imgu...
73,002,719
How to rotate only Table, using borb (PDF library) python?<p>I am using <a href="https://borbpdf.com/" rel="nofollow noreferrer">borb</a> (PDF library in python). I need to <strong>rotate</strong> Only the <strong>table</strong>. (Also the text inside the table should be rotated as per the table rotation)</p> <ul> <li>...
<p><strong>disclaimer</strong>: I am the author of the <code>borb</code> library.</p> <p><code>borb</code> currently does not support rotating <code>LayoutElement</code>.</p> <p>There are two things you could do:</p> <ul> <li>rotate the <code>Page</code></li> <li>edit the <code>Page</code> content-stream, and insert a ...
How to rotate only Table, using borb (PDF library) python?
python|python-3.x|pdf|borb
0
65
1
73,008,130
73,008,130
1
true
2022-07-16T08:30:24.857Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to rotate only Table, using borb (PDF library) python?<p>I am using <a href="https://borbpdf.com/" rel="nofollow noreferrer">borb</a> (PDF library in pyt...
72,987,817
sqlalchemy not connecting to database file on networked file server. sqlite3 is connecting though<p>Basically trying to connect a flask app to a sqlite database file on a networked windows file server using flask-sqlalchemy (fully aware of the considerations when using a sqlite database over a network.) The flask app w...
<p>Gord Thompson's comment was correct. Adding an addition slash was the remedy.</p> <pre><code>db = sqlalchemy.create_engine(r&quot;sqlite://///ppcou.ucsc.edu\Data\Archive_Data\archives_app.db&quot;) db.connect() </code></pre>
sqlalchemy not connecting to database file on networked file server. sqlite3 is connecting though
python|sqlite|flask|sqlalchemy|flask-sqlalchemy
0
65
1
73,027,125
73,027,125
1
true
2022-07-15T00:06:56.567Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: sqlalchemy not connecting to database file on networked file server. sqlite3 is connecting though<p>Basically trying to connect a flask app to a sqlite datab...
72,401,330
How to convert a Pandas DataFrame into a valid MLserver Predict V2-encoded payload?<p>I recently found the KServe and MLserver projects which are open source tools for serving ML models. These are great. What's not so great is that these both use a (new to me) and novel formatting for inference inputs, documented here:...
<p>The V2 Inference Protocol can be thought of as a lower-level spec. It doesn't try to define how to encode higher-level data types (e.g. a Pandas Dataframe) and leaves this to the inference servers themselves.</p> <p>Based on this, MLServer introduces its own conventions which, if followed, ensure that the payload ge...
How to convert a Pandas DataFrame into a valid MLserver Predict V2-encoded payload?
python|pandas|seldon
0
65
1
73,033,658
73,033,658
1
true
2022-05-27T06:29:57.257Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to convert a Pandas DataFrame into a valid MLserver Predict V2-encoded payload?<p>I recently found the KServe and MLserver projects which are open source...
73,029,861
Why private members are not passed from Cadence activities?<p>I noticed that when I use a struct consisting of both public and private members, then the private ones are not copied(?) by Cadence activities.</p> <p>For example I have a struct:</p> <pre><code>package foo type Foo struct { Name string Publ...
<p>Cadence (and Temporal) by default use <code>json.Marshal</code> to serialize and <code>json.Unmarshall</code> to deserialize activity arguments. It doesn't serialize private fields.</p> <p><a href="https://riptutorial.com/go/example/14194/marshaling-structs-with-private-fields" rel="nofollow noreferrer">Here is</a> ...
Why private members are not passed from Cadence activities?
go|cadence-workflow|temporal-workflow|uber-cadence
0
65
2
73,037,110
73,037,110
1
true
2022-07-19T00:22:08.347Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why private members are not passed from Cadence activities?<p>I noticed that when I use a struct consisting of both public and private members, then the priv...
73,006,126
Testing string membership using (in) keyword in python is very slow<h2>I have the following text dataset:</h2> <h4>4 million paragraphs of length between (10-60 words each).</h4> <pre><code>paragraphs = ['yarrow heart lamium bleeding daisy pea', 'sweet shasta sedum daisy yarrow rhododendron', 'rhododendron pea shasta...
<pre class="lang-py prettyprint-override"><code>from collections import defaultdict def defaultdict_init(): return defaultdict(defaultdict_init) # let's split your sentences into words and build a kind of a tree, so any # word check is O(1) def sentences_to_tree(sentences): tree = defaultdict_init() for ...
Testing string membership using (in) keyword in python is very slow
python|pandas|dask
2
65
2
73,085,192
73,085,192
1
true
2022-07-16T16:58:20.527Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Testing string membership using (in) keyword in python is very slow<h2>I have the following text dataset:</h2> <h4>4 million paragraphs of length between (10...
72,995,715
Reinforcement learning deterministic policies worse than non deterministic policies<p>We have a custom reinforcement learning environment within which we run a PPO agent from stable baselines3 for a multi action selection problem. The agent learns as expected but when we evaluate the learned policy from trained agents ...
<p>You need to be very careful before making stochastic agents deterministic. This is because they can become unable to achieve certain goals. Consider the following over-simplified example with 8 states:</p> <pre><code>| | # | | # | | | X |---| G |---| X | </code></pre> <p>'G' is goal, 'X' is pit, '-' is wall. T...
Reinforcement learning deterministic policies worse than non deterministic policies
reinforcement-learning|policy|deterministic|stable-baselines
1
65
1
73,168,688
73,168,688
1
true
2022-07-15T14:41:14.420Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Reinforcement learning deterministic policies worse than non deterministic policies<p>We have a custom reinforcement learning environment within which we run...
73,022,795
Supress logs while running Azure Powershell commands<p>I an running Azure Powershell commands where I will be adding the Network rules to storage account, diagnostic logs storage account and Keyvault and I am using the following Azure commands.</p> <ul> <li>Add-AzStorageAccountNetworkRule</li> <li>Add-AzKeyVaultNetwork...
<p>Thank you @Gaurav Mantri, For the last blog you posted. its gave the output as per op's requirement for the logs. Posting it as an answer to beneficial for other community members.</p> <p><em><strong>We have also tried the same using the <a href="https://geekeefy.wordpress.com/2017/10/07/4-ways-to-send-output-to-nul...
Supress logs while running Azure Powershell commands
azure|powershell|logging|azure-powershell|flags
0
65
1
73,223,027
73,223,027
1
true
2022-07-18T13:06:37.367Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Supress logs while running Azure Powershell commands<p>I an running Azure Powershell commands where I will be adding the Network rules to storage account, di...
72,990,213
How to start a broadcaster using daily.co prebuilt code<p>I have created a room and set Owner only broadcast to true. but when I run the link, I am only able to join it as a viewer. And get the screen saying &quot;waiting for your host to arrive&quot;. How can i join to it as a broadcaster. Can anyone help in resolving...
<p>This blog post might be helpful: <a href="https://www.daily.co/blog/intro-to-room-access-control/" rel="nofollow noreferrer">https://www.daily.co/blog/intro-to-room-access-control/</a></p> <p>To answer your specific question, broadcast meetings require a meeting owner (I think this is what you mean by joining as a &...
How to start a broadcaster using daily.co prebuilt code
javascript|html|webrtc|broadcast|broadcasting
0
65
1
73,078,212
73,078,212
1
true
2022-07-15T07:07:17.810Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to start a broadcaster using daily.co prebuilt code<p>I have created a room and set Owner only broadcast to true. but when I run the link, I am only able...
72,922,909
How to perform in and not in operation just like in SQL without using SQL query or SQL / table<p>This is the SQL query</p> <pre><code>select * from Students where StudentID in (select StudentID from FeeEntry); </code></pre> <p>I want to perform this SQL query in ASP.NET Core MVC without using SQL query command or any ...
<p>You can use Entity Framework, you can find information here:</p> <ol> <li>Read about Entity Framework <a href="https://docs.microsoft.com/en-us/ef/ef6/?redirectedfrom=MSDN" rel="nofollow noreferrer">here</a>.</li> <li>Read about LINQ to SQL <a href="https://docs.microsoft.com/en-us/previous-versions/dotnet/articles/...
How to perform in and not in operation just like in SQL without using SQL query or SQL / table
c#|sql-server|entity-framework-core
1
65
1
72,923,229
72,923,229
1
true
2022-07-09T16:10:18.083Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to perform in and not in operation just like in SQL without using SQL query or SQL / table<p>This is the SQL query</p> <pre><code>select * from Students...
72,784,509
concat several pandas dataframes<pre><code>df1 = pd.DataFrame({'a':['id1','id2','id3'],'b':['W','W','W'],'c1':[1,2,3]}) df2 = pd.DataFrame({'a':['id1','id2','id3'],'b':['W','W','W'],'c2':[4,5,6]}) df3 = pd.DataFrame({'a':['id1','id4','id5'],'b':['Q','Q','Q'],'c1':[7,8,9]}) </code></pre> <p>I'm trying to concatenate <co...
<p>You can join <code>MultiIndex Series</code> created by <a href="http://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.stack.html" rel="nofollow noreferrer"><code>DataFrame.stack</code></a>:</p> <pre><code>l = [d.set_index(['a','b']).stack() for d in [df1,df2,df3]] df = pd.concat(l).unstack().sor...
concat several pandas dataframes
python|pandas
3
65
5
72,784,808
72,784,808
1
true
2022-06-28T10:06:40.533Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: concat several pandas dataframes<pre><code>df1 = pd.DataFrame({'a':['id1','id2','id3'],'b':['W','W','W'],'c1':[1,2,3]}) df2 = pd.DataFrame({'a':['id1','id2',...
72,994,592
Applying group by and sum on array of objects in javascript<p>I need some advice on the proper way to attain my goal of applying group by and sum on JSON data.</p> <p>Some server-side code actually generates a JSON that I have to work with :</p> <pre><code>[ { &quot;siteDetails&quot;: { &quot;pr...
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>const myData = [ { "siteDetails": { "printerCode": "660103684", "siteId": "UTT212303-STB-2040-00...
Applying group by and sum on array of objects in javascript
javascript|node.js|mongodb|backend
-3
65
3
72,994,844
72,994,844
1
true
2022-07-15T13:15:36.450Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Applying group by and sum on array of objects in javascript<p>I need some advice on the proper way to attain my goal of applying group by and sum on JSON dat...
72,851,223
How to apply linear-gradient css to generally any 2 spans that have background color overlapped with each other?<h3>Given Situation</h3> <p>1 .</p> <p>Say I have 2 spans, both with <code>background-color</code>, and one is inside another (<strong>overlapped</strong>):</p> <pre class="lang-html prettyprint-override"><co...
<h3>Solution (workaround)::</h3> <p><a href="https://jsfiddle.net/SelectNt/9d8hyec1/" rel="nofollow noreferrer">jsfiddle: Highlight Background color Overlap (soln)</a></p> <p>1 .</p> <p>you need a <code>Master class</code> (Css Style Rule)</p> <pre class="lang-css prettyprint-override"><code>span.hlBackgroundMs { --c...
How to apply linear-gradient css to generally any 2 spans that have background color overlapped with each other?
html|css|background-color
1
65
2
72,983,312
72,983,312
1
true
2022-07-04T02:25:57.627Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to apply linear-gradient css to generally any 2 spans that have background color overlapped with each other?<h3>Given Situation</h3> <p>1 .</p> <p>Say I ...
73,020,644
adding row number to QTableView in pyside2<p>is there any way I could add a row number beside the QTableView just for info and not actually add it into the data so that I could export it without the row number as a new column? it seems like everyone has it on default while mine is not showing at all. i tried <code>tabl...
<p>You can just return the row number in your headerData implementation like:</p> <pre><code>QVariant MyTable::headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const { if (orientation == Qt::Vertical &amp;&amp; role == Qt::DisplayRole) return section; return QAbstractItem...
adding row number to QTableView in pyside2
qt|pyside2
1
65
2
73,026,552
73,026,552
1
true
2022-07-18T10:13:12.950Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: adding row number to QTableView in pyside2<p>is there any way I could add a row number beside the QTableView just for info and not actually add it into the d...
72,974,466
Running a loop without "Breaks"?<p>Suppose I have the following list of websites - there are 3 &quot;good websites&quot; (that work) and 2 &quot;bad websites&quot; (that don't work - this will &quot;crash&quot; the LOOP). This looks something like this:</p> <pre><code># list of website (called &quot;links&quot;): head...
<p>You can wrap the code in a try_catch statement. Let me know if this works:</p> <pre><code>for (i in 1:length) { tryCatch({ url_i&lt;-links[i] page_i &lt;-read_html(url_i) b_i = page_i %&gt;% html_nodes(&quot;div.one_third&quot;) listanswer_i &lt;- b_i %&gt;% html_text() %&gt;% strsplit(&quot;\...
Running a loop without "Breaks"?
html|r|loops|web-scraping
1
65
2
72,974,512
72,974,512
1
true
2022-07-14T02:14:54.607Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Running a loop without "Breaks"?<p>Suppose I have the following list of websites - there are 3 &quot;good websites&quot; (that work) and 2 &quot;bad websites...
72,833,711
LIMITING MAX VALUES IN SQL<p>I am completely rewriting this question, I just cant crack it</p> <p>IDB DB2 SQL</p> <p>(from a Chicago Crime Dataset) Which community area is most crome prone?</p> <p>When I use this code, it does correctly count and sort the data</p> <pre><code>select community_area_number as community_ar...
<p>What you would be looking for is the standard SQL clause <code>FETCH WITH TIES</code>;</p> <pre><code>select community_area_number, count(*) as total_area_crime from chicago_crime_data group by community_area_number order by total_area_crime desc fetch first row with ties; </code></pre> <p>Unfortunately, though, DB2...
LIMITING MAX VALUES IN SQL
sql|sorting|db2|max|limit
2
65
3
72,837,164
72,837,164
1
true
2022-07-01T19:11:10.110Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: LIMITING MAX VALUES IN SQL<p>I am completely rewriting this question, I just cant crack it</p> <p>IDB DB2 SQL</p> <p>(from a Chicago Crime Dataset) Which com...
72,936,754
Iterate through named range and update values<p>I need to iterate through a named range in Google Sheet and update the value based on other named ranges.</p> <p>I have this now and I'm getting an error on line 13</p> <pre><code>function onEdit(e) { var ss = SpreadsheetApp.getActiveSpreadsheet(); var FreeCopiesTarg...
<h3>Issue:</h3> <p><code>r</code> is a value from a cell, which can be a <code>Number</code>, <code>Boolean</code>, <code>String</code>, or a <code>Date</code>. None of these includes the method <a href="https://developers.google.com/apps-script/reference/spreadsheet/range#setvaluevalue" rel="nofollow noreferrer">setVa...
Iterate through named range and update values
google-apps-script|google-sheets|named-ranges|setvalue
-1
65
2
72,938,713
72,938,713
1
true
2022-07-11T09:59:54.897Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Iterate through named range and update values<p>I need to iterate through a named range in Google Sheet and update the value based on other named ranges.</p>...
72,865,170
Object is of type 'unknown' error while setting data in react d3<p>I am trying to set up a custom hook that fetches data, does some manipulations on the data and returns the manipulated data in a react d3 application. The data <code>type</code> is</p> <pre><code>interface EventViewerDataTypes { date: string sit...
<p>There are a number of issues with your code:</p> <h4>Untyped JSON response</h4> <p>There is no way for the TypeScript compiler to infer what type will be retrieved from the <code>jsonUrl</code>.</p> <p>According to the <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/d3-fetch/index.d.ts"...
Object is of type 'unknown' error while setting data in react d3
javascript|reactjs|typescript|d3.js
2
65
1
72,865,275
72,865,275
1
true
2022-07-05T06:59:17.207Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Object is of type 'unknown' error while setting data in react d3<p>I am trying to set up a custom hook that fetches data, does some manipulations on the data...
72,955,817
Possible to Dynamically Connect to Postgres DB from Laravel without using Config ? See Example<p>I have a situation where I'd like to dynamically choose the DB host for postgres DB connections in a Laravel application running in Docker. I don't particularly want to use ENV values or the config/database.php file becaus...
<p>Instead of setting your config, just create a custom database connection using factory. The only downside - you will not be able to use Eloquent as it resolves connection by its name defined in configs. Also, avoid using env variables anywhere else than config files - create other config and use it instead. There is...
Possible to Dynamically Connect to Postgres DB from Laravel without using Config ? See Example
php|laravel|postgresql|eloquent
0
65
1
72,956,965
72,956,965
1
true
2022-07-12T16:51:16.317Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Possible to Dynamically Connect to Postgres DB from Laravel without using Config ? See Example<p>I have a situation where I'd like to dynamically choose the ...
72,861,756
Flutter cannot use Google fonts in text<p>When I try to use google_fonts I get an error like this. I also imported the library and added &quot; google_fonts: ^3.0.1&quot; to the &quot;pub.yml&quot; file. &quot; I added.</p> <p><a href="https://i.stack.imgur.com/brmfc.png" rel="nofollow noreferrer"><img src="https://i.s...
<p>The issue is coming from <code>children: const &lt;Widget&gt;[</code> remove <code>const</code>.</p> <pre class="lang-dart prettyprint-override"><code> child: Column( mainAxisSize: MainAxisSize.min, children: &lt;Widget&gt;[ // here CircleAvatar( backgrou...
Flutter cannot use Google fonts in text
flutter|dart|flutter-layout
0
65
1
72,861,801
72,861,801
1
true
2022-07-04T20:29:24.507Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Flutter cannot use Google fonts in text<p>When I try to use google_fonts I get an error like this. I also imported the library and added &quot; google_fonts:...
72,897,709
Flutter, riverpod StateProvider not uploading ui<p>I am using flutter riverpod, and I am watching a provider. But when I change the value of the provider, the build method is not being called.</p> <p>The build method is not called again when I call :</p> <pre><code> ref.read(customObjectProvider.notifier).state.name...
<p>Here StateProvider is using <code>MyCustomObject</code>, means every state will a <code>MyCustomObject</code>.</p> <p>This line update the single variable(name), not the state</p> <pre><code>ref.read(customObjectProvider.notifier).state.name = 'Reuven'; </code></pre> <p>You can update the state like</p> <pre class="...
Flutter, riverpod StateProvider not uploading ui
flutter|dart|riverpod|flutter-riverpod
1
65
1
72,902,994
72,902,994
1
true
2022-07-07T12:20:25.510Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Flutter, riverpod StateProvider not uploading ui<p>I am using flutter riverpod, and I am watching a provider. But when I change the value of the provider, th...
72,914,274
Why does matched geometry effect break when the matched views are in separate variables?<p>The matched geometry effect works properly when my code looks like this:</p> <pre><code> @State var isZoomed: Bool = false @State var showText: Bool = false @Namespace var namespace var user: UserModel = examp...
<p>Actually it runs fine with me, also in vars.</p> <pre><code>struct ContentView: View { @State var isZoomed: Bool = false @Namespace var namespace var body: some View { VStack { if !isZoomed { nonZoom } else { fullZoom }...
Why does matched geometry effect break when the matched views are in separate variables?
ios|swift|swiftui
0
65
1
72,915,555
72,915,555
1
true
2022-07-08T16:19:01.837Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why does matched geometry effect break when the matched views are in separate variables?<p>The matched geometry effect works properly when my code looks like...
72,935,086
Refresh/Re-open Qdialog with QTableWidget inside<p>I have a program that is &quot;divided&quot; in 6 classes, the first class is the Main Window where I can choose where I'd like to go (I have 4 choices, a page to visualize all the data, one to modify and the other 2 to visualize data with filters), each of theese page...
<p>One solution could be to set up signals that would update the table as the user makes changes so there would be no need to refresh at all.</p> <p>For example:</p> <p>Set up a signal in your dialog class that will be emitted whenever the user changes the data. Then in the original dialog with the table you want to up...
Refresh/Re-open Qdialog with QTableWidget inside
python|sql-server|pyqt5|qtablewidget|qdialog
1
65
1
72,946,227
72,946,227
1
true
2022-07-11T07:30:46.853Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Refresh/Re-open Qdialog with QTableWidget inside<p>I have a program that is &quot;divided&quot; in 6 classes, the first class is the Main Window where I can ...