qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
74,342,783
<p>Column can also have listview.builder, if the column builds all of its children at a time, does it build listview items at once too?</p>
[ { "answer_id": 74342861, "author": "Delwinn", "author_id": 16714498, "author_profile": "https://Stackoverflow.com/users/16714498", "pm_score": 1, "selected": false, "text": "Column childrens: ListView Column childrens ListView" }, { "answer_id": 74342872, "author": "Nguyen fa...
2022/11/07
[ "https://Stackoverflow.com/questions/74342783", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4483891/" ]
74,342,788
<p>I want to make a function with loop and conditional, that count only when Actual Result = 1. So the numbers always increase by 1 if the Actual Result = 1.</p> <p>This is my dataframe:</p> <p><img src="https://i.stack.imgur.com/HSoek.png" alt="enter image description here" /></p> <p>This is my code but it doesnt prod...
[ { "answer_id": 74342861, "author": "Delwinn", "author_id": 16714498, "author_profile": "https://Stackoverflow.com/users/16714498", "pm_score": 1, "selected": false, "text": "Column childrens: ListView Column childrens ListView" }, { "answer_id": 74342872, "author": "Nguyen fa...
2022/11/07
[ "https://Stackoverflow.com/questions/74342788", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20236488/" ]
74,342,795
<p>We use Firestore for our DB and use Vercel's Next.js hosting. We wanted a completely isolated development / production DBs, so we set up two separate projects on Firebase, and this gave us two different API keys for each of the projects.</p> <p>What is the best way to switch between the two configs depending on the ...
[ { "answer_id": 74342861, "author": "Delwinn", "author_id": 16714498, "author_profile": "https://Stackoverflow.com/users/16714498", "pm_score": 1, "selected": false, "text": "Column childrens: ListView Column childrens ListView" }, { "answer_id": 74342872, "author": "Nguyen fa...
2022/11/07
[ "https://Stackoverflow.com/questions/74342795", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1584032/" ]
74,342,823
<p>I have json file something looks like as below and I want to convert this json file into csv file. When I run the code, it gives me value error. Can someone please let me know how to convert below json into csv?</p> <pre><code>[{&quot;VESSEL_NO&quot;:&quot;99999&quot;,&quot;SYSTEM_NAME&quot;:&quot;ANEMOMETER&quot;,&...
[ { "answer_id": 74342858, "author": "Faisal Nazik", "author_id": 13959139, "author_profile": "https://Stackoverflow.com/users/13959139", "pm_score": 1, "selected": false, "text": "read_json() import pandas as pd\n\ndf = pd.read_json(\"data.json\")\ndf.to_csv(\"data.csv\", index=False)\n" ...
2022/11/07
[ "https://Stackoverflow.com/questions/74342823", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15136121/" ]
74,342,830
<p>I have strings on similar format</p> <p><code>hello this is an example [ a b c ]</code></p> <p><code>hello this is another example [ cat bird dog elephant ]</code></p> <p>Which I want to transform to</p> <p><code>hello this is an example [a,b,c]</code></p> <p><code>hello this is another example [cat,bird,dog...
[ { "answer_id": 74343462, "author": "Rabinzel", "author_id": 15521392, "author_profile": "https://Stackoverflow.com/users/15521392", "pm_score": 1, "selected": false, "text": "re.sub s1 = \"hello this is an example [ a b c ]\"\ns2 = \"hello this is another example [ cat bird dog ele...
2022/11/07
[ "https://Stackoverflow.com/questions/74342830", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7791963/" ]
74,342,888
<p>I am trying to delete specific lines from text files, Which is basically a java code in txt format. I am trying to delete multi-comments from the text, which means script should read the files and delete multi-comments starting with &quot;/<em>&quot; and end with /</em> along with &quot;\\&quot; , &quot;package&quot...
[ { "answer_id": 74343077, "author": "Hannon qaoud", "author_id": 15678119, "author_profile": "https://Stackoverflow.com/users/15678119", "pm_score": 1, "selected": false, "text": "\".\" \"*\" \\ import re\nimport sys\nimport codecs\ntxt = \"hi.txt\"\nwith open(txt, 'r',encoding= 'utf-8', ...
2022/11/07
[ "https://Stackoverflow.com/questions/74342888", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19887155/" ]
74,342,889
<pre><code>const strPrivateKey = &quot;30820b82020100300d06092a864886f70d010101050004820b6c30820b680201000282028100acfc585f43ca36ec2dddc518b5c7d1303b658faec58b634aff16ce4b7930b93a23517f8d9c8a260f4e2eb44b01da5b6588fefe63acb68c15677&quot; decoded, err := hex.DecodeString(strPrivateKey) if err != nil { return &quot;&...
[ { "answer_id": 74343942, "author": "Zeke Lu", "author_id": 1369400, "author_profile": "https://Stackoverflow.com/users/1369400", "pm_score": 1, "selected": false, "text": "*rsa.PrivateKey *ecdsa.PrivateKey ed25519.PrivateKey switch privateKey := privateKey.(type) {\ncase *rsa.PrivateKey:...
2022/11/07
[ "https://Stackoverflow.com/questions/74342889", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20437546/" ]
74,342,903
<p>I want to convert a string to a list and get the length of the list. I have read <a href="https://stackoverflow.com/q/52288553/16124033">this question</a> and quoted <a href="https://stackoverflow.com/a/52288579/16124033">this answer</a>. But there is a problem, when I use <a href="https://stackoverflow.com/a/522885...
[ { "answer_id": 74342968, "author": "George Lee", "author_id": 4402233, "author_profile": "https://Stackoverflow.com/users/4402233", "pm_score": 0, "selected": false, "text": "void main() {\n var string = 'Hello, World!';\n // make string into a list with map\n var list = string.split(...
2022/11/07
[ "https://Stackoverflow.com/questions/74342903", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16124033/" ]
74,342,962
<p>Below is the screenshot, where the first box is not selected right now, but i want to make it selected when come to first time on this page.</p> <p>I attached the full expo-link. <a href="https://snack.expo.dev/@john.ocean/bold-cookies" rel="nofollow noreferrer">click-here</a></p> <p>I want that 'soup' button select...
[ { "answer_id": 74342968, "author": "George Lee", "author_id": 4402233, "author_profile": "https://Stackoverflow.com/users/4402233", "pm_score": 0, "selected": false, "text": "void main() {\n var string = 'Hello, World!';\n // make string into a list with map\n var list = string.split(...
2022/11/07
[ "https://Stackoverflow.com/questions/74342962", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16241616/" ]
74,342,990
<p>I have data like this:</p> <pre><code>[ { &quot;category&quot;:&quot;Fruits&quot;, &quot;name&quot;:&quot;Apple&quot; }, { &quot;category&quot;:&quot;Fruits&quot;, &quot;name&quot;:&quot;Manggo&quot; }, { &quot;category&quot;:&quot;Vegetables&quot;, &quot;name&quot;...
[ { "answer_id": 74342968, "author": "George Lee", "author_id": 4402233, "author_profile": "https://Stackoverflow.com/users/4402233", "pm_score": 0, "selected": false, "text": "void main() {\n var string = 'Hello, World!';\n // make string into a list with map\n var list = string.split(...
2022/11/07
[ "https://Stackoverflow.com/questions/74342990", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20406079/" ]
74,342,996
<p>If I run laravel on localhost, it shows me only file, how to fix this <a href="https://i.stack.imgur.com/IJfz8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IJfz8.png" alt="enter image description here" /></a></p>
[ { "answer_id": 74342968, "author": "George Lee", "author_id": 4402233, "author_profile": "https://Stackoverflow.com/users/4402233", "pm_score": 0, "selected": false, "text": "void main() {\n var string = 'Hello, World!';\n // make string into a list with map\n var list = string.split(...
2022/11/07
[ "https://Stackoverflow.com/questions/74342996", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20067232/" ]
74,343,024
<p>I'm trying to do some data cleaning using pandas. Imagine I have a data frame which has a column call &quot;Number&quot; and contains data like: &quot;1203.10&quot;, &quot;4221&quot;,&quot;3452.11&quot;, etc. I want to add an &quot;M&quot; before the numbers, which have a point and a zero at the end. For this exampl...
[ { "answer_id": 74342968, "author": "George Lee", "author_id": 4402233, "author_profile": "https://Stackoverflow.com/users/4402233", "pm_score": 0, "selected": false, "text": "void main() {\n var string = 'Hello, World!';\n // make string into a list with map\n var list = string.split(...
2022/11/07
[ "https://Stackoverflow.com/questions/74343024", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12848857/" ]
74,343,043
<p>I am building a simple game in react. The problem is context is properly updated but the context value inside an event listener function is not updating. If I access the value outside the event function then the new updated value is rendered.</p> <p>For the first keyup event the value will be 0 but for the next even...
[ { "answer_id": 74343084, "author": "CertainPerformance", "author_id": 9515207, "author_profile": "https://Stackoverflow.com/users/9515207", "pm_score": 0, "selected": false, "text": "gameData gameData updateGame useEffect(() => {\n const handler = (e) => {\n e.stopImmediateProp...
2022/11/07
[ "https://Stackoverflow.com/questions/74343043", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9191351/" ]
74,343,047
<p>I have list of excel files in a directory. I'm trying to email those files as attachment. However, when I open the email, I could see only one file as attachment. The below script is not attaching multiple files as attachment.</p> <pre><code>ls *.xls; #echo &quot;Test Email&quot; | mailx -s &quot;Testing File Conv&q...
[ { "answer_id": 74343381, "author": "rezshar", "author_id": 12261221, "author_profile": "https://Stackoverflow.com/users/12261221", "pm_score": -1, "selected": true, "text": "test.txt ls *.xls -1 > test.txt\n while read line\ndo\nmailx -s \"Subject\" -a ${line} -s \"files\" ${mail_from} <...
2022/11/07
[ "https://Stackoverflow.com/questions/74343047", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16395449/" ]
74,343,116
<p>Since, Microsoft.Azure.DocumentDB package has been deprecated, I am in the process of migrating our codebase to access CosmosDB from Microsoft.Azure.DocumentDB v2.11.6 to use Microsoft.Azure.Cosmos v3.31.1.</p> <p>I have used below references and migrated some of the code.</p> <p><a href="https://stackoverflow.com/q...
[ { "answer_id": 74344656, "author": "NotFound", "author_id": 9034195, "author_profile": "https://Stackoverflow.com/users/9034195", "pm_score": 2, "selected": false, "text": "Document Resource public string id { get; set; } Resource accessCondition IfMatchEtag IfNoneMatchEtag await contain...
2022/11/07
[ "https://Stackoverflow.com/questions/74343116", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1667760/" ]
74,343,130
<pre><code>class Solution { public: int daysBetweenDates(string date1, string date2) { } }; </code></pre> <p>I have this function. Suppose I have parameter</p> <pre><code>date1 = &quot;2020-01-15&quot;, date2 = &quot;2019-12-31&quot; </code></pre> <p>How can i find them as Title? Thank you so much!</p>...
[ { "answer_id": 74343325, "author": "Ayxan Haqverdili", "author_id": 10147399, "author_profile": "https://Stackoverflow.com/users/10147399", "pm_score": 3, "selected": false, "text": "<chrono> // https://godbolt.org/z/hfM8YWze5\n\n#include <chrono>\n#include <iostream>\n\nint main() {\n ...
2022/11/07
[ "https://Stackoverflow.com/questions/74343130", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19798172/" ]
74,343,136
<p>If I have a url called youtube.com/user/1/ and I want the number to incrament to youtube.com/user/2/ whilst scraping the whole page, how would I do so? I've been trying to think of some ways to do this but I can't seem to find anything?</p> <p>BeautifulSoup</p> <p>It should work like this: youtube.com/user/1/ You sc...
[ { "answer_id": 74343325, "author": "Ayxan Haqverdili", "author_id": 10147399, "author_profile": "https://Stackoverflow.com/users/10147399", "pm_score": 3, "selected": false, "text": "<chrono> // https://godbolt.org/z/hfM8YWze5\n\n#include <chrono>\n#include <iostream>\n\nint main() {\n ...
2022/11/07
[ "https://Stackoverflow.com/questions/74343136", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
74,343,151
<p>My dataset looks like this</p> <pre><code>rows = [(&quot;user1&quot;,1,2,10), (&quot;user2&quot;,2,6,27), (&quot;user3&quot;,3,3,21), (&quot;user4&quot;,4,7,44) ] columns = [&quot;id&quot;,&quot;val1&quot;,&quot;val2&quot;,&quot;val3&quot;] df = spark.createDataFrame(data=rows, sch...
[ { "answer_id": 74343447, "author": "PieCot", "author_id": 5359797, "author_profile": "https://Stackoverflow.com/users/5359797", "pm_score": 3, "selected": true, "text": "UDF pivot import numpy as np\n\nfrom pyspark.sql import SparkSession, functions as F, types as T\n\n@F.udf(T.DoubleTyp...
2022/11/07
[ "https://Stackoverflow.com/questions/74343151", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13203569/" ]
74,343,167
<p>I want to display components based on the authorization status. How do I make sure that during rendering I do not display components that fit the default state? I tried changing the state in useLayoutEffect, but I still see a second display of the component I didn't need</p> <p>Check this screens pls<a href="https:/...
[ { "answer_id": 74344242, "author": "Rodrigo Dias", "author_id": 7746628, "author_profile": "https://Stackoverflow.com/users/7746628", "pm_score": 0, "selected": false, "text": "import {useSelector} from 'react-redux';\nimport AppRoutes from './app.routes';\nimport AuthRoutes from './auth...
2022/11/07
[ "https://Stackoverflow.com/questions/74343167", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19489675/" ]
74,343,216
<p>I am using portal in React and want to get access to elements from other components.</p> <p>For example, I have components with:</p> <pre><code>// here I want to put some content via portal &lt;div id='buttons'&gt;&lt;/div&gt; </code></pre> <p>That is my component where I create portal</p> <pre><code> const elem = ...
[ { "answer_id": 74344242, "author": "Rodrigo Dias", "author_id": 7746628, "author_profile": "https://Stackoverflow.com/users/7746628", "pm_score": 0, "selected": false, "text": "import {useSelector} from 'react-redux';\nimport AppRoutes from './app.routes';\nimport AuthRoutes from './auth...
2022/11/07
[ "https://Stackoverflow.com/questions/74343216", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20240444/" ]
74,343,285
<p>How do I test private methods and a method with 2 controls in it How can I write test method for method create and private method checkUsername</p> <pre><code>public User create(User user) { checkUsername(user.getUsername()); return userRepository.save(user); } </code></pre> <pre><code>private void checkUser...
[ { "answer_id": 74344762, "author": "Popeye", "author_id": 980097, "author_profile": "https://Stackoverflow.com/users/980097", "pm_score": 2, "selected": false, "text": "checkUsername create dummy UsernameUnavailableException Username = 'dummy' is cannot be used! UsernameIsInUseException ...
2022/11/07
[ "https://Stackoverflow.com/questions/74343285", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20437855/" ]
74,343,308
<p>I have an autoscaling group launching different EC2 instances, each running the same wordpress application. Somewhere on the wordpress page (let's call it home.html), I want to show the EC2 instance id. I can grab the instance id using this curl command: <code>curl http://169.254.169.254/latest/meta-data/instance-id...
[ { "answer_id": 74344762, "author": "Popeye", "author_id": 980097, "author_profile": "https://Stackoverflow.com/users/980097", "pm_score": 2, "selected": false, "text": "checkUsername create dummy UsernameUnavailableException Username = 'dummy' is cannot be used! UsernameIsInUseException ...
2022/11/07
[ "https://Stackoverflow.com/questions/74343308", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7717729/" ]
74,343,318
<p>I am using React Native:</p> <pre class="lang-none prettyprint-override"><code>npx react-native run-android </code></pre> <p>I have many other solutions. Like force or update the targetsdk version and compile the SDK version, but nothing worked.</p> <p>I tried changing compileSdkVersion 30 to compileSdkVersion 31 an...
[ { "answer_id": 74355365, "author": "reggi49", "author_id": 15849334, "author_profile": "https://Stackoverflow.com/users/15849334", "pm_score": 4, "selected": false, "text": "def REACT_NATIVE_VERSION = new File(['node', '--print',\"JSON.parse(require('fs').readFileSync(require.resolve('re...
2022/11/07
[ "https://Stackoverflow.com/questions/74343318", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6741241/" ]
74,343,332
<p>If I have a base class with a constructor :</p> <pre><code>class Base{ Base(std::optional&lt;type0&gt; a, std::optional&lt;type1&gt; b, std::optional&lt;type2&gt; c, std::optional&lt;type3&gt; d) : _a(a), _b(b), _c(c), _d(d) { } private: std::optional&lt;type0&gt; _a; std::optional&lt;type1&gt; _b; ...
[ { "answer_id": 74343385, "author": "Jason Liam", "author_id": 12002570, "author_profile": "https://Stackoverflow.com/users/12002570", "pm_score": 1, "selected": false, "text": "a b c d" } ]
2022/11/07
[ "https://Stackoverflow.com/questions/74343332", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19532610/" ]
74,343,347
<p>I need to use custom deserializer for my json string. The problem is that my class I want to serialize in is very complex and constructed from other classes. But all of the examples in the internet show only very basic way of deserializing jsons (i.e. only retrieving one value by name and getting it's value), but I ...
[ { "answer_id": 74539561, "author": "Oleg Ushakov", "author_id": 4609353, "author_profile": "https://Stackoverflow.com/users/4609353", "pm_score": 2, "selected": false, "text": "ObjectMapper objectMapper = new ObjectMapper();\nString json = \"...\" //some json from any source with complex...
2022/11/07
[ "https://Stackoverflow.com/questions/74343347", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9560002/" ]
74,343,355
<p><a href="https://i.stack.imgur.com/5E5Cr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5E5Cr.png" alt="enter image description here" /></a></p> <p>how to control slider with add and subtract buttons in flutter UI</p>
[ { "answer_id": 74343459, "author": "Arijeet", "author_id": 15387120, "author_profile": "https://Stackoverflow.com/users/15387120", "pm_score": 2, "selected": false, "text": "import 'package:flutter/material.dart';\n\nvoid main() => runApp(const MyApp());\n\nclass MyApp extends StatelessW...
2022/11/07
[ "https://Stackoverflow.com/questions/74343355", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20405031/" ]
74,343,387
<p>Edit: Q1. is answered. please help me in the Q2. Also, please suggest if i should make a new thread of this question ?</p> <p><strong>Q1.</strong> I am making a digital clock in my app. I have set my Timer, so that setState should run after each second. and in the UI, it seems fine. But in terminal you can see it ru...
[ { "answer_id": 74343662, "author": "Ivo", "author_id": 1514861, "author_profile": "https://Stackoverflow.com/users/1514861", "pm_score": 2, "selected": false, "text": "refreshTime() String refreshTime(){\n timer?.cancel();\n timer = Timer.periodic(Duration(seconds: 1), (timer) {\...
2022/11/07
[ "https://Stackoverflow.com/questions/74343387", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11565523/" ]
74,343,396
<p>During the OpenMDAO workshop in 2022 it has been mentioned that someone did some work on the analytic (or algorithmic?) derivatives for a Boundary Element Method solver, for the use in gradient-based optimisations, and would be willing to share. Is there any reference to that work?</p>
[ { "answer_id": 74343662, "author": "Ivo", "author_id": 1514861, "author_profile": "https://Stackoverflow.com/users/1514861", "pm_score": 2, "selected": false, "text": "refreshTime() String refreshTime(){\n timer?.cancel();\n timer = Timer.periodic(Duration(seconds: 1), (timer) {\...
2022/11/07
[ "https://Stackoverflow.com/questions/74343396", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17456502/" ]
74,343,405
<p><strong>AAPT: error: resource android: attr/IStar not found.</strong></p> <p>This error occurred suddenly, it was working fine last week.</p> <p><a href="https://i.stack.imgur.com/w2567.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/w2567.png" alt="enter image description here" /></a></p> <p>I've...
[ { "answer_id": 74343412, "author": "ZFloc Technologies", "author_id": 10657559, "author_profile": "https://Stackoverflow.com/users/10657559", "pm_score": 4, "selected": true, "text": "android/buld.gradle def REACT_NATIVE_VERSION = new File(['node', '--print',\"JSON.parse(require('fs').re...
2022/11/07
[ "https://Stackoverflow.com/questions/74343405", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11834362/" ]
74,343,443
<p>I have my app locked down by allowing only authorised users at hosts.cshtml and using the AuthorizeView tag in app.razor. The net affect is to force all users to a login page if they are unauthorized.</p> <p>This works perfectly well until someone on a higher paycheck then me decides that one or two pages should be ...
[ { "answer_id": 74343412, "author": "ZFloc Technologies", "author_id": 10657559, "author_profile": "https://Stackoverflow.com/users/10657559", "pm_score": 4, "selected": true, "text": "android/buld.gradle def REACT_NATIVE_VERSION = new File(['node', '--print',\"JSON.parse(require('fs').re...
2022/11/07
[ "https://Stackoverflow.com/questions/74343443", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16630285/" ]
74,343,450
<p>I have the following data:</p> <pre><code> A B 0 27.9 1.0 1 20.6 1.0 2 10.3 1.0 3 0.0 1.0 4 349.7 1.0 5 339.4 2.0 6 329.1 1.0 7 318.9 1.0 </code></pre> <p>And I would like every time there is a number higher than 1 in B, then the column will be duplica...
[ { "answer_id": 74343412, "author": "ZFloc Technologies", "author_id": 10657559, "author_profile": "https://Stackoverflow.com/users/10657559", "pm_score": 4, "selected": true, "text": "android/buld.gradle def REACT_NATIVE_VERSION = new File(['node', '--print',\"JSON.parse(require('fs').re...
2022/11/07
[ "https://Stackoverflow.com/questions/74343450", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20438008/" ]
74,343,461
<p>I was reading the solution to reverse a linked list. It mentions to use swapping the links but I can't get an intuition as how author have come up with previous and next pointer approach. It feels like I have to memorize this order. Can some one give me the intuition of the below piece of code.</p> <pre><code>public...
[ { "answer_id": 74345351, "author": "Alexander Ivanchenko", "author_id": 17949945, "author_profile": "https://Stackoverflow.com/users/17949945", "pm_score": 0, "selected": false, "text": "[Node1] => [Node2] => [Node3] - initial list\n <- <- - new links\n current nex...
2022/11/07
[ "https://Stackoverflow.com/questions/74343461", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10254216/" ]
74,343,469
<p>Is there way to create a dataframe(using pandas) from start date to End date with random values</p> <p>For example, the required data frame:</p> <pre><code>date value 2015-06-25 12 2015-06-26 23 2015-06-27 3.4 2015-06-28 5.6 </code></pre> <p>Is this dataframe I need to set &quot;from date&q...
[ { "answer_id": 74343775, "author": "mozway", "author_id": 16343464, "author_profile": "https://Stackoverflow.com/users/16343464", "pm_score": 2, "selected": true, "text": "pandas.date_range numpy.random.uniform import numpy as np\ndates = pd.date_range('2015-06-25', '2015-06-28', freq='D...
2022/11/07
[ "https://Stackoverflow.com/questions/74343469", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20377357/" ]
74,343,475
<p>I had a child component <code>UploadImage.js</code> and parent component <code>Parent.js</code>. I am uploading an image and want to pass the value of file name to the <code>Parent.js</code> component. How can I do so?</p> <p><strong>UploadImage.js</strong></p> <pre><code>import React, { useEffect, useState } from '...
[ { "answer_id": 74343775, "author": "mozway", "author_id": 16343464, "author_profile": "https://Stackoverflow.com/users/16343464", "pm_score": 2, "selected": true, "text": "pandas.date_range numpy.random.uniform import numpy as np\ndates = pd.date_range('2015-06-25', '2015-06-28', freq='D...
2022/11/07
[ "https://Stackoverflow.com/questions/74343475", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10962364/" ]
74,343,485
<p>I have this layout made with CSS grid.</p> <p><a href="https://i.stack.imgur.com/FJFjl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FJFjl.png" alt="enter image description here" /></a></p> <p>It's adding extra space at the bottom of each element. I'd like the red background(grid cell) to take u...
[ { "answer_id": 74343596, "author": "Stacks Queue", "author_id": 14820590, "author_profile": "https://Stackoverflow.com/users/14820590", "pm_score": 0, "selected": false, "text": "grid-auto-rows .container {\n display: grid;\n grid-template-areas:\n \"image image title\"\n ...
2022/11/07
[ "https://Stackoverflow.com/questions/74343485", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10301756/" ]
74,343,497
<p>I am currently stuck on how should i change the current code to show if user selected Not Suit and it will show Movie and Drama checkbox or else if uncheck it disappear movie and drama checkbox and only showing Not Suit checkbox</p> <p>my current code in Movie.kt</p> <pre><code>chkBoxNotsuit.setOnCheckedChangeListen...
[ { "answer_id": 74343596, "author": "Stacks Queue", "author_id": 14820590, "author_profile": "https://Stackoverflow.com/users/14820590", "pm_score": 0, "selected": false, "text": "grid-auto-rows .container {\n display: grid;\n grid-template-areas:\n \"image image title\"\n ...
2022/11/07
[ "https://Stackoverflow.com/questions/74343497", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19166242/" ]
74,343,509
<p>I have used <code>.find()</code> on my string to find the index of the word that the user wants to remove from the string, but now how do i use this index to them remove said word?</p> <p>The function is as follows:</p> <pre><code>sentence = &quot;The quick brown fox jumps over the lazy dog.&quot; print(&quot;The se...
[ { "answer_id": 74343596, "author": "Stacks Queue", "author_id": 14820590, "author_profile": "https://Stackoverflow.com/users/14820590", "pm_score": 0, "selected": false, "text": "grid-auto-rows .container {\n display: grid;\n grid-template-areas:\n \"image image title\"\n ...
2022/11/07
[ "https://Stackoverflow.com/questions/74343509", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20357515/" ]
74,343,537
<p>I have a question to which I am trying to figure out the answer</p> <p>For example, I structured the sockets like this</p> <pre><code>const io = require('socket.io')(server, { cors: { origin: &quot;*&quot; } }); </code></pre> <pre><code>// sockets events const onConnection = require('./sockets/events...
[ { "answer_id": 74343596, "author": "Stacks Queue", "author_id": 14820590, "author_profile": "https://Stackoverflow.com/users/14820590", "pm_score": 0, "selected": false, "text": "grid-auto-rows .container {\n display: grid;\n grid-template-areas:\n \"image image title\"\n ...
2022/11/07
[ "https://Stackoverflow.com/questions/74343537", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19665210/" ]
74,343,557
<p>I have template, which contains simple icon template:</p> <pre><code>&lt;span class=&quot;icon {{unbound pperson.medical.diseases '=' 0 'hidden'}}&quot;&gt; &lt;img class=&quot;icon&quot; src=&quot;/assets/img/icons/icon.svg &lt;/span&gt; </code></pre> <p>As can be seen I need a flag ...
[ { "answer_id": 74344750, "author": "Sam Fisher", "author_id": 8336836, "author_profile": "https://Stackoverflow.com/users/8336836", "pm_score": 1, "selected": false, "text": " <span class=\"icon {{unbound (unless (or null-undefined pperson.medical.disease pperson.medical.diseases.length ...
2022/11/07
[ "https://Stackoverflow.com/questions/74343557", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8336836/" ]
74,343,571
<p>i created a function to view products in products view page i tried so many times but cant find any one help me please</p> <p>here is my code</p> <p><code>views.py</code>:</p> <pre class="lang-py prettyprint-override"><code> def product_view(request,cate_slug,prod_slug): if (Category.objects.filter(slug=cate...
[ { "answer_id": 74343964, "author": "haduki", "author_id": 18229792, "author_profile": "https://Stackoverflow.com/users/18229792", "pm_score": 0, "selected": false, "text": "{{product.name}} product name products {% for product in products %}\n{{ product.name }} \n" }, { "answer_i...
2022/11/07
[ "https://Stackoverflow.com/questions/74343571", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17193865/" ]
74,343,606
<p>I want to concatenate multiple columns in a DataFrame into a single column and transpose them into a single row, but when I call transpose it remains a single column.</p> <pre><code>import pandas as pd df = pd.DataFrame( { 0: [1, 2, 3], 1: [11, 12, 13] } ) print( df) df = pd.concat( [df[0], d...
[ { "answer_id": 74343679, "author": "sammywemmy", "author_id": 7175713, "author_profile": "https://Stackoverflow.com/users/7175713", "pm_score": 3, "selected": true, "text": "import pandas as pd\nimport numpy as np\n\nout = df.to_numpy().ravel(order='F')\npd.DataFrame([out])\n 0 1 2 ...
2022/11/07
[ "https://Stackoverflow.com/questions/74343606", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19614296/" ]
74,343,674
<p>I have a simple table. When a user clicks on a row, a jscript gets triggered. How can I get a value from row/cell to use in jscript to check true or false please? There is also a seperate click-row script but ignore that for now.</p> <pre><code>&lt;tbody&gt; @if (Model != null) { foreach (CELIntranet.Models.tbl...
[ { "answer_id": 74343679, "author": "sammywemmy", "author_id": 7175713, "author_profile": "https://Stackoverflow.com/users/7175713", "pm_score": 3, "selected": true, "text": "import pandas as pd\nimport numpy as np\n\nout = df.to_numpy().ravel(order='F')\npd.DataFrame([out])\n 0 1 2 ...
2022/11/07
[ "https://Stackoverflow.com/questions/74343674", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10707396/" ]
74,343,698
<p>I have in my code the specificacions of the bool to return true or false but I don't figure how to printf depending if it is true or false. I have some float prompted by the user and the bool to determine if it is true or false. How can I use these both datas to printf depending?</p> <pre><code>bool valid_triangle(f...
[ { "answer_id": 74343732, "author": "brmRush", "author_id": 9483598, "author_profile": "https://Stackoverflow.com/users/9483598", "pm_score": 1, "selected": false, "text": "if(valid_triangle(x, y, z) == true)\n{\n printf(\"It's a triangle\");\n} else {\n printf(\"It's not a triangle...
2022/11/07
[ "https://Stackoverflow.com/questions/74343698", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20438035/" ]
74,343,705
<p>I have a list of lists each containing tuples with some co-ordinates which sort of look like this:</p> <p><code>[[(x1, y1), (x2, y2), (x3, y3) ... (xn, yn)], [(x1, y1), (x2, y2), (x3, y3) ... (xn, yn)], [(x1, y1), (x2, y2), (x3, y3) ... (xn, yn)]]</code></p> <p>Considering orders, lets call the outer list - L0, and ...
[ { "answer_id": 74343732, "author": "brmRush", "author_id": 9483598, "author_profile": "https://Stackoverflow.com/users/9483598", "pm_score": 1, "selected": false, "text": "if(valid_triangle(x, y, z) == true)\n{\n printf(\"It's a triangle\");\n} else {\n printf(\"It's not a triangle...
2022/11/07
[ "https://Stackoverflow.com/questions/74343705", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20438100/" ]
74,343,728
<p>Well, that is, there are two Johns and one Quill, you need to output the number of those people who have the same name. In one column there should be the total number of students with the same names</p> <pre><code>SELECT COUNT(id) as count FROM student GROUP BY LOWER(first_name) HAVING COUNT(LOWER(first_name)) &gt; ...
[ { "answer_id": 74343815, "author": "Thorsten Kettner", "author_id": 2270762, "author_profile": "https://Stackoverflow.com/users/2270762", "pm_score": 2, "selected": true, "text": "SELECT SUM(cnt)\nFROM\n(\n SELECT COUNT(*) AS cnt\n FROM student\n GROUP BY LOWER(first_name)\n HAVING C...
2022/11/07
[ "https://Stackoverflow.com/questions/74343728", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20265121/" ]
74,343,752
<p>I was creating a shopping cart using react and redux and everything works perfectly without any errors I'm wondering how do I calculate the total price by adding up all the items in the cart</p> <p>my cart-slice file</p> <pre><code>import { createSlice } from '@reduxjs/toolkit'; const cartSlice = createSlice({ na...
[ { "answer_id": 74343815, "author": "Thorsten Kettner", "author_id": 2270762, "author_profile": "https://Stackoverflow.com/users/2270762", "pm_score": 2, "selected": true, "text": "SELECT SUM(cnt)\nFROM\n(\n SELECT COUNT(*) AS cnt\n FROM student\n GROUP BY LOWER(first_name)\n HAVING C...
2022/11/07
[ "https://Stackoverflow.com/questions/74343752", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19768549/" ]
74,343,755
<p>I am using Python to analyze a data set that has a column with a year range (see below for example):</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>Name</th> <th>Years Range</th> </tr> </thead> <tbody> <tr> <td>Andy</td> <td>1985 - 1987</td> </tr> <tr> <td>Bruce</td> <td>2011 - 2018</td...
[ { "answer_id": 74343881, "author": "Bhargav", "author_id": 15358800, "author_profile": "https://Stackoverflow.com/users/15358800", "pm_score": 3, "selected": true, "text": "split df[['Year Start','Year End']] = df['Years Range'].str.split('-',expand=True)\n Nmae Years_Range Year Sta...
2022/11/07
[ "https://Stackoverflow.com/questions/74343755", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20437267/" ]
74,343,766
<p>I am using the <code>RadzenDatePicker</code> to get time value only. I have managed to make it show only time instead of the calendar, however, I can't bind it's value which is <code>DateTime</code> to <code>TimeOnly</code>.</p> <p>Is there a way I can bind the <code>RadzenDatePicker</code> below to <code>TimeOnly</...
[ { "answer_id": 74343881, "author": "Bhargav", "author_id": 15358800, "author_profile": "https://Stackoverflow.com/users/15358800", "pm_score": 3, "selected": true, "text": "split df[['Year Start','Year End']] = df['Years Range'].str.split('-',expand=True)\n Nmae Years_Range Year Sta...
2022/11/07
[ "https://Stackoverflow.com/questions/74343766", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8316900/" ]
74,343,790
<p>I'm trying to verify a Firebase generated JWT token with an Ambassador Edge Stack (datawire/edge-stack version 3.3.0) Filter.</p> <p>The Firebase token is generated using a login/password authent mechanism on firebase, something like (in Python):</p> <pre class="lang-py prettyprint-override"><code> email=input(&q...
[ { "answer_id": 74343881, "author": "Bhargav", "author_id": 15358800, "author_profile": "https://Stackoverflow.com/users/15358800", "pm_score": 3, "selected": true, "text": "split df[['Year Start','Year End']] = df['Years Range'].str.split('-',expand=True)\n Nmae Years_Range Year Sta...
2022/11/07
[ "https://Stackoverflow.com/questions/74343790", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1823046/" ]
74,343,792
<p>This is my code below and I cant seem to make my while loop run continuosly.</p> <pre><code>#alphabet list alphabet = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n...
[ { "answer_id": 74343881, "author": "Bhargav", "author_id": 15358800, "author_profile": "https://Stackoverflow.com/users/15358800", "pm_score": 3, "selected": true, "text": "split df[['Year Start','Year End']] = df['Years Range'].str.split('-',expand=True)\n Nmae Years_Range Year Sta...
2022/11/07
[ "https://Stackoverflow.com/questions/74343792", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20438282/" ]
74,343,796
<p>I want to get a random character from MongoDB, but my call keeps getting used in another GET method.</p> <pre><code>// Get Specific Character by ID router.get('/:char_id', async (req, res, next) =&gt; { try { const character = await Character.find({ char_id: req.params.char_id }); if (character.l...
[ { "answer_id": 74343881, "author": "Bhargav", "author_id": 15358800, "author_profile": "https://Stackoverflow.com/users/15358800", "pm_score": 3, "selected": true, "text": "split df[['Year Start','Year End']] = df['Years Range'].str.split('-',expand=True)\n Nmae Years_Range Year Sta...
2022/11/07
[ "https://Stackoverflow.com/questions/74343796", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14510980/" ]
74,343,859
<p>I want to override a class from the JMS/serializer bundle. Unfortunately this class is marked &quot;final&quot; and I can't override it. What would be the best method to circumvent this problem please? I'm on symfony5.4</p> <p>Here is the class I want to override :</p> <pre><code>&lt;?php declare(strict_types=1); ...
[ { "answer_id": 74344222, "author": "hassan", "author_id": 2359679, "author_profile": "https://Stackoverflow.com/users/2359679", "pm_score": 1, "selected": false, "text": "SerializeBuilder public function __construct(?HandlerRegistryInterface $handlerRegistry = null, ?EventDispatcherInter...
2022/11/07
[ "https://Stackoverflow.com/questions/74343859", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20089108/" ]
74,343,860
<p><a href="https://imgur.com/a/BYCCRPs" rel="nofollow noreferrer">https://imgur.com/a/BYCCRPs</a> how do i move the start button down using alignment axies? i have created another page for the start button to go into that new page (settingpage.dart). how to i navigate to the next page ?</p> <p>Thanks for your help.</p...
[ { "answer_id": 74344222, "author": "hassan", "author_id": 2359679, "author_profile": "https://Stackoverflow.com/users/2359679", "pm_score": 1, "selected": false, "text": "SerializeBuilder public function __construct(?HandlerRegistryInterface $handlerRegistry = null, ?EventDispatcherInter...
2022/11/07
[ "https://Stackoverflow.com/questions/74343860", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20438315/" ]
74,343,868
<p>I use postman call my api and here is the response.</p> <p>I want to modify this object key into &quot;id&quot; and value is auto increment(1,2,3....), the value of original key( &quot;amount 100~1000&quot;: 2) as &quot;count&quot; like expect to get down below.</p> <pre><code>data = { &quot;amount 100~1000&...
[ { "answer_id": 74343936, "author": "Nir Levy", "author_id": 130304, "author_profile": "https://Stackoverflow.com/users/130304", "pm_score": 2, "selected": true, "text": "const input = data[0];\nconst keys = Object.keys(input);\nconst output = [];\nkeys.sort((a, b) => a.localeCompare(b, {...
2022/11/07
[ "https://Stackoverflow.com/questions/74343868", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19304185/" ]
74,343,895
<p>I have a column with data like 9 years 3 months 22 days. How to convert it into =9+(3/12)+(22/365) =9.31</p> <p>I want output as 9.31.</p> <p>How to do the same in python? Please anyone can help me out?</p>
[ { "answer_id": 74343936, "author": "Nir Levy", "author_id": 130304, "author_profile": "https://Stackoverflow.com/users/130304", "pm_score": 2, "selected": true, "text": "const input = data[0];\nconst keys = Object.keys(input);\nconst output = [];\nkeys.sort((a, b) => a.localeCompare(b, {...
2022/11/07
[ "https://Stackoverflow.com/questions/74343895", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2567340/" ]
74,343,919
<p>I am practicing a simple application that reads and writes to a file. I'm using <strong>writeFile</strong> from <strong>&quot;fs/promises&quot;</strong></p> <p>When I import the file with the correct string I get the desired file</p> <pre><code>const content: Employe_T_nodel[] = require('../databace/employees.json')...
[ { "answer_id": 74344022, "author": "Tsvetan Ganev", "author_id": 8597510, "author_profile": "https://Stackoverflow.com/users/8597510", "pm_score": 3, "selected": true, "text": "require() fs.writeFile path.resolve() async function saveAllEmployeesAsync(employeesArr: Employe_T_nodel[]) {\n...
2022/11/07
[ "https://Stackoverflow.com/questions/74343919", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18182422/" ]
74,343,930
<p>Environment Laravel v9 + vite, PHP 8.1, vue3, VPS linux distro. UBUNTU</p> <p><a href="https://i.stack.imgur.com/yIyC7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yIyC7.png" alt="enter image description here" /></a></p> <p>I am having this error in the vue.js component of my Laravel project,it...
[ { "answer_id": 74344016, "author": "Sergey Andreev", "author_id": 8427699, "author_profile": "https://Stackoverflow.com/users/8427699", "pm_score": 2, "selected": false, "text": "v-if=\"typeof rep.user.profile_picture != null\" typeof rep.user.profile_picture object v-if=\"rep.user.profi...
2022/11/07
[ "https://Stackoverflow.com/questions/74343930", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12120881/" ]
74,343,960
<p>I am trying to understand JWT based authentication , following one of the you tube channel. It was mentioned to add the following contents in appsettings.json</p> <pre><code> &quot;AllowedHosts&quot;: &quot;*&quot;, &quot;JWT&quot;: { &quot;SecretKey&quot;: &quot;A247DB24-C8AE-4B8A-8CB2-59637754BF2F&quot;, ...
[ { "answer_id": 74344016, "author": "Sergey Andreev", "author_id": 8427699, "author_profile": "https://Stackoverflow.com/users/8427699", "pm_score": 2, "selected": false, "text": "v-if=\"typeof rep.user.profile_picture != null\" typeof rep.user.profile_picture object v-if=\"rep.user.profi...
2022/11/07
[ "https://Stackoverflow.com/questions/74343960", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18451141/" ]
74,343,961
<p>I'm trying to save file name , my filename should be like this &quot;doc00012dsadfile5.jpg&quot;</p> <pre><code>filename = &quot;doc00012dsad.pdf&quot; mypath = &quot;/desktop/myfolder/&quot; _path = os.path.join(mypath,&quot;images&quot;) num = 5 #filename.split(&quot;.pdf&quot;,1)[0] os.path.join(_path, file%d.jp...
[ { "answer_id": 74344016, "author": "Sergey Andreev", "author_id": 8427699, "author_profile": "https://Stackoverflow.com/users/8427699", "pm_score": 2, "selected": false, "text": "v-if=\"typeof rep.user.profile_picture != null\" typeof rep.user.profile_picture object v-if=\"rep.user.profi...
2022/11/07
[ "https://Stackoverflow.com/questions/74343961", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20437152/" ]
74,344,033
<p>I am getting below response from api . Below is sample respone not real Each object has createdDate , I have to group value is days wise like on 2022-09-20 (Tuesday) there are 2 customerId created and on 2022-09-21 (Wednesday) only one.</p> <pre><code>{ &quot;data&quot;: { &quot;fetchOrdersAndRequest&quot;: ...
[ { "answer_id": 74344273, "author": "cmgchess", "author_id": 13583510, "author_profile": "https://Stackoverflow.com/users/13583510", "pm_score": 2, "selected": true, "text": "Date getDay() reduce const x = { \"data\": { \"fetchOrdersAndRequest\": [{ \"id\": \"PI786...
2022/11/07
[ "https://Stackoverflow.com/questions/74344033", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6419405/" ]
74,344,065
<p>I'm trying to change the value of the text which is the 'placeholder' in this method. But for some reason it's not updating to the new value that i wrote &amp; retrieved from the dialog. I even tested to see what's the value of 'placeholder' and it returned the correct value/text that i wrote in the dialog but still...
[ { "answer_id": 74344273, "author": "cmgchess", "author_id": 13583510, "author_profile": "https://Stackoverflow.com/users/13583510", "pm_score": 2, "selected": true, "text": "Date getDay() reduce const x = { \"data\": { \"fetchOrdersAndRequest\": [{ \"id\": \"PI786...
2022/11/07
[ "https://Stackoverflow.com/questions/74344065", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18464277/" ]
74,344,072
<p>I'm developing the interface of a music web app , so i fetched data from an API and stored in state, all executed by one function , to be displayed on the interphase .The code is below :</p> <pre><code>/* function fetching the data*/ function getUsChart() { const options = { method: 'GET', headers:...
[ { "answer_id": 74344273, "author": "cmgchess", "author_id": 13583510, "author_profile": "https://Stackoverflow.com/users/13583510", "pm_score": 2, "selected": true, "text": "Date getDay() reduce const x = { \"data\": { \"fetchOrdersAndRequest\": [{ \"id\": \"PI786...
2022/11/07
[ "https://Stackoverflow.com/questions/74344072", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17492736/" ]
74,344,078
<p>I'm new to c++ and don't know how to let main thread wait for all async threads done. I refered <a href="https://stackoverflow.com/questions/66265652/wait-for-async-file-write-to-finish-before-exiting-main-thread">this</a> but makes void consume() not parallel.</p> <pre><code>#include &lt;iostream&gt; #include &lt;v...
[ { "answer_id": 74344319, "author": "Frodyne", "author_id": 11829247, "author_profile": "https://Stackoverflow.com/users/11829247", "pm_score": 1, "selected": false, "text": "m_futures.back().wait(); std::async consume() wait get main main" }, { "answer_id": 74344361, "author"...
2022/11/07
[ "https://Stackoverflow.com/questions/74344078", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19936966/" ]
74,344,080
<p>I want to list customer_id's that have made purchases from every distinctly available year from a column.</p> <p>The column is in sales.orders called 'order_date'</p> <p>This is what I've done so far (didn't work):</p> <pre><code>--List customers who've made purchases in every year SELECT customer_id FROM sales.orde...
[ { "answer_id": 74344319, "author": "Frodyne", "author_id": 11829247, "author_profile": "https://Stackoverflow.com/users/11829247", "pm_score": 1, "selected": false, "text": "m_futures.back().wait(); std::async consume() wait get main main" }, { "answer_id": 74344361, "author"...
2022/11/07
[ "https://Stackoverflow.com/questions/74344080", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15407573/" ]
74,344,082
<p>How to make Extended floating popup in bottomBarNavigation, like in this image</p> <p><a href="https://i.stack.imgur.com/TYYef.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TYYef.png" alt="Want this type of design" /></a></p>
[ { "answer_id": 74344317, "author": "eamirho3ein", "author_id": 10306997, "author_profile": "https://Stackoverflow.com/users/10306997", "pm_score": 3, "selected": true, "text": "BottomNavigationBar BottomNavigationBar(\n type: BottomNavigationBarType.fixed,\n currentIndex: 0,\n ...
2022/11/07
[ "https://Stackoverflow.com/questions/74344082", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16220278/" ]
74,344,085
<p>As of now, I can delete a record based on rank without checking if it exists, after that, it will pop up a message &quot;Movie deleted&quot; to notify the user.</p> <pre><code>protected void bn_delete_Click(object sender, EventArgs e) { string rank = tb_rank.Text; string quer...
[ { "answer_id": 74344167, "author": "rbdeenk", "author_id": 18278998, "author_profile": "https://Stackoverflow.com/users/18278998", "pm_score": 1, "selected": false, "text": "ExecuteNonQuery()" }, { "answer_id": 74344178, "author": "Zohar Peled", "author_id": 3094533, ...
2022/11/07
[ "https://Stackoverflow.com/questions/74344085", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20438172/" ]
74,344,124
<p>I have this time here : <code>2017-08-05T05:21:10.6582942Z</code><br /> And I want to convert it into <code>%Y-%m-%d %H:%M:%S</code><br /> I can do that using some funky methods such as :</p> <pre class="lang-py prettyprint-override"><code>date = &quot;2017-08-05T05:21:10.6582942Z&quot; new_date = date[:11] + &quot;...
[ { "answer_id": 74344362, "author": "The Myth", "author_id": 15042008, "author_profile": "https://Stackoverflow.com/users/15042008", "pm_score": 0, "selected": false, "text": "datetime import datetime as dt\n string datetime date = \"2017-08-05T05:21:10.6582942Z\"\nnew_date = dt.datetime....
2022/11/07
[ "https://Stackoverflow.com/questions/74344124", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12025753/" ]
74,344,136
<p>Its probably a <em>very</em> basic thing.</p> <p>but i was wondering how to calculate and sum up the result in a new column.</p> <p>lets say i have a variable that holds this table below</p> <pre><code>fresh apples eaten ------------ ----- 2 1 71 15 89 32 ...
[ { "answer_id": 74344362, "author": "The Myth", "author_id": 15042008, "author_profile": "https://Stackoverflow.com/users/15042008", "pm_score": 0, "selected": false, "text": "datetime import datetime as dt\n string datetime date = \"2017-08-05T05:21:10.6582942Z\"\nnew_date = dt.datetime....
2022/11/07
[ "https://Stackoverflow.com/questions/74344136", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17070371/" ]
74,344,183
<p>I have to create a progress bar that has to be fully responsive. In order to be responsive I don't want the progress bar class to have a fixed width, but when I put auto in width, line of progress bar is detached from the star also if I give to them auto width</p> <p>Fixed width: look good <a href="https://i.stack.i...
[ { "answer_id": 74345421, "author": "Alexis", "author_id": 13986485, "author_profile": "https://Stackoverflow.com/users/13986485", "pm_score": 3, "selected": true, "text": "display: flex flex-grow: 1" }, { "answer_id": 74345814, "author": "MAYUR SANCHETI", "author_id": 122...
2022/11/07
[ "https://Stackoverflow.com/questions/74344183", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19533023/" ]
74,344,198
<p>I am trying to get a stream of data displaying on my console, but I'm probably not aware of the right tools. If I try to get the data from curl it works fine and looks like this:</p> <pre><code>C:\Users\user&gt;curl localhost:8080/slow/5 5 4 3 2 1 0 C:\Users\user&gt; </code></pre> <p>First I tried to use a standard...
[ { "answer_id": 74344505, "author": "Ali Celebi", "author_id": 5033499, "author_profile": "https://Stackoverflow.com/users/5033499", "pm_score": 0, "selected": false, "text": "of app.component.ts" }, { "answer_id": 74344992, "author": "Tobias S.", "author_id": 8613630, ...
2022/11/07
[ "https://Stackoverflow.com/questions/74344198", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9419947/" ]
74,344,212
<p>I want to create a login method for my spring application. But when I try to call the <code>getUserByAuthentication</code> method, I get a null pointer exception. Here is my code: Function calling the error:</p> <pre><code>@PostMapping(path = &quot;/online&quot;) public ResponseEntity&lt;?&gt; onlineRequest(@Request...
[ { "answer_id": 74344282, "author": "YCF_L", "author_id": 5558072, "author_profile": "https://Stackoverflow.com/users/5558072", "pm_score": 3, "selected": true, "text": "@Autowired @Service UserManager @Service\npublic class UserManager {\n static UserManager @Autowired\nprivate UserManag...
2022/11/07
[ "https://Stackoverflow.com/questions/74344212", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20377250/" ]
74,344,217
<p>When I run this code via <code>uvicorn main:app</code> everything works, but when I run it using Deta, I get <code>Internal Server Error</code> and only <code>GET</code> endpoint works (the <code>POST</code> one is not even called as it was supposed to). Can you please help me? Thanks in advance.</p> <pre class="lan...
[ { "answer_id": 74346221, "author": "Chris", "author_id": 17865804, "author_profile": "https://Stackoverflow.com/users/17865804", "pm_score": 1, "selected": false, "text": "/tmp /tmp Path pathlib pathlib ./ path = Path(\"./tmp\") / file.filename\n Internal Server Error logging" }, { ...
2022/11/07
[ "https://Stackoverflow.com/questions/74344217", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13861972/" ]
74,344,241
<p>I have a dataframe like:</p> <pre><code>name address result rishi los angeles true tushar california false keerthi texas false </code></pre> <p>I want to iterate through each row of the dataframe and check if result value is &quot;true&quot; or &quot;false&quot;</p> <p>if true i want ...
[ { "answer_id": 74344327, "author": "Joakim Torsvik", "author_id": 19277819, "author_profile": "https://Stackoverflow.com/users/19277819", "pm_score": 1, "selected": false, "text": "new_df = df[df['result'] == True]\n df['address_new'] = [df.loc[i]['address'] if df.loc[i] == True else Non...
2022/11/07
[ "https://Stackoverflow.com/questions/74344241", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
74,344,248
<p>I want to run a macro in a <code>COPY INTO</code> statement to S3 bucket. Apparently in snowflake I can't do dynamic path. So I'm doing a hacky way to solve this.</p> <pre><code>{% macro unload_snowflake_to_s3() %} {# Get all tables and views from the information schema. #} {%- set query -%} select ...
[ { "answer_id": 74344327, "author": "Joakim Torsvik", "author_id": 19277819, "author_profile": "https://Stackoverflow.com/users/19277819", "pm_score": 1, "selected": false, "text": "new_df = df[df['result'] == True]\n df['address_new'] = [df.loc[i]['address'] if df.loc[i] == True else Non...
2022/11/07
[ "https://Stackoverflow.com/questions/74344248", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6308605/" ]
74,344,266
<p>I have data as follows:</p> <pre><code>library(data.table) dat &lt;- fread(&quot;varA, varB some_string a1 other_string a3 blabla a3_2&quot;) renaming_list &lt;- c( some_name = &quot;a1&quot;, other_name = &quot;a3&quot;) </code></pre> <p>I am probably overthinking this...
[ { "answer_id": 74344327, "author": "Joakim Torsvik", "author_id": 19277819, "author_profile": "https://Stackoverflow.com/users/19277819", "pm_score": 1, "selected": false, "text": "new_df = df[df['result'] == True]\n df['address_new'] = [df.loc[i]['address'] if df.loc[i] == True else Non...
2022/11/07
[ "https://Stackoverflow.com/questions/74344266", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8071608/" ]
74,344,312
<p>I have three Table. The first Table contains a Rezipe with a id, the second Table contains the rezeptid with the ingredients and the third Table shows the ingredient with a restriction(vegan, meat...).</p> <p>Im looking for a way to select a recipe if the ingredients dont contain a specific restriction and if it con...
[ { "answer_id": 74344327, "author": "Joakim Torsvik", "author_id": 19277819, "author_profile": "https://Stackoverflow.com/users/19277819", "pm_score": 1, "selected": false, "text": "new_df = df[df['result'] == True]\n df['address_new'] = [df.loc[i]['address'] if df.loc[i] == True else Non...
2022/11/07
[ "https://Stackoverflow.com/questions/74344312", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18308928/" ]
74,344,323
<p>I can't find the solution to this apparently simple problem.</p> <p>I have a large dataframe. Every time a 0 appears in the index column it means that the data comes from a different source. I would like to substitute the first '0' with the first element of my list until the next '0'. The second '0' with the second...
[ { "answer_id": 74344327, "author": "Joakim Torsvik", "author_id": 19277819, "author_profile": "https://Stackoverflow.com/users/19277819", "pm_score": 1, "selected": false, "text": "new_df = df[df['result'] == True]\n df['address_new'] = [df.loc[i]['address'] if df.loc[i] == True else Non...
2022/11/07
[ "https://Stackoverflow.com/questions/74344323", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20438589/" ]
74,344,335
<p>I have a class and I want to know when my class leave my tree widget. I think I can do that with lifecycle of app but I don't know how to do that.<br /> please help</p>
[ { "answer_id": 74344327, "author": "Joakim Torsvik", "author_id": 19277819, "author_profile": "https://Stackoverflow.com/users/19277819", "pm_score": 1, "selected": false, "text": "new_df = df[df['result'] == True]\n df['address_new'] = [df.loc[i]['address'] if df.loc[i] == True else Non...
2022/11/07
[ "https://Stackoverflow.com/questions/74344335", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20184483/" ]
74,344,337
<p>I am trying to build ionic app and this error shows: <code>ionic build</code></p> <pre><code>&gt; vue-cli-service build [INFO] Looks like @vue/cli-service isn't installed in this project. This package is required for this command to work properly. ? Install @vue/cli-service? Yes &gt; npm i -D -E @vu...
[ { "answer_id": 74344327, "author": "Joakim Torsvik", "author_id": 19277819, "author_profile": "https://Stackoverflow.com/users/19277819", "pm_score": 1, "selected": false, "text": "new_df = df[df['result'] == True]\n df['address_new'] = [df.loc[i]['address'] if df.loc[i] == True else Non...
2022/11/07
[ "https://Stackoverflow.com/questions/74344337", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7043908/" ]
74,344,366
<p>I want to know how methods are declared in Laravel's facades. For example, I want to create a user-defined function to index my login page. Firstly, I need to check whether the user is already authenticated. To do that, I will use Laravel's Auth facade.</p> <pre><code>public function indexLogin() { if (Auth::ch...
[ { "answer_id": 74344327, "author": "Joakim Torsvik", "author_id": 19277819, "author_profile": "https://Stackoverflow.com/users/19277819", "pm_score": 1, "selected": false, "text": "new_df = df[df['result'] == True]\n df['address_new'] = [df.loc[i]['address'] if df.loc[i] == True else Non...
2022/11/07
[ "https://Stackoverflow.com/questions/74344366", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16386326/" ]
74,344,367
<p>I have a data frame:</p> <pre><code>pl.DataFrame({'no_of_docs':[[9,4,2], [3,9,1,10], [10,3,2,1], [10,30], [1,2,3,6,4,5]]}) </code></pre> <p>Here the column: no_of_docs is a list[int] type one: i would like...
[ { "answer_id": 74344620, "author": "myamulla_ciencia", "author_id": 9479925, "author_profile": "https://Stackoverflow.com/users/9479925", "pm_score": 2, "selected": false, "text": "df.with_column(pl.col('no_of_docs').arr.arg_max().alias('idx')\n" }, { "answer_id": 74344776, "...
2022/11/07
[ "https://Stackoverflow.com/questions/74344367", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9479925/" ]
74,344,388
<p>I'm trying to find a fast way to solve the subset sum problem with a few modifications, I know the exact size of the subset I need to get the target number and I also know the input array to be a range from 1 to 2000. My questions is if there is any way to improve upon the base subset sum problem solution to make it...
[ { "answer_id": 74344923, "author": "DrosvarG", "author_id": 11502610, "author_profile": "https://Stackoverflow.com/users/11502610", "pm_score": 1, "selected": false, "text": "O(input array size) O(1) void subsetSum(std::vector<int>() array, int subArraySize, int targetNumber)\n{\n int...
2022/11/07
[ "https://Stackoverflow.com/questions/74344388", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12243641/" ]
74,344,396
<p>I'm trying to find a regex pattern to extract some names that apprear in a string after the first comma (David Peter Richard) below.</p> <p>Example string: PALMER, David Peter Richard</p> <p>I came across <a href="https://stackoverflow.com/questions/8224270/regular-expression-to-get-all-characters-before">this threa...
[ { "answer_id": 74344923, "author": "DrosvarG", "author_id": 11502610, "author_profile": "https://Stackoverflow.com/users/11502610", "pm_score": 1, "selected": false, "text": "O(input array size) O(1) void subsetSum(std::vector<int>() array, int subArraySize, int targetNumber)\n{\n int...
2022/11/07
[ "https://Stackoverflow.com/questions/74344396", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1686633/" ]
74,344,473
<p>When calling a function that gets returned from a custom hook (<code>useOutput</code>) in one of my components, I get an Invalid hook call error with the following message:</p> <pre><code>Uncaught Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one...
[ { "answer_id": 74344591, "author": "TalOrlanczyk", "author_id": 13582100, "author_profile": "https://Stackoverflow.com/users/13582100", "pm_score": 0, "selected": false, "text": "useOutput(outputId, id, flowName)[1](output);\n" }, { "answer_id": 74344654, "author": "Sachila R...
2022/11/07
[ "https://Stackoverflow.com/questions/74344473", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14432451/" ]
74,344,489
<p>This is the signature of my object create function:</p> <p><code>struct object *object_create();</code></p> <p>If the object is successfully created it it returns pointer to the object, and <code>0</code> otherwise.</p> <p>How would I return some error codes from the same function? I need about ten codes.</p> <p>I s...
[ { "answer_id": 74344577, "author": "Konrad Rudolph", "author_id": 1968, "author_profile": "https://Stackoverflow.com/users/1968", "pm_score": 2, "selected": false, "text": "errno int object_create(struct object **ret); struct object *object_create(int *err); errno struct object Result<T,...
2022/11/07
[ "https://Stackoverflow.com/questions/74344489", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1202172/" ]
74,344,520
<p>I am new to angular and i have been trying to display some data in the website. But all i am getting is error</p> <p>Here is my code snippet.</p> <pre><code>ngOnInit(): void { window.scrollTo(0, 0) this.loggeduser = JSON.parse(localStorage.getItem('user')) console.log(this.loggeduser) this.customer_id = this.loggedu...
[ { "answer_id": 74344577, "author": "Konrad Rudolph", "author_id": 1968, "author_profile": "https://Stackoverflow.com/users/1968", "pm_score": 2, "selected": false, "text": "errno int object_create(struct object **ret); struct object *object_create(int *err); errno struct object Result<T,...
2022/11/07
[ "https://Stackoverflow.com/questions/74344520", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15238153/" ]
74,344,542
<p>I have a list. I want to convert it to string. However, the results are a bit different from what I expected.</p> <p>Expected result:</p> <pre><code>'[&quot;a&quot;, &quot;b&quot;, &quot;c&quot;, &quot;d&quot;]' </code></pre> <p>Actual result:</p> <pre><code>[a, b, c, d] </code></pre> <p>My code:</p> <pre><code>fina...
[ { "answer_id": 74344573, "author": "Ivo", "author_id": 1514861, "author_profile": "https://Stackoverflow.com/users/1514861", "pm_score": 3, "selected": true, "text": "jsonEncode print(jsonEncode(list));\n" }, { "answer_id": 74344623, "author": "Sachin Kumawat", "author_id...
2022/11/07
[ "https://Stackoverflow.com/questions/74344542", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16124033/" ]
74,344,550
<p>I want to pass data from the request via axios in the root component to the child using Vue. Unfortunately, only one field is displayed correctly - &quot;title&quot;. But I also need to output &quot;body&quot;.</p> <p>Ps: This is my first time working with Vue, and I would like to know how it can be done correctly</...
[ { "answer_id": 74344573, "author": "Ivo", "author_id": 1514861, "author_profile": "https://Stackoverflow.com/users/1514861", "pm_score": 3, "selected": true, "text": "jsonEncode print(jsonEncode(list));\n" }, { "answer_id": 74344623, "author": "Sachin Kumawat", "author_id...
2022/11/07
[ "https://Stackoverflow.com/questions/74344550", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11742613/" ]
74,344,580
<p>Hey i looking for a option to get the Element of a Control by finding the Parent. Does this function exist in Xamarin.Forms / .Net MAUI?</p> <p><strong>(Parents are GRID and Childrens are Frames)</strong></p> <p>It needs to be find the current Parent and remove the children. After that it should add the diced number...
[ { "answer_id": 74345776, "author": "Himanshu Dwivedi", "author_id": 3421104, "author_profile": "https://Stackoverflow.com/users/3421104", "pm_score": 1, "selected": false, "text": "var parent = grid.Children;\n//loop through your rowNumber and columnNumber such as 1,1/1,2....\nvar childr...
2022/11/07
[ "https://Stackoverflow.com/questions/74344580", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19416551/" ]
74,344,593
<p>I have React app that would like to make 20% app bar on top and 80% or the rest of the height fulfill with parent height.</p> <pre><code>&lt;div&gt; //Like to make 20% height &lt;div&gt; &lt;p&gt;App bar&lt;/p&gt; &lt;/div&gt; //Like to make 80% height &lt;div&gt; &lt;div&gt;Conte...
[ { "answer_id": 74344612, "author": "xpcrts AKA Rithisak", "author_id": 8200791, "author_profile": "https://Stackoverflow.com/users/8200791", "pm_score": -1, "selected": false, "text": "<div style={{display:\"flex\", flexDirection:\"column\"}}>\n <div style={{height: \"20vh\"}}>\n ...
2022/11/07
[ "https://Stackoverflow.com/questions/74344593", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8200791/" ]
74,344,618
<p>I have this html code where it has a main content on the left and a side bar on the right. My goal is to have the last sidebar (the one with the &quot;faq&quot; class) stick to it's position whenever I scrolled down in the main content and when I scroll back up, it should return all the div class(about,contact,faq)t...
[ { "answer_id": 74344973, "author": "Anh Le Hoang", "author_id": 16315750, "author_profile": "https://Stackoverflow.com/users/16315750", "pm_score": 1, "selected": true, "text": "Sticky the parent element total height of children position: absolute; height: 100% the parent element .row{\n...
2022/11/07
[ "https://Stackoverflow.com/questions/74344618", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18909694/" ]
74,344,626
<p>I want to be able to download a file named approved_leads.zip when clicking on the a tag, but for some reason I keep getting the message &quot;failed - no file&quot;. Even though the path looks correct to me.</p> <pre><code>&lt;a href=&quot;../../assets/approved_leads.zip&quot; download&gt;Download File&lt;/a&gt; </...
[ { "answer_id": 74344973, "author": "Anh Le Hoang", "author_id": 16315750, "author_profile": "https://Stackoverflow.com/users/16315750", "pm_score": 1, "selected": true, "text": "Sticky the parent element total height of children position: absolute; height: 100% the parent element .row{\n...
2022/11/07
[ "https://Stackoverflow.com/questions/74344626", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19389593/" ]
74,344,644
<p>I need to use nested lists, but I can't give them a height, because lists can have their own length depending on the amount of information that comes from the server. I tried sketching a variation but it doesn't work, I get an error - <em><strong>Incorrect use of ParentDataWidget.</strong></em></p> <p>Below is my co...
[ { "answer_id": 74344973, "author": "Anh Le Hoang", "author_id": 16315750, "author_profile": "https://Stackoverflow.com/users/16315750", "pm_score": 1, "selected": true, "text": "Sticky the parent element total height of children position: absolute; height: 100% the parent element .row{\n...
2022/11/07
[ "https://Stackoverflow.com/questions/74344644", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18540229/" ]
74,344,662
<p>I use the following script to make the background of my website change automatically. However, I want a different background to appear after a certain width.</p> <p>I am still quite inexperienced when it comes to jquery and javascript in general, so I need help with this.</p> <p>How can I use multiple breakpoints in...
[ { "answer_id": 74344973, "author": "Anh Le Hoang", "author_id": 16315750, "author_profile": "https://Stackoverflow.com/users/16315750", "pm_score": 1, "selected": true, "text": "Sticky the parent element total height of children position: absolute; height: 100% the parent element .row{\n...
2022/11/07
[ "https://Stackoverflow.com/questions/74344662", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20438799/" ]
74,344,666
<p>How do I encrypt a bash script file as aes 256 base64 and convert it to a linux executable?</p> <p>I encrypted it as aes 256 base64 but I can't run it</p>
[ { "answer_id": 74345252, "author": "Ivan", "author_id": 12607443, "author_profile": "https://Stackoverflow.com/users/12607443", "pm_score": 0, "selected": false, "text": "$ cat enc\n#!/bin/bash\nsed '1,/encrypted part/d;1,/encrypted part/d' $0 | base64 -d > test2\nchmod +x test2\n./test2...
2022/11/07
[ "https://Stackoverflow.com/questions/74344666", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20073616/" ]
74,344,678
<p>Sup' I would like to link an IFC file with Revit Design-Automation, not to directly open it because opening causes troubles: <a href="https://www.cadlinecommunity.co.uk/hc/en-us/articles/4624032130205-Revit-2022-Tip-Working-with-IFC-files-Elements-missing-limited-functionality-" rel="nofollow noreferrer">Working wit...
[ { "answer_id": 74345252, "author": "Ivan", "author_id": 12607443, "author_profile": "https://Stackoverflow.com/users/12607443", "pm_score": 0, "selected": false, "text": "$ cat enc\n#!/bin/bash\nsed '1,/encrypted part/d;1,/encrypted part/d' $0 | base64 -d > test2\nchmod +x test2\n./test2...
2022/11/07
[ "https://Stackoverflow.com/questions/74344678", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4916074/" ]
74,344,756
<p>In the second foreach loop I have a dropdown list I want to display when I press the edit button. I want to display the dropdown list for which row I want to edit, right now it displays the top row matter the edit button I click. I guess I need to clarify each foreach value with an Id and connect each edit button wi...
[ { "answer_id": 74345252, "author": "Ivan", "author_id": 12607443, "author_profile": "https://Stackoverflow.com/users/12607443", "pm_score": 0, "selected": false, "text": "$ cat enc\n#!/bin/bash\nsed '1,/encrypted part/d;1,/encrypted part/d' $0 | base64 -d > test2\nchmod +x test2\n./test2...
2022/11/07
[ "https://Stackoverflow.com/questions/74344756", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20438775/" ]
74,344,758
<p>I using Grid Bootstrap</p> <p><a href="https://i.stack.imgur.com/giJOI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/giJOI.png" alt="enter image description here" /></a></p> <p>when I switch back to my Mobile screen I want <a href="https://i.stack.imgur.com/RYPJm.png" rel="nofollow noreferrer"><...
[ { "answer_id": 74345335, "author": "dante velli", "author_id": 19338216, "author_profile": "https://Stackoverflow.com/users/19338216", "pm_score": 0, "selected": false, "text": "height width flex-base bootstrap only css h-lg-100 <head>\n <meta name=\"viewport\" content=\"width=device-wi...
2022/11/07
[ "https://Stackoverflow.com/questions/74344758", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15941000/" ]
74,344,760
<p>Trying to return Ok response but getting the exception:</p> <pre><code>Cannot access a disposed object.\nObject name: 'AsyncCursor </code></pre> <p>Getting this on first line in if condition</p> <pre><code> var users = await _userCollection.FindAsync(user =&gt; user.Phone == loginUser.phone); // if u...
[ { "answer_id": 74345335, "author": "dante velli", "author_id": 19338216, "author_profile": "https://Stackoverflow.com/users/19338216", "pm_score": 0, "selected": false, "text": "height width flex-base bootstrap only css h-lg-100 <head>\n <meta name=\"viewport\" content=\"width=device-wi...
2022/11/07
[ "https://Stackoverflow.com/questions/74344760", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11668651/" ]
74,344,812
<p>How to mock the following statement :</p> <pre><code>int var = func1(func2(obj.func3())); </code></pre> <p>Expecting the entire result to be mocked to return some value to var</p>
[ { "answer_id": 74344852, "author": "YCF_L", "author_id": 5558072, "author_profile": "https://Stackoverflow.com/users/5558072", "pm_score": 2, "selected": false, "text": "when(obj.func3()).thenReturn(someValue);\nwhen(func2(any())).thenReturn(someValue2);\n" }, { "answer_id": 7434...
2022/11/07
[ "https://Stackoverflow.com/questions/74344812", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1473330/" ]