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,952,929
Extremely Slow Google Cloud Function (1 minute +)<p>I have a Google Cloud Function to handle username and profile picture changes in my firestore database. Whenever a user updates their profile picture or name, a cloud function updates all their reviews so they match the new data. However, this function is taking over ...
<p>You're not returning anything from the top-level code in your Cloud Functions, which means that the container has no way to know when the code is done.</p> <p>To make it work correctly, return a promise from the top-level code that resolves when all asynchronous work is done. And as Dharmaraj commented, you'll need ...
Extremely Slow Google Cloud Function (1 minute +)
node.js|google-cloud-firestore|google-cloud-functions
0
48
1
72,953,446
72,953,446
0
true
2022-07-12T13:14:20.877Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Extremely Slow Google Cloud Function (1 minute +)<p>I have a Google Cloud Function to handle username and profile picture changes in my firestore database. W...
72,949,692
Converting a wrong date into the correct format<p>I have a wrong date in the database 2022-10-14 12:59:00 , I want to change it to 2022-14-10 12:59:00. Is there a direct convert function I could use, or do I have to split and put the date correctly. Just trying to get some ideas to do this the easy way. I tried the con...
<p>You can use the CONVERT() function to go from a date type to a string with a particular &quot;style&quot;. There are styles for different presentation formats to represent the different date presentation formats around the world.</p> <p>To make this work, the data needs to be in a date type, not just a string. (or...
Converting a wrong date into the correct format
sql|sql-server
0
48
1
72,953,583
72,953,583
0
true
2022-07-12T09:05:03.527Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Converting a wrong date into the correct format<p>I have a wrong date in the database 2022-10-14 12:59:00 , I want to change it to 2022-14-10 12:59:00. Is th...
72,947,492
How to implement atomicity in firebase realtime database. For my problem<p>For the given code, I try to implement atomicity. In this, if the first push gets executed then execute the second push if it fails then roll back the first push and start again from the top. If the first push is executed successfully then execu...
<p>It sounds like you want to perform a multi-path update, which is a way to combine multiple updates in a single API call:</p> <pre><code>if(message){ const updates = {}; let id = ref.push().key; // generate a push key updates[key] = { mobNo : senderMobNo, message : message, time : ...
How to implement atomicity in firebase realtime database. For my problem
javascript|firebase|firebase-realtime-database
0
48
2
72,954,052
72,954,052
0
true
2022-07-12T05:39:55.213Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to implement atomicity in firebase realtime database. For my problem<p>For the given code, I try to implement atomicity. In this, if the first push gets ...
72,957,971
How do I add routes to my react native app navigation, but keep it out of my tab navigation?<p>I've watched tutorials and looked at the docs however I still don't get it, I need someone to explain using my situation/code.</p> <p>My navigation setup is similar to Instagram. Bottom tab navigation has Home/Search/Inventor...
<p>You will want to create another navigation layer for your profile screen</p> <p>To make the stack navigation for the profile screen:</p> <pre><code>const ProfileStack = createNativeStackNavigator&lt;ProfileStackParamList&gt;(); function ProfileNavigator() { return ( &lt;ProfileStack.Navigator &gt; &lt;Pr...
How do I add routes to my react native app navigation, but keep it out of my tab navigation?
javascript|react-native|react-navigation|tailwind-css|zustand
0
48
1
72,958,074
72,958,074
0
true
2022-07-12T20:21:36.503Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How do I add routes to my react native app navigation, but keep it out of my tab navigation?<p>I've watched tutorials and looked at the docs however I still ...
72,953,547
BufferedReader reading empty lines instead of newly added lines<p>Im currently working on a application to manage a remote minecraft server and the first thing Im working on is observing the messages in the minecraft console. Im doing this by observing the latest.log textfile in which the minecraft server copies its ou...
<p>BufferedReade.readLine() reads until either the next linefeed or the end of file.</p> <p>So when reading this file:</p> <pre><code>[......] [21:34:31] [Server thread/INFO]: [removed] left the game </code></pre> <p>BufferedReader gives the following output:</p> <pre><code>[......] init: [21:34:31] [Server thread/INFO...
BufferedReader reading empty lines instead of newly added lines
java|bufferedreader|read-write
1
48
1
72,958,247
72,958,247
0
true
2022-07-12T13:56:17.893Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: BufferedReader reading empty lines instead of newly added lines<p>Im currently working on a application to manage a remote minecraft server and the first thi...
72,958,549
Can Dapr really enable distributed tracing in an application without changing any application code?<p>We can find in <a href="https://github.com/dapr/quickstarts/tree/master/tutorials/observability" rel="nofollow noreferrer">Dapr Quickstarts</a> that with Dapr</p> <blockquote> <p>you'll be enabling distributed tracing ...
<p>You are correct Ocimar. Dapr can track only calls made to/from the sidecar. But you wouldn't use Dapr only for tracing purpose. Ideally you would use Dapr for some of the other features such as binding other external systems, service invocation, pub/sub, resiliency, etc. And you can do that, but not having any Dapr...
Can Dapr really enable distributed tracing in an application without changing any application code?
trace|dapr|sidecar|observability
0
48
1
72,959,364
72,959,364
0
true
2022-07-12T21:24:39.997Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Can Dapr really enable distributed tracing in an application without changing any application code?<p>We can find in <a href="https://github.com/dapr/quickst...
72,955,577
React Native - Type Script - Object should be changeble to a number when user clicks add<p>My question is, what should I modify on the interface so the number before the object (0, 1, ...) is generated automatically when the user click Add?</p> <pre><code> export interface IRoute { amount?: string; ...
<p>I see a couple of issues here.</p> <ol> <li>The code for <code>onAdd</code> doesn't do anything, and shouldn't compile because <code>prevState</code> is undefined. The function states, but does'nt do anything with, the new array. I would expect it to be something like <code>const onAdd = () =&gt; setRoute([...rout...
React Native - Type Script - Object should be changeble to a number when user clicks add
arrays|typescript|react-native|object
0
48
1
72,959,447
72,959,447
0
true
2022-07-12T16:31:37.117Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: React Native - Type Script - Object should be changeble to a number when user clicks add<p>My question is, what should I modify on the interface so the numbe...
72,935,793
the output of subprocess is different from the ffprob outptu<p>I am trying the find the bitrate of each video and for this I used the following python command:</p> <pre><code>subprocess.call(['ffprobe', '-i',pname1,'-v', 'quiet', '-show_entries', 'format=bit_rate', '-hide_banner', '-of', 'default=noprint_wrappers=1:nok...
<p>You get the return value of <code>call()</code> method and that is 0 which is succesfull. To get bitrate value as output, you can use <code>subprocess.check_output()</code></p> <pre><code>output=subprocess.check_output(['ffprobe', '-i',pname1,'-v', 'quiet', '-show_entries', 'format=bit_rate', '-hide_banner', '-of', ...
the output of subprocess is different from the ffprob outptu
python|python-3.x|subprocess|ffprobe
0
48
1
72,959,534
72,959,534
0
true
2022-07-11T08:40:47.193Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: the output of subprocess is different from the ffprob outptu<p>I am trying the find the bitrate of each video and for this I used the following python comman...
72,960,284
What exactly is re rendering and what is the flow of useState hook<p>I am learning react and I have been struck in understanding the flow of useState and useEffect hooks(how do they re-render the component) and what exactly does re rendering a component mean(Will the whole function be run again or how does it happen).I...
<p>The state of the component helps us to indicate to react how the component should be displayed.</p> <p>React has a &quot;copy&quot; of your dom called <strong>virtual dom</strong> and when the state changes, using the function returned by <code>useState</code>, react re-renders the componen wich means that the <stro...
What exactly is re rendering and what is the flow of useState hook
reactjs|react-hooks|use-state
0
48
2
72,960,427
72,960,427
0
true
2022-07-13T02:32:25.793Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: What exactly is re rendering and what is the flow of useState hook<p>I am learning react and I have been struck in understanding the flow of useState and use...
72,914,145
How to automatically place the mouse cursor in an input at a precise index outside the callback() function with useRef?<p>I have an <code>input</code> in which the user enters an expression of this form:</p> <p><code>&quot;TERM&quot;:&quot;MATCH_TERM&quot;</code></p> <p>I would like that when the user enters a quote in...
<p>I didn't find the answer to my second question (stopping the feature from working if the user spams the input with a lot of characters) but I finally found my problem. I was missing a useEffect for my previous code to work normally, because of that, one of my state variables didn't have time to update and this creat...
How to automatically place the mouse cursor in an input at a precise index outside the callback() function with useRef?
javascript|reactjs|string|autocomplete|dom-events
0
48
1
72,964,292
72,964,292
0
true
2022-07-08T16:07:51.720Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to automatically place the mouse cursor in an input at a precise index outside the callback() function with useRef?<p>I have an <code>input</code> in whi...
72,956,931
How to set different tint color for leftBarButtonItem and rightBarButtonItem in Swift<p>I have tried many solutions but it’s not working as expected</p> <p>As per my application structure in every viewcontoller viewWillDisappear we have to restore navigation bar like below code</p> <pre><code>let textAttributes = [NSAt...
<p>To change or apply different tint color for the navigation bar buttons you can use the below code</p> <pre><code> let backButton = UIButton(frame: CGRect(x: 0.0, y: 0.0, width: 44.0, height: 44.0)) backButton.setImage(UIImage(systemName: &quot;chevron.backward&quot;), for: .normal) backButton.addTarget(se...
How to set different tint color for leftBarButtonItem and rightBarButtonItem in Swift
ios|swift|iphone|applet
0
48
1
72,965,332
72,965,332
0
true
2022-07-12T18:34:45.517Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to set different tint color for leftBarButtonItem and rightBarButtonItem in Swift<p>I have tried many solutions but it’s not working as expected</p> <p>A...
72,962,638
How can I add an image to ports?<p>I've tried to add an image to rectangle port with JointJS, check my <a href="https://jsfiddle.net/blablabla/cjxyerow/95/" rel="nofollow noreferrer">jsfiddle</a> project. I need 2 images, one in my rectangle shape, I did that and one inside shape port. I don't know why, but when I add...
<p>In your JSFiddle you don't differentiate between image attributes. When you make the instance of your shape <code>hmi = new joint.shapes.devs.Model</code>, the <code>image</code> attributes here override the image attributes when you defined <code>joint.shapes.devs.Model</code> in the first place.</p> <p>If you comm...
How can I add an image to ports?
jointjs
0
48
1
72,966,901
72,966,901
0
true
2022-07-13T07:46:25.727Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I add an image to ports?<p>I've tried to add an image to rectangle port with JointJS, check my <a href="https://jsfiddle.net/blablabla/cjxyerow/95/" ...
72,967,400
How to build specific app APK with Android Studio when the project contains multiple apps?<p>I try to build and run the sample <code>helloworld/mobile</code> in project (<a href="https://github.com/android/car-samples" rel="nofollow noreferrer">https://github.com/android/car-samples</a>)</p> <p>My question is about how...
<p>First of all, let's understand how the git directory is structured.</p> <p>The directory has the two folders <code>car-lib/CarGearViewerKotlin</code> and <code>car_app_library</code>, which are gradle projects that can be built using gradle.</p> <p>How do you know? Any folder contains <code>gradle wrapper</code> and...
How to build specific app APK with Android Studio when the project contains multiple apps?
android|build|structure|project
0
48
1
72,967,796
72,967,796
0
true
2022-07-13T13:45:27.047Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to build specific app APK with Android Studio when the project contains multiple apps?<p>I try to build and run the sample <code>helloworld/mobile</code>...
72,967,580
corrplot:corrplot function in R panelled plots<p>I would like to create a figure containing different correlation plots created by corrplot(). To do so, once I created the plots, I assigned them to a variable and line them up with ggpubr:ggarrange(), but the single variables created have content NULL and when gear rang...
<p>You can use this code <code>par(mfrow=c(1,2))</code> to plot your graphs side by side like this:</p> <pre class="lang-r prettyprint-override"><code>library(corrplot) library(psych) library(ggpubr) library(dplyr) data(iris) res_pearson.c_setosa&lt;-iris%&gt;% filter(Species==&quot;setosa&quot;)%&gt;% select(Sep...
corrplot:corrplot function in R panelled plots
r|correlation|psych
-1
48
1
72,969,317
72,969,317
0
true
2022-07-13T13:58:30.530Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: corrplot:corrplot function in R panelled plots<p>I would like to create a figure containing different correlation plots created by corrplot(). To do so, once...
72,966,914
How to query same table with same parameter but with different where conditions and get combined result at last<p>I have a global search I will search with one keyword but need to get results with all the matching columns of a table.</p> <pre><code>Page&lt;A&gt; a = null; a = zRepo.getResultByNameSearch(searchText) a =...
<p>For the first part of how to get the combined result. I will do something like this.</p> <ul> <li>Create repository interface as you wrote but using spring data jpa intead of raw query</li> <li>user CompletableFuture with each method call</li> <li>combine the result into a dto</li> <li>return this combined result</l...
How to query same table with same parameter but with different where conditions and get combined result at last
java|mysql|sql|spring-boot|jpa
0
48
1
72,970,759
72,970,759
0
true
2022-07-13T13:10:29.223Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to query same table with same parameter but with different where conditions and get combined result at last<p>I have a global search I will search with o...
72,959,195
How to downgrade Nuget to previous version<p>I am not looking to downgrade a Nuget package, but Nuget itself. I am trying do downgrade from 6.2 to 6.1 as 6.2 is causing nuget errors for my project after upgrading.</p>
<p>You can download latest and previous versions of Nuget on their <a href="https://www.nuget.org/downloads" rel="nofollow noreferrer">official download page: https://www.nuget.org/downloads</a></p>
How to downgrade Nuget to previous version
visual-studio|nuget
0
48
1
72,972,775
72,972,775
0
true
2022-07-12T22:59:48.787Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to downgrade Nuget to previous version<p>I am not looking to downgrade a Nuget package, but Nuget itself. I am trying do downgrade from 6.2 to 6.1 as 6.2...
72,975,187
How to make a GameObject that prompts user for text input in Unity<p>I'm new to Unity and I'm trying to create an object that upon being placed by the user will prompt the user for text input. The GameObject is basically a text box. This is also meant for a mobile application.</p>
<p>Fortunately, the answer is very simple and doesn't even require writing code. You can use the “<a href="https://docs.unity3d.com/Packages/com.unity.ugui@1.0/manual/script-InputField.html" rel="nofollow noreferrer">InputField</a>&quot; UI component. You can quickly create an InputField from the menu bar entry &quot;G...
How to make a GameObject that prompts user for text input in Unity
unity3d
0
48
1
72,975,428
72,975,428
0
true
2022-07-14T04:25:17.137Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to make a GameObject that prompts user for text input in Unity<p>I'm new to Unity and I'm trying to create an object that upon being placed by the user w...
72,975,692
why is my component.render() is in a loop?<p>I am building a simple weather app where I set a place to display the weather forcast with a boolean to control if it will show or not</p> <pre><code>&lt;div className=&quot;column&quot;&gt; {this.state.displayResult ? &lt;WeatherResult /&gt; : null} &lt;/div&gt; </code...
<p>You are called a <code>fetch</code> method inside your <code>render</code> function which will cause an infinite update loop.</p> <pre><code>render() { this.fetchFavCities(); </code></pre> <p>Infinite loop will happen because you probably set these favorite cities in your state and reference them here</p> <pre><...
why is my component.render() is in a loop?
javascript|html|reactjs
-2
48
1
72,975,944
72,975,944
0
true
2022-07-14T05:38:54.697Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: why is my component.render() is in a loop?<p>I am building a simple weather app where I set a place to display the weather forcast with a boolean to control ...
72,930,246
How to include a local framework in Podspec<p>I'm creating a <code>Podspec</code> file and need to include two frameworks which I downloaded - one for the Simulator and another for arm64.</p> <p>I checked <a href="https://guides.cocoapods.org/syntax/podspec.html#specification" rel="nofollow noreferrer">https://guides.c...
<p>I was able to do this using the below key:</p> <pre><code>s.vendored_frameworks </code></pre> <p>Found this from <a href="https://github.com/yutao86/PodspecExample" rel="nofollow noreferrer">here</a></p>
How to include a local framework in Podspec
ios|frameworks|cocoapods|ios-frameworks
0
48
1
72,979,822
72,979,822
0
true
2022-07-10T16:48:12.747Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to include a local framework in Podspec<p>I'm creating a <code>Podspec</code> file and need to include two frameworks which I downloaded - one for the Si...
72,976,690
MySql format number with space as thousand delimiter and no decimal zeros<p>Having the number: <code>103,648.340</code> format it to be as the expected result</p> <p>Expect result: 103 648.34</p> <p>My progress:</p> <pre class="lang-sql prettyprint-override"><code>SELECT TRIM(price)+0 as price_without_decimal_zeros...
<p>Try this solution:</p> <pre><code>SELECT TRIM(TRAILING '.' FROM TRIM(TRAILING '0' from REPLACE(format(price, 3), &quot;,&quot;, &quot; &quot;) )) AS price FROM products WHERE price LIKE '%.%' </code></pre> <p><a href="https://dbfiddle.uk/?rdbms=mysql_8.0&amp;fiddle=5540d973b174619bd9805d42ca28d4d8" rel="nofollow nor...
MySql format number with space as thousand delimiter and no decimal zeros
mysql|sql|database
0
48
1
72,980,117
72,980,117
0
true
2022-07-14T07:20:32.220Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: MySql format number with space as thousand delimiter and no decimal zeros<p>Having the number: <code>103,648.340</code> format it to be as the expected resul...
72,981,507
Git remote add through 2 ssh servers<p>Using Git, how can I add a remote from my local machine to a virtual machine (for hosting) that is only accessible from a secondary machine?</p> <p>So to access this machine I would normally have to ssh into the first, then ssh into the second from the first one.</p> <p>Is there a...
<p>Use <code>server1</code> as an SSH jump host. On your local machine edit <code>~/.ssh/config</code> and add</p> <pre><code>Host server2 ProxyJump user1@server1 User user2 </code></pre> <p>Test the configuration: from the local machine try</p> <pre><code>ssh server2 </code></pre> <p>or</p> <pre><code>ssh user...
Git remote add through 2 ssh servers
git|ssh
1
48
2
72,982,030
72,982,030
0
true
2022-07-14T13:40:38.243Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Git remote add through 2 ssh servers<p>Using Git, how can I add a remote from my local machine to a virtual machine (for hosting) that is only accessible fro...
72,982,177
Using import statements for packages and modules only, not for individual classes or functions<p>The <a href="https://google.github.io/styleguide/pyguide.html" rel="nofollow noreferrer">google python style guide</a> mentions at 2.2 that <code>Use import statements for packages and modules only, not for individual class...
<p>There is typically relatively small set of modules available to import, but they contain hundreds of classes. Module names are usually unique, class names are much less likely to do so. Repeated imports of identically named class will silently overwrite them and cause bugs when trying to use them.</p> <pre><code>fro...
Using import statements for packages and modules only, not for individual classes or functions
python|python-import|conventions
-1
48
1
72,982,574
72,982,574
0
true
2022-07-14T14:28:09.283Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Using import statements for packages and modules only, not for individual classes or functions<p>The <a href="https://google.github.io/styleguide/pyguide.htm...
72,985,467
How to convert JSON string to Class with Newtonsoft while ignoring named json sub objects<p>Im not sure exactly the right phrasing to as this question but here is the problem. I'm getting data from CoinMarketCap and trying to convert its json response into a Object. My class looks like this:</p> <pre><code>namespace C...
<p>I suggest deserialising the json to a dedicated class and then picking out what you need.</p> <p>The model:</p> <pre><code>public class LatestQuotesResponseDto { public Dictionary&lt;string,LatestQuote&gt; Data { get; set; } } </code></pre> <p>Then:</p> <pre><code>// TODO error handling var deserialised = JsonCon...
How to convert JSON string to Class with Newtonsoft while ignoring named json sub objects
c#|json|razor|json.net|.net-6.0
0
48
2
72,988,505
72,988,505
0
true
2022-07-14T19:00:25.117Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to convert JSON string to Class with Newtonsoft while ignoring named json sub objects<p>Im not sure exactly the right phrasing to as this question but he...
72,882,285
Shortcut for Block Comment is not working<p>it should be a very simple task but really I dont know how to solve this problem!</p> <p>I use Pycharm and I have an Italian keyobard so no <code>/</code> on my keyboard (to do it I have to press <code>Shift + 7</code>), and the built in shortcut to comment a block of code in...
<p>Ok so I found out that Block comments in python doesnt exists: <a href="https://youtrack.jetbrains.com/issue/PY-6185/Block-comments-in-python-files" rel="nofollow noreferrer">https://youtrack.jetbrains.com/issue/PY-6185/Block-comments-in-python-files</a></p> <p>But anyway I can achieve a similar result using <code>C...
Shortcut for Block Comment is not working
pycharm|keyboard-shortcuts|keymaps
0
48
1
72,992,328
72,992,328
0
true
2022-07-06T10:52:39.230Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Shortcut for Block Comment is not working<p>it should be a very simple task but really I dont know how to solve this problem!</p> <p>I use Pycharm and I have...
72,982,746
How can I find and delete all custom layouts after a certain layout in PowerPoint?<p>I am migrating a lot of old presentations to a new design using VBA. I have created the new file from a template, copied each slide across and applied the correct custom layout that I need to each one. Once done, I am left with a load ...
<p>PowerPoint doesn't really track the order of slide layouts, so trying to delete layouts <em>after</em> a certain one isn't reliable. I would go by the layout name. Create a Select Case statement based on the layout name. In the first Case statement, place the names of all 50 good layouts. This Select Case statement ...
How can I find and delete all custom layouts after a certain layout in PowerPoint?
vba|powerpoint
0
48
3
72,999,652
72,999,652
0
true
2022-07-14T15:06:28.297Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I find and delete all custom layouts after a certain layout in PowerPoint?<p>I am migrating a lot of old presentations to a new design using VBA. I h...
73,002,024
Hotel Bookings Possible C++<p>Hotel Bookings Possible C++ from InterviewBit website. I've been working on it and I couldnt find a solution for it. <strong>The question is:</strong> A hotel manager has to process N advance bookings of rooms for the next season. His hotel has C rooms. Bookings contain an arrival date and...
<p>You're processing departures before arrivals.</p> <p>In the sample test case, someone stays from days <code>1~2</code>. That means, the room is occupied on day 2; and is only vacated on day 3. For some departure date <code>x</code>, you should process it on <code>x+1</code> as that's when the guest leaves.</p> <p>So...
Hotel Bookings Possible C++
c++|arrays|sorting|data-structures
0
48
1
73,002,055
73,002,055
0
true
2022-07-16T06:30:08.450Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Hotel Bookings Possible C++<p>Hotel Bookings Possible C++ from InterviewBit website. I've been working on it and I couldnt find a solution for it. <strong>Th...
73,002,196
Conditionally execute promises in Promise.all()<p>I have 2 promises that takes in input 2 differents parameters:</p> <pre><code>promise1(var1) promise2(var2) </code></pre> <p>These promises runs in parallel inside a Promise.all():</p> <pre><code>Promise.all([promise1(var1), promise2(var2)]) </code></pre> <p>Sometimes, ...
<pre class="lang-js prettyprint-override"><code>Promise.all([ var1 ? promise1(var1) : Promise.resolve(null), var2 ? promise2(var2) : Promise.resolve(null), ]); </code></pre>
Conditionally execute promises in Promise.all()
javascript|promise
0
48
4
73,002,302
73,002,302
0
true
2022-07-16T07:00:35.570Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Conditionally execute promises in Promise.all()<p>I have 2 promises that takes in input 2 differents parameters:</p> <pre><code>promise1(var1) promise2(var2)...
73,007,007
Why is this code not terminating and going on for infinite loop?<p>This is my attempt at solving Leetcode's Question no <a href="https://leetcode.com/problems/keys-and-rooms/" rel="nofollow noreferrer">841</a> What I have done is, I made an array dp which has the size of <code>len(rooms)</code> and all are intially 0. ...
<p>Oh God! The problem that was happening here was that when ever I encourtered a room I was appending it to the queue so, that room took me to some other room and like that this kept on going hence the infinite loop.</p> <p>Just 1 small correction and it worked Here is the code:</p> <pre><code>class Solution: def ...
Why is this code not terminating and going on for infinite loop?
python|python-3.x|list|graph|deque
0
48
2
73,007,069
73,007,069
0
true
2022-07-16T19:15:14.120Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why is this code not terminating and going on for infinite loop?<p>This is my attempt at solving Leetcode's Question no <a href="https://leetcode.com/problem...
73,007,039
How can I remove borders/frames of subplots while plotting xarray dataset using imshow of matplotlib in Python?<p>I have a netCDF file downloaded from the <a href="https://data.giss.nasa.gov/pub/gistemp/" rel="nofollow noreferrer">NASA website</a> called gistemp1200_GHCNv4_ERSSTv5.nc.gz</p> <p>I open the data using xar...
<p>Based on suggestion of Dahn, I figured out that I had used <code>plt.subplot()</code> and again used <code>fig.add_subplot()</code> twice.</p> <p>I solved the problem as follows:</p> <p>fig = plt.figure(figsize = (10, 10))</p> <p>fig.suptitle(&quot;Temperature anomaly in the end of last four decades\n relative to 19...
How can I remove borders/frames of subplots while plotting xarray dataset using imshow of matplotlib in Python?
python|python-3.x|matplotlib|python-xarray|subplot
0
48
1
73,007,461
73,007,461
0
true
2022-07-16T19:20:14.500Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I remove borders/frames of subplots while plotting xarray dataset using imshow of matplotlib in Python?<p>I have a netCDF file downloaded from the <a...
73,000,948
Why is React Native AsyncStorage not updating state on mount?<p>When I try to load the state from AsyncStorage for the screen I just navigated to, I am getting this error: <code>TypeError: undefined is not an object (evaluating 'weights[numExercise].map')</code> It is trying to use the initial state that the screen ini...
<p>It turns out that using multiple states was causing an issue, I'm assuming because it's asynchronous. So instead I used one state that held an object of states, like so:</p> <pre><code>const [states, setStates] = useState({ workoutName: &quot;&quot;, exercisesArr: [&quot;&quot;], weights: [[&quot;&quot;]...
Why is React Native AsyncStorage not updating state on mount?
reactjs|react-native|asynchronous|state|asyncstorage
0
48
1
73,009,330
73,009,330
0
true
2022-07-16T01:33:09.533Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why is React Native AsyncStorage not updating state on mount?<p>When I try to load the state from AsyncStorage for the screen I just navigated to, I am getti...
72,975,704
.glb file doesn't show in express server<p>I want to run a simple webserver that shows a .glb file in VR using a-frame.</p> <p>When I use the &quot;Open in Default Browser&quot; extension in vs code the html below shows without problems, both box and file.</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt...
<p>If someone has a similar problem. Check the browser's console log, mine showed that the webpage couldn't find the .glb file. I solved this by adding a public folder and serving it to the client by using:</p> <pre><code>app.use(express.static('public')) </code></pre>
.glb file doesn't show in express server
node.js|express|aframe
0
48
1
73,010,165
73,010,165
0
true
2022-07-14T05:40:39.367Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: .glb file doesn't show in express server<p>I want to run a simple webserver that shows a .glb file in VR using a-frame.</p> <p>When I use the &quot;Open in D...
73,012,929
TypeORM @Entity SyntaxError: Invalid or unexpected token<p>I'm trying to use TypeORM in Javascript node app but when I created my first Entity and tried to run the app I got Invalid or unexpected token</p> <pre><code>@Entity({ name: &quot;application_users&quot; }) SyntaxError: Invalid or unexpected token at ESMLoader....
<p>This is probably due using TypeScript syntax in JavaScript files.</p>
TypeORM @Entity SyntaxError: Invalid or unexpected token
javascript|node.js|typeorm
0
48
1
73,013,516
73,013,516
0
true
2022-07-17T15:12:23.523Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: TypeORM @Entity SyntaxError: Invalid or unexpected token<p>I'm trying to use TypeORM in Javascript node app but when I created my first Entity and tried to r...
73,015,522
Is there a way to recover Kinesis Data if Lambda function fails?<p>Context: I'm scraping data from a third party source using a lambda function (this lambda function is invoked my a cloudwatch event bridge so its asynchronous) then writing that data to kinesis firehose which writes it to an S3 bucket. This allows for d...
<blockquote> <p>If my lambda fails mid way while getting data from the third party source, is there a way that I can re invoke the lambda and poll kinesis to see what data exists there to ensure that I'm not re writing the same data to kinesis?</p> </blockquote> <p>No. Kinesis Firehose is not Kinesis Data Streams, and ...
Is there a way to recover Kinesis Data if Lambda function fails?
amazon-web-services|aws-lambda|amazon-cloudwatch|amazon-kinesis|amazon-kinesis-firehose
1
48
1
73,016,390
73,016,390
0
true
2022-07-17T21:34:03.253Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Is there a way to recover Kinesis Data if Lambda function fails?<p>Context: I'm scraping data from a third party source using a lambda function (this lambda ...
73,004,256
UWP.C++ How to toggle Adaptive Brightness from BackgroudTask<p>now i have<br /> <a href="https://stackoverflow.com/questions/72930447/uwp-c-create-task-with-parameter">PointerTo.BrightnessOverride from MyBackgroudTask </a></p> <pre><code>aaa_bo = BrightnessOverride::GetDefaultForSystem();// OK VStudio &amp; Phone </cod...
<p>You could take a look at <a href="https://docs.microsoft.com/en-us/uwp/api/windows.graphics.display.brightnessoverride.saveforsystemasync?view=winrt-22621#windows-graphics-display-brightnessoverride-saveforsystemasync(windows-graphics-display-brightnessoverride)" rel="nofollow noreferrer">BrightnessOverride.SaveForS...
UWP.C++ How to toggle Adaptive Brightness from BackgroudTask
c++|uwp|windows-10-mobile
0
48
1
73,016,588
73,016,588
0
true
2022-07-16T12:34:54.910Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: UWP.C++ How to toggle Adaptive Brightness from BackgroudTask<p>now i have<br /> <a href="https://stackoverflow.com/questions/72930447/uwp-c-create-task-with-...
72,937,303
Patch a C header file in sysroot?<p>I am trying to compile an apps. The compilation failed with this error below.</p> <pre><code>recipe-sysroot/usr/include/linux/stat.h:59:2: error: declaration does not declare anything [-fpermissive] | 59 | __s32 __reserved; </code></pre> <p>This can be easily fixed by modifying ...
<p>No, we can't patch sysroot. However i let the original code an I just added the following in my .bb recipe:</p> <pre><code>TARGET_CFLAGS += &quot; -fpermissive &quot; </code></pre>
Patch a C header file in sysroot?
yocto
0
48
1
73,021,879
73,021,879
0
true
2022-07-11T10:44:17.133Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Patch a C header file in sysroot?<p>I am trying to compile an apps. The compilation failed with this error below.</p> <pre><code>recipe-sysroot/usr/include/l...
72,997,295
React-Leaflet pinch zoom moves markers out of sync with map<p>I'm using leaflet on a React js application (with typescript).</p> <p>The map works well on desktop browsers but on mobile I'm experiencing some issues while zooming and panning while pinching on the screen: while pinching on the screen the markers move toge...
<p>Finally found the solution:</p> <p>it was not a leaflet or react-leaflet issue.</p> <p>In all the css files of the website there was a section with this code:</p> <pre class="lang-css prettyprint-override"><code>div { transition: all 0.25s ease-in-out; -moz-transition: all 0.25s ease-in-out; -webkit-transition...
React-Leaflet pinch zoom moves markers out of sync with map
javascript|reactjs|typescript|leaflet|react-leaflet
0
48
1
73,026,224
73,026,224
0
true
2022-07-15T16:47:33.863Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: React-Leaflet pinch zoom moves markers out of sync with map<p>I'm using leaflet on a React js application (with typescript).</p> <p>The map works well on des...
73,027,958
SVG exported from Inkscape are rendered with different font<p>I have opened a pdf with Inkscape and exported it in Plain SVG. However, when I open it in any browser the text is rendered with a different font.</p>
<p>This happens because the <code>font-family</code> property in the SVG file might be set to a font that is not installed on the system. In my case it was <code>DejaVuSans</code>.</p> <p>You should open the SVG file in a text editor and replace all <code>font-family:DejaVuSans</code> with for example <code>font-family...
SVG exported from Inkscape are rendered with different font
svg|inkscape
0
48
1
73,027,959
73,027,959
0
true
2022-07-18T20:00:57.407Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: SVG exported from Inkscape are rendered with different font<p>I have opened a pdf with Inkscape and exported it in Plain SVG. However, when I open it in any ...
73,020,803
Url with trailing slash is redirected back to the host url<p>i have sales channel with the domain &quot;http://tld.de/staging&quot; and only this domain, the only other sales channel is the default headless sales channel.</p> <p>I created a custom route like that:</p> <pre><code>@Route(&quot;/path&quot;, name=&quot;fro...
<p>The redirect of the url with the trailing slash to the one without is the default behavior of Symfony. If that redirect doesn't respect your base path, then it's probably an issue with your configuration.</p> <p>However if you absolutely must serve both URLs without redirecting, then you could use wildcards to do so...
Url with trailing slash is redirected back to the host url
shopware6
1
48
1
73,028,956
73,028,956
0
true
2022-07-18T10:24:43.517Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Url with trailing slash is redirected back to the host url<p>i have sales channel with the domain &quot;http://tld.de/staging&quot; and only this domain, the...
73,030,021
How to hide dropdown icon in react semantic ul<p>I am going to use one of the dropdown menu options from react semantic ui, and I want to get rid of the dropdown icon.</p> <pre><code>import React from 'react' import { Dropdown, Menu } from 'semantic-ui-react' const DropdownExamplePointing = () =&gt; ( &lt;Menu&gt; ...
<p>You can do it by passing <code>icon</code> prop to Dropdown. <a href="https://codesandbox.io/s/semantic-ui-react-forked-4d46lz?file=/index.js" rel="nofollow noreferrer">codesandbox</a></p> <pre><code>&lt;Dropdown icon={null} text=&quot;Shopping&quot; pointing className=&quot;link item&quot;&gt; </code></pre>
How to hide dropdown icon in react semantic ul
reactjs|frontend|semantic-ui|semantic-ui-react
0
48
1
73,030,086
73,030,086
0
true
2022-07-19T00:54:58.040Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to hide dropdown icon in react semantic ul<p>I am going to use one of the dropdown menu options from react semantic ui, and I want to get rid of the drop...
73,025,809
How to get xyz values at mouse position without showing the ResultTable popup in lightning chart js<p>When moving the mouse over a heatmap in a ChartXY, you can get the xyz values of the mouse position by setting up the AutoCursor and displaying the ResultTable. But how can you get those values as an event for instance...
<p>You can solve the nearest heatmap data point relative to a location on screen using <a href="https://www.arction.com/lightningchart-js-api-documentation/v3.4.0/classes/heatmapgridseriesintensityvalues.html#solvenearestfromscreen" rel="nofollow noreferrer">series.solveNearestFromScreen</a> method.</p> <p>Please refer...
How to get xyz values at mouse position without showing the ResultTable popup in lightning chart js
javascript|data-visualization|heatmap|lightningchart
1
48
1
73,031,367
73,031,367
0
true
2022-07-18T16:43:56.167Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to get xyz values at mouse position without showing the ResultTable popup in lightning chart js<p>When moving the mouse over a heatmap in a ChartXY, you ...
73,017,915
How to remove/add entities in a custom entity ruler in spaCy 3.x<p>I have a custom <strong>entity ruler</strong> added to the spacy <strong>&quot;en_core_web_sm&quot;</strong> model. I want to add or remove entities in it when needed. This question has already been answered <a href="https://stackoverflow.com/a/68554459...
<p>You can add items to the entity ruler as usual.</p> <pre><code>ruler = nlp.get_pipe(&quot;entity_ruler&quot;) patterns = ... whatever your patterns are ... ruler.add_patterns(patterns) </code></pre> <p>See the <a href="https://spacy.io/usage/rule-based-matching#entityruler" rel="nofollow noreferrer">Entity Ruler doc...
How to remove/add entities in a custom entity ruler in spaCy 3.x
python-3.x|spacy-3
1
48
1
73,031,393
73,031,393
0
true
2022-07-18T06:05:18.150Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to remove/add entities in a custom entity ruler in spaCy 3.x<p>I have a custom <strong>entity ruler</strong> added to the spacy <strong>&quot;en_core_web...
73,019,658
Hi,the submit in this project is not working,how to fix it?<p>When I click submit in the add tasks page, I get no response. The submit button is supposed to add tasks to the list in the tasks page. It does not show any errors and I'm not sure if its code is even running.</p> <p>views.py:</p> <hr /> <pre><code>from djan...
<p>Your form element is closed out prematurely, so clicking the input probably doesn't do anything at all. If it somehow does, because you still have a closing <code>&lt;/form&gt;</code> tag then it doesn't know where to send the <code>POST</code> to.</p> <pre class="lang-html prettyprint-override"><code>&lt;form actio...
Hi,the submit in this project is not working,how to fix it?
python|django|django-views|django-templates
0
48
1
73,033,859
73,033,859
0
true
2022-07-18T08:53:35.153Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Hi,the submit in this project is not working,how to fix it?<p>When I click submit in the add tasks page, I get no response. The submit button is supposed to ...
73,028,847
How to set an env secret in Github action?<p>I want to access env variables in my .env. But of course, we can't commit the .env file.</p> <p>So I've added an action secret to my Github called MONGODB_PASSWORD. But when I tried to access that secret, it's not working as expected.</p> <p>Any thought on how I can do this?...
<p>Try setting <code>env</code> on job level instead of step level:</p> <pre><code>name: Node.js CI on: push: branches: ['master'] pull_request: branches: ['master'] jobs: build: runs-on: ubuntu-latest env: MONGODB_PASSWORD: ${{ secrets.MONGODB_PASSWORD }} // Setting the secret here s...
How to set an env secret in Github action?
yaml|github-actions|cicd
1
48
1
73,065,782
73,065,782
0
true
2022-07-18T21:29:44.787Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to set an env secret in Github action?<p>I want to access env variables in my .env. But of course, we can't commit the .env file.</p> <p>So I've added an...
73,022,469
Python Binning using triangular bins<p>I'm trying to find a simple python module/package that has implemented 2D triangular bins so that it can be use in a similar fashion to <code>scipy</code> <code>binned_statistic_dd</code>. Is anyone aware of such a tool? I've searched but not found anything: the closest I've found...
<pre class="lang-py prettyprint-override"><code>import matplotlib.pyplot as plt import matplotlib.tri as tri import numpy as np def plot_triangular_bin_freq(x,y,Vx,Vy): X, Y = np.meshgrid(x, y) Ny, Nx = X.shape iy,ix = np.indices((Ny-1, Nx-1)) # max vertice is supposed to be # max(iy)*Nx + max...
Python Binning using triangular bins
python|numpy|scipy|binning|triangular
0
48
1
73,069,723
73,069,723
0
true
2022-07-18T12:41:55.590Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Python Binning using triangular bins<p>I'm trying to find a simple python module/package that has implemented 2D triangular bins so that it can be use in a s...
72,893,953
Angular Ionic icon binding does not compile<p>I have a custom version of <code>&lt;ion-select&gt;</code> under which I use the standard <code>&lt;ion-select-option&gt;</code>.</p> <pre><code>&lt;custom-select&gt; &lt;ion-select-option&gt;&lt;/ion-select-option&gt; &lt;/custom-select&gt; </code></pre> <p>When I bind...
<p>I found a solution, using <code>attr.icon</code> works:</p> <pre><code>&lt;ion-select-option value=&quot;test2&quot; attr.icon=&quot;{{ 1===1 ? 'information-circle' : null }}&quot; &gt; Test2 &lt;/ion-select-option&gt; </code></pre> <p>I still don't know why it works although ion-select-option does not have ic...
Angular Ionic icon binding does not compile
angular|ionic-framework
2
48
2
73,203,031
73,203,031
0
true
2022-07-07T07:37:26.890Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Angular Ionic icon binding does not compile<p>I have a custom version of <code>&lt;ion-select&gt;</code> under which I use the standard <code>&lt;ion-select-...
72,979,145
Why is the my while-loop looping indefinitely when appending to the numpy array?<p>Ask the user to input a sequence of numbers. Then calculate the mean and print the result. Here is one solution.</p> <pre><code> user_input = input('Please enter a number type exit to stop:&gt; ') numbers = [] while user_input.lower() !=...
<p>Before diving into why numpy arrays don't work like python list, consider <strong>why you need numpy array for the problem</strong> and <strong>why wouldn't a python list work?</strong></p> <p>After answering the above to yourself, lets spend some time to do a deep dive and hope this answer helps others.</p> <hr /> ...
Why is the my while-loop looping indefinitely when appending to the numpy array?
python|numpy|while-loop
-2
48
1
72,979,218
72,979,218
0
true
2022-07-14T10:37:13.650Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why is the my while-loop looping indefinitely when appending to the numpy array?<p>Ask the user to input a sequence of numbers. Then calculate the mean and p...
73,018,265
Delete datetime from SQL database based on hour<p>I'm a python dev, I'm handling an SQL database through sqlite3 and I need to perform a certain SQL query to delete data. I have tables which contain datetime objects as keys. I want to keep only one row per hour (the last record for that specific time) and delete the re...
<p>First change the format of your dates from <code>yyyyMMdd ...</code> to <code>yyyy-MM-dd ...</code>, because this is the only valid text date format for SQLite.<br/></p> <p>Then use the function strftime() in your query to get the hour of each value in the column <code>time</code>:</p> <pre><code>DELETE FROM TICKER_...
Delete datetime from SQL database based on hour
python|sql|database|sqlite|sql-delete
-1
48
1
73,018,471
73,018,471
0
true
2022-07-18T06:48:18.450Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Delete datetime from SQL database based on hour<p>I'm a python dev, I'm handling an SQL database through sqlite3 and I need to perform a certain SQL query to...
72,827,966
Merge 2 JSON(Object Array) Data Restructuring<p>Can anyone help us, we have been on this for ages. Basically, we want to merge 2 JSON responses dynamically by using <strong>JSON Data 2( prodsub_id)</strong> data with <strong>JSON Data 1(id)</strong>. Please see below sample JSON data.</p> <h2><strong>JSON Data 1</stron...
<p>To achieve the <strong>JSON FINAL OUTPUT</strong>,</p> <p>I did it like so, using array.map &amp; array filter. Please see below.</p> <pre><code>var n_title,n_content; var tempdata=[]; json1.map((item,index)=&gt;{ n_title=json2.filter((obj) =&gt; obj.prodsub_id==item.id).map(l =&gt;l.narra_title) n_content=...
Merge 2 JSON(Object Array) Data Restructuring
javascript|node.js|arrays|json|object
-2
48
2
72,920,595
72,920,595
0
true
2022-07-01T10:34:00.490Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Merge 2 JSON(Object Array) Data Restructuring<p>Can anyone help us, we have been on this for ages. Basically, we want to merge 2 JSON responses dynamically b...
72,947,611
Splitting Account Name from email address<p>I've search thru the net but I saw splitting email addresses which doesn't satisfy my needs. <br> Basically imaplib returns the sender's email as <br><br> <code>Account Name &lt;emailaddress@gmail.com&gt;</code><br><br> I need to extract the email address only because that's ...
<p>Test this expression if it works:</p> <p><code>(?!&lt;)[\w_@.]+(?=&gt;)</code></p> <p>Here is my test:</p> <p><a href="https://i.stack.imgur.com/b5UOm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/b5UOm.png" alt="enter image description here" /></a></p> <p>I am using RegExr to test this regex: <...
Splitting Account Name from email address
python|regex|imaplib
-2
48
2
72,947,682
72,947,682
0
true
2022-07-12T05:54:39.887Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Splitting Account Name from email address<p>I've search thru the net but I saw splitting email addresses which doesn't satisfy my needs. <br> Basically imapl...
72,812,854
excel averaging every nth row and column blocks<p>I have a big data set which has more than 100k rows and 191 columns. i need to calculate every tenth row for all the columns. my data looks something like this:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th></th> <th></th> <th></th> <th></...
<p>as an aside 100k rows, 191 columns. a very large data set but probably still alittle surprised at 1.5gb.</p> <p>depends where you want the averages but lets assume you want them in another cell B2 of another sheet and just an average in each row and that your current sheet is called Data:</p> <pre><code>=AVERAGE(OF...
excel averaging every nth row and column blocks
excel|excel-formula
0
48
2
72,818,399
72,818,399
0
true
2022-06-30T08:48:39.143Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: excel averaging every nth row and column blocks<p>I have a big data set which has more than 100k rows and 191 columns. i need to calculate every tenth row fo...
72,989,463
How to effective get the max data in sub group and get the min data in among big groups?<p>Firstly, I hope to get the max date in each sub-groups.</p> <p>Group A = action 1 &amp; 2</p> <p>Group B = action 3 &amp; 4</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>actionName</th> <th>action</...
<p>First of all, you can simplify your query by putting the action groups into the partition clause. Use a case expression to get one group for actions 1 and 2 and another for actions 3 and 4.</p> <p>Then after getting the maximum dates per actionname and action group you want to get the minimum dates of these per acti...
How to effective get the max data in sub group and get the min data in among big groups?
sql|sql-server|common-table-expression
0
48
1
72,990,592
72,990,592
0
true
2022-07-15T05:36:43.373Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to effective get the max data in sub group and get the min data in among big groups?<p>Firstly, I hope to get the max date in each sub-groups.</p> <p>Gro...
73,007,426
How do I search for passwords with minimum length of 8 allowing letters, numbers and symbols: @#$% with regex?<p>What is wrong with the below used regular expression? Why does it not match the password?</p> <pre><code>import re pattern = re.compile ('^\w@#$%{8,}') password = '12345abcd@#$%' x = pattern.search(passw...
<p>You didn't escape the <code>$</code> which has a special meaning in a regular expression and didn't put the allowed characters in square brackets to allow any of them.</p> <p>This: <code>^[\w@#\$%]{8,}</code> is the modified version of the regex which matches the password.</p> <p>Escaping the $ character isn't reall...
How do I search for passwords with minimum length of 8 allowing letters, numbers and symbols: @#$% with regex?
python|python-3.x|regex
-2
48
2
73,007,536
73,007,536
0
true
2022-07-16T20:22:50.697Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How do I search for passwords with minimum length of 8 allowing letters, numbers and symbols: @#$% with regex?<p>What is wrong with the below used regular ex...
72,922,647
Why cannot a generic TypeScript function with an argument of type from a type union infer the same type as the return type?<pre class="lang-js prettyprint-override"><code>type AMessage = { type: 'a'; optionalNumber?: number; }; type BMessage = { type: 'b'; optionalString?: string; }; type Message = AMessage | BMessage;...
<p>I have managed to come up with a solution using mapped types:</p> <pre class="lang-js prettyprint-override"><code>type AMessage = { type: 'a'; optionalNumber?: number; }; type BMessage = { type: 'b'; optionalString?: string; }; type Messages = { a: AMessage b: BMessage }; type Message = Messages[keyof Messages]...
Why cannot a generic TypeScript function with an argument of type from a type union infer the same type as the return type?
typescript|type-inference
1
48
3
72,929,648
72,929,648
0
true
2022-07-09T15:29:41.600Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why cannot a generic TypeScript function with an argument of type from a type union infer the same type as the return type?<pre class="lang-js prettyprint-ov...
72,854,149
How do I obtain a HTML Label's runtime value for use in TypeScript (in Angular)?<p>I have the following label with an <em>i18n</em> (internationalization) element:</p> <pre><code>&lt;label i18n=&quot;@@replacingValue&quot;&gt;Default value&lt;/label&gt; </code></pre> <p>At runtime, the &quot;Default value&quot; text of...
<p>You can use <a href="https://angular.io/api/core/ViewChild" rel="nofollow noreferrer">ViewChild</a> to manipulate dom elements:</p> <p>html file:</p> <pre><code>&lt;label #myLabel i18n=&quot;@@replacingValue&quot;&gt;Default value&lt;/label&gt; </code></pre> <p>ts file:</p> <pre><code>@ViewChild('myLabel') el: Eleme...
How do I obtain a HTML Label's runtime value for use in TypeScript (in Angular)?
html|angular|typescript|input|internationalization
0
48
1
72,854,347
72,854,347
0
true
2022-07-04T08:58:25.283Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How do I obtain a HTML Label's runtime value for use in TypeScript (in Angular)?<p>I have the following label with an <em>i18n</em> (internationalization) el...
72,884,938
Error: Sender xxx.testnet does not have enough balance 9.99991607015 for operation costing 100.0000861846776875<p>I am currently doing a course on NEAR on a site called <a href="https://dacade.org/communities/near/courses/near-101/learning-modules/b52ba9f1-caac-4339-96ed-fad3b1ab6bbd#:%7E:text=4.3%20Create%20a%20Subacc...
<p>There is the --initialBalance flag The 100 come from half of what was previously given automatically to new testnet accounts, recently that changed to 10 (previously 200) the cli is not yet updated to reflect that change.</p> <p><code>$ near create-account contract.xxx.testnet --masterAccount xxx.testnet --initialBa...
Error: Sender xxx.testnet does not have enough balance 9.99991607015 for operation costing 100.0000861846776875
near
1
48
1
72,885,224
72,885,224
0
true
2022-07-06T14:00:55.150Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Error: Sender xxx.testnet does not have enough balance 9.99991607015 for operation costing 100.0000861846776875<p>I am currently doing a course on NEAR on a ...
72,838,738
useState inside of useEffect not reflecting a change immediately<p>I did some research and I've learned that useState is asynchronous, although, I'm still not sure how to fix my particular issue. I need to fetch the data from an api, and the state only updates the second render, plus I need to get only 1 file, so just ...
<p>One reason you could get this error is if you have initialised the <code>file</code> state without providing a value, meaning it has the value of <code>undefined</code> (but we would need to see how you're declaring the state to confirm that). As <code>undefined</code> is not a Prototype that has a native <code>map<...
useState inside of useEffect not reflecting a change immediately
javascript|reactjs|react-hooks
0
48
1
72,838,765
72,838,765
0
true
2022-07-02T11:37:09.233Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: useState inside of useEffect not reflecting a change immediately<p>I did some research and I've learned that useState is asynchronous, although, I'm still no...
73,010,026
How to clear chart_bar selectedDatum in Flutter<p>I have a barchart ,when I click line it will navigate to new page. I use model.selectedDatum.clear(); but when back to chart page , it is still select,it not working.</p> <p>How can I set it unselect , when I back to chart page, thank you.</p> <pre><code>Widget build(Bu...
<h3>Override <a href="https://pub.dev/documentation/charts_flutter/latest/flutter/BaseChart/userManagedState.html" rel="nofollow noreferrer">userManagedState</a> to handle <a href="https://pub.dev/documentation/charts_flutter/latest/flutter/UserManagedState/selectionModels.html" rel="nofollow noreferrer">selectionModel...
How to clear chart_bar selectedDatum in Flutter
flutter
0
48
1
73,027,398
73,027,398
0
true
2022-07-17T07:44:41.603Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to clear chart_bar selectedDatum in Flutter<p>I have a barchart ,when I click line it will navigate to new page. I use model.selectedDatum.clear(); but w...
72,856,413
Change plot background color in jupyter notebook<p>How can I change the grey color in the background to white color? mydata.plot() <a href="https://i.stack.imgur.com/4ZzLj.png" rel="nofollow noreferrer">plot</a></p>
<pre class="lang-py prettyprint-override"><code>import matplotlib.pyplot as plt import numpy as np x = np.arange(0, 10, .1) y = np.sin(x) plt.figure(facecolor='yellow') plt.plot(x, y) plt.xlabel(&quot;X&quot;) ax = plt.axes() ax.set_facecolor(&quot;violet&quot;) plt.ylabel('sin(x)') plt.show() </code></pre> <p>it make ...
Change plot background color in jupyter notebook
python|plot|jupyter-notebook
-1
48
1
72,856,748
72,856,748
0
true
2022-07-04T12:03:01.783Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Change plot background color in jupyter notebook<p>How can I change the grey color in the background to white color? mydata.plot() <a href="https://i.stack.i...
72,908,080
Run four tasks with a preset schedule in C#<p>I have an exercise in asynchronous programming like this: There are 4 Tasks: <code>Task1</code>, <code>Task2</code>, <code>Task3</code>, <code>Task4</code>. <code>Task1</code> and <code>Task2</code> run in parallel. <code>Task3</code> is only run when either <code>Task1</co...
<p>Would do it like this then.</p> <pre><code> static void Main(string[] args) { var task1 = runTask1(); var task2 = runTask2(); Task.WhenAny(task1, task2).ContinueWith(task =&gt; { var task3 = runTask3(); Task.WaitAll(task1, task2, task3); v...
Run four tasks with a preset schedule in C#
c#|async-await|task
1
48
1
72,909,053
72,909,053
0
true
2022-07-08T07:27:35.960Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Run four tasks with a preset schedule in C#<p>I have an exercise in asynchronous programming like this: There are 4 Tasks: <code>Task1</code>, <code>Task2</c...
72,888,587
I am unable to pass my button's event into my function's parameter<p>I am trying to make a simple rock paper scissors game and so far I've written this much code but I'm not sure how to get the value of my buttons (rock, paper, scissors) to pass through my function parameters.</p> <p>I have identified the values in jav...
<p>Typos like innerhtml instead of innerHTML</p> <p>Issues like</p> <ul> <li>getElementsByClassName returns a nodelist</li> <li>missing quotes in the array</li> <li>Missing showing the score</li> </ul> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-c...
I am unable to pass my button's event into my function's parameter
javascript|addeventlistener
0
48
1
72,888,712
72,888,712
0
true
2022-07-06T18:53:29.200Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: I am unable to pass my button's event into my function's parameter<p>I am trying to make a simple rock paper scissors game and so far I've written this much ...
72,944,891
SQL get the most frequent item for each object<pre><code>Table: Food +------+------+ |Person| Food | +------+------+ | A | Apple| | A | Bread| | A | Bread| | A | Bread| | B |Orange| | B |Orange| | B |Orange| | C |Orange| | C |Orange| +------+------+ </code></pre> <p>How do you find the the mo...
<p>Here is a working solution:</p> <pre><code>SELECT PERSON, FOOD, MAX(c) FROM (SELECT PERSON, FOOD, COUNT(*) AS c FROM FOOD GROUP BY PERSON, FOOD ORDER BY c DESC) AS v GROUP BY PERSON; </code></pre> <p>Here is a link to a SqlFiddle: <a href="http://sqlfiddle.com/#!9/726798/45" rel="nofollow noreferrer">http:...
SQL get the most frequent item for each object
mysql
0
48
2
72,945,474
72,945,474
0
true
2022-07-11T21:32:57.583Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: SQL get the most frequent item for each object<pre><code>Table: Food +------+------+ |Person| Food | +------+------+ | A | Apple| | A | Bread| | A |...
72,821,832
Print power of string/array<p>Given an integer array nums of unique elements, return all possible subsets (the power set). The belwo code is returning wrong answer for input [1,2].How to fix it?</p> <blockquote> <p>Expected Output is</p> <p>[[],[1],[2],[1,2]]</p> </blockquote> <p>I have written the code here which work...
<p>In short, you are creating <em>2 ^ n</em> Strings during the recursive call, where <em>n</em> is the length of <code>str</code>. While the code in leetcode is using a single List. Adding elements to the List will have influence after the method call, thus need to remove the element to &quot;restore&quot; the List.</...
Print power of string/array
algorithm|recursion|backtracking
0
48
1
72,822,984
72,822,984
0
true
2022-06-30T20:45:56.530Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Print power of string/array<p>Given an integer array nums of unique elements, return all possible subsets (the power set). The belwo code is returning wrong ...
73,021,748
iMPORTXML is returning #NA (imported content is empty) in some cells and #REF in some cells in Google sheets<p>Ok. so i'm tring to import a couple of data from different urls on the same google sheet using IMPORTXML function. it works on some cells and it returns #NA (imported content is empty) on some and #REF(Array r...
<h2>#REF!</h2> <p>... means that the result is an array (not only one value) and there is not enough space to display the result</p> <p>For instance, in G12, <code>=IMPORTXML(N12;&quot;//h1&quot;)</code> the formula gives back 4 values in G12:J12, you need free places on the right hand side of G12</p> <p>To get the fir...
iMPORTXML is returning #NA (imported content is empty) in some cells and #REF in some cells in Google sheets
google-apps-script|google-sheets|google-sheets-formula
0
48
1
73,021,973
73,021,973
0
true
2022-07-18T11:39:16.387Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: iMPORTXML is returning #NA (imported content is empty) in some cells and #REF in some cells in Google sheets<p>Ok. so i'm tring to import a couple of data fr...
72,858,836
Selenium - Set http proxy to the webdriver<p>I've been trying to use a <a href="https://www.hidemyass.com/de-de/proxy" rel="nofollow noreferrer">http proxy</a> with Selenium. What I have so far is:</p> <pre><code>PROXY = &quot;46.4.29.2:80&quot; webdriver.DesiredCapabilities.CHROME['proxy'] = { &quot;httpProxy&quot...
<p>Personally, I use a library called selenium-wire <a href="https://pypi.org/project/selenium-wire/" rel="nofollow noreferrer">https://pypi.org/project/selenium-wire/</a> which can be used for both authenticated and non-authenticated proxies. Here is the documentation reference for proxy use <a href="https://github.co...
Selenium - Set http proxy to the webdriver
python|selenium|proxy
0
48
1
72,859,728
72,859,728
0
true
2022-07-04T15:10:58.140Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Selenium - Set http proxy to the webdriver<p>I've been trying to use a <a href="https://www.hidemyass.com/de-de/proxy" rel="nofollow noreferrer">http proxy</...
72,961,776
How to store data as an object format in javascript?<p>I am using PHP framework to develop web application , i am very new to the javascript part i was stuck at one point to store data inside an array as a json object , can you please help me where did i mistaken ..?</p> <pre><code>&lt;div class=&quot;form-group&quot;&...
<pre><code>pumpsdata.push({'id':pumps[j].pump_id,'name':pumps[j].pump_name}); </code></pre>
How to store data as an object format in javascript?
javascript|arrays|json
0
48
1
72,961,841
72,961,841
0
true
2022-07-13T06:23:44.367Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to store data as an object format in javascript?<p>I am using PHP framework to develop web application , i am very new to the javascript part i was stuck...
72,944,852
Getting file path of current track from Python-VLC's MediaListPlayer<p>I'm using <code>MediaListPlayer</code> from the <code>python-vlc</code> library. I use the following code to create a list of all the songs in a directory and begin them playing as a playlist, so that once one song ends another begins.</p> <pre><cod...
<p>I've just stumbled across an answer in the form of a few functions buried in the documentation. <code>index_of_item()</code> is a function belonging to the <code>MediaList</code> class, and takes a <code>Media</code> instance as an argument. <code>MediaList</code> returns the index of the provided <code>Media</code>...
Getting file path of current track from Python-VLC's MediaListPlayer
python|python-vlc
0
48
1
72,945,410
72,945,410
0
true
2022-07-11T21:28:48.130Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Getting file path of current track from Python-VLC's MediaListPlayer<p>I'm using <code>MediaListPlayer</code> from the <code>python-vlc</code> library. I use...
72,888,486
Combining variables to form one variable name?<p>Im making a D&amp;D related program because i like doing character sheets by myself and im making it simpler but i've run into a problem</p> <pre><code>def calculateMod(x): for n in range (0): base= x -10 base2=base/2 nMod = math.floor(base2) ...
<p>Use a dictionary to track all the characters mods, such as:</p> <pre><code>character.statmods = { &quot;str&quot;: 3, &quot;dex&quot;: 1, &quot;con&quot;: 2, etc } </code></pre> <p>if you really want them to each be a separate attribute on the character object, you can use setattr(object, attribute, ...
Combining variables to form one variable name?
python
0
48
1
72,890,060
72,890,060
0
true
2022-07-06T18:43:00.783Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Combining variables to form one variable name?<p>Im making a D&amp;D related program because i like doing character sheets by myself and im making it simpler...
72,853,055
Multiple StreamBuilder that using same stream work incorrectly?<p>Let say I have code like this</p> <pre><code>class ScreenA extends StatelessWidget { const ScreenA(); @override Widget build(BuildContext context) { final Stream&lt;List&lt;Order&gt;&gt; ordersStream = Order.stream; return Column( ch...
<p>Try adding the stream key inside the builders.</p> <pre><code>StreamBuilder( stream: ordersStream, //add stream here builder: (BuildContext context, snapshot) { return Container(); } ) </code></pre> <p><strong>Edit</strong></p> <p>You can pass the current data alon...
Multiple StreamBuilder that using same stream work incorrectly?
flutter|dart
1
48
2
72,853,579
72,853,579
0
true
2022-07-04T07:21:54.933Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Multiple StreamBuilder that using same stream work incorrectly?<p>Let say I have code like this</p> <pre><code>class ScreenA extends StatelessWidget { cons...
72,876,295
Pass List to Function Requiring std::initializer_list<std::initializer_list< type > >?<p>I'm using OpenNN to write a proof of concept right now, and I'm having an issue with declaring inputs for a Tensor.</p> <p>From the OpenNN <a href="https://www.opennn.net/documentation/classification_example.html" rel="nofollow nor...
<p>EDIT:</p> <p>Found a relevant post <a href="https://stackoverflow.com/questions/67585636/how-to-create-initialiser-list-object-in-c?rq=1">here</a></p> <p>This solution is more for anyone else that comes around and my question can't be answered;</p> <p>I solved this problem as follows:</p> <pre><code>namespace Eigen ...
Pass List to Function Requiring std::initializer_list<std::initializer_list< type > >?
c++|list|eigen|eigen3|opennn
0
48
1
72,876,381
72,876,381
0
true
2022-07-05T22:47:45.747Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Pass List to Function Requiring std::initializer_list<std::initializer_list< type > >?<p>I'm using OpenNN to write a proof of concept right now, and I'm havi...
72,979,017
How can i secure password or sensitive information when sending across the internet in .net c#?<p>I am validating a connection to Salesforce and other external apps. I created a UI in AngularJS and MVC and whatever details the user types in the UI , I send that to my MVC controller (Post) and then send the information ...
<p>any method of securing the data needs to be 2 sided you can use encryption to obscure the data but the receiver has to be able to decrypt it. so if you have access to both ends of the system you can do that.</p> <p>see <a href="https://docs.microsoft.com/en-us/dotnet/api/system.security.cryptography.cryptostream?vie...
How can i secure password or sensitive information when sending across the internet in .net c#?
c#|.net|asp.net-mvc
-1
48
1
72,980,585
72,980,585
0
true
2022-07-14T10:25:21.107Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can i secure password or sensitive information when sending across the internet in .net c#?<p>I am validating a connection to Salesforce and other extern...
72,927,790
Xamarin.Forms - How to select item from its containing ListView with ObservableCollection<p>I have an <code>ListView</code> bound to an <code>ObservableCollection&lt;ItemID&gt;</code> as shown. When I click a <strong>Delete</strong> button it calls <code>DeleteButton_Clicked</code> correctly but then cannot access the ...
<p>Here's what could be the problem: In your <code>DeleteButton_Clicked</code> you rely on the <code>SelectedItem</code> property of <code>MyList</code>. However, clicking the <strong>Delete</strong> button does <em>not</em> automatically select that list item. The way to determine the correct item to delete is to lo...
Xamarin.Forms - How to select item from its containing ListView with ObservableCollection
c#|xamarin.forms|observablecollection|xamarin-binding
1
48
1
72,929,676
72,929,676
0
true
2022-07-10T10:31:26.527Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Xamarin.Forms - How to select item from its containing ListView with ObservableCollection<p>I have an <code>ListView</code> bound to an <code>ObservableColle...
73,026,086
Create New Column and changes number into barcode<p>I am working on something where I need Excel to create a new column, and in that new column, take information from the previous column and change the number so there are asterisks around it, and also change the font.</p> <p>I have a barcode 39 font that works when the...
<p>Like this:</p> <pre class="lang-vb prettyprint-override"><code>Private Sub CommandButton1_Click() Dim ws As Worksheet, a As Long Set ws = ThisWorkbook.Sheets(&quot;Material Data&quot;) 'use a worksheet variable ws.Range(&quot;D1&quot;).EntireColumn.Insert ws.Range(&quot;D1&quot;).Value = &q...
Create New Column and changes number into barcode
excel|vba|barcode|barcode-scanner
0
48
1
73,026,470
73,026,470
0
true
2022-07-18T17:07:02.850Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Create New Column and changes number into barcode<p>I am working on something where I need Excel to create a new column, and in that new column, take informa...
72,853,402
STRING to DATETIME Conversion in BIGQUERY<p>How to convert '29-JUN-2022 05:56:31:653000000 AM' the string value into BIGQUERY DATETIME/TIMESTAMP.</p> <p>I was to PARSE it when millisecond part had . instead of : .</p>
<blockquote> <p>I was to PARSE it when millisecond part had . instead of : .</p> </blockquote> <p>So, I think you can parse it after converting <strong>last colon(:)</strong> to <strong>period(.)</strong>. Consider below regular expression to replace it.</p> <pre class="lang-sql prettyprint-override"><code>SELECT PARSE...
STRING to DATETIME Conversion in BIGQUERY
google-cloud-platform|google-bigquery|date-conversion
0
48
2
72,854,687
72,854,687
0
true
2022-07-04T07:54:49.193Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: STRING to DATETIME Conversion in BIGQUERY<p>How to convert '29-JUN-2022 05:56:31:653000000 AM' the string value into BIGQUERY DATETIME/TIMESTAMP.</p> <p>I wa...
73,012,891
self.__class__ in parent class' method is missing arguments<p>A package I am using contains the class A. I want my new class B to inherit from this class. Minimal example:</p> <pre><code>class A(): def __init__(self,name): self.name = name def my_method(self): return self.__class__(name = self.n...
<p><code>A.my_method</code> assumes that <code>A</code> (or any subclass thereof) can be instantiated with a single argument. You broke that assumption by adding a required argument <code>value</code> to <code>B.__init__</code>. You'll need to make <code>value</code> the <em>second</em> parameter, and make it optional....
self.__class__ in parent class' method is missing arguments
python|inheritance|superclass|class-method|python-class
-2
48
1
73,012,935
73,012,935
0
true
2022-07-17T15:07:02.177Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: self.__class__ in parent class' method is missing arguments<p>A package I am using contains the class A. I want my new class B to inherit from this class. Mi...
72,790,088
Vuejs- How to show name values in a <v-select> but send the ID in the axios POST request<p><strong>EDIT: I fixed it by adding the return-object prop to v-select</strong></p> <p>When I add a student to a database from a vuetify form, I want to be able to assign them a course. But the course has to be in a list of availa...
<p>Need more information on how each <code>course</code> object looks, and your <code>data</code>, but essentially, set the <code>item-value</code> prop to the item's object ID, and under the <code>addItem</code> function,</p> <pre><code>async addItem(){ const response = await axios.post(&quot;http://localhost:4000/a...
Vuejs- How to show name values in a <v-select> but send the ID in the axios POST request
node.js|mongodb|vue.js|axios|vuetify.js
0
48
2
72,791,028
72,791,028
0
true
2022-06-28T16:26:05.523Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Vuejs- How to show name values in a <v-select> but send the ID in the axios POST request<p><strong>EDIT: I fixed it by adding the return-object prop to v-sel...
73,011,516
Two scaffolds into one page because of navigation in flutter<p>I have an issue with the navigation process in my Flutter app. First, I have a home page that has a button. When I press search, I go to the search page, obviously, and the results will appear on the home page again. If no results were found, a dialog would...
<p>The problem is you are wrapping everything inside a <code>MaterialApp</code>.</p> <p><code>MaterialApp</code> defines a Navigator property, which means it should be at the top-level of your application and it should be unique. If you have two different <code>MaterialApp</code> they will use their own Navigator, henc...
Two scaffolds into one page because of navigation in flutter
flutter|dart
0
48
1
73,011,942
73,011,942
0
true
2022-07-17T11:51:24.637Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Two scaffolds into one page because of navigation in flutter<p>I have an issue with the navigation process in my Flutter app. First, I have a home page that ...
72,994,615
How could I determine this checksum pattern?<p>Let's assume that I have 512-byte packets plus a 16-bit CRC at the end. I would like to determine what the CRC parameters are.</p> <p>It's a Fujitsu chip, where I'm writing the the flash with a programmer, the programmer calculates the CRC for me, and I read out the CRC wi...
<p>The fact that every single CRC ends in <code>0</code> or <code>8</code> strongly suggests that it is not a 16-bit CRC, but rather a <em>13</em>-bit CRC. Indeed, all of the sequences check against a 13-bit CRC with polynomial <code>0x1021</code> not reflected, initial value zero, and final exclusive-or zero.</p> <p>W...
How could I determine this checksum pattern?
math|checksum|crc
0
48
1
72,999,133
72,999,133
0
true
2022-07-15T13:17:05.430Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How could I determine this checksum pattern?<p>Let's assume that I have 512-byte packets plus a 16-bit CRC at the end. I would like to determine what the CRC...
72,947,992
How should I handle multiple requests for a system status page?<p>I created an ASP.NET application because I'm more familiar with it, and the only purpose is to show the status of multiple websites (22) from the same entity.</p> <p>Because I didn't know how to create a single void that creates the HttpClient, created a...
<p>Reuse the HttpClient:</p> <pre><code>static HttpClient client = CreateClient(); private static HttpClient CreateClient() { var header = new AuthenticationHeaderValue(&quot;Basic&quot;, ConfigurationManager.AppSettings[&quot;Authorization&quot;]); var proxy = ConfigurationManager.AppSettings[&quot;Proxy&quot...
How should I handle multiple requests for a system status page?
c#|asp.net-mvc
0
48
3
72,948,164
72,948,164
0
true
2022-07-12T06:38:24.473Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How should I handle multiple requests for a system status page?<p>I created an ASP.NET application because I'm more familiar with it, and the only purpose is...
72,823,321
Why when using super().__init__ I can only initialize first parameter in parent class<p>Don't understand why this works:</p> <pre><code>class Fish: def __init__(self, first_name, last_name=&quot;Fish&quot;): self.first_name = first_name self.last_name = last_name class Trout(Fish): def __init__...
<p>If you want to set the attributes in the constructor, you need to actually pass them as arguments; your child class needs to accept them as arguments so that it can pass them to the parent class.</p> <pre><code>class Fish: def __init__(self, first_name, last_name): self.first_name = first_name se...
Why when using super().__init__ I can only initialize first parameter in parent class
python|initialization|parent-child
0
48
3
72,823,430
72,823,430
0
true
2022-07-01T00:37:02.990Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why when using super().__init__ I can only initialize first parameter in parent class<p>Don't understand why this works:</p> <pre><code>class Fish: def _...
72,927,343
Php inner loop problem with xml and continue<p>Having this xml</p> <pre><code> $xml_text = &quot;&lt;file&gt; &lt;record&gt; &lt;name&gt;A&lt;/name&gt; &lt;total_parts&gt;2&lt;/total_parts&gt; &lt;value&gt;25&lt;/value&gt; &lt;part&gt;2&lt;/part&gt; &lt;/record&gt; &lt;record&gt; &lt;name&g...
<p>You can get all the results into a new array.</p> <pre><code>$xml = simplexml_load_string($xml_text); $records = []; foreach($xml-&gt;record as $record) { $name = (string)$record-&gt;name; if('T' === $name) { continue; } $records[$name][(int)$record-&gt;part - 1] = (int)$record-&gt;value; } ...
Php inner loop problem with xml and continue
php|xml|foreach|simplexml
0
48
2
72,927,421
72,927,421
0
true
2022-07-10T09:06:06.460Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Php inner loop problem with xml and continue<p>Having this xml</p> <pre><code> $xml_text = &quot;&lt;file&gt; &lt;record&gt; &lt;name&gt;A&lt;/name&...
72,951,477
Delete entire rows on the basis of criteria<p>In my working file I want to delete entire rows from the table by using the criteria. The criteria is deleting all the rows except the &quot;IMP&quot; category in the &quot;MODE&quot; column. so, I did this my creating individual criteria of different categories. For instan...
<p><a href="https://i.stack.imgur.com/w4STe.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/w4STe.png" alt="enter image description here" /></a></p> <p>Looping backwards:</p> <pre><code>Sub test() Application.ScreenUpdating = False Application.Calculation = xlCalculationManual Dim i As Long Dim My...
Delete entire rows on the basis of criteria
excel
0
48
3
72,951,631
72,951,631
0
true
2022-07-12T11:20:36.630Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Delete entire rows on the basis of criteria<p>In my working file I want to delete entire rows from the table by using the criteria. The criteria is deleting ...
72,948,769
Multi Condition Index Match Formula Retune Last Match with Array formula in Google Sheet<p>on K4 =ArrayFormula(INDEX($E$4:$F,MATCH(1,1/(H4=$B$4:$B)<em>(I4=$C$4:$C),3)</em>(I4=$D$4:$D),3)))</p> <p>This formula retune exact last row entry in match condition, but I want to use array formula for retune all rows entry.</p>...
<p>Here is how to retrieve the most recent match to the input &quot;item&quot; in the H column of the table B3:F.<br></p> <p>in Cell I4 past the formula <code>=IF(H4=&quot;&quot;,,INDEX(FILTER($C$4:$F,$B$4:$B=H4),COUNTA(INDEX(FILTER($C$4:$F,$B$4:$B=H4),,1)),))</code> and drag down all the way to the bottom.</p> <p>you ...
Multi Condition Index Match Formula Retune Last Match with Array formula in Google Sheet
google-sheets|google-sheets-formula
-1
48
1
72,954,814
72,954,814
0
true
2022-07-12T07:51:19.563Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Multi Condition Index Match Formula Retune Last Match with Array formula in Google Sheet<p>on K4 =ArrayFormula(INDEX($E$4:$F,MATCH(1,1/(H4=$B$4:$B)<em>(I4=$C...
72,936,054
Dumping data from json to csv<p>I have 100 json file, each json file contains following kind of dict format.</p> <p>I would like to create a csv file and dump only</p> <pre><code>{ &quot;label&quot;: &quot;image&quot;, &quot;confidence&quot;: 1.0 } </code></pre> <p>this data into csv file into prediction column alo...
<p>rowIf I understand ok what you want, you want to get only the first &quot;item&quot; on predictions list, from multiple files on some path. And then put all this as rows on a csv. So you can do something like:</p> <pre class="lang-py prettyprint-override"><code>import csv import json from os import listdir from os.p...
Dumping data from json to csv
python|json|python-3.x
-1
48
2
72,940,177
72,940,177
0
true
2022-07-11T09:05:20.170Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Dumping data from json to csv<p>I have 100 json file, each json file contains following kind of dict format.</p> <p>I would like to create a csv file and dum...
72,890,740
How to pass information from javascript to express to use it as a default value?<p>So basically im using express, mongodb for the database, and ejs. I'm creating a form which can be submited to add a new article for a blog. If the form is missing information, the website is supposed to redirect back to the page whilst ...
<p>One coding error I see is that you do this:</p> <pre class="lang-js prettyprint-override"><code>const article = new Article({ title: req.body.title, description: req.body.description, markdown: req.body.markdown }); </code></pre> <p>And, then later in the same function, you do this:</p> <pre class="lang-...
How to pass information from javascript to express to use it as a default value?
javascript|html|express|ejs|data-transfer
0
48
1
72,891,611
72,891,611
0
true
2022-07-06T23:10:29.287Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to pass information from javascript to express to use it as a default value?<p>So basically im using express, mongodb for the database, and ejs. I'm crea...
72,979,447
Postgres, groupBy and count for table and relations at the same time<p>I have a table called 'users' that has the following structure:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>id (PK)</th> <th>campaign_id</th> <th>createdAt</th> </tr> </thead> <tbody> <tr> <td>1</td> <td>123</td> <td...
<p>Note, <code>PostgreSQL</code> is not my forte, nor is <code>SQL</code>. But, I'm learning spending some time on your question. Have a go with <code>INNER JOIN</code> after two seperate <code>SELECT()</code> statements:</p> <pre><code>SELECT * FROM ( SELECT campaign_id, COUNT (t1.&quot;id(PK)&quot;) total_users...
Postgres, groupBy and count for table and relations at the same time
sql|postgresql
1
48
2
72,980,878
72,980,878
0
true
2022-07-14T11:02:51.850Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Postgres, groupBy and count for table and relations at the same time<p>I have a table called 'users' that has the following structure:</p> <div class="s-tabl...
72,949,551
SUM values with condition in a column with similar ID<p>My table as shown as below.</p> <pre><code>Sub_JS_Number Weight1 Weight2 Months 2215566-002B 4.95 1.317 June 2215566-002B 4.95 2.54 June 2215567-001A 7.44 2.451 June 2215567-001A 7.44 7.44 June 2216084-001A 7.23 3.897 J...
<p>You should be able to do it with a case-clause and a subquery like this:</p> <pre><code>Select Sub_JS_Number, weight1, CASE WHEN sum(weight2) &gt; weight1 THEN (select max(t.weight2) from myTable t where t.Sub_JS_Number = tbl.Sub_JS_Number and t.Months = tbl.Months) ELSE sum(weight2) END AS weight2, Mo...
SUM values with condition in a column with similar ID
sql|sql-server
0
48
2
72,950,067
72,950,067
0
true
2022-07-12T08:55:16.323Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: SUM values with condition in a column with similar ID<p>My table as shown as below.</p> <pre><code>Sub_JS_Number Weight1 Weight2 Months 2215566-002B 4....
73,008,284
Why does Javascript map() render my feature where forEach() didn't? Using React with NextJS<p>I had an issue where my feature wasn't rendering because I don't think React understood the state was changing. After changing the <code>forEach()</code> to <code>map()</code>, the feature rendered as expected.</p> <p>Feature...
<p>This is because, your loop has to return elements. Those elements will go into your tags and thus it will be rendered.</p> <p>Now, <code>map</code> returns an array of the same size with the modified elements. <code>forEach</code> does not return anything. It is just traversing the array. It does not give react the ...
Why does Javascript map() render my feature where forEach() didn't? Using React with NextJS
javascript|reactjs|next.js|use-state
-1
48
1
73,008,351
73,008,351
0
true
2022-07-16T23:25:34.340Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why does Javascript map() render my feature where forEach() didn't? Using React with NextJS<p>I had an issue where my feature wasn't rendering because I don'...
72,768,981
Android - How can I make my custom view fill the whole screen?<p>I have a custom view named FloorView. I want this Floor view to be occupying the whole screen, and I need this dynamically (maybe match_parent). I don't want to hard code the size of the view.</p> <p>I've tried doing this in FloorView.kt</p> <pre><code> ...
<p>You can do something like:</p> <pre class="lang-kotlin prettyprint-override"><code>class FloorView(context: Context, attrs: AttributeSet) : View(context, attrs) { private val displayMetrics by lazy { Resources.getSystem().displayMetrics } private val deviceWidth by lazy { (displayMetrics.widthPixels).toFloa...
Android - How can I make my custom view fill the whole screen?
android|kotlin
0
48
2
72,769,387
72,769,387
1
true
2022-06-27T08:17:54.980Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Android - How can I make my custom view fill the whole screen?<p>I have a custom view named FloorView. I want this Floor view to be occupying the whole scree...
72,773,527
Submit button not working with JS validation<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>const firstNameEl = document.querySelector('#firstName'); const lastNameEl = document.qu...
<p>The cause is the <code>e.preventDefault();</code>, which tells the browser to not execute the submit function.</p> <p>You can move the <code>e.preventDefault();</code> to a condition, such as <code>if (!isFormValid) { e.preventDefault(); }</code>, so it will be &quot;prevented&quot; only if the validation fails.</p>...
Submit button not working with JS validation
javascript|html|forms|submit
0
48
1
72,773,739
72,773,739
1
true
2022-06-27T14:11:26.633Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Submit button not working with JS validation<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snip...
72,775,366
Minimal Flask app unreachable from Docker container<p>I have a very simple flask service that I'm trying to run inside a docker container.<br /> I used python to implement a minimal application that is working fine on my Windows, but isn't reachable when inside a Docker container.<br /> I tried the common fix of settin...
<p>The issue that you are likely seeing is that your windows host cannot get to the docker container. The networking is not exposed to your host so you'll need to include the <code>-p 5000:5000</code> option on the docker command line to tell docker to forward host port 5000 to the docker container port 5000.</p> <p>I...
Minimal Flask app unreachable from Docker container
python|docker|flask
-1
48
2
72,775,473
72,775,473
1
true
2022-06-27T16:22:36.900Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Minimal Flask app unreachable from Docker container<p>I have a very simple flask service that I'm trying to run inside a docker container.<br /> I used pytho...
72,776,353
Access Django M2M values in queryset without looping<p>I receive some data through Ajax that allows me to do some filtering on a model that has some m2m relations (say Model). I get a queryset, say &quot;content&quot; that I then need to send back using json. Here are simplified lines of code:</p> <pre><code>content = ...
<p>Please <em>don't</em> use <a href="https://www.django-antipatterns.com/antipattern/over-use-of-values.html" rel="nofollow noreferrer"><strong><code>.values(…)</code></strong> <sup>[Django-antipatterns]</sup></a>, these erode the logic in the model layer. Furthere you can not use <code>.values(…)</code> <em>bidirecti...
Access Django M2M values in queryset without looping
python|django|django-models|django-queryset
1
48
2
72,776,833
72,776,833
1
true
2022-06-27T17:46:17.813Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Access Django M2M values in queryset without looping<p>I receive some data through Ajax that allows me to do some filtering on a model that has some m2m rela...
72,780,524
convert c char* to python bytes with ctypes<p>I'm trying to convert c char* to python bytes with ctypes</p> <p><strong>C code</strong></p> <pre><code>char* hello() { return &quot;hello&quot; } </code></pre> <p><strong>Python code</strong></p> <pre class="lang-py prettyprint-override"><code>import ctypes my_c = ctyp...
<p>See the <a href="https://docs.python.org/3/library/ctypes.html" rel="nofollow noreferrer">ctypes documentation</a>, in particular <a href="https://docs.python.org/3/library/ctypes.html#return-types" rel="nofollow noreferrer">Return types</a>:</p> <blockquote> <p><strong>Return Types</strong></p> <p>By default functi...
convert c char* to python bytes with ctypes
python|ctypes
1
48
1
72,781,062
72,781,062
1
true
2022-06-28T03:45:27.697Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: convert c char* to python bytes with ctypes<p>I'm trying to convert c char* to python bytes with ctypes</p> <p><strong>C code</strong></p> <pre><code>char* h...
72,777,572
Failed at binding.ReadSamlResponse(Request.ToGenericHttpRequest(), saml2AuthnResponse)<p>I'm using ITFoxTec Saml2 to connect to ADFS for authentication for my ASP.net core 3.1 MVC web application. I was able to get the SignIn page. After I submit the AD sign in information, I got error - &quot;IDX10214: Audience valid...
<p>The <code>Audience</code> is the relaying party (RP) <code>Issuer</code> that is your applications <code>Issuer</code>.</p> <p>This is how the <code>Audience</code> is configured as the RP <code>Issuer</code> (in this example &quot;itfoxtec-testwebappcore&quot;):</p> <ul> <li>&quot;itfoxtec-testwebappcore&quot; is c...
Failed at binding.ReadSamlResponse(Request.ToGenericHttpRequest(), saml2AuthnResponse)
itfoxtec-identity-saml2
1
48
1
72,786,803
72,786,803
1
true
2022-06-27T19:46:35.237Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Failed at binding.ReadSamlResponse(Request.ToGenericHttpRequest(), saml2AuthnResponse)<p>I'm using ITFoxTec Saml2 to connect to ADFS for authentication for m...
72,780,285
Using a DI container to inject an object representing the app user (Winforms)<p>I was hoping I could get some guidance from the community regarding the use of a DI container for a specific scenario. I am new to DI containers and have been learning Autofac, which I plan to implement in a new Winforms project. I understa...
<p>I think that you should design your classes to depend on the <code>User</code> or <code>IUser</code> type directly. For me, this clearly documents what your classes actually need. You could depend on an <code>IUserRepository</code>, but I feel that this creates an '<a href="https://stackoverflow.com/a/39636688/11620...
Using a DI container to inject an object representing the app user (Winforms)
c#|winforms|dependency-injection
1
48
1
72,788,869
72,788,869
1
true
2022-06-28T02:59:16.220Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Using a DI container to inject an object representing the app user (Winforms)<p>I was hoping I could get some guidance from the community regarding the use o...
72,772,844
How to identify the 8-bit checksum algorithm on this data<p>I have some data that passed over a RS232 connection, with a checksum at the end. I would like to know what the checksum function is. I've tried multiple variants of crc8 as well as simple XOR or addition, to no avail.</p> <p>How can I identify the checksum fu...
<p>Now with the update to the question with a corrected check value, it appears that they are <code>0xff</code> minus the low eight bits of the sum of the message bytes.</p> <p>This was found by simply adding the message bytes and the check value and seeing that in each case, the low eight bits were <code>0xff</code>. ...
How to identify the 8-bit checksum algorithm on this data
python|serial-port|checksum|crc
0
48
1
72,789,532
72,789,532
1
true
2022-06-27T13:22:16.337Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to identify the 8-bit checksum algorithm on this data<p>I have some data that passed over a RS232 connection, with a checksum at the end. I would like to...
72,975,806
AJAX: Asyncronous calls in Javascript to Java<p>I currently have a few basic question with asynchronous calls in JS.</p> <p>I have searched and found a similar question posted in the past here:</p> <p><a href="https://stackoverflow.com/questions/12429765/parallel-ajax-calls-in-javascript-jquery?answertab=trending#tab-t...
<p>Ths answer is a compilation of everything told in the comments, not my own.</p> <ol> <li><p>You handle it in your code.</p> </li> <li><p>Synchronous calls are deprecated, so never make a synchronous ajax call - the first A in AJAX actually stands for Asynchronous, so a Synchronous AJAX request makes no sense anyway ...
AJAX: Asyncronous calls in Javascript to Java
javascript|java|jquery|sql|ajax
0
48
1
73,578,441
73,578,441
0
true
2022-07-14T05:52:50.140Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: AJAX: Asyncronous calls in Javascript to Java<p>I currently have a few basic question with asynchronous calls in JS.</p> <p>I have searched and found a simil...
72,988,986
PowerShell workflow failed when Install-ADServiceAccount<p>I have a workflow script that runs on local server and will do Install-ADServiceAccount after reboot. Every function works fine except the Install-ADServiceAccount. The workflow failed when running Install-ADServiceAccount.</p> <p>Here is my current version of ...
<p>Case solved with creating scheduled task in WorkFlow and trigger the task after restart to run Install-ADServiceAccount. As far as I know, the user credential (or AD cred.) in WorkFlow might have changed after restart.</p>
PowerShell workflow failed when Install-ADServiceAccount
powershell|workflow
0
48
1
73,616,193
73,616,193
0
true
2022-07-15T04:16:23.950Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: PowerShell workflow failed when Install-ADServiceAccount<p>I have a workflow script that runs on local server and will do Install-ADServiceAccount after rebo...
72,782,310
Wordpress Docker Compose Disk Space is Blowing Up<p>I have an Wordpress Project running with docker-compose. I am hosting the project on Digitalocean and have an issue with the space. The client recognised he couldn't upload new images after days/weeks. I executed <code>docker system prune --all</code> and was able to ...
<p>I fixed this issue by setting a max size limit for logging files.</p>
Wordpress Docker Compose Disk Space is Blowing Up
linux|wordpress|docker|docker-compose
0
48
2
73,631,457
73,631,457
0
true
2022-06-28T07:27:28.083Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Wordpress Docker Compose Disk Space is Blowing Up<p>I have an Wordpress Project running with docker-compose. I am hosting the project on Digitalocean and hav...
72,341,549
sh: 1: tailwindcss: Permission denied // error on build process Tailwindcss CLI<p>I have installed nodejs version: <code>v18.2.0</code>,</p> <p>and while i am trying to build my css with tailwind, and with the build command:</p> <pre><code>npx tailwindcss -i ./src/input.css -o ./public/css/output.css --watch </code></p...
<p>Had the same problem again after a new installation of ubuntu and for me worked now this solution:</p> <pre><code>npm rebuild </code></pre> <p>source: <a href="https://stackoverflow.com/questions/54831494/sh-1-cross-env-permission-denied-on-laravel-mix">sh: 1: cross-env: Permission denied on laravel mix</a></p>
sh: 1: tailwindcss: Permission denied // error on build process Tailwindcss CLI
node.js|linux|ubuntu|tailwind-css
0
48
2
73,705,783
73,705,783
0
true
2022-05-22T21:57:48.080Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: sh: 1: tailwindcss: Permission denied // error on build process Tailwindcss CLI<p>I have installed nodejs version: <code>v18.2.0</code>,</p> <p>and while i a...
72,901,018
How to get specific RNA sequence of Anndata?<p>I have a question where I don´t know how to start this. We did a scRNA sequencing experiment and I now have an AnnData dataset. I already know a lot about this dataset mainly by using scanpy library and I would like to &quot;finalise&quot; the analysis by extracting genes ...
<p>I just found a way around in R. It is on the bases on BSgenome.Mmusculus.UCSC.mm10. You can find the answer <a href="https://stackoverflow.com/questions/73743829/gene-names-from-vmatchpattern-biostrings/73772191#73772191">here</a>. Just read in the result in python as a list and us the function <code>sc.tl.score_gen...
How to get specific RNA sequence of Anndata?
python-3.x|rna-seq|scanpy
0
48
1
73,773,311
73,773,311
0
true
2022-07-07T16:05:14.740Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to get specific RNA sequence of Anndata?<p>I have a question where I don´t know how to start this. We did a scRNA sequencing experiment and I now have an...