question_id
int64
37.6M
73.2M
input_text
stringlengths
88
52.4k
output_text
stringlengths
37
35.6k
title
stringlengths
15
150
tags
stringlengths
1
107
q_score
int64
-19
397
view_count
int64
3
879k
answer_count
int64
1
21
accepted_answer_id
int64
37.6M
73.8M
answer_id
int64
37.6M
73.8M
a_score
int64
-5
1.29k
is_accepted
bool
1 class
creation_date
stringlengths
20
24
input_text_instruct
stringlengths
251
52.6k
72,163,328
C#:How to get the longest common prefix from a list of strings LINQ expression<p>I am trying to learn LINQ I would like to understand how to get the longest common prefix from a list of strings {&quot;a&quot;,&quot;abC&quot;,&quot;abcD&quot;} would return &quot;ab&quot;. Common as in at least 1 other string has it. Eve...
<p>It was an interesting challenge and this is my solution:</p> <pre class="lang-cs prettyprint-override"><code>var array = new []{&quot;a&quot;,&quot;abC&quot;,&quot;abcD&quot;}; var longestCommonPrefix = Enumerable.Range(1, array.Max(_ =&gt; _)!.Length) .Select(i =&gt; { var g...
C#:How to get the longest common prefix from a list of strings LINQ expression
c#|linq
0
143
2
72,164,396
72,164,396
0
true
2022-05-08T17:02:47.337Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: C#:How to get the longest common prefix from a list of strings LINQ expression<p>I am trying to learn LINQ I would like to understand how to get the longest ...
72,158,784
Kotlin : How to pass image from Activity to Fragment<p>Im trying to pass an image from my Activity ViewModel to Fragment, the Fragment Receive the data but it doesnt showed up on the fragment. Here is my code</p> <p>Main Activity ViewModel</p> <pre><code> val storageRef = FirebaseStorage.getInstance().reference.chil...
<p>You shouldn't really be passing bitmaps around in <code>Bundle</code>s, they're not meant for large amounts of data. It would be better to pass that string reference you're using to fetch it (<code>&quot;Users/$nisSiswa.png&quot;</code>) and let the <code>Fragment</code> handle fetching and displaying it.</p> <p>Or ...
Kotlin : How to pass image from Activity to Fragment
android|kotlin|android-fragments
0
108
1
72,164,422
72,164,422
0
true
2022-05-08T07:01:21.717Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Kotlin : How to pass image from Activity to Fragment<p>Im trying to pass an image from my Activity ViewModel to Fragment, the Fragment Receive the data but i...
72,164,468
Django: related_name issue<p>I am trying to make a query with related_name. I need to list tenants and its domain. But I am getting this error:</p> <blockquote> <p>'TenantManager' object has no attribute 'domains'</p> </blockquote> <p>What am I doing wrong?</p> <p><strong>models.py</strong></p> <pre><code>class Tenant(...
<p>You can't use the <code>related_name</code> on a manager method like that. On the manager you can do all the usual ORM queries, like <code>self.filter()</code> or <code>self.get(id=1)</code>.</p> <p>Looking at your code, if <code>list_all()</code> is to return all domains but then you're trying to use that queryset ...
Django: related_name issue
django|django-models|django-managers
0
34
1
72,164,647
72,164,647
0
true
2022-05-08T19:30:21.260Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Django: related_name issue<p>I am trying to make a query with related_name. I need to list tenants and its domain. But I am getting this error:</p> <blockquo...
72,149,102
Add Serialize to SFML Color<p>I am working on serialization of color data for SFML objects and ran into an issue where they are not supported by default, as they are not a default type. I tried making a wraparound class, which failed but I found info of adding the type to cereal itself. Based off of what I read at <a h...
<p>dergvern47 on Reddit helped me with this. The issue was 2 fold. Accessing the values inside cannot be done with this, but with the object inside the function, and that the .h file this is inside needs to be #include in the highest .h file existing in the project. The original post can be found here <a href="https://...
Add Serialize to SFML Color
c++|sfml
0
44
1
72,164,672
72,164,672
0
true
2022-05-07T02:49:51.847Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Add Serialize to SFML Color<p>I am working on serialization of color data for SFML objects and ran into an issue where they are not supported by default, as ...
72,164,243
Instance member 'getPopularProductList' can't be accessed using static access<p>I have been trying to called a method from another dart file from below file..but it's showing Instance member 'getPopularProductList' can't be accessed using static access.</p> <p>import 'package:food_delivery/data/repository/popular_produ...
<p>it's because <code>PopularProductRepo.getPopularProductList()</code> is the way you would access the method if it was defined as a static method, you want to use the instance of the class to access the method instead, so instead us <code>popularProductRepo.getPopularProductList()</code></p>
Instance member 'getPopularProductList' can't be accessed using static access
flutter|api|dart|backend
0
174
1
72,164,727
72,164,727
0
true
2022-05-08T18:58:33.520Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Instance member 'getPopularProductList' can't be accessed using static access<p>I have been trying to called a method from another dart file from below file....
72,156,165
Using animateCamera in functional components in react native<p><strong>Summary</strong></p> <p>I'm using <code>react-native-map</code> and trying to use <code>animateCamera</code> and <code>animateMarkerToCoordinate</code> both at the same time but couldn't animate the <code>animateCamera</code> at all.</p> <p><strong>...
<p>So, as I've explained before, I was trying to use <code>animateCamera</code> and <code>animateMarkerToCoordinate</code> together so that it could feel like my marker, the red circle, is always at the center and only the coordinates seem to be changing.</p> <p>After a little research, I've found <a href="https://gith...
Using animateCamera in functional components in react native
android|react-native|animation|react-native-maps
0
210
1
72,164,747
72,164,747
0
true
2022-05-07T20:33:34.077Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Using animateCamera in functional components in react native<p><strong>Summary</strong></p> <p>I'm using <code>react-native-map</code> and trying to use <cod...
72,148,959
UVM end-of-test mechanism<pre><code>task mabu_scoreboard::main_phase(uvm_phase phase); forever begin # 1ns; if(extip_rd_req_cnt - extip_rd_rsp_cnt &gt;= `MABU_READ_OST_NUM) begin hit_rd_max_outstanding = 1; `uvm_info(get_type_name(),&quot;reach read outstanding threshold!&quot;,UVM_NONE); en...
<p>One starting a time-consuming UVM phase, there must be at least one objection raised to prevent that phase from being terminated. Terminating a phase means the process of all <code>uvm_component</code>s executing that phase will be killed.</p> <p>In your scoreboard example, we would have to assume some other compone...
UVM end-of-test mechanism
system-verilog|uvm
0
129
2
72,164,758
72,164,758
0
true
2022-05-07T02:10:50.700Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: UVM end-of-test mechanism<pre><code>task mabu_scoreboard::main_phase(uvm_phase phase); forever begin # 1ns; if(extip_rd_req_cnt - extip_rd_rsp_cnt &g...
72,159,228
Laravel how to use @auth and @guest with multi authentication<p>I am trying to make multi authentication in Laravel project</p> <p>I will make four tables and every table have its authentication system</p> <p>1 - Guest</p> <p>2 - Instructor</p> <p>3 - Supervisor</p> <p>4 - Admin</p> <p>I started with the admin table an...
<p>First of all for example you can check admin guards guess like this;</p> <pre><code>@guest('admin') &lt;li class=&quot;nav-item&quot;&gt; &lt;a class=&quot;nav-link&quot; href=&quot;{{ route('auth.signin') }}&quot;&gt;Login&lt;/a&gt; &lt;/li&gt; &lt;li class=&quot;nav-item&quot;&gt; ...
Laravel how to use @auth and @guest with multi authentication
php|laravel
0
252
1
72,164,798
72,164,798
0
true
2022-05-08T08:19:39.290Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Laravel how to use @auth and @guest with multi authentication<p>I am trying to make multi authentication in Laravel project</p> <p>I will make four tables an...
72,164,858
How to show Toast on homescreen<p>I have an activity that uses:</p> <pre><code>val i = Intent(Intent.ACTION_MAIN) i.addCategory(Intent.CATEGORY_HOME) startActivity(i) Toast.makeText(this, &quot;Fetching attendance, hold your phone close to the terminal ...&quot;, Toast.LENGTH_SHORT).show() </code></pre> <p>To...
<p>The <code>this</code> stands for the context. So instead of using <code>this</code> use <code>applicationContext</code></p> <pre><code>Toast.makeText(applicationContext, &quot;Fetching attendance, hold your phone close to the terminal ...&quot;, Toast.LENGTH_SHORT).show() </code></pre>
How to show Toast on homescreen
android|kotlin|toast|android-toast|onpause
0
58
1
72,164,984
72,164,984
0
true
2022-05-08T20:28:30.810Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to show Toast on homescreen<p>I have an activity that uses:</p> <pre><code>val i = Intent(Intent.ACTION_MAIN) i.addCategory(Intent.CATEGORY_HOME) ...
72,145,156
cann't decrease a value by one in the UI with node.js mongodb, react<p>I am trying to update a value in the UI. When I click to <code>update</code>, I have a button that will decrease by one In the database and be displayed in the UI's <code>quantity</code> section. when I click on the button, it's decreased by one, bu...
<p>You are almost done. In server side just destructure the quantity as it is already updated. it should look like,</p> <pre><code> $set: {...quantity} </code></pre> <p>and in onClick function pass id both during defining function and calling function inside button</p> <pre><code>onClick={()=&gt; handleUpdate(bookId)} ...
cann't decrease a value by one in the UI with node.js mongodb, react
javascript|node.js|reactjs|mongodb
0
50
2
72,165,045
72,165,045
0
true
2022-05-06T17:09:29.103Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: cann't decrease a value by one in the UI with node.js mongodb, react<p>I am trying to update a value in the UI. When I click to <code>update</code>, I have a...
72,164,921
Using JS to add a background color to a dynamically created Div<p>Good evening,</p> <p>I am having trouble using a click event listener to change the background color of a js created div.</p> <p>I have trolled through the questions but I am stumped as to why , even if I declare the function after the divs have been cre...
<p>The other solution is correct that the element does not exist by then. However, if you added more rows, those new rows/grid items will not have the event listener attached.</p> <p>Instead, you can rely on a more versatile event delegation technique to ensure that all future grid items have the event listener:</p> <p...
Using JS to add a background color to a dynamically created Div
javascript|html|css
0
165
2
72,165,075
72,165,075
0
true
2022-05-08T20:38:18.733Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Using JS to add a background color to a dynamically created Div<p>Good evening,</p> <p>I am having trouble using a click event listener to change the backgro...
72,162,257
Wordpress error 404 in migration from Apache to Nginx<p>I have a working WordPress installation on an Apache server and wanted to migrate to an NGINX server on a VPS. I've copied all the files, set up the MSQL connection, etc. and everything seems to work fine except the published articles, which all give 404 errors. T...
<p>Try to change your part:</p> <pre><code>location ~ [^/]\.php(/|$) { fastcgi_split_path_info ^(.+?\.php)(/.*)$; if (!-f $document_root$fastcgi_script_name) {return 404;} fastcgi_param HTTP_PROXY &quot;&quot;; fastcgi_pass unix:/run/php/php7.2-fpm.sock; fastcgi_index index.php; fastcgi_param S...
Wordpress error 404 in migration from Apache to Nginx
wordpress|nginx|http-status-code-404|fastcgi|fpm
0
144
1
72,165,138
72,165,138
0
true
2022-05-08T15:00:06.930Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Wordpress error 404 in migration from Apache to Nginx<p>I have a working WordPress installation on an Apache server and wanted to migrate to an NGINX server ...
72,165,094
Add in a message that displays when the user selects an index that doesn’t exist in C# console<p>Hi I'm very new at programming and currently learning C# so please bare with me. I'm currently stuck trying to display an &quot;index does not exist&quot; for the user.Tried different methods but I kept getting errors. I've...
<p>Try the following which properly asserts out of range.</p> <pre><code>namespace ConsoleApp1 { class Program { static void Main(string[] args) { int[] myNumbers = { 10, 5, 15, 20, 30 }; Console.WriteLine(&quot;User please enter a number from 0 to 4\n&quot;); ...
Add in a message that displays when the user selects an index that doesn’t exist in C# console
c#|arrays|indexing|error-handling
0
42
2
72,165,164
72,165,164
0
true
2022-05-08T21:06:14.563Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Add in a message that displays when the user selects an index that doesn’t exist in C# console<p>Hi I'm very new at programming and currently learning C# so ...
72,154,997
Enabling Azure Key Vault Firewall with Azure DevOps - what is the best way when the KV is in a different subscription?<p>Enabling Azure Key Vault Firewall with Azure DevOps - what is the best way when the KV is in a different subscription ?</p> <ul> <li>The requirement is to attach the ssl certificate from the keyvault...
<p>You can't archive this with default agent pool. You must use self-hosted agent in your Azure tenant as VM or scale-set, then you can configure firewall and even use KV in private network. More here <a href="https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/scale-set-agents?view=azure-devops" rel="nofoll...
Enabling Azure Key Vault Firewall with Azure DevOps - what is the best way when the KV is in a different subscription?
azure|azure-devops|azure-web-app-service|azure-pipelines|azure-keyvault
0
262
1
72,165,359
72,165,359
0
true
2022-05-07T17:40:24.317Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Enabling Azure Key Vault Firewall with Azure DevOps - what is the best way when the KV is in a different subscription?<p>Enabling Azure Key Vault Firewall wi...
72,165,155
Execute a Qml function from Python script?<p>I'm trying to make a script that will open an input box on key command, you type something into it, it closes and returns text to python. So far everything is working good, accept in python when my key combination is met, I cant figure out a way to show the Qml gui. I saw so...
<p>Instead of trying to call a QML function from python you should issue a signal from python and call the QML function to the associated slot:</p> <pre class="lang-py prettyprint-override"><code>class KeyMonitor(QObject): keyPressed = Signal(KeyCode) foo = Signal() # ... def on_press(self, key): ...
Execute a Qml function from Python script?
python|qml|pyside6
0
123
1
72,165,379
72,165,379
0
true
2022-05-08T21:18:16.650Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Execute a Qml function from Python script?<p>I'm trying to make a script that will open an input box on key command, you type something into it, it closes an...
72,164,203
"Login information disallowed" error from google script<p>I have been trying to use the UrlFetchApp from apps script to fetch the inventory information from an inventory system API called Salesbinders, for some reason I kept getting login information disallowed error, I have tried different ways I found online but none...
<p>In your script, <code>headers</code> is not included in the request as the header. If your URL, <code>USERNAME</code> and<code>PASSWORD</code> are correct, I think that this might be the reason for your issue.</p> <p>And also, at UrlFetchApp, <code>then</code> is not used. When these points are reflected in your scr...
"Login information disallowed" error from google script
google-apps-script|fetch|fetch-api|basic-authentication|urlfetch
0
53
1
72,165,590
72,165,590
0
true
2022-05-08T18:52:54.227Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: "Login information disallowed" error from google script<p>I have been trying to use the UrlFetchApp from apps script to fetch the inventory information from ...
72,145,839
Is it possible to define two ILM policies in single filebeat.yml<p>I'd like to know if it is feasible to configure FileBeat in following way:</p> <p>I have single rabbitmq with several MQTT topics. I'd like to save messages from topics foo/# in index index-foo and messages from topics bar/# in index index-bar in order ...
<p>there's no way to handle multiples like that and you will need to setup the ilm policies directly in Elasticsearch, and just tell Filebeat to send to the alias</p>
Is it possible to define two ILM policies in single filebeat.yml
elasticsearch|filebeat|ilm
0
170
2
72,165,596
72,165,596
0
true
2022-05-06T18:19:07.397Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Is it possible to define two ILM policies in single filebeat.yml<p>I'd like to know if it is feasible to configure FileBeat in following way:</p> <p>I have s...
72,159,094
Directly connect to Azure IoT Edge via MQTT as transparent gateway to Azure IoT Central<p>I am trying to setup Azure IoT Edge as transparent gateway to which I want to connect directly via MQTT (without any IoT SDKs). <br><br></p> <p>###---Short Version---###<br> I want to connect directly to IoT Edge via MQTT like <a ...
<p>The username and password in case of direct connection to IoT Central or via IoT Edge as transparent gateway will be the same. This is because IoT Edge will pass through the token to IoTHub for attestation.</p> <p>Only change required will be the Host, which should be mqtts://hostname or ip</p> <p>Ensure in MQTTX cl...
Directly connect to Azure IoT Edge via MQTT as transparent gateway to Azure IoT Central
azure-iot-hub|azure-iot-edge|azure-iot-sdk|azure-iot-central
0
281
2
72,165,612
72,165,612
0
true
2022-05-08T07:57:34.637Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Directly connect to Azure IoT Edge via MQTT as transparent gateway to Azure IoT Central<p>I am trying to setup Azure IoT Edge as transparent gateway to which...
72,165,529
NestJS - Recover only the data of the connected user<p>I have users who have one or more companies. And each company can have one or more offices. I want to retrieve the list of offices linked to a company by its ID according to the user connected.</p> <p>What I do in my code below, I come to retrieve the logged in use...
<p>I would suggest you to search the companies through a query builder with the userId of User ,instead of trying to get the companies directly from the get-user decorator.</p> <pre><code>const companies_query = this.createQueryBuilder('companies'); companies_query.where('companies.user_id = :user_id', { user.id }); <...
NestJS - Recover only the data of the connected user
typescript|api|nestjs
0
88
1
72,165,693
72,165,693
0
true
2022-05-08T22:30:15.830Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: NestJS - Recover only the data of the connected user<p>I have users who have one or more companies. And each company can have one or more offices. I want to ...
72,164,901
Ocaml - incorrect output with lists<p>Hello everyone I wrote a function which takes (int* float* int) list -&gt; int* float * int</p> <pre><code>let least lst = List.fold_left (fun (a1,f1,b1) (a2,f2,b2) -&gt; if f1 &lt; f2 then (a1,f1,b1) else (a2,f2,b2)) (List.hd lst) lst </code></p...
<p>Your recursion is flawed. You remove the head of the list in each step but add the least member. If the head isn't the least member then you you remove the wrong element and the least gets added multiple times.</p> <hr /> <p>This looks like insertion sort except in reverse: Extraction sort.</p> <p>Given a unsorted l...
Ocaml - incorrect output with lists
function|ocaml
0
56
2
72,165,906
72,165,906
0
true
2022-05-08T20:35:16.063Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Ocaml - incorrect output with lists<p>Hello everyone I wrote a function which takes (int* float* int) list -&gt; int* float * int</p> <pre><code>let least ls...
72,165,443
I can't work with SQL values inserted by PHP<p>i have inserted SQL values on tables with PHP that before has readed a .txt file.</p> <p>The thing is that I can not work with those values.</p> <p>PHP reads on the file .txt '8,00' and inserts this value correctly on the data base but if i do a strlen() this returns a 6 a...
<p>Thanks for the clarification above. Seems that when you are extracting the text from the txt file you are also extracting the new line character \n.</p> <p>Clean the value you want to insert with something like:</p> <pre><code>strlen(str_replace(array(&quot;\n&quot;, &quot;\r\n&quot;, &quot;\r&quot;), '', $ram)); </...
I can't work with SQL values inserted by PHP
php|sql|powershell|phpmyadmin
0
43
1
72,165,938
72,165,938
0
true
2022-05-08T22:13:46.977Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: I can't work with SQL values inserted by PHP<p>i have inserted SQL values on tables with PHP that before has readed a .txt file.</p> <p>The thing is that I c...
72,149,443
How do I set the default c# file in my Visual Studio Code c# Project?<p>I am new to using Visual Studio Code. I have always used Visual Studio IDE in Windows. I am trying to run a simple Hello World Program on Mac with VS Code. I ran the following command</p> <blockquote> <p>dotnet new console</p> </blockquote> <p>whic...
<blockquote> <p>dotnet new console command creates a new C# Console Project based on <strong>C# 10.0</strong> . This creates a Program.cs file that has something called as a <em><strong>Top Level Statement without a main method.</strong></em> as shown below:</p> </blockquote> <pre><code>// See https://aka.ms/new-consol...
How do I set the default c# file in my Visual Studio Code c# Project?
c#|visual-studio-code|.net-6.0
0
288
3
72,166,070
72,166,070
0
true
2022-05-07T04:13:41.750Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How do I set the default c# file in my Visual Studio Code c# Project?<p>I am new to using Visual Studio Code. I have always used Visual Studio IDE in Windows...
72,166,012
Getting percent sign to show up in pie chart<p>So this is probably a very basic question but I can't find an answer to it anywhere.</p> <p>I'm trying to create some pie charts and I've managed to get them looking how I want to for the most part but when it comes to getting the percent sign to show up inside the pie sli...
<p>I just ran this little block:</p> <pre><code>plt.pie([30, 25], autopct='%.1f%%') </code></pre> <p>And it gave me this:</p> <p><a href="https://i.stack.imgur.com/iDPJE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iDPJE.png" alt="enter image description here" /></a></p> <p>So I don't think your i...
Getting percent sign to show up in pie chart
python|matplotlib
0
117
1
72,166,071
72,166,071
0
true
2022-05-09T00:42:32.883Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Getting percent sign to show up in pie chart<p>So this is probably a very basic question but I can't find an answer to it anywhere.</p> <p>I'm trying to crea...
72,165,535
Font changes when localizing UIButton Xcode<p>The font changes when I’m trying to localize UIButtons. The localization itself works; I can see the language changing but the font is changing too I tried localizing using base internationalization, localized strings and different pods and the font still changes. I created...
<p><code>UIButton</code> objects can be configured in two primary ways:</p> <ol> <li>Traditionally, via setting attributes on the button and its labels directly (as you do in the code above), or</li> <li>As of iOS 15, via <a href="https://developer.apple.com/documentation/uikit/uibutton/3784627-configuration" rel="nofo...
Font changes when localizing UIButton Xcode
swift|xcode|fonts|localization|uibutton
0
83
1
72,166,101
72,166,101
0
true
2022-05-08T22:31:13.237Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Font changes when localizing UIButton Xcode<p>The font changes when I’m trying to localize UIButtons. The localization itself works; I can see the language c...
72,166,185
How to define context in for AWS CDK python pytests<h2>Goal</h2> <p>To run AWS CDK Python unit tests that validate configuration properties</p> <h2>Problem</h2> <p>While pytest correctly creates the cdk.App object, it fails to read <code>cdk.json</code> for some reason.</p> <h2>Conditions</h2> <ul> <li>Tested tests/cdk...
<h2>Workaround</h2> <p>Force context within pytest file (<a href="https://github.com/aws/aws-cdk/issues/4359#issuecomment-537944331" rel="nofollow noreferrer">ref</a>)</p> <p>eg:</p> <pre><code>TEST_VALUE = &quot;10.1.0.0/20&quot; TEST_CONTEXT = { &quot;cidr&quot;: TEST_VALUE, } def test_config(): app = cdk...
How to define context in for AWS CDK python pytests
python|pytest|aws-cdk
0
331
1
72,166,186
72,166,186
0
true
2022-05-09T01:33:14.623Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to define context in for AWS CDK python pytests<h2>Goal</h2> <p>To run AWS CDK Python unit tests that validate configuration properties</p> <h2>Problem</...
72,144,612
Azure B2C broken when explicitly-declared value for android:exported is used<p>My Xamarin.Forms application uses Azure AD B2C for authentication. Currently, I have to use Android 12 instead of Android 10. According to the documentation, it required a certain change:</p> <blockquote> <p>Warning: If an activity, service,...
<p>No, you need to set the Exported = true. The official document says if the activity has any intent filter, the default value of it is true, so your project in Android 10, it's <code>Exported = true</code>. When you update to Android 12, you need to set it as true too.</p> <p>You can check the official document:<a hr...
Azure B2C broken when explicitly-declared value for android:exported is used
xamarin.forms|xamarin.android|msal|azure-b2c
0
76
1
72,166,215
72,166,215
0
true
2022-05-06T16:21:34.673Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Azure B2C broken when explicitly-declared value for android:exported is used<p>My Xamarin.Forms application uses Azure AD B2C for authentication. Currently, ...
72,166,189
Issues with outputs for dynamic arrays<p>I'm working with a template class for dynamic arrays, and my code has compiled successfully, however my get function for a given element in the dynamic array does not seem to be working. Nothing seems to be outputted whenever I output the function, but this doesn't make sense, b...
<p>Just to collect the findings, if you delete this line from <code>addEntry</code>:</p> <pre><code> string *array = new string[returnSize()]; </code></pre> <p>and change your final for loop to:</p> <pre><code> for(int i = 0; i &lt; w.returnSize(); i++){ cout&lt;&lt;w.getEntry(i)&lt;&lt;&quot;\n&qu...
Issues with outputs for dynamic arrays
c++|templates|dynamic
0
136
1
72,166,247
72,166,247
0
true
2022-05-09T01:33:37.577Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Issues with outputs for dynamic arrays<p>I'm working with a template class for dynamic arrays, and my code has compiled successfully, however my get function...
72,162,222
How to check if string contains an int or float value f#<p>I simply just want a function or way to check if a string contains the numbers 0-9. The code below is what I found from another thread but when I test with string &quot;1&quot; the output is still false.</p> <p><code>let numbercheck x = box x :? int</code></p>
<p>One simple way to check whether number is inside string is to use regular expressions:</p> <pre class="lang-ml prettyprint-override"><code>open System.Text.RegularExpressions let containsNumber str = Regex.IsMatch(str, @&quot;[+-]?([0-9]+([.][0-9]*)?|[.][0-9]+)&quot;) containsNumber &quot;123&quot; |&gt; print...
How to check if string contains an int or float value f#
f#
0
113
3
72,166,297
72,166,297
0
true
2022-05-08T14:56:51.603Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to check if string contains an int or float value f#<p>I simply just want a function or way to check if a string contains the numbers 0-9. The code below...
72,166,034
'NoneType' object has no attribute 'text', beautifulsoup python<p>When i try to run the code and export it to csv. the error &quot;'NoneType' object has no attribute 'text'&quot; appears and I hace tried every way to fix it but nothing seems to be working.The ProductName Prints out but the Price is the one causing the ...
<p>Some list of items may not have price value.So you might use <code>try except</code> and also need to add <code>user-agent</code> . It always be better practice not using list as variable as list is a python keyword. Now it's working smoothly.</p> <pre><code>from bs4 import BeautifulSoup import requests import csv...
'NoneType' object has no attribute 'text', beautifulsoup python
python|csv|web-scraping|text|beautifulsoup
0
107
1
72,166,309
72,166,309
0
true
2022-05-09T00:48:33.650Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: 'NoneType' object has no attribute 'text', beautifulsoup python<p>When i try to run the code and export it to csv. the error &quot;'NoneType' object has no a...
72,161,214
What does it mean to 'traverse' a directory?<p>What does it mean to 'traverse' a directory, for example in this description of chmod permissions?</p> <pre><code>r = read w = write x = execute (traverse for directories) </code></pre>
<p>It means that to access to contents of a directory (traverse the directory) you need to have the execute permission for the directory.</p>
What does it mean to 'traverse' a directory?
linux|permissions|chmod
0
115
1
72,166,475
72,166,475
0
true
2022-05-08T12:54:31.203Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: What does it mean to 'traverse' a directory?<p>What does it mean to 'traverse' a directory, for example in this description of chmod permissions?</p> <pre><c...
72,166,131
How to create the folder structure from info defined in a dataframe?<p>I created a dataframe that lists all files and folders in my Google Drive. I've been able to filter it down to only the folders. I now want to recreate that same folder structure on my local computer.</p> <p>So the dataframe has a unique folder id #...
<p>Just remember where you've been as you make them:</p> <pre><code>lookup = {'0': 'test_dirs' } for row in df.itertuples(): parent = getattr(row, 'parent_folder_id#') path = os.path.join( parent, directory ) os.mkdir(path) lookup[getattr(row, 'folder_id#')] = path </code></pre>
How to create the folder structure from info defined in a dataframe?
python|pandas|dataframe|directory-structure
0
62
1
72,166,494
72,166,494
0
true
2022-05-09T01:17:05.187Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to create the folder structure from info defined in a dataframe?<p>I created a dataframe that lists all files and folders in my Google Drive. I've been a...
72,166,456
Converting a specific time stamp of hours:minutes:seconds from a log and turning it into seconds only<p>So I'm grabbing the values a2 and a3 from a csv file, and in order to write out my equation I need the value a4 in seconds not hours:minutes:seconds which currently shows as 0:01:01 (61 seconds) when I print a4.</p> ...
<p>If (a3-a2) is a datetime.timedelta type, you can then use</p> <pre><code>(a3-a2).total_seconds() </code></pre> <p>To have the whole timedelta difference converted in seconds</p>
Converting a specific time stamp of hours:minutes:seconds from a log and turning it into seconds only
python-3.x|excel|pandas
0
28
2
72,166,610
72,166,610
0
true
2022-05-09T02:34:16.830Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Converting a specific time stamp of hours:minutes:seconds from a log and turning it into seconds only<p>So I'm grabbing the values a2 and a3 from a csv file,...
72,166,624
How can I remove an entire object from an array by its expiry time in mongoose?<p>Doc:</p> <pre><code> &quot;notifcations&quot;: [ { &quot;title&quot;: &quot;Joined the Tournament.&quot;, &quot;description&quot;: &quot;You have registered in the Tournament of Tournament #142, issued ₹...
<p>Probably the simplest method would be to use <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter" rel="nofollow noreferrer"><code>Array.filter()</code></a></p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div clas...
How can I remove an entire object from an array by its expiry time in mongoose?
javascript|node.js|mongodb|mongoose
0
27
1
72,166,698
72,166,698
0
true
2022-05-09T03:09:57.870Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I remove an entire object from an array by its expiry time in mongoose?<p>Doc:</p> <pre><code> &quot;notifcations&quot;: [ { ...
72,164,661
Jflex ambiguity<p>I have these two rules from a jflex code:</p> <pre class="lang-java prettyprint-override"><code>Bool = true Ident = [:letter:][:letterdigit:]* </code></pre> <p>if I try for example to analyse the word &quot;<em>trueStat</em>&quot;, it gets recognnized as an Ident expression and not Bool. How can I avo...
<p>In almost all languages, a keyword is only recognised as such if it is a complete word. Otherwise, you would end up banning identifiers like <code>format</code>, <code>downtime</code> and <code>endurance</code> (which would instead start with the keywords <code>for</code>, <code>do</code> and <code>end</code>, respe...
Jflex ambiguity
compilation|lexical-analysis|jflex
0
35
1
72,166,745
72,166,745
0
true
2022-05-08T19:58:20.387Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Jflex ambiguity<p>I have these two rules from a jflex code:</p> <pre class="lang-java prettyprint-override"><code>Bool = true Ident = [:letter:][:letterdigit...
72,165,812
Connecting BatchDataset with Keras VGG16 preprocess_input<p>I am using <code>tf.keras.preprocessing.image_dataset_from_directory</code> to get a <code>BatchDataset</code>, where the dataset has 10 classes.</p> <p>I am trying to integrate this <code>BatchDataset</code> with a Keras <code>VGG16</code> (<a href="https://k...
<p>Okay I figured it out. I needed to pass a <code>tf.Tensor</code>, not a <code>tf.data.Dataset</code>. One can get a <code>Tensor</code> out by iterating over the <code>Dataset</code>.</p> <p>This can be done in a few ways:</p> <pre class="lang-py prettyprint-override"><code>train_ds = tf.keras.preprocessing.image_...
Connecting BatchDataset with Keras VGG16 preprocess_input
python|tensorflow|keras|deep-learning|vgg-net
0
193
1
72,166,793
72,166,793
0
true
2022-05-08T23:44:35.560Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Connecting BatchDataset with Keras VGG16 preprocess_input<p>I am using <code>tf.keras.preprocessing.image_dataset_from_directory</code> to get a <code>BatchD...
72,136,355
Display the WooCommerce product price inside a custom function<p>I have created a custom function to display 3 custom fields (ACF) and the product price in the WooCommerce Archive/Shop page.</p> <p>My Custom fields are showing correctly, but the WooCommerce price does not. How can I output the product price within this...
<p>Here is the solution if anyone is interested:</p> <pre><code> add_action( 'woocommerce_after_shop_loop_item', 'acf_template_loop_product_meta', 20 ); function acf_template_loop_product_meta() { global $product; if ( $brand = get_field('brand', $product-&gt;get_id()) ) { echo '&lt;p&gt;&lt;strong&...
Display the WooCommerce product price inside a custom function
php|wordpress|woocommerce
0
24
1
72,166,794
72,166,794
0
true
2022-05-06T04:57:06.633Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Display the WooCommerce product price inside a custom function<p>I have created a custom function to display 3 custom fields (ACF) and the product price in t...
72,166,422
Plotting multiple excel sheets on the same graph<p>I have <a href="https://i.stack.imgur.com/Z60qb.png" rel="nofollow noreferrer">this</a> excel file that i need to plot. So far my code looks like this</p> <pre class="lang-py prettyprint-override"><code>import pandas as pd import matplotlib.pyplot as plt file = 'weat...
<p>Typically you use plt.subplots, as it gives you more control over the graph. The code below calculates the offset needed for the xtick labels to be centered and shows the legend with the city labels:</p> <pre><code>import pandas as pd import matplotlib.pyplot as plt file = 'weatherdata.xlsx' def plotMeteoData(fil...
Plotting multiple excel sheets on the same graph
python|excel|pandas|matplotlib|plot
0
174
1
72,166,800
72,166,800
0
true
2022-05-09T02:25:30.560Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Plotting multiple excel sheets on the same graph<p>I have <a href="https://i.stack.imgur.com/Z60qb.png" rel="nofollow noreferrer">this</a> excel file that i ...
72,157,688
How to calculate total within sum of squares and between sum of squares for ward hierarchical clustering?<p>How would I calculate the total within sum of squares and between sum of squares for the ward clustering below? I have looked at several resources online and have not been successful. I came across the css packag...
<p>Here is an example using the <code>iris</code> data set which is included in R. Load the data and then compute the cluster analysis excluding column 5 which contains character data.</p> <pre><code>data(iris) iris.dist &lt;- dist(iris[, -5]) iris.hclust &lt;- hclust(iris.dist, method=&quot;ward.D&quot;) iris.6 &lt;- ...
How to calculate total within sum of squares and between sum of squares for ward hierarchical clustering?
r|hierarchical-clustering
0
151
1
72,166,839
72,166,839
0
true
2022-05-08T02:38:54.400Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to calculate total within sum of squares and between sum of squares for ward hierarchical clustering?<p>How would I calculate the total within sum of squ...
72,166,961
Viewbag data list won't show in the HTML View<p>In my ASP.NET MVC application, I'm trying to pass some values from controller to view. For this, I'm using the view bag method.</p> <p>From the controller, the data is passed to the view.</p> <p>In the view within the <code>for each</code> loop, it also shows the data in ...
<p>Would suggest creating a model class (concrete type) and returning it as <code>List&lt;ExampleModel&gt;</code> type instead of an anonymous list.</p> <pre class="lang-cs prettyprint-override"><code>public class ExampleModel { public string CusName { get; set; } public string Suggest { get; set; } } </code></...
Viewbag data list won't show in the HTML View
c#|asp.net|asp.net-mvc
0
58
1
72,167,005
72,167,005
0
true
2022-05-09T04:19:51.360Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Viewbag data list won't show in the HTML View<p>In my ASP.NET MVC application, I'm trying to pass some values from controller to view. For this, I'm using th...
72,166,004
Define bar colors of matplotlib's barh based on dataframe column values<p>I want to plot my table as a histogram using matplotlib's <code>barh</code> function. The table is a pandas dataframe with structure:</p> <p><a href="https://i.stack.imgur.com/gfqzr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.c...
<p>You need to make species the index of the dataframe, then use <code>.loc</code> to graph the species separately. I also added a legend, but feel free to remove it:</p> <pre><code>import pandas as pd import matplotlib.pyplot as plt import numpy as np df = pd.DataFrame(data={'test': np.linspace(1,16,16).astype(int), ...
Define bar colors of matplotlib's barh based on dataframe column values
python|pandas|dataframe|matplotlib
0
33
1
72,167,039
72,167,039
0
true
2022-05-09T00:41:26.447Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Define bar colors of matplotlib's barh based on dataframe column values<p>I want to plot my table as a histogram using matplotlib's <code>barh</code> functio...
72,141,083
User.Identity.IsAuthenticated is false when I try to access through IP address<p>I published web site to IIS on Windows 10. If I try login to website through forms by url http://localhost, I can access to system. But If I try login by url <a href="http://10.0.0.101" rel="nofollow noreferrer">http://10.0.0.101</a> , the...
<p>Solution, in this case website is running only on HTTP not HTTPS. I had to changed Secure attribute to false.</p> <pre><code>HttpCookie faCookie = new HttpCookie(FormsAuthentication.FormsCookieName, encTicketF) { Secure = false }; </code></pre> <p>Now it's working.</p>
User.Identity.IsAuthenticated is false when I try to access through IP address
iis|asp.net-mvc-5|authorization
0
58
1
72,167,051
72,167,051
0
true
2022-05-06T11:55:14.637Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: User.Identity.IsAuthenticated is false when I try to access through IP address<p>I published web site to IIS on Windows 10. If I try login to website through...
72,157,919
Are KMP and Rabin-Karp Sliding window algorithms for pattern match?<p>I am trying to understand the <code>Sliding Window</code> algorithm for pattern match. I came across <code>KMP</code> and <code>Rabin-Karp</code> and these looks to be using <code>Sliding Window</code> way of finding pattern in the text. Can we class...
<p>Classification is always tricky. We can't really do it without a strict definition of what we are talking about, and such definitions are often rather arbitrary.</p> <p>That being said, in my head a sliding window algorithm has a fixed-sized window that it shifts along the sequence, in each iteration moving a bit of...
Are KMP and Rabin-Karp Sliding window algorithms for pattern match?
string|algorithm|data-structures
0
116
1
72,167,063
72,167,063
0
true
2022-05-08T03:49:40.707Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Are KMP and Rabin-Karp Sliding window algorithms for pattern match?<p>I am trying to understand the <code>Sliding Window</code> algorithm for pattern match. ...
72,167,164
How can we do the process of appending excel from dictionary?<p>I am trying to write a code to parse some data from network output with a loop on set of devices and append the results in a dictionary and then write each dictionary keys and values into an excel sheet</p> <p>The problem I am facing at the moment that the...
<p>You can try concating all the dataframes generating from the loop to one bigger dataframe</p> <pre class="lang-py prettyprint-override"><code>dfs = [] for loop dictionary = {&quot;key1&quot;:[],&quot;key2&quot;:[],&quot;key3&quot;:[]} dictionary[&quot;key1&quot;].append(parse_value1) dictionary[&quot;ke...
How can we do the process of appending excel from dictionary?
python|excel|pandas
0
191
3
72,167,239
72,167,239
0
true
2022-05-09T04:58:00.680Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can we do the process of appending excel from dictionary?<p>I am trying to write a code to parse some data from network output with a loop on set of devi...
72,167,268
render Datatable component if json object is not empty<p>I'm new to React so please bear with me.</p> <p>I'm using react-data-table-component to render a Datatable. I want to render it only after the user has submitted the form and has gathered the necessary data to query my backend.</p> <p>Here is my code working code...
<p>I guess you can simply add a check as follows:</p> <pre><code>const Table = ({ data }) =&gt; { const columns = [ { name: 'Date', selector: (row) =&gt; row.created_at, format: (row) =&gt; moment(row.created_at).format(), } ] return data &amp;&amp; &lt;Da...
render Datatable component if json object is not empty
reactjs|react-hooks|react-data-table-component
0
470
1
72,167,291
72,167,291
0
true
2022-05-09T05:16:52.963Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: render Datatable component if json object is not empty<p>I'm new to React so please bear with me.</p> <p>I'm using react-data-table-component to render a Dat...
72,166,864
How to use a filename based on a build setting<p>I have a build setting like:</p> <pre><code>string_flag( name = &quot;version&quot;, build_setting_default = &quot;0.1&quot;) </code></pre> <p>I want to use it to create a file, e.g.:</p> <pre><code>ctx.actions.run_shell( outputs = [&quot;report-%s.csv&quot; ...
<p>As the error message says, the <code>outputs</code> argument to <code>run_shell</code> expects a list of <code>File</code> objects rather than strings. One generally obtains an appropriate output <code>File</code> object by <a href="https://bazel.build/rules/rules#files" rel="nofollow noreferrer">declaring an output...
How to use a filename based on a build setting
bazel
0
42
1
72,167,318
72,167,318
0
true
2022-05-09T04:01:07.950Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to use a filename based on a build setting<p>I have a build setting like:</p> <pre><code>string_flag( name = &quot;version&quot;, build_setting_d...
72,140,941
SQL Group/Orderby<p>I have a set of records in a db table like this. The thing that logically links these records is guid1 and guid2 but not all records in the table have a full reference to guid1 and guid2. I'd like to be able to group the records based on the guid1/guid2 link and order them by timestamp asc. So this ...
<p>Create a temp table with not null of guid1 &amp; guid2 and a full outer join with the table gives the result. See if this helps.</p> <p><a href="https://dbfiddle.uk/?rdbms=sqlserver_2019&amp;fiddle=38398964f9c22bbb95caea17925bda3d" rel="nofollow noreferrer">https://dbfiddle.uk/?rdbms=sqlserver_2019&amp;fiddle=383989...
SQL Group/Orderby
sql|sql-server|group-by|sql-order-by
0
80
2
72,167,369
72,167,369
0
true
2022-05-06T11:44:38.633Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: SQL Group/Orderby<p>I have a set of records in a db table like this. The thing that logically links these records is guid1 and guid2 but not all records in t...
72,165,695
Upload large file to sharepoint site using Microsoft Graph via REST API<p>I'm trying to upload a file to a specific sharepoint site. In this <a href="https://docs.microsoft.com/en-us/graph/api/driveitem-createuploadsession?view=graph-rest-1.0#upload-bytes-to-the-upload-session" rel="nofollow noreferrer">page</a> shows ...
<p>You are trying to call endpoint which requires <code>itemId</code> but you send file name instead of <code>itemId</code>.</p> <pre><code>POST /groups/{groupId}/drive/items/{itemId}/createUploadSession </code></pre> <p>Another way is to specify the path to the file. The <code>item-path</code> must contain the name of...
Upload large file to sharepoint site using Microsoft Graph via REST API
rest|microsoft-graph-api
0
512
2
72,167,535
72,167,535
0
true
2022-05-08T23:16:27.020Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Upload large file to sharepoint site using Microsoft Graph via REST API<p>I'm trying to upload a file to a specific sharepoint site. In this <a href="https:/...
72,167,328
module 'tensorflow' has no attribute 'random_normal'<p>i was running this step and it had error</p> <pre><code>from efficientnet import EfficientNetB0 as Net from efficientnet import center_crop_and_resize, preprocess_input # loading pretrained conv base model conv_base = Net(weights='imagenet', include_top=False, inp...
<p>Google Colab by default uses Tensorflow 2.x, where this function is called <code>tensorflow.random.normal</code>. The repository you link to seems to be using Tensorflow 1.x, where it was called <code>tensorflow.random_normal</code>. You can either:</p> <ul> <li><p>clone the repository and update its code to run cor...
module 'tensorflow' has no attribute 'random_normal'
python|tensorflow
0
161
1
72,167,608
72,167,608
0
true
2022-05-09T05:26:23.937Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: module 'tensorflow' has no attribute 'random_normal'<p>i was running this step and it had error</p> <pre><code>from efficientnet import EfficientNetB0 as Net...
72,167,509
count jsonb array with condition in postgres<p>I have a postgres database where some column data are stored as follow:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>guest_composition</th> <th>charging_age</th> </tr> </thead> <tbody> <tr> <td>[{&quot;a&quot;: 1, &quot;b&quot;: 1, &quot;c&q...
<p>You can extract an array of all child ages using a SQL JSON path function:</p> <pre><code>select jsonb_path_query_array(r.guest_composition, '$[*].children_ages[*] ? (@ &gt; 3)') from reservations r; </code></pre> <p>The length of that array is then the count you are looking for:</p> <pre><code>select jsonb_array_le...
count jsonb array with condition in postgres
arrays|postgresql|aggregate-functions|jsonb
0
42
1
72,167,690
72,167,690
0
true
2022-05-09T05:55:56.773Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: count jsonb array with condition in postgres<p>I have a postgres database where some column data are stored as follow:</p> <div class="s-table-container"> <t...
72,151,498
Unable to crop mask from original image<p>I'm trying to remove the background from an image. For that, I'm using TensorFlow which provides me mask of an object. After that, I'm cropping the mask from the image but the result is not as good as I wanted.</p> <p>Using <code>TensorFlow</code> for <strong>masking</strong>: ...
<p>After cropping the mask from an original bitmap. I'm SRC_OVER the result bitmap twice which hides the <strong>transparency</strong> issue.</p> <pre><code>fun creatingMasking(original: Bitmap?, mask: Bitmap?): Bitmap? { return try { var result: Bitmap? = mask?.let { ori...
Unable to crop mask from original image
android|tensorflow|kotlin
0
53
1
72,167,834
72,167,834
0
true
2022-05-07T10:08:25.767Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Unable to crop mask from original image<p>I'm trying to remove the background from an image. For that, I'm using TensorFlow which provides me mask of an obje...
72,139,818
Import local ".py" library in powerbi python scripting<p>I have written a python library <em>(ak_sql.py)</em> to query my sql server and written another <em>&quot;.py&quot;</em> script <em>(query_sql.py)</em> to invoke this library and return data in dataframes.</p> <p>I want to <code>&quot;import query_sql&quot;</code...
<p>So seems like it was a PYTHONPATH issue. Was a able to take care of it with appending sys.path:</p> <pre><code>import sys sys.path.append(r&quot;C:\Users\akshat\Documents\ak_sql&gt;&quot;) </code></pre>
Import local ".py" library in powerbi python scripting
python|python-3.x|pandas|powerbi|powerbi-desktop
0
30
2
72,167,869
72,167,869
0
true
2022-05-06T10:13:28.963Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Import local ".py" library in powerbi python scripting<p>I have written a python library <em>(ak_sql.py)</em> to query my sql server and written another <em>...
72,148,572
how to set IBM MQ topic to share message only within same applications<p>this is what I want to achieve with IBM MQ:</p> <p>I have a topic in place, and 2 different applications (A1,A2) subscribing the topic. each application has 2 instances, i.e. (A1-I1,A1-I2,A2-I1,A2-I2). when a message (M1) is published to the topic...
<p>I have looked up shared subscription mentioned in the comment, but I find it (IBM MQ) has a limitation that the shared subscription can only be accessed by one JVM, i.e. two application instances can't access the the shared subscription at the same time, so I give up this purely pub/sub direction.</p> <p>I managed t...
how to set IBM MQ topic to share message only within same applications
ibm-mq|jms-topic
0
184
1
72,168,093
72,168,093
0
true
2022-05-07T00:29:53.973Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to set IBM MQ topic to share message only within same applications<p>this is what I want to achieve with IBM MQ:</p> <p>I have a topic in place, and 2 di...
72,148,088
Can i use firebase + spring boot at same time in Ionic app<p>I'm building a mobile app in ionic and i want to know if i can use firebase and spring boot at the same time in the same app so i can benefit firebase real-time database and authentication and use my custom APIs in spring. If anyone has used it before, tell h...
<p>I would say yes. We used firebase for Push Notifications and our BE was Spring Boot.</p> <p>What will you use your custom APIs for? CRUD? if so, this might help: <a href="https://medium.com/techwasti/spring-boot-firebase-crud-b0afab27b26e" rel="nofollow noreferrer">https://medium.com/techwasti/spring-boot-firebase-c...
Can i use firebase + spring boot at same time in Ionic app
spring|database|firebase|ionic-framework|mobile
0
101
1
72,168,109
72,168,109
0
true
2022-05-06T22:47:46.307Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Can i use firebase + spring boot at same time in Ionic app<p>I'm building a mobile app in ionic and i want to know if i can use firebase and spring boot at t...
72,129,076
how to youtube api data to print in toolset metabox using a button click before save-post<p>i create a metabox with 'import' button in post.php. Also, ready for youtube api data code. but i need, 'when i click 'import' button to run youtube api data function and the values are print in toolset custom fields metabox bef...
<p>i find the solution of my coding</p> <pre><code>&lt;script&gt; jQuery('.Import').live('click', function(e) { e.preventDefault(); jQuery('#save').click(); }); &lt;/script&gt; </code></pre> <p>add the jquery script in same file.</p> <pre><code>$ytURL = get_post_meta(get_the_I...
how to youtube api data to print in toolset metabox using a button click before save-post
php|wordpress|buttonclick|meta-boxes|devtoolset
0
33
1
72,168,211
72,168,211
0
true
2022-05-05T14:40:20.543Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to youtube api data to print in toolset metabox using a button click before save-post<p>i create a metabox with 'import' button in post.php. Also, ready ...
72,140,055
Gridlineerror with Cartopy<p>I used this line thousend times:</p> <pre><code> gl= ax.gridlines(crs=ccrs.PlateCarree(), draw_labels=True, linewidth=1, color='gray', alpha=0.5, linestyle='--') </code></pre> <p>for different plots. Now i wanted to replot some stuff and get the following error.</p> <pre><c...
<p>I only reinstall my conda environment it finally works</p>
Gridlineerror with Cartopy
projection|cartopy
0
28
1
72,168,332
72,168,332
0
true
2022-05-06T10:30:52.210Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Gridlineerror with Cartopy<p>I used this line thousend times:</p> <pre><code> gl= ax.gridlines(crs=ccrs.PlateCarree(), draw_labels=True, lin...
72,168,168
Keeweb self-hosted getting Google hasn’t verified this app error #2018<p>Keeweb deployed as self hosted on kubernetes and integrated with gdrive but getting &quot;Google hasn’t verified this app&quot; error.</p> <p>Nothing in log, follow steps - <a href="https://github.com/keeweb/keeweb#self-hosting" rel="nofollow nore...
<p><a href="https://i.stack.imgur.com/SV4vX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SV4vX.png" alt="enter image description here" /></a></p> <p>means exactly that. An app was created on <a href="https://console.cloud.google.com/apis/dashboard" rel="nofollow noreferrer">Google cloud console</a...
Keeweb self-hosted getting Google hasn’t verified this app error #2018
google-oauth
0
38
1
72,168,393
72,168,393
0
true
2022-05-09T07:11:58.930Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Keeweb self-hosted getting Google hasn’t verified this app error #2018<p>Keeweb deployed as self hosted on kubernetes and integrated with gdrive but getting ...
72,168,510
How to open a Dialog in flutter when a value changes in a ChangeNotifierProvider<p>I have a screen that is using values from a <code>ChangeNotifierProvider</code> to display the content of the screen. As expected when these values change the screen build method is triggered and the screen content is updated.</p> <p>I w...
<p>What you can do is to add a listener to your <code>ChangeNotifier</code>:</p> <pre class="lang-dart prettyprint-override"><code> late final myModel = Provider.of&lt;MyModel?&gt;(context); bool _isDialogShowing = false; @override void initState() { super.initState(); myModel.addListener(_showDialog); ...
How to open a Dialog in flutter when a value changes in a ChangeNotifierProvider
flutter|dialog
0
128
1
72,168,584
72,168,584
0
true
2022-05-09T07:41:54.760Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to open a Dialog in flutter when a value changes in a ChangeNotifierProvider<p>I have a screen that is using values from a <code>ChangeNotifierProvider</...
72,152,009
Unity URP to WebGL is ignoring Sampler State<p>The Sampler State is being ignored once exported to WebGL. I have a plane that has one of its faces setup as to over extend the UV's 0-1 space, so the effect would make the texture applyied to it look smaller... it looks ok in the editor, but once exported as webgl, the cl...
<p>SOLUTION: well i had the image used as decal with wrap mode set to repeat. I set it to clamp and it worked. Idk why the Sampler Node doesn't override this setting... i was especting the image to use whatever wrap method the sampler node was set to use. And weird enough... if the image uses repeat but the sampler nod...
Unity URP to WebGL is ignoring Sampler State
unity3d|shader|shader-graph|urp
0
149
1
72,168,620
72,168,620
0
true
2022-05-07T11:22:38.177Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Unity URP to WebGL is ignoring Sampler State<p>The Sampler State is being ignored once exported to WebGL. I have a plane that has one of its faces setup as t...
72,168,464
can you use a delay of less than a second on header("refresh:...") with PHP?<p>I know you can refresh the page instantly in PHP using <code>header(&quot;refresh: 0;&quot;);</code></p> <p>You can also put your own delay, i.e. 3 seconds like this <code>header(&quot;refresh: 3;&quot;);</code></p> <p>My question is, is it ...
<p>Tried it and it works</p> <p>For example: <code>header(&quot;refresh: 0.25;&quot;);</code> <code>header(&quot;refresh: 0.1;&quot;);</code> <code>header(&quot;refresh: 0.75;&quot;);</code> <code>header(&quot;refresh: 0.5;&quot;);</code> all seem to work.</p>
can you use a delay of less than a second on header("refresh:...") with PHP?
php|html|reload|page-refresh
0
73
1
72,168,747
72,168,747
0
true
2022-05-09T07:38:04.653Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: can you use a delay of less than a second on header("refresh:...") with PHP?<p>I know you can refresh the page instantly in PHP using <code>header(&quot;refr...
72,168,129
How to split each column value from the given string<p>I am trying to split each column value from the string variable. The value is coming from an excel comma seperated file. how can I split each column from each string</p> <pre><code> string1= &quot;\&quot;1\&quot;,\&quot;Truck\&quot;,\&quot;FN60HZU\&quot;,\&quot;...
<pre><code>//I know this is a dumb answer (?) lmao, but I've experienced like this before. //Just simply replace the current delimiter into new delimiter then split with your new delimiter. //This one works for me. yourstring.Replace(&quot;\&quot;,\&quot;&quot;, &quot;|&quot;); </code></pre>
How to split each column value from the given string
c#|csv
0
92
3
72,168,915
72,168,915
0
true
2022-05-09T07:07:59.860Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to split each column value from the given string<p>I am trying to split each column value from the string variable. The value is coming from an excel com...
72,138,772
Best way to implement a primal heuristic that fixes certain Variables<p>I am using PySCIPOpt and have a MIP with some quadratic constraints (works). Now, I want to implement a Primal Heuristic (should run once before presolving), that fixes certain Variables and optimizes afterwards.</p> <p>Ìn pseudo-code something lik...
<p>sorry this took a while to answer.</p> <p>What you want to implement is a sub-scip heuristic. This is certainly possible, but if you want to do it in PySCIPOpt you might have to wrap some missing methods from the C-API.</p> <p>I suggest you take a look at <code>heur_rens.c</code> in the SCIP code. The methods you wo...
Best way to implement a primal heuristic that fixes certain Variables
scip|pyscipopt
0
48
1
72,169,002
72,169,002
0
true
2022-05-06T08:54:27.673Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Best way to implement a primal heuristic that fixes certain Variables<p>I am using PySCIPOpt and have a MIP with some quadratic constraints (works). Now, I w...
72,027,370
Issues with loading consecutive files on 3js<p>I am trying to create a 3d model viewing website for various student projects. Currently pulling from the 3js library to reference OBJs and MTLs on server. The idea is that you can click on the left box of each student wrap div to open a modal with a 3js file viewer.</p> <...
<p>Resolved. Certain parts of 3.js need to be reloaded after rendering a model. Simple fix would be to insert a js reloading script.</p>
Issues with loading consecutive files on 3js
javascript|3d|web3js|.obj
0
18
1
72,169,070
72,169,070
0
true
2022-04-27T10:40:47.920Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Issues with loading consecutive files on 3js<p>I am trying to create a 3d model viewing website for various student projects. Currently pulling from the 3js ...
72,169,007
How do I pass a pointer to an integer to ioctl in python?<p>I am trying to use V4L2 (video for Linux) via python.</p> <p>One of the examples in the V4L2 documentation is this:</p> <pre class="lang-c prettyprint-override"><code>int index; index = 0; if (-1 == ioctl(fd, VIDIOC_S_INPUT, &amp;index)) { perror(&quot;V...
<p>The answer is to use types provided in the v4l2 library</p> <p>If I change</p> <pre class="lang-py prettyprint-override"><code>index = 0 </code></pre> <p>To</p> <pre class="lang-py prettyprint-override"><code>index = v4l2.c_int(0) </code></pre> <p>Then the code works.</p>
How do I pass a pointer to an integer to ioctl in python?
python|python-3.x|ioctl
0
55
1
72,169,088
72,169,088
0
true
2022-05-09T08:26:41.267Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How do I pass a pointer to an integer to ioctl in python?<p>I am trying to use V4L2 (video for Linux) via python.</p> <p>One of the examples in the V4L2 docu...
72,145,050
Cant create an alarm in Xamerin Android C#<p>Copied my teacher's simplified code in order to see if the code i wrote was wrong or somthing yet even her's isnt working. Here is it:</p> <pre><code>private void BtnAlarm_Click(object sender, EventArgs e) { Intent intentAlarm = new Intent(this, typeof(AlarmRece...
<p>You could use the code below with your <code>AlarmReceiver</code>:</p> <pre><code> [BroadcastReceiver(Enabled = true, Exported = false)] public class AlarmReceiver : BroadcastReceiver { public override void OnReceive(Context context, Intent intent) { Toast.MakeText(context, &quot;Received intent!&quo...
Cant create an alarm in Xamerin Android C#
c#|android|xamarin.android|alarmmanager
0
31
1
72,169,119
72,169,119
0
true
2022-05-06T16:59:13.617Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Cant create an alarm in Xamerin Android C#<p>Copied my teacher's simplified code in order to see if the code i wrote was wrong or somthing yet even her's isn...
72,153,351
Apache Camel transform JSON to POJO<p>I'm trying to transform a simple JSON-file to a POJO in Apache Camel, but I cannot get it to work.</p> <p>Routes.java</p> <pre><code>package org.acme.bindy.ftp; import org.apache.camel.Exchange; import org.apache.camel.builder.RouteBuilder; import org.apache.camel.model.dataformat...
<p>The error seems to occur <strong>after</strong> the (successful) unmarshalling to an array of <code>WeatherForecast</code> classes, when the obtained array of POJOs needs to be written to the filesystem:</p> <pre><code>.unmarshal().json(JsonLibrary.Jackson, WeatherForecast[].class) .to(&quot;file:{{json.process...
Apache Camel transform JSON to POJO
java|jackson|apache-camel
0
180
1
72,169,231
72,169,231
0
true
2022-05-07T14:18:29.030Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Apache Camel transform JSON to POJO<p>I'm trying to transform a simple JSON-file to a POJO in Apache Camel, but I cannot get it to work.</p> <p>Routes.java</...
72,167,116
how to detect a particular detected object in Yolo model<p>I am using Yolor to detect multiple objects and then crop a particular detected object and store in a separate folder. I am able to crop every detected object but I am confused on how to crop only a particular detected object.</p> <p>Below is the code for crop...
<p>i hope this helps</p> <pre><code> # Write results k = 0 for *xyxy, conf, cls in det: if save_txt: # Write to file xywh = (xyxy2xywh(torch.tensor(xyxy).view(1, 4)) / gn).view(-1).tolist() # normalized xywh with open(txt_path + '.txt', 'a') as f:...
how to detect a particular detected object in Yolo model
python|deep-learning|yolo|yolov5
0
162
1
72,169,368
72,169,368
0
true
2022-05-09T04:50:26.243Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to detect a particular detected object in Yolo model<p>I am using Yolor to detect multiple objects and then crop a particular detected object and store i...
72,165,007
Azure AD check if auth token is valid<p>I am developing a backend Web API for react SPA. The react SPA will do the authentication with the Azure AD, and send the auth token to Web API.</p> <p>I need to know what are the API available from Azure AD which I can use to validate the auth token? I know there is graph APIs (...
<p>You can make use of <strong><a href="https://stackoverflow.com/questions/71997849/get-an-azure-active-directory-token-as-a-user/72008042#72008042">Postman API</a></strong> to generate the token and you can find <strong><code>expiration time</code></strong> in the response along with token like below:</p> <p><a href=...
Azure AD check if auth token is valid
c#|azure|azure-active-directory
0
573
1
72,169,384
72,169,384
0
true
2022-05-08T20:51:24.757Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Azure AD check if auth token is valid<p>I am developing a backend Web API for react SPA. The react SPA will do the authentication with the Azure AD, and send...
72,159,088
How are AutomationPeers used in a .NET Maui Windows app?<p>Are there any resources showing how to use AutomationPeers in an .NET Maui Windows app? Traditional Xamarin apps would use Windows.UI.Xaml.Automation.Peers, but I can't find mention of peers up at resources such as <a href="https://docs.microsoft.com/en-us/dotn...
<p>Use <code>Microsoft.UI.Xaml.Automation.Peers</code> instead of <code>Windows.UI.Xaml.Automation.Peers</code> .</p> <blockquote> <p>This namespace requires the <code>Microsoft.UI.Xaml.Controls</code> NuGet package</p> </blockquote> <p>Check if the package has been installed in your project .</p> <p>Refer to</p> <p><a...
How are AutomationPeers used in a .NET Maui Windows app?
accessibility|maui
0
49
1
72,169,444
72,169,444
0
true
2022-05-08T07:56:25.157Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How are AutomationPeers used in a .NET Maui Windows app?<p>Are there any resources showing how to use AutomationPeers in an .NET Maui Windows app? Traditiona...
72,168,863
Get value from key within nested Lists of Dicts<p>I am fairly new to Python and have been working on trying to print out the values attached to a key which is present in a nested list of dictionaries in a JSON. Here is the structure from what I can tell:</p> <blockquote> <p>details - List of dicts</p> <blockquote> <p>s...
<p>The elegant solution will be to use jmespath Also it will also handle the cases where key doesnot exist</p> <p><code>pip install jmespath</code></p> <p>If you have <code>data</code> as correct dictionary then we can use</p> <pre><code>import jmespath expression = jmespath.compile('details[*].scorecardDetails[*].scor...
Get value from key within nested Lists of Dicts
python|json
0
229
3
72,169,460
72,169,460
0
true
2022-05-09T08:14:14.780Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Get value from key within nested Lists of Dicts<p>I am fairly new to Python and have been working on trying to print out the values attached to a key which i...
72,160,361
How can i change the color of a tile which was clicked of a treemap in highcharts using react<p>I am using Tree map chart from High-chart library, but I am facing an issue with the changing the color of the active tile or the tile which was clicked, I tried from my end by updating the color of the current which was cli...
<p>First of all, to avoid unnecessary chart redraw memoize your options or keep them in a state. To change color of the clicked point and restore the original one, you can save the current color on a series and use <code>point.update</code> method to change/restore. For example:</p> <pre><code>click: function(event) { ...
How can i change the color of a tile which was clicked of a treemap in highcharts using react
javascript|reactjs|highcharts|react-hooks|react-highcharts
0
87
2
72,169,491
72,169,491
0
true
2022-05-08T11:03:27.430Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can i change the color of a tile which was clicked of a treemap in highcharts using react<p>I am using Tree map chart from High-chart library, but I am f...
72,142,712
Git diff command from shell script<p>I have a script:</p> <pre><code>#!/bin/bash git log -1 | grep -w '^commit' | cut -d ' ' -f2 | git show | grep -w '^index' | cut -d ' ' -f2 &gt; tmp_out while read -r arg do arg1=${arg[@]:0:10} arg2=${arg[@]:23:10} cmd=&quot;git diff ${arg1}^ ${arg2}&quot; ...
<p>The solution was to remove <code>^</code> completely. Answer from @torek in comments.</p> <pre><code>#!/bin/bash git show | grep -w '^index' | cut -d ' ' -f2 &gt; tmp_out ...
Git diff command from shell script
bash|git|shell
0
64
1
72,169,574
72,169,574
0
true
2022-05-06T13:59:18.837Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Git diff command from shell script<p>I have a script:</p> <pre><code>#!/bin/bash git log -1 | grep -w '^commit' | cut -d ' ' -f2 | git show | grep -w '^inde...
72,166,741
Express server returns empty string as a response for proxied requests in Vite<p>The request from frontend to backend is proxied successfully. The server fetches and logs the expected data. But the frontend logs empty string despite the backend returning the exact data logged.</p> <p>Backend Code:</p> <pre class="lang-...
<p>Silly me. Changing <code>forward: 'http://localhost:8000'</code> to <code>target: 'http://localhost:8000'</code> solved the problem.</p>
Express server returns empty string as a response for proxied requests in Vite
node.js|vue.js|express|vite
0
82
1
72,169,624
72,169,624
0
true
2022-05-09T03:37:52.643Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Express server returns empty string as a response for proxied requests in Vite<p>The request from frontend to backend is proxied successfully. The server fet...
72,161,652
SpaCy: How do you check if two specific entities occur in a sentence?<p>I need to extract from a list of sentences (strings) all sentences that contain two specific entities and store them in a new list. The code I tried to use looks like this but unfortunately it doesnt work. I'm using Python and SpaCy.</p> <pre><code...
<p>This code works for me. Thanks for help!</p> <pre><code>sents_required = [] for s in sentences: token_types = [token.ent_type_ for token in s] if ('SPECIES' in token_types) and ('KEYWORD' in token_types): sents_required.append(s) </code></pre>
SpaCy: How do you check if two specific entities occur in a sentence?
python|spacy-3
0
63
2
72,169,735
72,169,735
0
true
2022-05-08T13:50:20.170Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: SpaCy: How do you check if two specific entities occur in a sentence?<p>I need to extract from a list of sentences (strings) all sentences that contain two s...
72,167,612
Bug? Using a data transform with date/timeunit<p>For a while now I've been using a <code>flatten</code> transform to move data from a columnar data frame to a Vega Lite spec, and wonder if it's the source of a recent problem I've encountered with a time series. The <a href="https://vega.github.io/editor/#/gist/71f87fe...
<p>For some reason, your dates are not getting parsed properly. It may be a bug but you can easily workaround it by using a calculate to convert your date to a proper date.</p> <p><a href="https://vega.github.io/editor/#/url/vega-lite/N4IgLgTghgdgzgMwPYQLYgFwG1QIDZRhgCmMmWIcADgB4AmhxIANCElaSyABYCWA5ty54kAdy4BjEXCYBdAL7...
Bug? Using a data transform with date/timeunit
time-series|transform|vega-lite
0
35
1
72,169,744
72,169,744
0
true
2022-05-09T06:10:15.740Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Bug? Using a data transform with date/timeunit<p>For a while now I've been using a <code>flatten</code> transform to move data from a columnar data frame to ...
72,167,546
Found duplicate class androidx / support?<p>I am fully upgrading my application to androidx Have removed <code>android.enableJetifier=true</code> from <code>gradle.properties</code></p> <p>Also removed the support library dependency <code>implementation 'androidx.legacy:legacy-support-v4:1.0.0'</code></p> <p>This is my...
<p>With help from @shuabing's answer was able to solve this Custom tabs was included in play services and browser dependency which caused this issue</p> <p>Solved it by</p> <pre><code>implementation ('com.google.android.gms:play-services-ads:16.0.0'){ exclude group: 'com.android.support', module: 'customtabs' } </c...
Found duplicate class androidx / support?
android|gradle|androidx
0
148
2
72,169,749
72,169,749
0
true
2022-05-09T06:01:02.233Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Found duplicate class androidx / support?<p>I am fully upgrading my application to androidx Have removed <code>android.enableJetifier=true</code> from <code>...
72,169,187
R Shiny making DataTable columns manuallly resizable<p>I would like to ask if it is possible to let the user manually adjust the column widths by clicking on the column and dragging it. If so, how?</p>
<p>You can do that with the <a href="https://github.com/dhobi/datatables.colResize" rel="nofollow noreferrer">colResize</a> plugin. Download the <strong>js</strong> file and the <strong>css</strong> file. In the code below, <strong>path/to/colResize</strong> is the path to the folder containing these two files. If you ...
R Shiny making DataTable columns manuallly resizable
r|shiny|datatables|dt|column-width
0
43
1
72,169,834
72,169,834
0
true
2022-05-09T08:42:46.093Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: R Shiny making DataTable columns manuallly resizable<p>I would like to ask if it is possible to let the user manually adjust the column widths by clicking on...
72,169,810
Laravel 7: How to match today date with database date?<p>I want to count all the records which match with today date.</p> <p>My Code:</p> <pre><code>$today_present = \App\Attendance::where('attendance_date', '=', Carbon\Carbon::now()-&gt;toDateString()) -&gt;where('attendance_status', 1)-&gt;get();...
<h2>Hi Please Use this it will work:</h2> <p>$StartDate=date('Y-m-d 00:00:00');//Also you can change date formate according your save date like Y-m-d or d-m-Y etc.</p> <p>$EndDate=date('Y-m-d 23:59:59');</p> <p>$today_present = \App\Attendance::whereBetween('attendance_date', [$StartDate, $EndDate]) -&gt;where('attenda...
Laravel 7: How to match today date with database date?
datetime|count|laravel-7
0
78
2
72,170,000
72,170,000
0
true
2022-05-09T09:34:04.723Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Laravel 7: How to match today date with database date?<p>I want to count all the records which match with today date.</p> <p>My Code:</p> <pre><code>$today_p...
72,169,944
How to render conditionally depending on which button is clicked?<p>I'm new to ReactJS and I want to have a conditional rendering like the code below</p> <p>I read the <a href="https://reactjs.org/docs/conditional-rendering.html" rel="nofollow noreferrer">doc</a> but I was a bit confused.</p> <p>Do I have to handle tru...
<p>You can use a map (an object in JS) with key-boolean pair if you want to control multiple button states. Like</p> <pre><code>const [buttonStates, setButtonStates] = useState({ &quot;ABC&quot;: false, &quot;DEF&quot;: true, &quot;XYZ&quot;: true, }); </code></pre> <p>Then</p> <pre><code>{buttonStates[&quo...
How to render conditionally depending on which button is clicked?
reactjs
0
148
2
72,170,125
72,170,125
0
true
2022-05-09T09:43:51.040Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to render conditionally depending on which button is clicked?<p>I'm new to ReactJS and I want to have a conditional rendering like the code below</p> <p>...
72,169,667
Filter IP File extracted from excel<p>I have a file extracted from excel like this:</p> <pre><code>&quot;IP1 IP2 IP3&quot; IP4 &quot;IP5 IP6&quot; </code></pre> <p>In Excel it looks like this:</p> <p>Line 1:</p> <pre><code>IP1 IP2 IP3 </code></pre> <p>Line 2:</p> <pre><code>IP4 </code></pre> <p>Line 3:</p> <pre><c...
<p>As discussed in the comments, if your code is &quot;losing control&quot; that simply means that your input data is not as clean as you thought - you need to sanitize it, either before processing, or in this script.</p> <p>Also, your processing could be far simpler. This works for me (but obviously needs some validat...
Filter IP File extracted from excel
python|file
0
26
1
72,170,145
72,170,145
0
true
2022-05-09T09:22:35.267Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Filter IP File extracted from excel<p>I have a file extracted from excel like this:</p> <pre><code>&quot;IP1 IP2 IP3&quot; IP4 &quot;IP5 IP6&quot; </cod...
72,170,175
I am getting such Kind Of Problem : Uncaught (in promise) SyntaxError: Unexpected end of JSON input<p>I am using react js and using mongo db. i am trying to get data by fetch. but i get this type of error : Uncaught (in promise) SyntaxError: Unexpected end of JSON input</p> <pre><code>const [product, setProduct] = useS...
<p>Your code in useEffect is correct the reason you may be getting this error is because of</p> <ol> <li>There is no JSON data from the backend</li> <li>Maybe the JSON you received is not proper JSON</li> </ol> <p>you can confirm this by replacing res.json() with res.text() and then console.log it</p>
I am getting such Kind Of Problem : Uncaught (in promise) SyntaxError: Unexpected end of JSON input
javascript|reactjs|json|mongodb|fetch
0
97
2
72,170,248
72,170,248
0
true
2022-05-09T09:59:57.993Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: I am getting such Kind Of Problem : Uncaught (in promise) SyntaxError: Unexpected end of JSON input<p>I am using react js and using mongo db. i am trying to ...
72,166,827
Problem with load() function (CS50 Problem Set 5: Speller)<p>I'm working on CS50's Problem Set 5 (Speller) and I don't understand where I am going wrong with the load() function. I am getting errors in lines 36 and 79 when I try to compile. But I don't understand how to fix it. I am new to CS so I am sorry if this is s...
<p>The node definition is not the same as the distro code; <code>word</code> should be a char array not an array of char pointers. <code>node-&gt;word</code> is the wrong type for use in the string functions.</p>
Problem with load() function (CS50 Problem Set 5: Speller)
c|compiler-errors|cs50|strcmp|strcpy
0
146
1
72,170,490
72,170,490
0
true
2022-05-09T03:54:32.573Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Problem with load() function (CS50 Problem Set 5: Speller)<p>I'm working on CS50's Problem Set 5 (Speller) and I don't understand where I am going wrong with...
72,169,538
React Native Scrollview error: Half the page is a Scrollview but the other half is a blank page<p>I have an issue with Scrollview: when I add it to my project, the page that I got is split in half, and I have the scrollview with my elements on the upper half and nothing below. I'm using expo(not sure if it is an issue ...
<p>Try adding <code>flex:1</code> to the parent view like</p> <pre><code>&lt;View style={{flex:1}}&gt; &lt;ScrollView style={{ flex: 1 }} contentContainerStyle={{ flexGrow: 1 }}&gt; .... &lt;/ScrollView&gt; &lt;/View&gt; </code></pre>
React Native Scrollview error: Half the page is a Scrollview but the other half is a blank page
reactjs|react-native|expo|scrollview
0
73
1
72,170,508
72,170,508
0
true
2022-05-09T09:12:06.123Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: React Native Scrollview error: Half the page is a Scrollview but the other half is a blank page<p>I have an issue with Scrollview: when I add it to my projec...
72,170,647
Sql query about joining 2 select<p>I would like to know how can i join 2 select statements that are like this:</p> <pre><code>Select Team.name from Team join Match on Team.id == Match.teamHomeid Select Team.name from Team join Match on Team.id == Match.teamAwayid </code></pre> <p>The error i get is cause i dont have se...
<p>You can use the same table multiple times. ie:</p> <pre><code>Select t1.Name as HomeTeam, t2.Name as AwayTeam from Match m inner join Team t1 on t1.Id = m.teamHomeId inner join Team t2 on t2.Id = m.teamAwayId </code></pre>
Sql query about joining 2 select
sql|select
0
53
1
72,170,700
72,170,700
0
true
2022-05-09T10:38:15.923Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Sql query about joining 2 select<p>I would like to know how can i join 2 select statements that are like this:</p> <pre><code>Select Team.name from Team join...
72,170,164
Divide a large dataframe into smaller sub dataframes in order<p>Is there any way to divide the very large data frame into smaller 5 sub-data frames with equal parts? I cannot use the train test split because it does not keep the data in order. The solution that already exists <a href="https://stackoverflow.com/question...
<p>Following my comment. Here is an example, note it's probably not the best approach..:</p> <pre><code>import numpy as np dfs = np.array_split(df2, 5) for index, df in enumerate(dfs): globals()['df%s' % index] = pd.DataFrame(df) df3 </code></pre>
Divide a large dataframe into smaller sub dataframes in order
python|pandas|dictionary
0
62
1
72,170,824
72,170,824
0
true
2022-05-09T09:58:57.210Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Divide a large dataframe into smaller sub dataframes in order<p>Is there any way to divide the very large data frame into smaller 5 sub-data frames with equa...
72,170,239
XSLT - match with multiple condition (and)<p>I have the following input</p> <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;document&gt; &lt;body&gt; &lt;p&gt; &lt;pPr&gt; &lt;spacing after=&quot;120&quot;/&gt; &lt;ind left=&quot;357&quot;/&gt;...
<p>I think you can check</p> <pre><code>&lt;xsl:template match=&quot;p[pPr/ind[@left]][preceding-sibling::*[1][self::p[pPr/pStyle/@val = 'ListeAufzhlung']]]/pPr/ind&quot;&gt; &lt;pStyle val=&quot;ListeAufzhlung&quot;/&gt; &lt;/xsl:template&gt; </code></pre> <p>or</p> <pre><code>&lt;xsl:template match=&quot;p[pPr/ind[...
XSLT - match with multiple condition (and)
xslt
0
42
1
72,170,833
72,170,833
0
true
2022-05-09T10:05:56.670Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: XSLT - match with multiple condition (and)<p>I have the following input</p> <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;d...
72,147,046
Pentaho spoon search and replace especial character in rows<p>I have a csv file with mime type US-ASCII and one column in the dataset look like this:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>id</th> <th>V_name</th> </tr> </thead> <tbody> <tr> <td>210001</td> <td>cha?ne des Puys</td> ...
<p>As @Iłya Bursov has stated, the source file you are reading doesn't provide the correct characters, it is providing the ? in the source, so if you want to correct it, you'll have to do it manually.</p> <p>I don't think it is worth it, unless you know you are going to get always the same set of V_name over time and d...
Pentaho spoon search and replace especial character in rows
data-cleaning|data-warehouse|pentaho-data-integration|stage|spoon
0
78
1
72,170,930
72,170,930
0
true
2022-05-06T20:29:54.687Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Pentaho spoon search and replace especial character in rows<p>I have a csv file with mime type US-ASCII and one column in the dataset look like this:</p> <di...
72,170,040
Unable to Print the Data Via Cursor in DB2<p>Code :</p> <pre><code>BEGIN DECLARE EMPID INT DEFAULT 0; CALL dbms_output.put_line ('EMPID-' || EMPID); DECLARE c1 CURSOR FOR select EMPLOYEE_ID from EMP.EMPLOYEESDET; OPEN c1; LOOP FETCH c1 INTO EMPID; CALL dbms_output.put_line ('Display EMPID-' || EMPID)...
<p>When using an anonymous block with compound SQL (inlined), the statements that are valid are a subset of SQL statements. The <a href="https://www.ibm.com/docs/en/db2/11.5?topic=statements-compound-sql-inlined" rel="nofollow noreferrer">documentation</a> states which statements are valid.</p> <p>Specifically you can...
Unable to Print the Data Via Cursor in DB2
db2
0
74
1
72,170,945
72,170,945
0
true
2022-05-09T09:49:08.703Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Unable to Print the Data Via Cursor in DB2<p>Code :</p> <pre><code>BEGIN DECLARE EMPID INT DEFAULT 0; CALL dbms_output.put_line ('EMPID-' || EMPID); ...
72,166,893
TypeError: Cannot read properties of undefined (reading 'address')<p>I'm getting this error while testing the contract. TypeError: Cannot read properties of undefined (reading 'address')</p> <pre><code>const{expect} = require(&quot;chai&quot;); const hre = require(&quot;hardhat&quot;); describe(&quot;Token Contract...
<p>You have a typo.</p> <pre class="lang-js prettyprint-override"><code>// this is wrong const signers = await ethers.getSigner(); // this is correct const signers = await ethers.getSigners(); </code></pre> <p><code>getSigner</code> is still a valid command, but it doesn't return an array. That's why <code>signers[0]</...
TypeError: Cannot read properties of undefined (reading 'address')
unit-testing|ethereum|solidity|smartcontracts|hardhat
0
1,991
2
72,171,014
72,171,014
0
true
2022-05-09T04:04:59.607Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: TypeError: Cannot read properties of undefined (reading 'address')<p>I'm getting this error while testing the contract. TypeError: Cannot read properties of...
72,151,487
How to break down a Java Micronaut application into multiple java modules?<p>I am from .net background and new to java. I have started exploring java micronaut framework and started building a mid size application using it. I want to break down functionality into following multiple modules (java module).</p> <ul> <li>W...
<blockquote> <p>But when I created a new micronaut project using CLI, it created project without any module.</p> </blockquote> <p>That is the intended behavior of our CLI.</p> <blockquote> <p>I want to break down functionality into following multiple modules (java module)...</p> </blockquote> <p>You should do that with...
How to break down a Java Micronaut application into multiple java modules?
micronaut|java-module
0
166
1
72,171,263
72,171,263
0
true
2022-05-07T10:07:31.243Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to break down a Java Micronaut application into multiple java modules?<p>I am from .net background and new to java. I have started exploring java microna...
72,146,077
kwic() function returns less rows than it should<p>I'm currently trying to perform a sentiment analysis on a <code>kwic</code> object, but I'm afraid that the <code>kwic()</code> function does not return all rows it should return. I'm not quite sure what exactly the issue is which makes it hard to post a reproducible e...
<p>It's something of a guess without having a reproducible example (your input <code>full_data</code>, namely) but here's my best guess. Your <code>kwic()</code> call is using the default &quot;glob&quot; pattern matching, and what you want is a regular expression match instead.</p> <p>Fix it this way:</p> <pre class="...
kwic() function returns less rows than it should
r|nlp|tokenize|quanteda
0
32
1
72,171,305
72,171,305
0
true
2022-05-06T18:43:54.190Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: kwic() function returns less rows than it should<p>I'm currently trying to perform a sentiment analysis on a <code>kwic</code> object, but I'm afraid that th...
72,170,679
Second dataset with single point makes y axis too big on Chart.js<p>I have a Chart.js scatter chart in an HTML document that shows three datasets. The first dataset has 101 datapoints and the chart scales the x- and y- axes correctly.</p> <p>The other two datasets each contain a single datapoint. In both cases, the x a...
<p>It was simple in the end. I was trying to give it a single datapoint, rather than a <em>list</em> of datapoints containing a single item.</p> <p>I'm still not entirely sure why that would have affected the y-axis the way it did, but at least this is here now in case anyone else makes the same mistake.</p>
Second dataset with single point makes y axis too big on Chart.js
javascript|html|chart.js
0
18
1
72,171,312
72,171,312
0
true
2022-05-09T10:41:27.930Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Second dataset with single point makes y axis too big on Chart.js<p>I have a Chart.js scatter chart in an HTML document that shows three datasets. The first ...
72,171,238
A project's three module rely on three different virtual environment<p>Now I have a project and I think it can be divided into three different modules like below.</p> <pre><code>project │ README.md │ └───flask_web │ └───app_folder │ | └─── ... | | └─── ... | | | __init__.py | | │ │ app_run.py...
<blockquote> <p>Something really puzzles me:Is there a mechanism that can enable the whole project keep running without switching the virtual environment.And because the &quot;fate&quot; is a relatively close part, I want to keep the virtual environment of 'fate' as far as possible(try to avoid put all the python packa...
A project's three module rely on three different virtual environment
python|linux|flask|web|virtualenv
0
37
1
72,171,347
72,171,347
0
true
2022-05-09T11:27:52.657Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: A project's three module rely on three different virtual environment<p>Now I have a project and I think it can be divided into three different modules like b...
72,143,002
Runnable inside synchronized (this) leads to app crash<p>My code is:</p> <pre><code>@Override public void loadingDone(int whatIsDone) { if (interrupt) { return; } synchronized (this) { // 1 - loaded with visu // 2 - loaded without visu switch (whatIsDone) { case 1: // view.s...
<p>Seems, that instead of asyncExec, synchronized one helps:</p> <pre><code>case 3: view.getParent().getDisplay().syncExec(new Runnable() { //code } </code></pre>
Runnable inside synchronized (this) leads to app crash
java|synchronization
0
37
1
72,171,430
72,171,430
0
true
2022-05-06T14:19:26.323Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Runnable inside synchronized (this) leads to app crash<p>My code is:</p> <pre><code>@Override public void loadingDone(int whatIsDone) { if (interrupt) ...
72,170,582
Detecting spacebar pressing outside the window and deactivating further inputs (Python)<p>So, I am a Python enthusiast and I want to make a spacebar trecking app (using PyQt). Let's say I want my programm to detect spacebar pressing, play a sound and then deactivate any futher pressings of this key for 30 seconds. My 2...
<p>You need to use keyboard hook for that, for example <a href="https://pypi.org/project/keyboard/" rel="nofollow noreferrer">keyboard</a> library</p>
Detecting spacebar pressing outside the window and deactivating further inputs (Python)
python|pyqt|pyqt5
0
21
1
72,171,442
72,171,442
0
true
2022-05-09T10:32:50.780Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Detecting spacebar pressing outside the window and deactivating further inputs (Python)<p>So, I am a Python enthusiast and I want to make a spacebar trecking...
72,166,771
Why do we need to specify tsx while importing using NextJS?<p>I struggled a lot to find out why</p> <p><code>import Accordion from '../components/Accordion';</code></p> <p>was not working. When I changed it to this using trial-and-error, it worked.</p> <p><code>import Accordion from '../components/Accordion.tsx';</code...
<p>Because NextJS assumes it to be a folder name. So, if you want to import your component like <code>import Accordion from '../components/Accordion';</code>, then you need to make <code>Accordion</code> a folder and add your typescript code in a file named <code>index.tsx</code> inside the <code>Accordion</code> folde...
Why do we need to specify tsx while importing using NextJS?
next.js
0
109
1
72,171,711
72,171,711
0
true
2022-05-09T03:44:00.317Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why do we need to specify tsx while importing using NextJS?<p>I struggled a lot to find out why</p> <p><code>import Accordion from '../components/Accordion';...
72,171,629
python replace multiple double characters using a dictionary<p>I am looking to replace character pairs in a string using a dictionary in python.</p> <p>It works for single characters but not doubles.</p> <pre><code>txt = &quot;1122&quot; def processString6(txt): dictionary = {'11': 'a', '22':'b'} transTable = txt....
<p>You can use this piece of code to replace any length of strings:</p> <pre><code>import re txt = &quot;1122&quot; def processString6(txt): dictionary = {'11': 'a', '22':'b'} pattern = re.compile( '|'.join(sorted(dictionary.keys(), key=len, reverse=True))) result = pattern.sub(lambda x: dictiona...
python replace multiple double characters using a dictionary
python|replace
0
57
1
72,171,733
72,171,733
0
true
2022-05-09T11:58:09.670Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: python replace multiple double characters using a dictionary<p>I am looking to replace character pairs in a string using a dictionary in python.</p> <p>It wo...
72,170,465
Nested SectionList does not scroll on android<p>I have a SectionList inside of an animated bottom sheet component, but it does not scroll when nested inside of this component on Android. How can I make it behave like on iOS?</p> <p>the parent Bottom sheet that takes the SectionList as a prop through children:</p> <pre>...
<p>I solved this by changing the SectionList to a FlatList that renders based on the properties instead, and following this comment: <a href="https://stackoverflow.com/a/67157649/14631972">https://stackoverflow.com/a/67157649/14631972</a></p>
Nested SectionList does not scroll on android
react-native
0
387
1
72,171,746
72,171,746
0
true
2022-05-09T10:24:02.507Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Nested SectionList does not scroll on android<p>I have a SectionList inside of an animated bottom sheet component, but it does not scroll when nested inside ...
72,171,685
Javascript error - Event Listener error on page load<p>i am working on a weather app and i'm getting this error once the page loads &quot;Uncaught TypeError: Cannot read property 'addEventListener' of null&quot; on line 36</p> <p>here is the Code Snippet for the Html :</p> <pre><code>&lt;div class=&quot;weather - app&q...
<p>the <code>querySelector</code> uses the CSS selectors to find an element in your page, the selector you passed is <code>.form</code> which means <em>find an element with a class called form</em> and this does not appear in your HTML anywhere, so the correct selector is 'form' without a <code>.</code> since <code>.</...
Javascript error - Event Listener error on page load
javascript|html|events|addeventlistener
0
57
2
72,171,883
72,171,883
0
true
2022-05-09T12:02:14.713Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Javascript error - Event Listener error on page load<p>i am working on a weather app and i'm getting this error once the page loads &quot;Uncaught TypeError:...
72,172,028
Differences between lists of items and list of items<p>I was thinking about API path like <code>.../lists/items?listId=1,2,3</code> to get a response like below.</p> <pre class="lang-json prettyprint-override"><code>// Map&lt;Integer, List&gt; { 1: [ { &quot;field&quot;: &quot;item1&quot; }, { ...
<p>I'd use the first method.</p> <ul> <li>The second is the worst, since you have to divide again the lists clientside, which is useless. JSON can send them separately</li> <li>The third could be used, but you would have to recreate the connection id/list, since lists don't have a key.</li> </ul> <p>The map method main...
Differences between lists of items and list of items
java|json|spring-boot|rest
0
45
1
72,172,103
72,172,103
0
true
2022-05-09T12:28:10.357Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Differences between lists of items and list of items<p>I was thinking about API path like <code>.../lists/items?listId=1,2,3</code> to get a response like be...
72,172,122
I'm using WinSCP, and language characters are being displayed as �<p>I've tried many things, and used many html templates. Still have the same problem. I'm a bit certain that there isn't anything wrong with my code but with WinSCP itself. The website is infomatikk.no</p> <p>Characters æøå are being displayed as �.</p>
<p>Go to the Options &gt; Preferences &gt; Internal editor &gt; Default encoding and set to UTF-8</p>
I'm using WinSCP, and language characters are being displayed as �
html|winscp
0
17
1
72,172,176
72,172,176
0
true
2022-05-09T12:36:00.073Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: I'm using WinSCP, and language characters are being displayed as �<p>I've tried many things, and used many html templates. Still have the same problem. I'm a...