question_id
int64
37.6M
73.2M
input_text
stringlengths
88
52.4k
output_text
stringlengths
37
35.6k
title
stringlengths
15
150
tags
stringlengths
1
107
q_score
int64
-19
397
view_count
int64
3
879k
answer_count
int64
1
21
accepted_answer_id
int64
37.6M
73.8M
answer_id
int64
37.6M
73.8M
a_score
int64
-5
1.29k
is_accepted
bool
1 class
creation_date
stringlengths
20
24
input_text_instruct
stringlengths
251
52.6k
73,027,095
Entity Framework Core .Net 6.0 many-to-many. Do not understand how this should work<p>We are currently working on a project where we migrate from NHibernate to the Entity Framework Core with .Net 6.0. I've scaffolded the existing database to create a new Code First model and most of the entities I use are just working ...
<p>For anyone who want to know how to do this. Here's a description of my solution.</p> <pre><code>namespace Wur.WurScheduler.Blazor.Core.Models.Database { public partial class Person : EntityWithId { public ICollection&lt;ScheduledTimeSlot&gt; ScheduledTimeSlots { get; set; } // Define a list t...
Entity Framework Core .Net 6.0 many-to-many. Do not understand how this should work
entity-framework-core|many-to-many|.net-6.0
0
54
1
73,054,746
73,054,746
0
true
2022-07-18T18:38:58.377Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Entity Framework Core .Net 6.0 many-to-many. Do not understand how this should work<p>We are currently working on a project where we migrate from NHibernate ...
73,025,965
What's the best way to get image color analysis data in React?<p>I want to get pixel-by-pixel color data for an image so I can adapt it into a &quot;8-bit&quot; sort of look using a grid of colored squares.</p> <p>From the research I've done so far, it looks like the standard way to get that kind of data is using an HT...
<p>You're not waiting for the image to load. (As with regular HTML, that happens asynchronously.)</p> <p>So, instead of using an effect that's run as soon as the component has mounted, hook it up to your image's <code>onLoad</code>. Aside from that:</p> <ul> <li>You don't need to check whether <code>imgRef</code> is nu...
What's the best way to get image color analysis data in React?
reactjs|image-processing|html5-canvas
1
54
1
73,026,402
73,026,402
0
true
2022-07-18T16:57:07.070Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: What's the best way to get image color analysis data in React?<p>I want to get pixel-by-pixel color data for an image so I can adapt it into a &quot;8-bit&qu...
72,839,382
How to set the date format on wx.adv.DatePickerCtrl<p>I am using the wxPython wx.adv.DatePickerCtrl and it presents the dates as &quot;mm dd yyyy&quot;. I want &quot;dd mm yyyy&quot;. How can I do this? I can see nothing in the <a href="https://docs.wxpython.org/wx.adv.DatePickerCtrl.html?highlight=datepicker#wx.adv.Da...
<p>As time has progressed I have realised that there is a distinct need for a more flexible version of this control. I have written a control that allows the date to picked from a dialog that uses a wx.adv.CalendarCtrl.</p> <p>The initial value of the date in the control can be set using the <em>date</em> property and ...
How to set the date format on wx.adv.DatePickerCtrl
wxpython
0
54
2
73,223,134
73,223,134
0
true
2022-07-02T13:23:30.693Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to set the date format on wx.adv.DatePickerCtrl<p>I am using the wxPython wx.adv.DatePickerCtrl and it presents the dates as &quot;mm dd yyyy&quot;. I wa...
72,930,385
Is there a way to get a variable or function from one file to another file in javascript?<p>I have a file for my Blockchain called gale.js, and I need the Blockchain variable to get into my miner.js file:</p> <pre><code>let galeCoin = new Blockchain(); // My Blockchain </code></pre> <p>Can I access this variable from m...
<p>Try using the following to import galeCoin from <code>gale.js</code>:</p> <pre><code>var {galeCoin} = require('./gale.js'); </code></pre> <p>You'll also need to export the galeCoin object from <code>gale.js</code>. You can use the following (append somewhere at the end of <code>gale.js</code>):</p> <pre><code>module...
Is there a way to get a variable or function from one file to another file in javascript?
javascript|import|blockchain
1
54
2
72,930,619
72,930,619
0
true
2022-07-10T17:08:00.980Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Is there a way to get a variable or function from one file to another file in javascript?<p>I have a file for my Blockchain called gale.js, and I need the Bl...
72,856,753
ActionChains is not updating the data within the table<p>I am trying to scrape data from <a href="https://beta.bls.gov/dataViewer/view/timeseries/CUUR0000SA0" rel="nofollow noreferrer">this website</a> using Selenium.</p> <p>There are three features in data, &quot;Value&quot;, &quot;Net change&quot; and &quot;percent c...
<p>The website is showing N/A in the column of 1 Month Net change. if you still not getting 1 month % change value you can do</p> <pre><code>driver.execute_script('document.querySelector(&quot;#percent_monthly_changes_div &gt; table &gt; tbody &gt; tr:nth-child(1) &gt; td:nth-child(1) &gt; label &gt; input&quot;).click...
ActionChains is not updating the data within the table
python-3.x|selenium|web-scraping|selenium-chromedriver
0
54
2
72,858,441
72,858,441
0
true
2022-07-04T12:26:30.773Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: ActionChains is not updating the data within the table<p>I am trying to scrape data from <a href="https://beta.bls.gov/dataViewer/view/timeseries/CUUR0000SA0...
72,790,843
How to make JS stack really "wait" for the ending of an asynchronous function?<p>I'm learning how Asynchronous JavaScript works, and I'm trying to print to the console the numbers 1 and 2 (in this order). The function that logs 1 has a setTimeout, and as such, the order is always inverted. I know why this happens. I ju...
<p>Thank you guys for your feedback. I upvoted your answers as they both helped me solve this issue, and helped me get to a higher understanding of the matter at hand (but because I'm still new here, the upvote is just like a Promise).</p> <p>However, I feel like none of them has gotten to the SPECIFIC point that was c...
How to make JS stack really "wait" for the ending of an asynchronous function?
javascript|asynchronous|async-await
0
54
3
72,800,386
72,800,386
0
true
2022-06-28T17:30:09.377Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to make JS stack really "wait" for the ending of an asynchronous function?<p>I'm learning how Asynchronous JavaScript works, and I'm trying to print to t...
72,772,642
text Gradient color shadow not display properly in flutter<p>I'm displaying text in gradient color. it displays but when I display that text in gradient color it does not display properly.</p> <p>it displays like this.</p> <p><a href="https://i.stack.imgur.com/4MAAa.png" rel="nofollow noreferrer"><img src="https://i.st...
<p>Wrap <code>Text</code> with <code>Padding</code> will fix this issue:</p> <pre><code>import 'package:flutter/material.dart'; class GradientText extends StatelessWidget { const GradientText( this.text, { required this.gradient, this.style, }); final String text; final TextStyle? sty...
text Gradient color shadow not display properly in flutter
flutter|dart|widget|gradient
0
54
1
72,774,152
72,774,152
1
true
2022-06-27T13:07:53.460Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: text Gradient color shadow not display properly in flutter<p>I'm displaying text in gradient color. it displays but when I display that text in gradient colo...
72,783,097
Import module dynamically<p>I have a program that supports different communication protocols. The idea is, that the user chooses the protocol during startup and then the module supporting the respective protocol is imported.</p> <p>The function below populates the <code>protocol</code> module with all functions and var...
<p>Both of your functions don't don't return anything useful (they both return <code>None</code>). Your first function tries to modify <code>vars</code>, but that won't do anything useful. From the <a href="https://docs.python.org/3/library/functions.html#vars" rel="nofollow noreferrer">docs</a>:</p> <blockquote> <p>Wi...
Import module dynamically
python|python-import
1
54
2
72,783,219
72,783,219
1
true
2022-06-28T08:25:14.183Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Import module dynamically<p>I have a program that supports different communication protocols. The idea is, that the user chooses the protocol during startup ...
72,783,597
Running .NET6 SwaggerApi on a raspberrypi<p>i am trying to run a .Net6 Entity Framework API on my raspberrypi.</p> <p>After following the Microsoft Docs and running the application, i cannot access swaggerui or API.</p> <p>There are no errors poping up in console when i try to access the page via http://localhost:5000/...
<p>To retrieve the Swagger document you need to use its full path. From the <a href="https://docs.microsoft.com/en-us/aspnet/core/tutorials/getting-started-with-swashbuckle?view=aspnetcore-6.0&amp;tabs=visual-studio#add-and-configure-swagger-middleware" rel="nofollow noreferrer">Get started with Swashbuckle and ASP.NET...
Running .NET6 SwaggerApi on a raspberrypi
c#|entity-framework|raspberry-pi|swagger|.net-6.0
0
54
2
72,783,866
72,783,866
1
true
2022-06-28T09:02:30.113Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Running .NET6 SwaggerApi on a raspberrypi<p>i am trying to run a .Net6 Entity Framework API on my raspberrypi.</p> <p>After following the Microsoft Docs and ...
72,784,407
Issues when choosing between threading and multiprocessing<p>Have an issue with parallelising a code, using joblib.Parallel. When the backend is <code>threading</code> it works as intended as seen below, in terms of results. Meaning that both <code>print</code> show the intended result. When changing the backend to <co...
<p>Multithreaded: The <code>out_list</code> is passed by reference to the child threads. So when they change it it changes in all the threads.</p> <p>Multiprocess: The <code>out_list</code> (in fact the whole memory footprint) is <strong>copied</strong> to the child processes. So when children update the list that chan...
Issues when choosing between threading and multiprocessing
python|multithreading|multiprocessing|joblib
0
54
1
72,784,791
72,784,791
1
true
2022-06-28T09:59:48.173Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Issues when choosing between threading and multiprocessing<p>Have an issue with parallelising a code, using joblib.Parallel. When the backend is <code>thread...
72,790,801
Filter one object if multiple conditions in another object are true<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>var data = [ {"id": 1, "area": 965, "bedrooms": 1, "floor": 3...
<p>You can <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter" rel="nofollow noreferrer"><code>filter</code></a> those data objects where <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/every" rel="nofollow noreferrer"><...
Filter one object if multiple conditions in another object are true
javascript|arrays|object|filter
0
54
3
72,790,861
72,790,861
1
true
2022-06-28T17:25:02.447Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Filter one object if multiple conditions in another object are true<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="f...
72,782,924
Subtracting time in python where the result is always positive<p>I am trying to compute differences in time as follows:</p> <pre><code>import datetime time_1 = datetime.datetime.strptime('18:00',&quot;%H:%M&quot;) time_2 = datetime.datetime.strptime('05:00',&quot;%H:%M&quot;) time_interval = time_2 - time_1 </code></...
<p>Both times you give are <strong>in the same day</strong>.</p> <p>If you mean the second one to always be in the <strong>future</strong> (positive difference), you need to move it into the future, if it's not already. Check it for being &quot;smaller&quot;, and if it's smaller, you have to add a day to it.</p> <pre c...
Subtracting time in python where the result is always positive
python|datetime
1
54
2
72,791,147
72,791,147
1
true
2022-06-28T08:12:38.607Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Subtracting time in python where the result is always positive<p>I am trying to compute differences in time as follows:</p> <pre><code>import datetime time_...
72,887,255
Why does isolated V3 App service Environment have 2 outbound IP?<p>Version 2 App service environment gives 1 outbound IP</p> <p>But with ver,3 isolated App service Environment I get 2 outbound IP. background : I need to whitelist the outbound IP, and I would prefer to just whitelist 1 IP instead of 2.</p> <p>Can i del...
<blockquote> <p>Can i delete one of the outbound IP?</p> </blockquote> <p>There are 2 outbound IPs because there are 2 load balancers in the infra vnet for ASEv3. One IP is for the infra roles (Multi,FE, etc) and the other is for the workers outbound connection. We provide both as outbound ips because outbound traffic ...
Why does isolated V3 App service Environment have 2 outbound IP?
azure-app-service-envrmnt
0
54
1
73,272,481
73,272,481
0
true
2022-07-06T16:52:01.817Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why does isolated V3 App service Environment have 2 outbound IP?<p>Version 2 App service environment gives 1 outbound IP</p> <p>But with ver,3 isolated App s...
72,782,892
Multicast in Docker container and on standalone desktop application not working<p>I have an application (UI) that monitors multicast streams to see if the streams are working correctly. On top of that, I have a docker container (that runs in &quot;network_mode: host&quot;) that also listens to the multicast streams and...
<p>The problem was not really about multicast but, in fact, was about the user which owns the multicast UDP socket.</p> <p>By default, the docker container is started as <strong>root</strong> user and the monitoring interface is started with the host's user. And, as mentioned in the SO_REUSEPORT documentation :</p> <bl...
Multicast in Docker container and on standalone desktop application not working
linux|docker|networking|docker-compose|multicast
0
54
1
73,320,377
73,320,377
0
true
2022-06-28T08:10:36.057Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Multicast in Docker container and on standalone desktop application not working<p>I have an application (UI) that monitors multicast streams to see if the st...
72,908,433
How to grab and plot data from a PostgreSQL database via psycop2g library, FLASK and AJAX?<p>Hello dear Stackoverflow community, I have created a href link (in my html file) with the name EPEX and one with the name Show partner. Clicking on EPEX should grab of a ploted image, which are building the x,y values of my gr...
<p>Ok, maybe my question was too hard to understand, but I wanted to post finally a solution, which answers my question using AJAX.</p> <pre><code>import psycopg2 #import numpy as np import matplotlib.pyplot as plt def generate_epex_plot(id: str): print(&quot;generate_epex_plot called, id=&quot;, id) con = ...
How to grab and plot data from a PostgreSQL database via psycop2g library, FLASK and AJAX?
javascript|html|ajax|postgresql|flask
0
54
2
73,330,463
73,330,463
0
true
2022-07-08T08:05:11.700Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to grab and plot data from a PostgreSQL database via psycop2g library, FLASK and AJAX?<p>Hello dear Stackoverflow community, I have created a href link (...
72,900,403
Binance Python API close order by id<p>I need to close an order previously opened with:</p> <pre><code>order_id = &quot;test&quot; symbol = &quot;BTCUSDT&quot; direction = &quot;long&quot; quantity = &quot;0.1&quot; order = client.futures_create_order(newClientOrderId=order_id, symbol=symbol, side=direction, type=ORDE...
<ol> <li><p>If you have an OPEN order ( an order that is still waiting for filling), it's easy to cancel via endpoint <code>DELETE /fapi/v1/order</code>.</p> </li> <li><p>If you are referring to a position, you can place another order (can be MARKET, LIMIT, etc) to close it.</p> </li> </ol>
Binance Python API close order by id
python|binance-api-client
0
54
1
73,633,512
73,633,512
0
true
2022-07-07T15:19:36.993Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Binance Python API close order by id<p>I need to close an order previously opened with:</p> <pre><code>order_id = &quot;test&quot; symbol = &quot;BTCUSDT&quo...
73,021,703
Jupyter Notebook doesn't detect Python 3.7<p>I am currently trying to install <code>Tensorflow 1.15.0</code>, but my current Python version is 3.8.10 which doesn't support that version of <code>Tensorflow</code>. I installed <code>Python3.7</code> using the following command:</p> <pre class="lang-bash prettyprint-overr...
<p>You need not to uninstall <code>Python 3.8</code> from your system. If you just simply follow the steps mentioned in <a href="https://www.tensorflow.org/install/pip#step-by-step_instructions" rel="nofollow noreferrer">this</a> link, you can successfully install <code>TensorFlow 1.15</code> with <code>Python 3.7</cod...
Jupyter Notebook doesn't detect Python 3.7
python|tensorflow|jupyter-notebook
0
54
1
73,252,676
73,252,676
1
true
2022-07-18T11:35:51.910Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Jupyter Notebook doesn't detect Python 3.7<p>I am currently trying to install <code>Tensorflow 1.15.0</code>, but my current Python version is 3.8.10 which d...
72,877,852
how to keep only application related logs and remove all other Function related logs<p>I an using Serilog with Azure Function app and all possible extra logs I set level either with warning or error,</p> <pre><code> var logger = new LoggerConfiguration() .MinimumLevel.Override(&quot;Microsoft&quot;, LogEven...
<p>I'm guessing you need to add <code>Azure.Storage.Queues</code> as an override. In my case, I'm also using durable functions, which requires adding an override for <code>DurableTask</code>.</p>
how to keep only application related logs and remove all other Function related logs
azure-functions|serilog-sinks-file
1
54
1
73,297,183
73,297,183
1
true
2022-07-06T04:06:18.863Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to keep only application related logs and remove all other Function related logs<p>I an using Serilog with Azure Function app and all possible extra logs...
72,799,173
Bad auto formatting in razor page file for <text> blocks - VS2022<p>In a razor page file (.cshtml), when I use for example <code>;</code> or <code>{</code>, in <code>@&lt;text&gt;</code> block or anything except for razor syntax, then the file is auto-formatted, the same as if I use <code>Ctrl+K+D</code>.</p> <p>The i...
<p>Fixed with update 17.3 of VS2022.</p> <p>See <a href="https://docs.microsoft.com/en-us/visualstudio/releases/2022/release-notes#1730--visual-studio-2022-version-173" rel="nofollow noreferrer">release notes</a> at section &quot;Razor (ASP.NET Core) Editor&quot;.</p>
Bad auto formatting in razor page file for <text> blocks - VS2022
javascript|.net-core|razor|.net-6.0|visual-studio-2022
1
54
1
73,443,202
73,443,202
1
true
2022-06-29T09:41:05.893Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Bad auto formatting in razor page file for <text> blocks - VS2022<p>In a razor page file (.cshtml), when I use for example <code>;</code> or <code>{</code>, ...
73,030,057
Cleanup for expiring hash maps<p>I need a data structure that runs a piece of code after the the key-value pair expires. For example, I have a key and a connection Object stored in the expiring hashmap. I need this expiring hashmap to run a function that takes the takes connObj as arguement and closes the connection af...
<p>After exploring, I found this expiring hashmap by Jodah quite helpful - <a href="https://jodah.net/expiringmap/javadoc/net/jodah/expiringmap/ExpiringMap.html" rel="nofollow noreferrer">https://jodah.net/expiringmap/javadoc/net/jodah/expiringmap/ExpiringMap.html</a></p> <p>The data structure uses an asynchronous expi...
Cleanup for expiring hash maps
caching|hashmap|guava|concurrenthashmap
0
54
2
73,285,628
73,285,628
1
true
2022-07-19T01:03:58.803Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Cleanup for expiring hash maps<p>I need a data structure that runs a piece of code after the the key-value pair expires. For example, I have a key and a conn...
72,243,817
Dataframe with scipy minimize function<p>Im trying to minimize sum square function that works with a dataframe. The df is as follows:</p> <pre><code>ds = pd.DataFrame({'t': [*np.linspace(0,300,7)], 'Ca': [0.05, 0.038, 0.0306, 0.0256, 0.0222, 0.0195, 0.0174]}) </code></pre> <p>My model that Im using with sum square is:<...
<p>You can either use the <code>args</code> argument:</p> <pre class="lang-py prettyprint-override"><code>minimize(sum_of_squares, x0=params, args=(ds['t'], ds['Ca']), tol=1e-3, method=&quot;Powell&quot;) </code></pre> <p>or wrap the function:</p> <pre class="lang-py prettyprint-override"><code>minimize(lambda x: sum_o...
Dataframe with scipy minimize function
python|scipy|minimize|mse
0
54
1
72,248,446
72,248,446
0
true
2022-05-14T20:58:30.750Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Dataframe with scipy minimize function<p>Im trying to minimize sum square function that works with a dataframe. The df is as follows:</p> <pre><code>ds = pd....
72,256,064
I want to Implement flutter_bloc and connectivity_plus to check for network connections. how to do it?<p>I have tried out tons of blogs and stuff to do this but none of them work or are outdated or throw unknown errors. I am instructed to create network connection checker using bloc. however, I have little to no knowle...
<p>Register a streamSubscription in bloc and listen connections changed.</p> <p>When connections changed, run event to update state</p> <pre><code>class NetworkChangeBloc extends Bloc&lt;NetworkChangeEvent, NetworkChangeState&gt; { final ConnectivityService _service; late StreamSubscription&lt;bool&gt; _subscrip...
I want to Implement flutter_bloc and connectivity_plus to check for network connections. how to do it?
flutter
0
54
1
72,256,170
72,256,170
0
true
2022-05-16T08:15:00.960Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: I want to Implement flutter_bloc and connectivity_plus to check for network connections. how to do it?<p>I have tried out tons of blogs and stuff to do this ...
72,262,195
AlertDialog "onClick" method not working properly<p>I currently have an alert dialog that is being displayed on a fragment. The dialog displays to the user with no issues, but the &quot;<em><strong>setPositiveButton</strong></em>&quot; and &quot;<em><strong>setNegativeButton</strong></em>&quot; are not responding to t...
<p>Sorry to bother guys, the code is all good. I started using a real device instead of the android emulator and everything is working just fine.</p>
AlertDialog "onClick" method not working properly
java|android|android-fragments|android-alertdialog
0
54
1
72,264,818
72,264,818
0
true
2022-05-16T16:03:24.700Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: AlertDialog "onClick" method not working properly<p>I currently have an alert dialog that is being displayed on a fragment. The dialog displays to the user ...
72,264,056
Check same value in multiple lists [python]<p>I've 5 lists with some Infos saved in like:</p> <pre><code>list1 = [['Mark',18],['Lola',29]] list2 = [['James' 33],['Mark',46]] list3 = [['Lola',86],['Arnold',78]] list4 = [['James',46],['Arnold',18]] list5 = [['Mark',16], ['James',10]] </code></pre> <p>What i'd like do is ...
<p>Try:</p> <pre class="lang-py prettyprint-override"><code>from itertools import chain list1 = [[&quot;Mark&quot;, 18], [&quot;Lola&quot;, 29]] list2 = [[&quot;James&quot;, 33], [&quot;Mark&quot;, 46]] list3 = [[&quot;Lola&quot;, 86], [&quot;Arnold&quot;, 78]] list4 = [[&quot;James&quot;, 46], [&quot;Arnold&quot;, 18...
Check same value in multiple lists [python]
python|list
-1
54
2
72,264,990
72,264,990
0
true
2022-05-16T18:37:09.997Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Check same value in multiple lists [python]<p>I've 5 lists with some Infos saved in like:</p> <pre><code>list1 = [['Mark',18],['Lola',29]] list2 = [['James' ...
72,268,164
Does GPU accelerate data preprocessing in ML tasks?<p>I am doing a machine learning (value prediction) task. While I am preprocessing data, it takes a very long time. I have a csv file with around 640000 rows, and I am trying to subtract the dates of consecutive rows and calculate the time duration. The csv file looks ...
<p>Regarding updating your data in a faster fashion please see <a href="https://stackoverflow.com/questions/13842088/set-value-for-particular-cell-in-pandas-dataframe-using-index">this</a> post. Regarding speed improvements using the GPU: You can only use the GPU if there are optimized operations which can actually be ...
Does GPU accelerate data preprocessing in ML tasks?
machine-learning|gpu|data-science
0
54
1
72,269,601
72,269,601
0
true
2022-05-17T04:19:55.150Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Does GPU accelerate data preprocessing in ML tasks?<p>I am doing a machine learning (value prediction) task. While I am preprocessing data, it takes a very l...
72,269,844
Running is fine but rename() does not work<p>Simple function code to delete a line from a text file by making a temporary text file that will store the new content once the line has been deleted and replacing the old <strong>Storage.txt</strong> file with the temporary file.</p> <p>The <code>delete()</code> function wo...
<p>There are some problems in the code:</p> <ul> <li><p><code>ch</code> must be defined with type <code>int</code> to detect <code>EOF</code> reliably.</p> </li> <li><p>the <code>do</code>/<code>while</code> loop to read the file contents outputs the <code>EOF</code> indicator before testing it. You should use <code>wh...
Running is fine but rename() does not work
c
1
54
4
72,270,258
72,270,258
0
true
2022-05-17T07:31:38.993Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Running is fine but rename() does not work<p>Simple function code to delete a line from a text file by making a temporary text file that will store the new c...
72,271,566
Dynamic URL for pictures in SRC folder<p>I have some storage with pictures in src folder:</p> <pre><code>const pictures: Array&lt;CarouselPicture&gt; = [ { index: '1', url: '../../data/carousel/carousel1.png', description: '' } export default pictures; </code></pre> <p>Urls are corect <strong>for this fil...
<p>Due to webpack configurations <code>url: '../../data/carousel/carousel1.png',</code> or inline <code>&lt;img src=&quot;../../data/carousel/carousel1.png&quot;/&gt;</code> often work for external links such as <code>url: 'https://external/image/link.png'</code></p> <p>In your case, you should try <code>require('../.....
Dynamic URL for pictures in SRC folder
reactjs
0
54
3
72,272,096
72,272,096
0
true
2022-05-17T09:35:56.980Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Dynamic URL for pictures in SRC folder<p>I have some storage with pictures in src folder:</p> <pre><code>const pictures: Array&lt;CarouselPicture&gt; = [ { ...
72,272,204
How to combine an object with an arrow operator and then a custom variable<p>I'm working with Laravel 8 and I need to concatenate an object with an arrow operator and then a custom variable like this:</p> <pre><code>$fullStr = &quot;product_attr_correction&quot;; dd($product-&gt;$fullStr); // return null incorrectly </...
<p>Use this syntax :</p> <pre><code>$product-&gt;{$fullStr} </code></pre>
How to combine an object with an arrow operator and then a custom variable
php|laravel|laravel-8
0
54
1
72,272,692
72,272,692
0
true
2022-05-17T10:18:02.713Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to combine an object with an arrow operator and then a custom variable<p>I'm working with Laravel 8 and I need to concatenate an object with an arrow ope...
72,252,521
How do you select a particular object from a django model and use it to retrieve a url? (CS50 Project 2)<p>I am doing CS50 Project 2 and have a django model called Listing that has an object called Category that the user can pick using a dropdown list. All the categories are listed on the categories page and need to li...
<p>It is not actually necessary to try to get the category object from the model. This code worked for me.</p> <p>category.views</p> <pre><code>def categories(request): return render(request, &quot;auctions/categories.html&quot;) </code></pre> <p>categories.html</p> <pre><code>&lt;a href=&quot;{% url 'categories_pa...
How do you select a particular object from a django model and use it to retrieve a url? (CS50 Project 2)
python|django|django-models|href|cs50
0
54
1
72,275,424
72,275,424
0
true
2022-05-15T22:03:43.730Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How do you select a particular object from a django model and use it to retrieve a url? (CS50 Project 2)<p>I am doing CS50 Project 2 and have a django model ...
72,280,300
Move row based on cell value in Google Forms response sheet<p>I have a Google Spreadsheet with 2 sheets (Study Results &amp; Form Responses). I am trying to write a script to automatically move the new answers from the Google Form to the Study Results sheet every time a new form is submitted, based on the cell value in...
<h3>Moving answers to Study Results</h3> <pre><code>function onFormSubmit(e) { const ss = SpreadsheetApp.getActive(); const sh = ss.getSheetByName(&quot;Study Results&quot;); let a = e.values; a.shift(); sh.appendRow(a); //Puts all of the answers into Study Results sheet. If you want in a different order th...
Move row based on cell value in Google Forms response sheet
google-apps-script|google-sheets|google-forms
-2
54
1
72,280,450
72,280,450
0
true
2022-05-17T20:28:13.523Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Move row based on cell value in Google Forms response sheet<p>I have a Google Spreadsheet with 2 sheets (Study Results &amp; Form Responses). I am trying to ...
72,282,563
How to make a interactive calendar by using big-bang?<p>I am going to design an interactive weekly exercise calendar. The program displays the current day and associated exercise, as allows the user to scroll forward/backward in the week by pressing the right/left arrow keys, respectively. When I finished coding, there...
<p>Just some notes:</p> <ul> <li>This part <code>(define WEEKDAY (text (exercise e-day) 36 &quot;blue&quot;))</code> can't be evaluated, because value of <code>e-day</code> isn't known. You can rewrite it as function with argument <code>e-day</code>, or move it directly into <code>draw-day</code> function.</li> <li>Don...
How to make a interactive calendar by using big-bang?
racket
0
54
1
72,283,226
72,283,226
0
true
2022-05-18T02:24:09.940Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to make a interactive calendar by using big-bang?<p>I am going to design an interactive weekly exercise calendar. The program displays the current day an...
72,290,305
Cannot catch value in Java Unit Test<p>I have the following service method:</p> <pre><code>public CommandDTO update(UUID uuid, EmployeeRequest request) { final List&lt;Product&gt; productList = productRepository .findAllByUuidOrderByOrderNumber(uuid); final List&lt;UUID&gt; uuidList = request.getU...
<p>You can mock you repository to return list of mock's:</p> <pre><code>public test() { Product product1 = mock(Product.class); Product product2 = mock(Product.class); List list = Arraylist(); list.add(product1); list.add(product2); when(productRepositoryMock.findAllByUuidOrderByOrderNumber(uu...
Cannot catch value in Java Unit Test
java|spring-boot|unit-testing|junit|mockito
-1
54
2
72,291,154
72,291,154
0
true
2022-05-18T13:40:16.037Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Cannot catch value in Java Unit Test<p>I have the following service method:</p> <pre><code>public CommandDTO update(UUID uuid, EmployeeRequest request) { ...
72,282,652
vlaue of checkbox to database in vue laravel<p>i have this input:</p> <pre><code>&lt;div class=&quot;d-flex justify-content-between align-items-center&quot;&gt; &lt;label for=&quot;patymentTerms&quot;&gt;Payment Terms&lt;/label&gt; &lt;b-form-checkbox id=&quot;patymentTerms&quot; :checked=&quot;true&quot; switch v-mode...
<p>SOLUTION:</p> <p>I forgot to change the input to boolean in MySQL and Controller</p> <p>so this solved my problem:</p> <p>View:</p> <pre><code>payment_terms: Boolean, </code></pre> <p>Controller:</p> <pre><code>'payment_terms' =&gt; 'required|boolean', </code></pre> <p>Thanks everyone</p>
vlaue of checkbox to database in vue laravel
javascript|mysql|laravel|database|vue.js
0
54
3
72,298,002
72,298,002
0
true
2022-05-18T02:41:16.553Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: vlaue of checkbox to database in vue laravel<p>i have this input:</p> <pre><code>&lt;div class=&quot;d-flex justify-content-between align-items-center&quot;&...
72,298,842
I'm using JDA 4.4.0_352 and my Discord Bot is unable to send message in the channel<p>Here's my code in Bot.java.</p> <pre><code> import net.dv8tion.jda.api.JDA; import net.dv8tion.jda.api.JDABuilder; import javax.security.auth.login.LoginException; public class Bot { private JDA api; public Bot() throws Log...
<p>The Bot's intents/permissions need to be set in the createDefault method (and possibly inside the discord developer portal). For direct messages it'd be:</p> <pre><code> JDABuilder.createDefault(&quot;token&quot;, GatewayIntent.DIRECT_MESSAGES) </code></pre> <p>To handle messages in your guild, I think it'd ...
I'm using JDA 4.4.0_352 and my Discord Bot is unable to send message in the channel
java
1
54
1
72,299,510
72,299,510
0
true
2022-05-19T05:00:09.937Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: I'm using JDA 4.4.0_352 and my Discord Bot is unable to send message in the channel<p>Here's my code in Bot.java.</p> <pre><code> import net.dv8tion.jda.api....
72,292,891
How to clear the searchbox when using selenium to scrape twitter with different keywords<p>I'm trying to scrape twitter depending on different keywords, I want the script to take the words one by one and clear the search box each time to use the next one, but I have a problem with that</p> <p>==========================...
<p>Thank you @Jeremy</p> <p>it works perfectly after I understand the problem and fix it like this:</p> <pre><code>keywords = ['Dog','Cat','Fox'] for keyword in keywords: driver.get(&quot;https://twitter.com/search?q=&quot;+keyword+ &quot;&amp;src=typed_query&amp;f=live&quot;) </code></pre>
How to clear the searchbox when using selenium to scrape twitter with different keywords
python|selenium|web-scraping|twitter-search
1
54
2
72,300,097
72,300,097
0
true
2022-05-18T16:32:02.200Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to clear the searchbox when using selenium to scrape twitter with different keywords<p>I'm trying to scrape twitter depending on different keywords, I wa...
72,299,822
Python process wait<p>I have this application that shares work across multiple devices and starts processes on them, they often need to synchronize to each other.</p> <ol> <li>A web app opens an SSH connection to servers.</li> <li>It starts <em>n</em> Python instances per server.</li> <li>Then closes the SSH connection...
<p>I think a standard <a href="https://docs.python.org/3/library/threading.html#threading.Semaphore" rel="nofollow noreferrer">Semaphore</a> is most useful in this case. I can't test this, since I don't have an MQTT client/server running, but it should be something like this:</p> <pre class="lang-py prettyprint-overrid...
Python process wait
python|multithreading|mqtt|distributed-computing|paho
0
54
1
72,300,976
72,300,976
0
true
2022-05-19T06:47:01.433Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Python process wait<p>I have this application that shares work across multiple devices and starts processes on them, they often need to synchronize to each o...
72,295,439
How to render a d3.js map inside of a React component?<p>I am trying to render a d3 map inside of a React component but the result is a tiny representation of the map. When I try this code outside of React, it works well.</p> <p>I am using a class-based component. Any help will be greatly appreciated</p> <p>Here is the...
<p>A simple</p> <pre><code> .fitSize([width, height], geoData) </code></pre> <p>Under d3.geoMercator() fixed everything</p>
How to render a d3.js map inside of a React component?
javascript|reactjs|d3.js
0
54
1
72,307,675
72,307,675
0
true
2022-05-18T20:15:17.273Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to render a d3.js map inside of a React component?<p>I am trying to render a d3 map inside of a React component but the result is a tiny representation o...
72,292,378
cx_Freeze ImportError: No module named 'kivy-deps.gstreamer'<p>I am trying to create an exe file from my python code via cx_Freeze. When I run my setup.py file (which you may check below), I get an error message telling:</p> <blockquote> <p>ImportError: No module named 'kivy-deps.gstreamer'</p> </blockquote> <p>Can you...
<p>Try to use <code>&quot;kivy_deps.gstreamer&quot;</code> (with underscore) instead of <code>&quot;kivy-deps.gstreamer&quot;</code> (with hyphen) in the <code>build_exe_options</code>.</p> <p>The corresponding import statement would namely read</p> <pre><code>import kivy_deps.gstreamer </code></pre> <p>not</p> <pre><c...
cx_Freeze ImportError: No module named 'kivy-deps.gstreamer'
python|cx-freeze
1
54
1
72,314,120
72,314,120
0
true
2022-05-18T15:53:30.233Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: cx_Freeze ImportError: No module named 'kivy-deps.gstreamer'<p>I am trying to create an exe file from my python code via cx_Freeze. When I run my setup.py fi...
72,307,297
`ColorPicker` with active label?<p>Consider the following code:</p> <pre><code>struct ContentView: View { @State var color: Color = .blue var body: some View { ColorPicker(selection: $color) { Label(&quot;Pallete&quot;, systemImage: &quot;paintpalette&quot;) } } } </code></pre> <...
<p>These is way to use the fancy system color picker any way we like, but as of iOS 15 it will require bringing with UIKit.</p> <p>Create a new view struct like this:</p> <pre><code>import SwiftUI struct ColorPickerPanel: UIViewControllerRepresentable { @Binding var color: Color func makeCoordinator() -&g...
`ColorPicker` with active label?
swift|swiftui
1
54
1
72,319,936
72,319,936
0
true
2022-05-19T15:31:37.390Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: `ColorPicker` with active label?<p>Consider the following code:</p> <pre><code>struct ContentView: View { @State var color: Color = .blue var body: s...
72,319,508
How to get the top performing employees from each Region?<p>I have a table Sales with three columns: <strong>Sales_Rep:</strong> <em>The name of the sales representative</em>, <strong>Region</strong>: <em>denoting the region they work in</em> and <strong>Total_sales:</strong> Total Sales done by the sales representativ...
<p>I used a CTE to get the max sales of each region then joined it back to the original table based on the total sales and region to find the saleperson</p> <pre><code>WITH MAX_CTE AS ( SELECT REGION, MAX(TOTAL_SALES) AS TOTAL_SALES FROM SALES GROUP BY REGION ) SELECT * FROM SALES TABLE1 JOIN MAX_CTE C...
How to get the top performing employees from each Region?
sql
-1
54
2
72,320,052
72,320,052
0
true
2022-05-20T13:11:37.807Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to get the top performing employees from each Region?<p>I have a table Sales with three columns: <strong>Sales_Rep:</strong> <em>The name of the sales re...
72,322,845
QueryTables.Add dynamic link referencing cells<p>The link I want to use is &quot;https://xxx/xxx/xxx/reporting?start_date=2022-05-15+00&amp;end_date=2022-05-21+00&quot; whereas the start_date=Simba1 and the end_date=Simba2</p> <p>Simba 1 and simba 2 are date cells.</p> <p>'Download Simba Table'</p> <pre><code>Sheets(&q...
<p>Use <code>Format()</code></p> <pre class="lang-vb prettyprint-override"><code>With ActiveSheet.QueryTables.Add(Connection:= _ &quot;URL;https://xxx/xxx/xxx/reporting?&quot; _ &amp; &quot;start_date=&quot; &amp; Format(Simba1, &quot;yyyy-mm-dd&quot;) _ &amp; &quot;+00&amp;end_date=&quot; &amp; Format(Simb...
QueryTables.Add dynamic link referencing cells
excel|vba
0
54
2
72,325,030
72,325,030
0
true
2022-05-20T17:39:11.577Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: QueryTables.Add dynamic link referencing cells<p>The link I want to use is &quot;https://xxx/xxx/xxx/reporting?start_date=2022-05-15+00&amp;end_date=2022-05-...
72,327,294
How do I access image URL from one django model to another? How do I put it on a template?<p>I am using two models <code>Forum</code> and <code>User</code>.</p> <p>I wanted to access the url of <code>User</code>'s <code>profile_img</code> and display it to my template in <code>Forum</code>. How should I code this in my...
<p>It is simple relation. To get url of an image you need to add <code>.url</code> on the Image object. Just use:</p> <pre><code>forum.author.profile_img.url </code></pre>
How do I access image URL from one django model to another? How do I put it on a template?
html|django|django-models|django-views|django-templates
0
54
1
72,327,463
72,327,463
0
true
2022-05-21T06:46:18.013Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How do I access image URL from one django model to another? How do I put it on a template?<p>I am using two models <code>Forum</code> and <code>User</code>.<...
72,327,907
How to Redirect a Webpage with .html to another<p>I previously made my website with WordPress. I have a few posts which seem to doing fine (SEO). The url of my posts are <a href="http://www.sitename.com/this-is-post-title" rel="nofollow noreferrer">www.sitename.com/this-is-post-title</a>. I have rebuilt the the site wi...
<p>You can add this line in your <code>.htaccess</code> file:</p> <pre class="lang-sh prettyprint-override"><code>Options +Multiviews </code></pre> <p><a href="https://httpd.apache.org/docs/current/content-negotiation.html" rel="nofollow noreferrer">Multiviews</a> is a feature in Apache that will serve content from URL...
How to Redirect a Webpage with .html to another
wordpress|redirect|seo
0
54
2
72,328,484
72,328,484
0
true
2022-05-21T08:32:13.650Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to Redirect a Webpage with .html to another<p>I previously made my website with WordPress. I have a few posts which seem to doing fine (SEO). The url of ...
72,310,607
Type of expression is ambiguous without more context downloadTask Swift<p>Here is my function:</p> <pre><code> func textToSpeech(transcript: String) async throws { let key = MICROSOFT_SUB_KEY let region = &quot;eastus&quot; guard let url = URL(string: &quot;https://eastus.ap...
<p>Consider this line:</p> <pre class="lang-swift prettyprint-override"><code>let (data, response) = try await URLSession.shared.downloadTask(with: request) </code></pre> <p>If you want a <code>Data</code> (as suggested by name of <code>data</code>), it would be <a href="https://developer.apple.com/documentation/founda...
Type of expression is ambiguous without more context downloadTask Swift
swift
1
54
1
72,330,742
72,330,742
0
true
2022-05-19T20:16:14.167Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Type of expression is ambiguous without more context downloadTask Swift<p>Here is my function:</p> <pre><code> func textToSpeech(transcript: String) async th...
72,321,076
how can i add all product and update a data in another table<p>i have 2 tables tb1=storage and tb2=daily_quota iwant to add all product with the same name in tb2 and update the finished_product in table1</p> <p>example table table1=storage</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th sty...
<p>I would propose to make table1 a view, that you can use as needed.</p> <p>The view would look like that:</p> <pre><code>CREATE VIEW storage AS SELECT product_name, SUM(finished_product) as quantity FROM table2 GROUP BY product_name </code></pre>
how can i add all product and update a data in another table
php|sql|stock|inventory
-1
54
1
72,332,092
72,332,092
0
true
2022-05-20T15:00:57.690Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how can i add all product and update a data in another table<p>i have 2 tables tb1=storage and tb2=daily_quota iwant to add all product with the same name in...
72,332,678
How to access the data member of one function into another function inside same class in c++<p>I wanted to declare the array of string to the limit provided by user. So I take limit in getData(), and declare the string inside getData function. As a whole I want to take students name and display it in the same class. S...
<p>One problem with your code is that <code>string name</code> is defined in <code>getData()</code> but not in <code>showData()</code>. What I would do is declare a member variable <code>vector&lt;string&gt; name</code> like you did with <code>int limit</code>. I would use a vector instead of an array because it's easi...
How to access the data member of one function into another function inside same class in c++
c++
-1
54
1
72,332,971
72,332,971
0
true
2022-05-21T19:32:16.103Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to access the data member of one function into another function inside same class in c++<p>I wanted to declare the array of string to the limit provided ...
72,334,142
4k Image seems blurred<p>I have a 4k image that has text, in CSS is set to 90vh and 90vw (high and width), but in the page looks blurred, and when I zoom instead of losing quality it gets upgraded, how do I make it always have the full quality of the image?</p> <p>I have already tried to use image-resolution and image-...
<p>If it's a 4k image, it will remain a 4k image.</p> <p>This is almost positively a result your eyes playing a trick.</p> <p>There could certainly be distortion, however, if the image is being manipulated by anything else in the code, like CSS or JS.</p>
4k Image seems blurred
css|image|png
-4
54
1
72,334,198
72,334,198
0
true
2022-05-22T01:00:33.737Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: 4k Image seems blurred<p>I have a 4k image that has text, in CSS is set to 90vh and 90vw (high and width), but in the page looks blurred, and when I zoom ins...
72,312,035
Unable to Connect to Mysql Through PDO on Certain Networks<p>I am trying to connect to a MySQL database through PHP's PDO. It works fine on my home network and some other networks (coffee shops, public internet). When I try to connect through my phone's personal hotspot or through hotel wifi, it no longer works.</p> <...
<p>I wasn't able to find a fix using XAMPP-VM however, the same code works perfectly when using the XAMPP Installer version of the app on MacOS. I looked around for a bit to see if anyone else was having this problem and I didn't find anything that matches this issue specifically. Most were referring to connecting to ...
Unable to Connect to Mysql Through PDO on Certain Networks
php|mysql|pdo
0
54
1
72,340,128
72,340,128
0
true
2022-05-19T23:21:49.567Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Unable to Connect to Mysql Through PDO on Certain Networks<p>I am trying to connect to a MySQL database through PHP's PDO. It works fine on my home network ...
72,337,398
ObserveEvent of group legend in Shiny<p>I am working on Shiny and I would like to capture with a ObserveEvent the group/BaseGroup that the user is clicking in the legend of the following map:</p> <pre><code> output$map &lt;- renderLeaflet({ p &lt;- leaflet(paises_total_casos()) %&gt;% addTiles() %&gt;% ...
<p>You can include an observer for your map. You can use <code>input$map_groups</code> (adding &quot;_groups&quot; to the <code>outputId</code> used) and place inside <code>observe</code>. See complete example below which will print the map layer shown.</p> <pre><code>library(shiny) library(leaflet) ui &lt;- fluidPage...
ObserveEvent of group legend in Shiny
r|shiny|leaflet|r-leaflet
1
54
1
72,341,100
72,341,100
0
true
2022-05-22T12:00:24.847Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: ObserveEvent of group legend in Shiny<p>I am working on Shiny and I would like to capture with a ObserveEvent the group/BaseGroup that the user is clicking i...
72,285,813
How to scrape a word from img, alt tag<pre><code>HTMLCode </code></pre> <p>&lt; div class=&quot;movieLogo&quot;</p> <p>img alt=&quot;1 Million&quot; src=&quot;https://wwwimage-us.pplus.com/base/files/movie/20/39/93/1mhn.png&quot; &lt; /div</p> <p>I have tried the below xpath's to call &quot;1 Million&quot; from img tag...
<p>Considering the lack of information, hard to give you a proper answer.</p> <p>If I understand you correctly, you're looking for the text &quot;<em>1 Million</em>&quot;, which is the text of the attribute &quot;<em>alt</em>&quot; and <strong>NOT</strong> from &quot;<em>@class=&quot;movieLogo</em>&quot;.</p> <p>So let...
How to scrape a word from img, alt tag
python|xpath|selenium-chromedriver
-1
54
1
72,342,204
72,342,204
0
true
2022-05-18T08:37:57.897Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to scrape a word from img, alt tag<pre><code>HTMLCode </code></pre> <p>&lt; div class=&quot;movieLogo&quot;</p> <p>img alt=&quot;1 Million&quot; src=&quo...
72,342,270
Limited space iterators<p>I've implemented a tree (not a binary tree, every node can have several child nodes). For every node, we can access its level in the tree, its children and its parent node.</p> <p>The next phase is to implement 2 iterators for this tree but the catch is I can not save more than a constant amou...
<p>Here's a sketch of the algorithm. Very inefficient, but satisfies your requirement of only using O(1) additional space.</p> <ol> <li><code>Node* GoRight(Node* c)</code><br /> If <code>c</code> is root (there's no parent), return <code>NULL</code><br /> Let <code>p</code> be the parent of <code>c</code>. Find its chi...
Limited space iterators
c++|algorithm|tree|iterator|space-complexity
0
54
2
72,343,567
72,343,567
0
true
2022-05-23T00:52:42.483Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Limited space iterators<p>I've implemented a tree (not a binary tree, every node can have several child nodes). For every node, we can access its level in th...
72,342,938
Simplify casting in Go when taking any interface as a parameter<p>I have a struct like so,</p> <pre class="lang-golang prettyprint-override"><code>// // HandlerInfo is used by features in order to register a gateway handler type HandlerInfo struct { Fn func(interface{}) FnName string FnRm func() } </c...
<p>you can use interface{}.(type)</p> <p>follow is a exmple:</p> <pre><code>package main import &quot;fmt&quot; type HandlerInfo struct { Fn func(interface{}) FnName string FnRm func() } type MessageReactionAddEvent = func(a, b int) int func StarboardReactionHandler(e interface{}) { switch e.(t...
Simplify casting in Go when taking any interface as a parameter
go|struct|reflection
-2
54
1
72,346,454
72,346,454
0
true
2022-05-23T03:17:43.347Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Simplify casting in Go when taking any interface as a parameter<p>I have a struct like so,</p> <pre class="lang-golang prettyprint-override"><code>// // Hand...
72,351,406
How do I use an arraylist created in another method<p>I right now made an arraylist and returned it just like in a void Right now I got something like this I know I have to change the static void t something else to return it but I lost that version of the code.</p> <pre><code>package Spel; import java.util.ArrayList;...
<p>You can either define your list as static member or non-static member &amp; access it within different class methods something like:</p> <pre><code>public class Test { static List&lt;String&gt; list = new ArrayList&lt;String&gt;(); public static void main(String[] args) { list.add(&quot;aa&quot;); ...
How do I use an arraylist created in another method
java|arraylist|return-value
-4
54
1
72,352,099
72,352,099
0
true
2022-05-23T15:48:02.420Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How do I use an arraylist created in another method<p>I right now made an arraylist and returned it just like in a void Right now I got something like this I...
72,352,825
how can i use django comment_set.all<p><strong>My problem</strong></p> <p>Make comment model, and form for Django</p> <p>Use {% for i in post.comment_set.all %}</p> <p>no change html</p> <p>Information saved in the comment form does not appear</p> <p>how can i fix it?</p> <p><strong>MY top_detail.html</strong></p> <pre...
<p>You are mixing names. If you name something <code>Question</code>, don't call it by <code>Comment</code>. Same thing with <code>Post</code> and <code>Top</code>. It matters for your code.</p> <p>For now, you have to use:</p> <pre><code>{{ post.question_set.all }} </code></pre> <p>But if I were you I would change nam...
how can i use django comment_set.all
python|django|model|comments
0
54
1
72,353,858
72,353,858
0
true
2022-05-23T17:47:30.393Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how can i use django comment_set.all<p><strong>My problem</strong></p> <p>Make comment model, and form for Django</p> <p>Use {% for i in post.comment_set.all...
72,355,799
How do I actually delete the node(s)?<p>I am solving a question on <a href="https://leetcode.com/problems/find-leaves-of-binary-tree/" rel="nofollow noreferrer">LeetCode.com</a>:</p> <blockquote> <p>Given the root of a binary tree, collect a tree's nodes as if you were doing this: <br> a. Collect all the leaf nodes. <b...
<p>Your placement of <code>delete</code> is correct, but since we don't know how <code>root</code> is allocated we can't be sure whether <code>delete</code> is <em>logically</em> correct. BTW, <code>delete</code> deallocates the memory but it doesn't remove the pointers themselves. You can do <code>root-&gt;left = root...
How do I actually delete the node(s)?
c++|algorithm|tree|delete-operator
0
54
1
72,355,883
72,355,883
0
true
2022-05-23T23:36:24.670Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How do I actually delete the node(s)?<p>I am solving a question on <a href="https://leetcode.com/problems/find-leaves-of-binary-tree/" rel="nofollow noreferr...
72,334,875
Execution failed for task ':stack_appodeal_flutter:compileDebugKotlin'<p>After upgrading, I have this error. How can I resolve this error?</p> <pre><code>Launching lib/main.dart on SM G970F in debug mode... Running Gradle task 'assembleDebug'... e: /Users/myMac/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/stack...
<p>This is beacause the current [stack_appodeal_flutter] package is not compatible with Flutter 3.0. I have the same problem and contacted the support team at Appodeal. they told me to wait for around two weeks for new package which will be compatible with Flutter 3.0.</p> <p>hope it will help you.</p>
Execution failed for task ':stack_appodeal_flutter:compileDebugKotlin'
flutter|kotlin|appodeal
0
54
1
72,359,672
72,359,672
0
true
2022-05-22T04:49:14.310Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Execution failed for task ':stack_appodeal_flutter:compileDebugKotlin'<p>After upgrading, I have this error. How can I resolve this error?</p> <pre><code>Lau...
72,359,168
Check for a string in a debug message in Swift<p>I have a <code>View</code> with a <code>view.backgroundColor</code>. When I print the value to the debug-log i get</p> <p><code>&lt;UIImage:0x283b31b00 named(main: bg_200_200) {200, 200} renderingMode=automatic&gt;</code></p> <p>Is it possible to check this &quot;String&...
<p>UI is always generated from some data model. Instead of checking the values inside UI, it's better to test the values in data model that were used to generate the UI.</p> <p>This is especially obvious in SwiftUI which is always data driven and is always generated again when data model changes.</p> <p>In UIKit this m...
Check for a string in a debug message in Swift
ios|swift|xcode
0
54
1
72,365,184
72,365,184
0
true
2022-05-24T07:55:36.610Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Check for a string in a debug message in Swift<p>I have a <code>View</code> with a <code>view.backgroundColor</code>. When I print the value to the debug-log...
72,368,926
how to make multithreading work in my code?<p>Here is my code, pls tell me why multithreading may not work for me. When I run the code, I get the same result with one thread, with two and three</p> <p>I need to make it so that when I run a pod on a different number of threads, the speed increases, because I use threads...
<p>Well, if I understand you question correctly, the problem is that you run the exact code 3 times on the same password.</p> <p>If you want to really use multithreading, try to check 3 passwords, one after the other without using of threads, and then try to check 3 passwords like you done here.</p>
how to make multithreading work in my code?
java|concurrency|brute-force
-4
54
1
72,369,132
72,369,132
0
true
2022-05-24T20:09:45.623Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to make multithreading work in my code?<p>Here is my code, pls tell me why multithreading may not work for me. When I run the code, I get the same result...
72,381,058
How to display two identical outputs of a function<p>I am in the process of making a picture framing calculator. The output of this calculator is displayed as the <code>Width</code> and <code>Height</code> on a displayed rectangle. The problem I'm running into is that there's a second rectangle which needs to display ...
<pre><code>&lt;div style=&quot;margin:0 auto;text-align:center;width:400px;height:50px;border:5px solid #000; margin-top: 20px; margin-bottom: 50px;padding-bottom:75%;background-color:gray&quot; id=&quot;rectangle&quot;&gt; &lt;center&gt; &lt;div id=&quot;width&quot;&gt;&lt;/div&gt; &lt;/center&gt; &...
How to display two identical outputs of a function
javascript|html|css
2
54
1
72,381,628
72,381,628
0
true
2022-05-25T16:11:18.937Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to display two identical outputs of a function<p>I am in the process of making a picture framing calculator. The output of this calculator is displayed a...
72,375,827
How to include/find the source and header files for LL-Drivers?<p>I have been using STM32G474, but if I look into the HAL driver folder structure I cannot find the files for LL-Drivers. I want to use LL functions in my code.</p> <p>Looking forward to your quick suggestions.</p> <p>BRs,</p> <p>Waled</p> <p><a href="http...
<p>I found the <a href="https://github.com/STMicroelectronics/STM32CubeG4/blob/master/Drivers/STM32G4xx_HAL_Driver/Inc/stm32g4xx_ll_hrtim.h" rel="nofollow noreferrer">file in the official STM32CubeG4 repo</a> on github.</p> <p>Either you have an older version of the code on your local copy, or the file got deleted some...
How to include/find the source and header files for LL-Drivers?
stm32
0
54
1
72,398,967
72,398,967
0
true
2022-05-25T10:21:30.410Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to include/find the source and header files for LL-Drivers?<p>I have been using STM32G474, but if I look into the HAL driver folder structure I cannot fi...
72,247,375
android kotlin '1.6.21 breaks navigation component<p>my project was using kotin '1.5.10' when I updated to 1.6.21 , the navigation component breaks what happens?</p> <p>Screen A is navigation to B</p> <pre><code> findNavController().navigate(( CarFragmentDirections.actionCarFragmentToCarDetailsFragment( ...
<p>using view-binding solve my issue</p>
android kotlin '1.6.21 breaks navigation component
android|kotlin
1
54
1
72,432,050
72,432,050
0
true
2022-05-15T10:21:00.643Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: android kotlin '1.6.21 breaks navigation component<p>my project was using kotin '1.5.10' when I updated to 1.6.21 , the navigation component breaks what happ...
72,385,839
PL/Python: trying to understand global dictionary<p>I am using <code>pl/python3u in postgres</code>. In that environment I have imported <code>pandas</code> and <code>networkx</code>. I have created a simple function that builds a graph from information in the tables and it works perfectly. I now want to create othe...
<p>My diagram is correct as verified in the postgres community slack. All the procedural language extensions have something similar basically a feature to hold global and function-specific variables.</p> <p>Additionally, plpython3u function calls are calls to <code>PyEval_EvalCode</code> in Python. The downside to tha...
PL/Python: trying to understand global dictionary
python-3.x|plpython
0
54
2
72,438,742
72,438,742
0
true
2022-05-26T01:50:38.003Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: PL/Python: trying to understand global dictionary<p>I am using <code>pl/python3u in postgres</code>. In that environment I have imported <code>pandas</code>...
72,400,593
How to deduplicate item from graphql query?<p>For example I have an array return as</p> <pre><code>[ { value: &quot;v&quot;, time: &quot;t&quot; },{ value: &quot;v&quot;, time: &quot;t&quot; }, { value: &quot;v-other&quot;, time: &quot;t-other&quot; } ] </code></pre> <p>I would expect give me only</p> <pre...
<p>According to the comment @ReganKarlewicz share, GraphQL shouldn't be treated as an database query language, we should use other tool, MySQL or Node functions to deduplicate the query result.</p>
How to deduplicate item from graphql query?
graphql
1
54
1
72,440,605
72,440,605
0
true
2022-05-27T04:51:01.430Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to deduplicate item from graphql query?<p>For example I have an array return as</p> <pre><code>[ { value: &quot;v&quot;, time: &quot;t&quot; },{ v...
72,303,674
Presence of Session State Cookie causes app to crash<p>I have an Umbraco 9.4.3 site (.NET5.0) which is using Session state, as configured by Umbraco. The app starts normally then writes a value to Session state in a controller method, which causes a Session cookie to be created.</p> <pre><code>public override IActionRe...
<p>It turned out that missing Serilog configuration was the root cause of this error. Adding the following to appsettings.json resolved the issue:</p> <pre><code>&quot;Serilog&quot;: { &quot;MinimumLevel&quot;: { &quot;Default&quot;: &quot;Information&quot;, &quot;Override&quot;: { &quot;Microsoft&quot;...
Presence of Session State Cookie causes app to crash
asp.net-core|umbraco|session-state|umbraco9
0
54
1
72,447,351
72,447,351
0
true
2022-05-19T11:23:49.880Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Presence of Session State Cookie causes app to crash<p>I have an Umbraco 9.4.3 site (.NET5.0) which is using Session state, as configured by Umbraco. The app...
72,338,636
Scroll percentage for a div using javascript<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 rightSide = document.querySelector("#rightSide"); let scrollPercentage = () =&gt;...
<p>Coming back to this I knew that I had to understand the values assigned to the variables in order to make the equation simpler.</p> <p>So, a quick search for documentElement led me to this answer:</p> <p>&quot;documentElement returns the Element that is the root element of the document (for example, the element for...
Scroll percentage for a div using javascript
javascript|html|scroll|scrollbar|percentage
0
54
1
72,487,538
72,487,538
0
true
2022-05-22T14:50:15.167Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Scroll percentage for a div using javascript<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snip...
72,252,104
How can i change theme of my widget in this situation?<p>Im not sure that my code is correct for using themes and easylocalization together and im open for any help too, but my main goal is creating a custom navigation bar inside of MyApp. When i do it like example down below, i cant change my NavBarItem theme with my ...
<p>You can try this below codebase, I think you will get your solution.</p> <p><strong>main.dart</strong></p> <pre><code>import 'package:easy_localization/easy_localization.dart'; import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; import 'package:theme_changer/custom_theme_data.dart'; fin...
How can i change theme of my widget in this situation?
flutter|dart
0
54
1
72,256,291
72,256,291
0
true
2022-05-15T20:52:53.673Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can i change theme of my widget in this situation?<p>Im not sure that my code is correct for using themes and easylocalization together and im open for a...
72,370,613
make canvas image repeat scrolling upwards<p>So I've got a 600x2400 image I'm trying to make scroll upwards (character will be autorunning down the screen) and repeat. I've got the scrolling, but not the repeat. My question is, how do I make the image redraw for a second instance from the top and continue when I get to...
<p>You could draw the map image twice and reset the <code>roadMovement</code> any time it gets larger than the image height. That's when you know the whole image is outside of the canvas view.</p> <p>Technically, you only need to draw the second image when <code>imageHeight - roadMovement &lt; canvasHeight</code>, but ...
make canvas image repeat scrolling upwards
javascript|html|canvas|repeat|autoscroll
1
54
2
72,375,492
72,375,492
0
true
2022-05-24T23:52:18.403Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: make canvas image repeat scrolling upwards<p>So I've got a 600x2400 image I'm trying to make scroll upwards (character will be autorunning down the screen) a...
72,253,951
Taking the union of 2 lists of lists in Python<p>I have 2 list of lists.</p> <p>One is say <code>list1</code>, which is :</p> <pre><code>[['1', '2', '*', '2', '1', '0.8'], ['1', '2', '3', '1', '1', '0.7'], ['*', '*', '3', '4', '1', '0.5'], ['1', '2', '*', '1', '1', '0.3'], ['2', '2', '*', '2', '1', '0.1']] </code><...
<p>You should be able to create a set, add each element of each list to that set, then create a list from that set, something like:</p> <pre class="lang-py prettyprint-override"><code>new_set = set() for item in list1: set.add(item) for item in list2: set.add(item) final_list = list(set) </code></pre> <p>It won...
Taking the union of 2 lists of lists in Python
python
0
54
3
72,253,971
72,253,971
0
true
2022-05-16T03:39:46.380Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Taking the union of 2 lists of lists in Python<p>I have 2 list of lists.</p> <p>One is say <code>list1</code>, which is :</p> <pre><code>[['1', '2', '*', '2'...
72,305,617
Use Jq to insert property of an object in another property<p>I have a json file that looks like this:</p> <pre class="lang-json prettyprint-override"><code>[ { &quot;account_id&quot;: 123, &quot;instances&quot;: [ {&quot;id&quot;: 1}, {&quot;id&quot;: 2} ] }, { &quot;account_id&quot;:...
<pre><code>jq '[.[] | .id = .instances[0].id | del(.instances)]' file.json </code></pre> <p>If there are more instances, just iterate over all of them to distribute the account_id to each of them:</p> <pre><code>jq '[.[] | .id = .instances[].id | del(.instances)]' file.json ~~ </code></pre>
Use Jq to insert property of an object in another property
jq
0
54
1
72,305,801
72,305,801
0
true
2022-05-19T13:39:39.693Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Use Jq to insert property of an object in another property<p>I have a json file that looks like this:</p> <pre class="lang-json prettyprint-override"><code>[...
72,287,712
What does tfidfvectorizer.transform() actually produce?<p>I am new to using <code>tf-idf</code> vectorizer. While running the code I came up with this output but was not able to interpret what it actually means.</p> <p><strong>Code</strong></p> <pre><code>X=[&quot;Access modes govern the type of operations possible in ...
<p>Firstly there are two sentences in your data set. Each word found in these sentences will be assigned a word id.</p> <p>In <code>(0,247682)</code>:</p> <p><code>0</code> is the document id or first sentence, <code>247682</code> is the word id, and <code>0.34757472043242427</code> is its TF-IDF score</p>
What does tfidfvectorizer.transform() actually produce?
python|scikit-learn|tf-idf|tfidfvectorizer
0
54
1
72,288,948
72,288,948
0
true
2022-05-18T10:44:43.737Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: What does tfidfvectorizer.transform() actually produce?<p>I am new to using <code>tf-idf</code> vectorizer. While running the code I came up with this output...
72,372,305
Unable to move the button position to down<p>I am new to CSS.I am trying to move the position of button down which is overlapping with another button. I tried putting the button in different div, still facing the same issue. Below is my code</p> <pre><code>&lt;div className=&quot;App&quot;&gt; {!showEvents &amp;&...
<p>The button is likely taking up the full space of the container div. Instead trying applying a margin to the container rather than the button</p> <p>ie.</p> <pre><code>.button-div { margin: 10px 0; } </code></pre>
Unable to move the button position to down
javascript|css
0
54
2
72,372,545
72,372,545
0
true
2022-05-25T05:20:22.943Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Unable to move the button position to down<p>I am new to CSS.I am trying to move the position of button down which is overlapping with another button. I trie...
72,237,834
Why macros and functions work differently about same code in c<p>I am new to programing, and I found one interesting but difficult to find reason problem, so I am writing this post.</p> <p>I was trying to write swap function:</p> <p>When I write swap function in traditional way,</p> <p><code>void swap(int *x,int *y){in...
<blockquote> <p>why the macro can swap value though they don't use pointer?</p> </blockquote> <p>Because macros and functions work differently. Functions in C use &quot;call by value&quot; semantics: when you pass a variable as a parameter to a function, only the value of that variable gets sent to the function -- the ...
Why macros and functions work differently about same code in c
c|pointers|macros|swap
1
54
2
72,237,938
72,237,938
0
true
2022-05-14T06:23:46.517Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why macros and functions work differently about same code in c<p>I am new to programing, and I found one interesting but difficult to find reason problem, so...
72,303,575
Passing Data into Forms Django<p><strong>Hypothetically;</strong></p> <p>I have a simple system that has a list of choices on a screen. Each item has a button so you can add multiple supplementary items/information alongside the item selected but not change the item selected. Each item has a unique id which I want to p...
<p>Sorted. School boy error, the <code>scoreid</code> in the model should have been an integer field not a foreignkey field. It is then to change the view <code>post.scoreid = post</code> to <code>post.scoreid = posts.id</code> and it works</p>
Passing Data into Forms Django
django|django-models|django-forms
0
54
1
72,336,845
72,336,845
0
true
2022-05-19T11:17:03.780Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Passing Data into Forms Django<p><strong>Hypothetically;</strong></p> <p>I have a simple system that has a list of choices on a screen. Each item has a butto...
72,268,999
geom_point and geom_line not showing even after specifying group =1<p>The df looks like this:</p> <p>(Year is 'character' type and mean is double )</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th style="text-align: left;">Year</th> <th style="text-align: right;">mean</th> </tr> </thead> <tb...
<p>Figured out the issue now: the points are plotted in white, so they cannot be seen.</p> <p><a href="https://i.stack.imgur.com/NbPpw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NbPpw.png" alt="enter image description here" /></a></p> <p>The reason is that I once set the theme using <code>theme_...
geom_point and geom_line not showing even after specifying group =1
r|ggplot2
0
54
2
72,269,506
72,269,506
0
true
2022-05-17T06:17:16.707Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: geom_point and geom_line not showing even after specifying group =1<p>The df looks like this:</p> <p>(Year is 'character' type and mean is double )</p> <div ...
72,252,807
Optimize random with filter and map function<p>I want to randomly retrieve a list of cars mpg based on some predefined fuel type. Here is the code that works but slows down the processing. Is there a better way to apply this principle in a data volume containing a million rows?</p> <pre><code>list_carbs &lt;- c(1,3,4,4...
<pre><code>filter(mtcars, carb %in% list_carbs) %&gt;% group_by(carb) %&gt;% slice_sample(n = 1) # A tibble: 3 x 11 # Groups: carb [3] mpg cyl disp hp drat wt qsec vs am gear carb &lt;dbl&gt; &lt;dbl&gt; &lt;dbl&gt; &lt;dbl&gt; &lt;dbl&gt; &lt;dbl&gt; &lt;dbl&gt; &lt;dbl&gt; &lt;dbl&gt...
Optimize random with filter and map function
r
0
54
2
72,254,760
72,254,760
0
true
2022-05-15T23:14:03.940Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Optimize random with filter and map function<p>I want to randomly retrieve a list of cars mpg based on some predefined fuel type. Here is the code that works...
72,348,402
The argument type 'Function' can't be assigned to the parameter type 'void Function()?'<pre><code>import 'package:flutter/material.dart'; import 'package:ourchatapp/constants.dart'; class RoundedButton extends StatelessWidget { final String text; final Function press; final Color color, textColor; const Rounde...
<p>Try to change <code>press</code> type from <code>Function</code> to <code>VoidCallback</code>, so your press parameter should look like this:</p> <pre><code>final VoidCallback press </code></pre> <p>Or try this:</p> <pre><code>onPressed : press.call() </code></pre>
The argument type 'Function' can't be assigned to the parameter type 'void Function()?'
flutter|flutter-layout
0
54
2
72,348,575
72,348,575
0
true
2022-05-23T12:18:38.550Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: The argument type 'Function' can't be assigned to the parameter type 'void Function()?'<pre><code>import 'package:flutter/material.dart'; import 'package:our...
72,296,397
How can I compare the current time with a specific time?<p><em>I have a Label that contains the time in real time. My question is how can I compare the time of the label with 4:00pm. I need to know if the label time is less than or greater than 4:00pm.</em></p> <p>My viewDidLoad:</p> <pre><code> override func viewDidL...
<p>Don't use a label to hold information.</p> <p>Save the date at the moment you set your label's text, as a <code>Date</code>, into your model (or simply as a property in your view controller.) Then, when you need to tell If the &quot;label time&quot; is before or after 4:00PM, use the Calendar method <code>date(bySet...
How can I compare the current time with a specific time?
ios|swift|xcode
-4
54
1
72,297,048
72,297,048
0
true
2022-05-18T21:50:48.767Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I compare the current time with a specific time?<p><em>I have a Label that contains the time in real time. My question is how can I compare the time ...
72,325,384
Can't draw a concentric pie chart in R<p>I have the following data:</p> <pre><code>Phyla V4 Fl &lt;chr&gt; &lt;dbl&gt; &lt;dbl&gt; Proteobacteria 88.58 81.43 Firmicutes 7.33 15.34 Actinobacteriota 1.55 1.94 Bacteroidota 2.20 1.25 </code></pre> <p>I want to d...
<p>You may try this</p> <pre><code>df %&gt;% pivot_longer(-Phyla, names_to = &quot;type&quot;, values_to = &quot;y&quot;) %&gt;% ggplot(aes(x = type, y = y)) + geom_bar(aes(fill = Phyla), stat = &quot;identity&quot;, color = &quot;white&quot;, position = &quot;fill&quot;, width=0.7) + coord_polar(...
Can't draw a concentric pie chart in R
r|ggplot2|pie-chart|donut-chart
0
54
1
72,327,531
72,327,531
0
true
2022-05-20T22:44:34.320Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Can't draw a concentric pie chart in R<p>I have the following data:</p> <pre><code>Phyla V4 Fl &lt;chr&gt; &lt;dbl&gt; &lt;dbl&gt; P...
72,360,988
Programmatically remove an object array, JavaScript<p>I'm trying to programmatically remember an object array but I'm lacking skills and I don't seem to find answers on the web either.</p> <p>So, I want to be able to, while drawing a cardObj, to remove its reverse(upsidedown) alternative. Note that I wanna do the same ...
<p>I am quite confused about your question here but I'll assume what you want is to remove the &quot;opposite&quot; element of the array depending on the card that's drawn.</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet...
Programmatically remove an object array, JavaScript
javascript|arrays|object|programmatically|remove-if
0
54
1
72,361,387
72,361,387
0
true
2022-05-24T10:05:57.503Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Programmatically remove an object array, JavaScript<p>I'm trying to programmatically remember an object array but I'm lacking skills and I don't seem to find...
72,264,138
Flutter BottomNavigationBar colors changes to transparent after adding more than 3 items<p><strong>It's really weird.</strong> Adding more than 3 <code>BottomNavigationBarItem</code>s changes the default icon and background colors of <code>BottomNavigationBar</code> to transparent.</p> <p>Why is that?</p> <p>P.S, every...
<p>According to <a href="https://api.flutter.dev/flutter/material/BottomNavigationBar-class.html" rel="nofollow noreferrer">BottomNavigationBar</a> documentation:</p> <blockquote> <p>The bottom navigation bar's type changes how its items are displayed. If not specified, then it's automatically set to <a href="https://a...
Flutter BottomNavigationBar colors changes to transparent after adding more than 3 items
flutter
0
54
2
72,264,249
72,264,249
0
true
2022-05-16T18:44:43.467Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Flutter BottomNavigationBar colors changes to transparent after adding more than 3 items<p><strong>It's really weird.</strong> Adding more than 3 <code>Botto...
72,387,074
I want Technology Box will be shown in Dropdown in Create<p>I want my technology text box will be show in dropdown but classes are different PROJECT IS one Class and Technology is another class like</p> <pre><code>public class Project { public int ProjectId { get; set; } [StringLength(60, MinimumLe...
<p>Try</p> <p>Project.cs:</p> <pre><code>public class Project { public int ProjectId { get; set; } [StringLength(60, MinimumLength = 3)] [Required] public string? ProjectName { get; set; } [Required] public string? Description { g...
I want Technology Box will be shown in Dropdown in Create
asp.net-mvc|asp.net-core|asp.net-core-mvc
0
54
1
72,387,277
72,387,277
0
true
2022-05-26T05:24:55.990Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: I want Technology Box will be shown in Dropdown in Create<p>I want my technology text box will be show in dropdown but classes are different PROJECT IS one C...
72,333,611
Understading and creating XML inner chained sequences<p>I am tasked to recreate an inner chained sequence using the XSLT starter code that has been provided to me. What I am confused is that I am not sure how to set up the XPaths in the XSLT file.</p> <p>Currently, I have a few XPaths which are able to go through the i...
<blockquote> <p>recreate an inner chained sequence</p> </blockquote> <p>I believe the elegant (and also efficient) way to do this would be to start with the items that are marked as being last in their sequence, and work recursively backwards, using a <a href="https://www.w3.org/TR/1999/REC-xslt-19991116/#key" rel="nof...
Understading and creating XML inner chained sequences
html|xml|xslt|xsd
0
54
1
72,334,544
72,334,544
0
true
2022-05-21T22:21:43.127Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Understading and creating XML inner chained sequences<p>I am tasked to recreate an inner chained sequence using the XSLT starter code that has been provided ...
72,307,487
*Beginner* - How can I clean up this code?<p>I'm trying to write a program that takes the files saved in a folder, renames them, deletes the old files and moves the new ones to another folder (Haven't got to this last bit yet but I'm working it).</p> <p>Being new I would be interested to know how this can be cleaned up...
<p>Here is a template that might work for you.</p> <pre><code>import os cwd = os.chdir('C:\\Users\\myname\\Desktop\\C008_Start') monthlyText = &quot;Report View of CDRL 10 Consumption - Transaction Date.xlsx&quot; nameText = &quot;CDRL 10 Consumption - Monthly &quot; #variable for raw file spreadsheets #variables for...
*Beginner* - How can I clean up this code?
python
0
54
2
72,307,628
72,307,628
0
true
2022-05-19T15:44:32.420Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: *Beginner* - How can I clean up this code?<p>I'm trying to write a program that takes the files saved in a folder, renames them, deletes the old files and mo...
72,368,023
Use .replace() with "<p>I am currently working on getting data from an API, and I want to remove some characters from what it returns.</p> <p>What I get back is <code>{&quot;usd&quot;:323.67}</code>, but the currency and price may change depending on the input.</p> <p>I want to remove the {}, usd (or other currency), &...
<p>As others commented, parse your data as JSON and then get the value using your currency variable, something like this (not sure about what framework you are using, so the currency replacement may vary from what's shown here):</p> <pre><code>data = {&quot;usd&quot;:323.67}; value = data.${currency}; </code></pre>
Use .replace() with "
javascript
0
54
2
72,368,126
72,368,126
0
true
2022-05-24T18:47:46.237Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Use .replace() with "<p>I am currently working on getting data from an API, and I want to remove some characters from what it returns.</p> <p>What I get back...
72,371,352
how can i put commas in thousands?<pre><code>`$.ajax({ url : &quot;/selectList.do&quot;, data:{memberNo:memberNo}, success : function(list){ console.log(list); for(let i=0;i&lt;list.length;i++){ ...
<p>Try use <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions" rel="nofollow noreferrer">regex</a></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-overr...
how can i put commas in thousands?
javascript|ajax
-1
54
1
72,371,420
72,371,420
0
true
2022-05-25T02:24:01.730Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how can i put commas in thousands?<pre><code>`$.ajax({ url : &quot;/selectList.do&quot;, data:{memberNo:memberNo}, ...
72,270,295
how to handle big relational data<p>I have a MySQL database. In one of the tables, I have a <code>json</code> column named <code>event</code>. The input type of the <code>event</code> is an array of the following:</p> <pre><code>{ cam:{x:number,y:number,z:number}, scn: {x:number,y:number,z:number}, time: Date } </co...
<p>When storing files is an option and you really want to use a relational db than store the json as a .json file and read it with a filestream to get it. The path to the file could be stored in the column. Other than that please use something like mongodb or sqlite3</p>
how to handle big relational data
mysql|node.js|typeorm
0
54
2
72,271,195
72,271,195
0
true
2022-05-17T08:05:56.553Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to handle big relational data<p>I have a MySQL database. In one of the tables, I have a <code>json</code> column named <code>event</code>. The input type...
72,239,018
Stay/Collapse nav bar<p>I have navbar menus with submenu dropped-down. whenever the menu is clicked then the submenus is expanded however when the submenu is clicked then the sub-menus returns collapsed. How to make the menu and its submenus stay expanded until the other menu is clicked?</p> <p><a href="https://i.stack...
<p>In your code, you are binding to a css :target that is RESET when any other link is clicked. Whether this problem is solved, I do not know. But such tasks are usually done using javaScript</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> ...
Stay/Collapse nav bar
html|css
0
54
1
72,239,387
72,239,387
1
true
2022-05-14T09:42:42.187Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Stay/Collapse nav bar<p>I have navbar menus with submenu dropped-down. whenever the menu is clicked then the submenus is expanded however when the submenu is...
72,247,384
substract each two row in one column with pandas<p>I found this problem bellow while executing the code bellow on google colab it works normaly</p> <pre><code>df['temps'] = df['temps'].view(int).div(1e9).diff().fillna(0).abs() print(df) </code></pre> <p>but while using jupyter notebook localy the error bellow appears</...
<p>Here are two ways to get this to work:</p> <pre class="lang-py prettyprint-override"><code>df3['rebounds'] = pd.Series(df3['temps'].view('int64').diff().fillna(0).div(1e9)) </code></pre> <p>... or:</p> <pre class="lang-py prettyprint-override"><code>df3['rebounds'] = pd.Series(df3['temps'].astype('int64').diff().fil...
substract each two row in one column with pandas
python|pandas|datetime|machine-learning|jupyter-notebook
0
54
1
72,248,023
72,248,023
1
true
2022-05-15T10:22:33.373Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: substract each two row in one column with pandas<p>I found this problem bellow while executing the code bellow on google colab it works normaly</p> <pre><cod...
72,250,024
Split word in list and iterate dictionary<p>I've got some code where I receive a string of languages in a text.</p> <p>My goal is to turn this input into a list and iterate through this list in a dictionary to use as a key for value outputs. I send this output to a list to use later.</p> <p>The output I am expecting is...
<p>Look at your <code>language_list</code>. It has leading whitespace. You need to call <code>strip()</code> on each element and you get your expected result</p> <pre><code>l_languages = [] language_dict = { 'Afrikaans' : 57, 'Arabic' : 20, 'Assistive communication' : 21, 'AUSLAN' : 22, 'Bosnian' : 52,'Burmese' : 60, ...
Split word in list and iterate dictionary
python|list|dictionary
1
54
4
72,250,094
72,250,094
1
true
2022-05-15T16:12:44.747Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Split word in list and iterate dictionary<p>I've got some code where I receive a string of languages in a text.</p> <p>My goal is to turn this input into a l...
72,250,906
Replace part of variable name with value of another variable?<p>I have one huge translation file which includes all variables starting with the language code like <code>$de_</code>.</p> <pre><code>$de_anzahl = 'Anzahl'; $en_anzahl = 'Quantity'; $nl_anzahl = 'Aantal'; $tr_anzahl = 'Miktar'; $ru_anzahl = 'Количество'; </...
<p>No need to <code>&lt;?php ...</code> when you're already inside PHP. You can use this:</p> <pre><code>&lt;?php $de_anzahl = 'Anzahl'; $en_anzahl = 'Quantity'; $nl_anzahl = 'Aantal'; $tr_anzahl = 'Miktar'; $ru_anzahl = 'Количество'; $nl_language_code = 'nl'; echo ${$nl_language_code . '_anzahl'}; </code></pre> <p>...
Replace part of variable name with value of another variable?
php|session
0
54
2
72,250,946
72,250,946
1
true
2022-05-15T18:00:21.760Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Replace part of variable name with value of another variable?<p>I have one huge translation file which includes all variables starting with the language code...
72,255,013
Colors[4] not showing color selection on Front Panel<p>I am trying to set the color of an indicator to different colors based on different values, like 1 = red, 2 = blue etc. Using guidance from a Youtube video (accessible using this link: <a href="https://www.youtube.com/watch?v=czUmPQmKmGU" rel="nofollow noreferrer">...
<p>A color box control is just a U32 number (three bytes for RGB and one which is always 0), which is why that's what you get.</p> <p>There is a right click plugin which adds a replace with color box option directly to the right click menu of unsigned 32 bit numbers, but I don't remember if it ships with LV or not.</p>...
Colors[4] not showing color selection on Front Panel
labview
0
54
2
72,257,283
72,257,283
1
true
2022-05-16T06:39:29.600Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Colors[4] not showing color selection on Front Panel<p>I am trying to set the color of an indicator to different colors based on different values, like 1 = r...
72,265,964
Having problems with searchbar logic<p>so I'm a beginner and I'm trying to build a simple phonebook, where you can add persons and filter them with their name.</p> <p>My problem is, that when I'm trying to add a new contact, the new contact does't show until I write something in the searchbar. When I deleted the search...
<p>The problem with your code is when you set a new person it only updates the <code>persons</code> state not the <code>personsFilter</code> state. The <code>personsFilter</code> state is the one being used to show data to the DOM. The reason it works when you filter is because your function <code>filterPersons()</code...
Having problems with searchbar logic
javascript|reactjs
0
54
1
72,266,275
72,266,275
1
true
2022-05-16T21:46:51.470Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Having problems with searchbar logic<p>so I'm a beginner and I'm trying to build a simple phonebook, where you can add persons and filter them with their nam...
72,267,074
How to retrieve rows dependent on reference table data in mysql?<p>I have two tables like so..</p> <p>Data Table</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th style="text-align: left;">Key</th> <th style="text-align: center;">D1</th> <th style="text-align: right;">D2</th> </tr> </thead> <...
<p>Use a subquery to get all fkeys belonging to id 1 from table <code>Relation</code>, which then can be used as a match condition in table <code>Data</code> to get desired result.</p> <pre><code>select * from `Data` where `key` in (select fkey from `Relation` where id=1 and `status`=1); </code></pre>
How to retrieve rows dependent on reference table data in mysql?
mysql
1
54
2
72,267,857
72,267,857
1
true
2022-05-17T00:49:27.340Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to retrieve rows dependent on reference table data in mysql?<p>I have two tables like so..</p> <p>Data Table</p> <div class="s-table-container"> <table c...
72,267,556
unique words dictionary remove special characters and numbers<p>I want to make a dictionary from a book, unfortunately I have a problem</p> <pre><code>import re with open('vechny.txt', encoding='utf-8') as fname: text = fname.read() lst = list(set(text.split())) str1 = ' '.join(str(e) for e in lst) pri...
<p>What about this?</p> <pre><code>import re str1 = '#@-/abcüšščřžý' r = re.findall(r'\b\d*[^\W\d_][^\W_]*\b', str1, re.UNICODE) str2 = ''.join(r) print(str2) </code></pre>
unique words dictionary remove special characters and numbers
python|import|python-re
0
54
3
72,267,898
72,267,898
1
true
2022-05-17T02:32:39.653Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: unique words dictionary remove special characters and numbers<p>I want to make a dictionary from a book, unfortunately I have a problem</p> <pre><code>import...
72,256,815
IoT-Agent OPC-UA Docker-compose setting for NGSI ld or NGSI v2<p>In the docker-composer files of the <a href="https://github.com/Engineering-Research-and-Development/iotagent-opcua" rel="nofollow noreferrer">OPC-UA IoT-Agent</a> there are some comments unclear to me, in particular <a href="https://github.com/Engineerin...
<p>Setting up NGSI-v2 vs NGSI-LD is common to all IoT Agents. The <a href="https://iotagent-node-lib.readthedocs.io/en/latest/installationguide.html" rel="nofollow noreferrer">Installation Guide</a> describes the required configuration - default operation is NGSI-v2.</p> <p>If you want to operate NGSI-LD, the <code>ngs...
IoT-Agent OPC-UA Docker-compose setting for NGSI ld or NGSI v2
docker|docker-compose|fiware|opc-ua|opc
1
54
1
72,272,462
72,272,462
1
true
2022-05-16T09:16:32.713Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: IoT-Agent OPC-UA Docker-compose setting for NGSI ld or NGSI v2<p>In the docker-composer files of the <a href="https://github.com/Engineering-Research-and-Dev...
72,272,740
Rename column names as per names in dataframe in R<p>Is there a way to rename column names in R as per values in Dataframe</p> <pre><code>df ColA ColB 1 3 2 4 </code></pre> <p>These above column names should be renamed. But I have these in another dataframe below</p> <pre><code>df_1 D Z ColA Ne...
<p>You can use <code>match</code> -</p> <pre><code>names(df) &lt;- df_1$Z[match(names(df), df_1$D)] df # New_ColA New_ColB #1 1 3 #2 2 4 </code></pre> <p>Or the same logic using <code>rename_with</code> in <code>dplyr</code> -</p> <pre><code>library(dplyr) df %&gt;% rename_with(~df_1$Z[ma...
Rename column names as per names in dataframe in R
r
-1
54
1
72,272,779
72,272,779
1
true
2022-05-17T10:51:34.073Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Rename column names as per names in dataframe in R<p>Is there a way to rename column names in R as per values in Dataframe</p> <pre><code>df ColA ColB 1 ...
72,269,433
Type for Object.keys(someEnum) in typescript<p>In my problem, I am extracting keys of an enum using <code>Object.keys</code> as follows:</p> <pre class="lang-js prettyprint-override"><code>const enum Foo { FOO = 'foo', BAR = 'bar' } const keys = Object.keys(Foo) </code></pre> <p>When I then try to use the same...
<p>Here is a playground example which casts the Object.keys to the value of the enum keys, and allows indexing access.</p> <p>If you see the logs you'll see it logs foo and bar.</p> <pre><code>enum Foo { FOO = 'foo', BAR = 'bar' } const keys = Object.keys(Foo) as (keyof typeof Foo)[] keys.forEach((a) =&gt; { ...
Type for Object.keys(someEnum) in typescript
typescript
1
54
2
72,272,930
72,272,930
1
true
2022-05-17T06:58:45.103Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Type for Object.keys(someEnum) in typescript<p>In my problem, I am extracting keys of an enum using <code>Object.keys</code> as follows:</p> <pre class="lang...
72,271,892
Azure devops returns 500<p>When open Azure devops page it returns 500 and shows such msg in title: The requested REST API version of 7.1 is out of range for this server. The latest REST API version this server supports is 6.1.</p> <p>Use InPrivate model in Edge is the same.</p>
<p>This is caused by public incident, please check again after it's mitigated.</p> <p><a href="https://status.dev.azure.com/_history" rel="nofollow noreferrer">https://status.dev.azure.com/_history</a></p> <p><a href="https://i.stack.imgur.com/7WYjr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7WY...
Azure devops returns 500
azure-devops
0
54
1
72,272,938
72,272,938
1
true
2022-05-17T09:57:26.563Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Azure devops returns 500<p>When open Azure devops page it returns 500 and shows such msg in title: The requested REST API version of 7.1 is out of range for ...
72,276,499
Autodesk.Inventor_2023 FailedEnvironmentSetup<p>My design automation workitem for Inventor engine 2023 is running into error FailedEnvironmentSetup with the Job Status error as &quot;status&quot;: &quot;failedDownload&quot;. I am wondering, is this because currently the engine for 2023 is not working yet. Any help is a...
<p>This is exactly the reason. We are actively working on the Inventor 2023 support, which should be active soon.</p>
Autodesk.Inventor_2023 FailedEnvironmentSetup
autodesk-designautomation
0
54
1
72,276,860
72,276,860
1
true
2022-05-17T15:11:24.497Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Autodesk.Inventor_2023 FailedEnvironmentSetup<p>My design automation workitem for Inventor engine 2023 is running into error FailedEnvironmentSetup with the ...
72,278,027
How can I convert this ABES ASCII/.dat file into a workable CSV file within R?<p>The <a href="https://www.cdc.gov/healthyyouth/data/abes/data/ABEH2021_5_RECRUIT.dat" rel="nofollow noreferrer">file</a> is clunky, and I cannot find a way to import a workable version into R. I've tried <code>read_csv()</code>, <code>read_...
<p>A combination of the tidyverse and the SAS and SPSS scripts provided in the ABES documentation can be a timesaver here. For example, you can use the widths from the SPSS script with the <code>readr::read_fwf()</code> option <code>fwf_cols()</code>. For example, the first few columns to pass to <code>fwf_cols()</code...
How can I convert this ABES ASCII/.dat file into a workable CSV file within R?
r|ascii
0
54
1
72,278,882
72,278,882
1
true
2022-05-17T17:01:28.917Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I convert this ABES ASCII/.dat file into a workable CSV file within R?<p>The <a href="https://www.cdc.gov/healthyyouth/data/abes/data/ABEH2021_5_RECR...