qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,369,322 | <p>When it first opened, it said:</p>
<pre><code>~ type :help nvim<Enter> if you are new!
~ type :checkhealth<Enter> to optimize Nvim
~ type :q<Enter> to exit
~ type :help<Enter> for help... | [
{
"answer_id": 74369393,
"author": "dollar",
"author_id": 20166094,
"author_profile": "https://Stackoverflow.com/users/20166094",
"pm_score": 3,
"selected": true,
"text": "$(document).ready(function() {\n something();\n});\n\nfunction something() {\n var newTh = \"\";\n var th =... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74369322",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6310966/"
] |
74,369,324 | <p>I am trying to integrate traefik ingress route with middleware (forward-auth) for wss (secure websocket protocol).
For https requests ingressRoute works fine with forward-auth,
but for wss its not reaching to forward-auth, it's bypassing the middleware.</p>
<p>Tried many ingressRoutes with different pathprefix so th... | [
{
"answer_id": 74369393,
"author": "dollar",
"author_id": 20166094,
"author_profile": "https://Stackoverflow.com/users/20166094",
"pm_score": 3,
"selected": true,
"text": "$(document).ready(function() {\n something();\n});\n\nfunction something() {\n var newTh = \"\";\n var th =... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74369324",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19684021/"
] |
74,369,368 | <p>Can anyone please help on below requirement, how to implement.</p>
<p>When I click on radio buttons with keyboard up and down arrows it is moving up and down normally .</p>
<p>But I need ,when we click on propulsion button and then if I press down arrow radio button should go to off.
And when we are on off, if we pr... | [
{
"answer_id": 74372706,
"author": "Xic",
"author_id": 19160987,
"author_profile": "https://Stackoverflow.com/users/19160987",
"pm_score": 0,
"selected": false,
"text": " Column {\n Label {\n text: qsTr(\"Radio:\")\n }\n\n RadioButton {\n id: test1\n check... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74369368",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19682752/"
] |
74,369,415 | <p>How I call other other functions from a helper file that isn't a component?
I have multiple components using the same 3 functions but the 3 functions are all dependent on a dom event/event listener and requires the "this" to be passed down to other functions.</p>
<p>Do I need to create a functional compone... | [
{
"answer_id": 74372706,
"author": "Xic",
"author_id": 19160987,
"author_profile": "https://Stackoverflow.com/users/19160987",
"pm_score": 0,
"selected": false,
"text": " Column {\n Label {\n text: qsTr(\"Radio:\")\n }\n\n RadioButton {\n id: test1\n check... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74369415",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11576275/"
] |
74,369,426 | <p>I have the following CSS and need to programmatically update it after clicking a button but I cannot figure out how.</p>
<p>This is the initial CSS</p>
<pre><code>.hoverable:hover {
color: red;
}
</code></pre>
<p>I need the class to have the following CSS after clicking the button.</p>
<pre><code>.hoverable:hover ... | [
{
"answer_id": 74369447,
"author": "Michael M.",
"author_id": 13376511,
"author_profile": "https://Stackoverflow.com/users/13376511",
"pm_score": 0,
"selected": false,
"text": "document.querySelectorAll() CSSStyleRule document.getElementById('btn').addEventListener('click', () => {\n co... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74369426",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5957242/"
] |
74,369,453 | <p>So, I'm moving from Wix to Neocities. And I can't really just take the pages from Wix and paste them into Neocities, so I need to remake a few things by hand now.
I already asked google about this and got this as an answer:
<a href="https://stackoverflow.com/questions/48474/how-do-i-position-one-image-on-top-of-anot... | [
{
"answer_id": 74369447,
"author": "Michael M.",
"author_id": 13376511,
"author_profile": "https://Stackoverflow.com/users/13376511",
"pm_score": 0,
"selected": false,
"text": "document.querySelectorAll() CSSStyleRule document.getElementById('btn').addEventListener('click', () => {\n co... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74369453",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12007351/"
] |
74,369,454 | <p>I have a dataset <code>df</code> that looks like this:</p>
<pre><code>ID Week VarA VarB VarC VarD
s001 w1 2 5 4 7
s001 w2 4 5 2 3
s001 w3 7 2 0 1
s002 w1 4 0 9 8
s002 w2 1 5 2 ... | [
{
"answer_id": 74412205,
"author": "has2k1",
"author_id": 832573,
"author_profile": "https://Stackoverflow.com/users/832573",
"pm_score": 3,
"selected": true,
"text": "import pandas as pd\nfrom plotnine import *\n\ndf1 = pd.DataFrame({\n 'x': list(\"abc\"),\n 'y': [1, 2, 3],\n '... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74369454",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4738819/"
] |
74,369,472 | <p>I have a file with the following text:</p>
<pre><code><div>
<b>a:</b> <a class='a' href='/a/1'>a1</a><br>
<b>b:</b> <a class='b' href='/b/2'>b2</a><br>
<b>c:</b> <a class='c' href='/c/3/'>c3</a><br>
<b>d:</b> ... | [
{
"answer_id": 74369662,
"author": "glenn jackman",
"author_id": 7552,
"author_profile": "https://Stackoverflow.com/users/7552",
"pm_score": 0,
"selected": false,
"text": "$ echo aaaab | perl -nE '/a*(a+b)/ && say $1'\nab\n$ echo aaaab | perl -nE '/a*?(a+b)/ && say $1'\naaaab\n a*? a+ $ ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74369472",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1736903/"
] |
74,369,480 | <p>I'm trying to understand this code, but I can't really make any sense of it. I only understand the <code>var numbers</code> and <code>var operators</code>.</p>
<p>What does the code inside the while loop mean? Especially the<br />
<code>number[divide] / numbers[divide + 1]</code></p>
<pre class="lang-js prettyprint... | [
{
"answer_id": 74369662,
"author": "glenn jackman",
"author_id": 7552,
"author_profile": "https://Stackoverflow.com/users/7552",
"pm_score": 0,
"selected": false,
"text": "$ echo aaaab | perl -nE '/a*(a+b)/ && say $1'\nab\n$ echo aaaab | perl -nE '/a*?(a+b)/ && say $1'\naaaab\n a*? a+ $ ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74369480",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18314283/"
] |
74,369,486 | <p>In Solidity, given a Smart Contract instance named <code>foo</code></p>
<pre class="lang-js prettyprint-override"><code>MySmartContract foo = new MySmartContract()
</code></pre>
<p>I can get this Smart Contract instance's address by using <code>address(foo)</code></p>
<pre class="lang-js prettyprint-override"><code>... | [
{
"answer_id": 74369690,
"author": "Yilmaz",
"author_id": 10262805,
"author_profile": "https://Stackoverflow.com/users/10262805",
"pm_score": 3,
"selected": true,
"text": "interface InterfaceA {\n function count() external view returns (uint256);\n function increment() external;\n}... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74369486",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11806050/"
] |
74,369,529 | <p>Lately I've been deep diving more about JS modules, Webpack, the difference between ES modules and CommonJS, and I came across the dynamic import topic. I was curious on how Webpack converts the dynamic <code>import()</code> statement and when I take a look at the generated bundled JS from webpack, turns out it load... | [
{
"answer_id": 74369690,
"author": "Yilmaz",
"author_id": 10262805,
"author_profile": "https://Stackoverflow.com/users/10262805",
"pm_score": 3,
"selected": true,
"text": "interface InterfaceA {\n function count() external view returns (uint256);\n function increment() external;\n}... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74369529",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13013820/"
] |
74,369,539 | <p>I have Text field which will take a long message from the user and I set <strong>expands</strong> to True</p>
<p>the problem is the hint text is not at the beginning of the the line, How do I change its position ?</p>
<p><a href="https://i.stack.imgur.com/xPqjg.png" rel="nofollow noreferrer"><img src="https://i.stac... | [
{
"answer_id": 74369690,
"author": "Yilmaz",
"author_id": 10262805,
"author_profile": "https://Stackoverflow.com/users/10262805",
"pm_score": 3,
"selected": true,
"text": "interface InterfaceA {\n function count() external view returns (uint256);\n function increment() external;\n}... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74369539",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17733339/"
] |
74,369,542 | <p>I'm still trying to understand how to use JQ to get what I want. I want to get the size of all snapshots in my account older than a specific date and then add them up so that I can calculate cost. I am able to do this without the date filtering with this.</p>
<pre><code>aws ec2 describe-snapshots --profile my_prof... | [
{
"answer_id": 74369690,
"author": "Yilmaz",
"author_id": 10262805,
"author_profile": "https://Stackoverflow.com/users/10262805",
"pm_score": 3,
"selected": true,
"text": "interface InterfaceA {\n function count() external view returns (uint256);\n function increment() external;\n}... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74369542",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3756981/"
] |
74,369,545 | <p>I have created a login screen with textformfield for email id and password using flutter. Also, I have added the validation to check these fields. The code is as below;</p>
<pre><code>import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget b... | [
{
"answer_id": 74369690,
"author": "Yilmaz",
"author_id": 10262805,
"author_profile": "https://Stackoverflow.com/users/10262805",
"pm_score": 3,
"selected": true,
"text": "interface InterfaceA {\n function count() external view returns (uint256);\n function increment() external;\n}... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74369545",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14400294/"
] |
74,369,582 | <p>Can anybody explain how Apollo serves both the Sandbox's html and the graphql query handler simultaneously on the same route endpoint?</p>
<p>SPECIFICALLY, What protocol(s), method(s), and how is the body content used? Is this all done via headers? Thanks for the semi-technical deep dive.</p>
| [
{
"answer_id": 74369690,
"author": "Yilmaz",
"author_id": 10262805,
"author_profile": "https://Stackoverflow.com/users/10262805",
"pm_score": 3,
"selected": true,
"text": "interface InterfaceA {\n function count() external view returns (uint256);\n function increment() external;\n}... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74369582",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5400055/"
] |
74,369,654 | <p>Could anyone help me understand this, i've tried investigating into an issue all day but can't seem to see much configuration choices on sonarcloud for it. I see online that sonarqube is being used I believe under the hood as version 8 and see online that I may need to update to 9. Does this seem like my issue or am... | [
{
"answer_id": 74369690,
"author": "Yilmaz",
"author_id": 10262805,
"author_profile": "https://Stackoverflow.com/users/10262805",
"pm_score": 3,
"selected": true,
"text": "interface InterfaceA {\n function count() external view returns (uint256);\n function increment() external;\n}... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74369654",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2416223/"
] |
74,369,682 | <p>I'm working on a morse code conversion from morse code to english. I'm stuck on one part, I need to be able to add in space when 2 spaces appear in a row on the morse code, but i'm unsure how to do this. The Rule is, Each letter appears after a space in the morse code, each space appears after 2 spaces in the morse ... | [
{
"answer_id": 74369690,
"author": "Yilmaz",
"author_id": 10262805,
"author_profile": "https://Stackoverflow.com/users/10262805",
"pm_score": 3,
"selected": true,
"text": "interface InterfaceA {\n function count() external view returns (uint256);\n function increment() external;\n}... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74369682",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20304864/"
] |
74,369,687 | <p>I am using below code to make my text content in single line and If exceeds limits displaying three dots as suffix of text:</p>
<pre><code>Container(
color: blackColorOP11,
width: 250.w,
child: Text(
"1234567890123kjhkjhgjsadadddah&qu... | [
{
"answer_id": 74369723,
"author": "Jaimin Modi",
"author_id": 4827817,
"author_profile": "https://Stackoverflow.com/users/4827817",
"pm_score": 0,
"selected": false,
"text": "\"text content dummy\".toString().length>18?\n\"text content dummy\".toString().substring(0,18) + '...':\n\"text... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74369687",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4827817/"
] |
74,369,706 | <p>*New to Javascript</p>
<p>The code below is a section that changes the image source to the saved one.</p>
<p><strong>Desired result:</strong> When there is no source for the image I want to display a 'default.jpg' image.</p>
<p>Perhaps, is there another way to write this logic out as a simple(r) condition?</p>
<p>At... | [
{
"answer_id": 74369793,
"author": "ChanHyeok-Im",
"author_id": 6329353,
"author_profile": "https://Stackoverflow.com/users/6329353",
"pm_score": 2,
"selected": true,
"text": "set_image({\n image_data_url: items.image_data_url ?? \"\",\n image_filename: items.image_filename ?? './asset... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74369706",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20435771/"
] |
74,369,755 | <p>Hey guys trying to attempt to create my own basic hockey analytic program. While trying to get all my information I gave been stumped by this error. Tried looking a bunch of things up and nothing seemed to work for me. I am new to using pandas and numpy. Any help would be much appreciated , thank you!!</p>
<pre><cod... | [
{
"answer_id": 74369793,
"author": "ChanHyeok-Im",
"author_id": 6329353,
"author_profile": "https://Stackoverflow.com/users/6329353",
"pm_score": 2,
"selected": true,
"text": "set_image({\n image_data_url: items.image_data_url ?? \"\",\n image_filename: items.image_filename ?? './asset... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74369755",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15263010/"
] |
74,369,769 | <p>Given input lists:</p>
<pre><code>L1 = [("A","p1",20), ("B","p2",30)]
L2 = [("A","p1",100), ("c","p3",35)]
</code></pre>
<p>Expected output:</p>
<pre><code>[(A,p1,20,100), (B,p2,30,"not in L2"), ("c","p3",35... | [
{
"answer_id": 74370423,
"author": "Я T",
"author_id": 18790524,
"author_profile": "https://Stackoverflow.com/users/18790524",
"pm_score": 1,
"selected": false,
"text": "L1 = [(\"A\",\"p1\",20), (\"B\",\"p2\",30)]\nL2 = [(\"A\",\"p1\",100), (\"c\",\"p3\",35)]\n\n# tranform L1, L2 to dict... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74369769",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8046567/"
] |
74,369,824 | <p>I'm coding <code>await user?.reload();//here</code> to reload `UserClass ' and during reloading, want to display indicator.</p>
<p>I learned Using <code>FutureProvider-when() method</code> from river_pod or 'FutureBuilder-snapshot` to implement this indicator.</p>
<p>Is these resolve is general or wonder there is mo... | [
{
"answer_id": 74370505,
"author": "SugiuraY",
"author_id": 6843543,
"author_profile": "https://Stackoverflow.com/users/6843543",
"pm_score": 0,
"selected": false,
"text": "flutter_easyloading package import 'package:flutter_easyloading/flutter_easyloading.dart';\nvoid currentUserNotNull... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74369824",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6843543/"
] |
74,369,833 | <p>I have a file input.txt with two columns, I want to split the second column by ";" and transpose the unique entries then count and list how many matches are in column 1.</p>
<p><strong>This is my tab-delimited input.txt file</strong></p>
<pre><code>Gene Biological_Process
BALF2 metabolic process
CHD4... | [
{
"answer_id": 74370299,
"author": "MrMattBusby",
"author_id": 8507777,
"author_profile": "https://Stackoverflow.com/users/8507777",
"pm_score": 1,
"selected": false,
"text": "open your file ... iterate over each line split strip dict[gene...] = process... .items gene process\nA cell org... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74369833",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10538428/"
] |
74,369,849 | <p>im 100% new to coding and just started to follow some guides a few days ago. I am now making a digital clock for my desktop and i want to change my background to a custom image that i have.</p>
<p>Can someone explain to me where i can change it so that the background becomes my image that i have? BR</p>
<pre><code>f... | [
{
"answer_id": 74369945,
"author": "Krishnendu Bhowmick",
"author_id": 5237559,
"author_profile": "https://Stackoverflow.com/users/5237559",
"pm_score": 0,
"selected": false,
"text": "from tkinter import Tk\nfrom tkinter import Label\nimport time\nfrom PIL import Image, ImageTk\n\nIMAGE_... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74369849",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20455770/"
] |
74,369,852 | <p>I'm trying to learn Ruby on Rails, an I'm kinda stuck with associaton.
My project is to create a simple blog with three table. User, Post, and Comment.</p>
<p>In my understanding, after associationg several table with foreign key, rails would automatcily find user_id and post_id. But everytime I try to build comment... | [
{
"answer_id": 74369960,
"author": "Amol Mohite",
"author_id": 12111186,
"author_profile": "https://Stackoverflow.com/users/12111186",
"pm_score": -1,
"selected": true,
"text": "user = User.find 2\npost = user.posts.where(id: 2).first\ncomment = post.comments.build({comment_params}.merge... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74369852",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18330030/"
] |
74,369,944 | <p>I have a code written in Pascal. I have a record type called <code>recordPembeli</code> and I have an <code>array[1..x] of recordPembeli</code>. The <code>x</code> in this array will be the length of the data which the user determines in the body of program <code>readln(x)</code>.</p>
<p>Here is the program:</p>
<pr... | [
{
"answer_id": 74371884,
"author": "Tom Brunberg",
"author_id": 2292722,
"author_profile": "https://Stackoverflow.com/users/2292722",
"pm_score": 3,
"selected": true,
"text": "dynamic var\n x: integer;\n dataPembelian: array of recordPembeli; // dynamic array, no size\n \nbegin\n wri... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74369944",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17611580/"
] |
74,370,006 | <p>I've been playing with returning tuples from methods, so method signatures like this...:</p>
<pre><code>private int GetAlpha() {...} // -1 indicates an error
private bool GetAlpha(out int alphaOut) {...}
</code></pre>
<p>...turn into this:</p>
<pre><code>private (bool Success, int Alpha) GetAlpha() {...}
</code></pr... | [
{
"answer_id": 74370114,
"author": "Slack Groverglow",
"author_id": 3761097,
"author_profile": "https://Stackoverflow.com/users/3761097",
"pm_score": 0,
"selected": false,
"text": "out private bool GetAlpha(out int alphaOut) {...}\n private (int, string) GetAlpha() {}\n out private bool ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74370006",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/264540/"
] |
74,370,038 | <p>I have tried to combine below data according to the result shown as below in sql server.</p>
<p>Raw data:</p>
<p><a href="https://i.stack.imgur.com/QNv9W.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QNv9W.png" alt="enter image description here" /></a></p>
<p>Expected result:</p>
<p><a href="htt... | [
{
"answer_id": 74370162,
"author": "Ian Kenney",
"author_id": 2308473,
"author_profile": "https://Stackoverflow.com/users/2308473",
"pm_score": 2,
"selected": true,
"text": "SELECT\n salesid, \n loyaltyid, \n STRING_AGG(paymentitem, '+') AS paymentItem\nFROM rawdata \nGROUP BY s... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74370038",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9186256/"
] |
74,370,057 | <p>I am trying to change date format but its showing me wrong result (showing me 1970-01-01),How can i fix this, i want dynamic date in "Y-m-d" format,Here is my code</p>
<pre><code>$start_date2=$_POST['start_date']; //showing 10-30-2022
echo $new_date = date("Y-m-d", strtotime($start_date2)); // sh... | [
{
"answer_id": 74370124,
"author": "Anant - Alive to die",
"author_id": 4248328,
"author_profile": "https://Stackoverflow.com/users/4248328",
"pm_score": 2,
"selected": true,
"text": "$start_date2=$_POST['start_date']; <?php\n\n$start_date2='10-30-2022'; //date format inccorect\n$start_d... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74370057",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20259827/"
] |
74,370,072 | <p><a href="https://i.stack.imgur.com/wdSCi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wdSCi.png" alt="Here is my client details list " /></a></p>
<pre><code>#API View
@api_view(['GET'])
def clientDetail(request,pk):
details = ClientAPI.objects.get(id=pk)
serializer = ClientSerializer(de... | [
{
"answer_id": 74370124,
"author": "Anant - Alive to die",
"author_id": 4248328,
"author_profile": "https://Stackoverflow.com/users/4248328",
"pm_score": 2,
"selected": true,
"text": "$start_date2=$_POST['start_date']; <?php\n\n$start_date2='10-30-2022'; //date format inccorect\n$start_d... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74370072",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12154428/"
] |
74,370,076 | <p>I have scenario A a dictionary that I would wish to transform using this method if it's possible or is there an alternative</p>
<pre><code>A = {A:1,B:2,C:3}
B = {values[1] : values[1]*2 for values in A.items()}
</code></pre>
<p>Desired outcome:</p>
<pre><code>B = {1:2,2:4,3:6}
</code></pre>
| [
{
"answer_id": 74370124,
"author": "Anant - Alive to die",
"author_id": 4248328,
"author_profile": "https://Stackoverflow.com/users/4248328",
"pm_score": 2,
"selected": true,
"text": "$start_date2=$_POST['start_date']; <?php\n\n$start_date2='10-30-2022'; //date format inccorect\n$start_d... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74370076",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11761209/"
] |
74,370,146 | <p>The following code works but I wonder if there's a way to combine the following conditions in a shorter way?</p>
<pre class="lang-py prettyprint-override"><code>xlist = ['a', 'b', 'c']
xlist[:] = [x for x in xlist if ('a' not in x) & ('b' not in x)]
</code></pre>
<p>I tried this but it didn't work</p>
<pre class... | [
{
"answer_id": 74370124,
"author": "Anant - Alive to die",
"author_id": 4248328,
"author_profile": "https://Stackoverflow.com/users/4248328",
"pm_score": 2,
"selected": true,
"text": "$start_date2=$_POST['start_date']; <?php\n\n$start_date2='10-30-2022'; //date format inccorect\n$start_d... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74370146",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1912104/"
] |
74,370,156 | <p>I have the following dataframe 'df':</p>
<pre><code>df = pd.DataFrame({'a':[0,2,3],'b':[1,3,4],'c':[4,1,2]})
</code></pre>
<p>Now I want to drop such rows such that that row has 0 value for column'a' and non zero value for column 'b'. How can I do that?</p>
<p>I tried this, <code>df = df[df['a'] == 0 and df['b'] != ... | [
{
"answer_id": 74370236,
"author": "Abirbhav G.",
"author_id": 5901382,
"author_profile": "https://Stackoverflow.com/users/5901382",
"pm_score": 0,
"selected": false,
"text": "& and .loc df = pd.DataFrame({'a':[0,2,3],'b':[1,3,4],'c':[4,1,2]})\n\ndf = df[(df['a'] == 0) & (df['b'] != 0)]\... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74370156",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19484710/"
] |
74,370,181 | <p>I am complete novice who is trying to supplement online course learning, by building some rudimentary programs. I am currently trying to build a program to calculate one's golf index. In order to do this, I must first calculate the average of the lowest 8 rounds, of the golfer's last 20. Calculating the average of t... | [
{
"answer_id": 74370236,
"author": "Abirbhav G.",
"author_id": 5901382,
"author_profile": "https://Stackoverflow.com/users/5901382",
"pm_score": 0,
"selected": false,
"text": "& and .loc df = pd.DataFrame({'a':[0,2,3],'b':[1,3,4],'c':[4,1,2]})\n\ndf = df[(df['a'] == 0) & (df['b'] != 0)]\... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74370181",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20454417/"
] |
74,370,190 | <p>I have a web app that uses the Azure Active Directory (AD) login (Microsoft login), where I have a development environment, staging, and production environment.</p>
<p>The AD login works for my development environment, but I am getting an error when I try to use the same login for my staging environment.</p>
<p>The ... | [
{
"answer_id": 74371412,
"author": "Jason Pan",
"author_id": 7687666,
"author_profile": "https://Stackoverflow.com/users/7687666",
"pm_score": 1,
"selected": false,
"text": "Azure Active Directory Conditional Access"
}
] | 2022/11/09 | [
"https://Stackoverflow.com/questions/74370190",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11129493/"
] |
74,370,207 | <p>Markers in SVGs are not rendered on the GitHub website.<br />
This happens only on the website, the Android app doesn't have the same problem.</p>
<p><a href="https://github.com/kitswas/git-for-all/blob/main/Chapters/chapter2.md" rel="nofollow noreferrer">Markdown file with the problem</a></p>
<p><a href="https://gi... | [
{
"answer_id": 74399032,
"author": "Kitswas",
"author_id": 8659747,
"author_profile": "https://Stackoverflow.com/users/8659747",
"pm_score": 1,
"selected": true,
"text": "<marker-ref> <marker> fill=\"context-stroke\" stroke=\"context-stroke\" <path> <marker>"
}
] | 2022/11/09 | [
"https://Stackoverflow.com/questions/74370207",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8659747/"
] |
74,370,221 | <p>I am working on a project where I am trying to insert values into a MySQL table. Before starting this project I verified that I had the necessary JAR file setup and tested the SQL connection. I thought I was on the right track, but I can't seem to get past these errors popping up in the console. I have a feeling I a... | [
{
"answer_id": 74370301,
"author": "Sujay",
"author_id": 1087388,
"author_profile": "https://Stackoverflow.com/users/1087388",
"pm_score": 0,
"selected": false,
"text": "INSERT INTO word VALUES(?,?)"
}
] | 2022/11/09 | [
"https://Stackoverflow.com/questions/74370221",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19403013/"
] |
74,370,228 | <p><a href="https://i.stack.imgur.com/R9Xtn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/R9Xtn.png" alt="This is the question." /></a></p>
<p>I have the code for the 1st and the second pyramid, I just don't know how to put it together like how the question is asking. The first code below is for py... | [
{
"answer_id": 74370346,
"author": "Utkarsh",
"author_id": 13641277,
"author_profile": "https://Stackoverflow.com/users/13641277",
"pm_score": 2,
"selected": true,
"text": "rows = int(input(\"Enter number of rows: \"))\n\nk = 0\n\nfor i in range(1, rows+1):\n for space in range(1, (ro... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74370228",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20455673/"
] |
74,370,252 | <p>I am trying to scrape this <a href="http://www.nepalstock.com/main/floorsheet/index/0/" rel="nofollow noreferrer">website</a> and I tried running scrapy shell in my cli and I can get xpath response up to <code>//table[@class='table my-table']</code> this xpath but after that I cannot get any data as the response is... | [
{
"answer_id": 74370920,
"author": "Barry the Platipus",
"author_id": 19475185,
"author_profile": "https://Stackoverflow.com/users/19475185",
"pm_score": 1,
"selected": false,
"text": "tr.xpath(\".//tbody//tr[position()>2 and position()<23]\")\n"
},
{
"answer_id": 74371623,
"... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74370252",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20293303/"
] |
74,370,284 | <p>I want to discourage the usage of <code>notify</code> of <code>CustomController</code>, but not <code>AnotherCustomController</code>. Is there a matcher in rubocop that allows it to check <code>notify</code> is from specific class?</p>
<pre class="lang-rb prettyprint-override"><code>class CustomController
def not... | [
{
"answer_id": 74370920,
"author": "Barry the Platipus",
"author_id": 19475185,
"author_profile": "https://Stackoverflow.com/users/19475185",
"pm_score": 1,
"selected": false,
"text": "tr.xpath(\".//tbody//tr[position()>2 and position()<23]\")\n"
},
{
"answer_id": 74371623,
"... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74370284",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2474164/"
] |
74,370,302 | <p>I have the database like this</p>
<pre><code>[
{
"ymd": "2019-01-02",
"dailyRevenue": 3464
},
{
"ymd": "2019-01-03",
"dailyRevenue": 3051
},
{
"ymd": "2019-01-04",
"dailyRevenue": 3495
},
{... | [
{
"answer_id": 74370350,
"author": "ChanHyeok-Im",
"author_id": 6329353,
"author_profile": "https://Stackoverflow.com/users/6329353",
"pm_score": 3,
"selected": true,
"text": "setRevenueHistoryLabel([\n ...revenuHistoryLabel,\n ...res.data.map((element) => element.ymd),\n]);\n\nsetReve... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74370302",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15465426/"
] |
74,370,345 | <pre><code>package main
import (
"fmt"
)
func FindSimilarData(input string, data ...string) string {
same := ""
for _, d := range data {
fmt.Println(d)
if (d) == input {
same += d
fmt.Println(d)
fmt.Println(same)
}
}
retu... | [
{
"answer_id": 74370350,
"author": "ChanHyeok-Im",
"author_id": 6329353,
"author_profile": "https://Stackoverflow.com/users/6329353",
"pm_score": 3,
"selected": true,
"text": "setRevenueHistoryLabel([\n ...revenuHistoryLabel,\n ...res.data.map((element) => element.ymd),\n]);\n\nsetReve... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74370345",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20267588/"
] |
74,370,351 | <p>I'm trying to find if a given 2-element array (<code>$result</code>) exists on a dynamically created multidimentional array.</p>
<p>There are 2 flat arrays (<code>$a</code> and <code>$b</code>) which will be used to generate a haystack array of 2-element combinations.</p>
<pre><code>$a = [1, 2, 3];
$b = [3, 4, 5];
... | [
{
"answer_id": 74370857,
"author": "Alexander Loginov",
"author_id": 10200816,
"author_profile": "https://Stackoverflow.com/users/10200816",
"pm_score": 0,
"selected": false,
"text": "<?php\n\n$a = [1,2,3];\n$b = [3,4,5];\n\n$result = [3,1];\n\nfunction isOK($a, $b, $result):bool {\n ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74370351",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16005410/"
] |
74,370,366 | <p>I'm setting up an API and running into this problem. Can you explain the issue to me and help me solve this issue? Thanks</p>
<p>From Postman:</p>
<pre><code>{
"type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
"title": "One or more validation errors occurred.&quo... | [
{
"answer_id": 74370857,
"author": "Alexander Loginov",
"author_id": 10200816,
"author_profile": "https://Stackoverflow.com/users/10200816",
"pm_score": 0,
"selected": false,
"text": "<?php\n\n$a = [1,2,3];\n$b = [3,4,5];\n\n$result = [3,1];\n\nfunction isOK($a, $b, $result):bool {\n ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74370366",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12140908/"
] |
74,370,367 | <p>I have tried many solutions but all in vain, including this
<a href="https://stackoverflow.com/questions/74334162/react-native-android-build-failure-with-different-errors-without-any-changes-in">React Native Android build failure with different errors without any changes in code for past days due to publish of React... | [
{
"answer_id": 74371040,
"author": "ZFloc Technologies",
"author_id": 10657559,
"author_profile": "https://Stackoverflow.com/users/10657559",
"pm_score": 3,
"selected": true,
"text": "node_modules android/build android/app/build package.json react-native 0.66.3 npm install yarn android/b... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74370367",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13884276/"
] |
74,370,375 | <p>I am currently trying to load a .obj model into my three.js project. I feel like I have all the code correct becasuse my code compiles without any errors, but when I go to Google Chrome's console it is giving me this error. <a href="https://i.stack.imgur.com/hXMES.png" rel="nofollow noreferrer"><img src="https://i.s... | [
{
"answer_id": 74378268,
"author": "JulianDotExe",
"author_id": 20165430,
"author_profile": "https://Stackoverflow.com/users/20165430",
"pm_score": 3,
"selected": true,
"text": "<body>\n\n <script src = \"../node_modules/three/build/three.js\"></script> \n <script type = \"module\" s... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74370375",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19883076/"
] |
74,370,411 | <p>I want to add an edit button and delete image dynamically to table, but it is showing error
Page Not Found at
Request URL: <a href="http://127.0.0.1:8000/%7B%25%20url%20%27expense-edit%27%20expense.id%20%25%7D" rel="nofollow noreferrer">http://127.0.0.1:8000/%7B%25%20url%20'expense-edit'%20expense.id%20%25%7D</a>... | [
{
"answer_id": 74370473,
"author": "Manoj Tolagekar",
"author_id": 17808039,
"author_profile": "https://Stackoverflow.com/users/17808039",
"pm_score": 0,
"selected": false,
"text": "<a href=\"{% url 'expense-edit' expense.id %}\" class=\"btn btn-secondary btn-sm\">Edit</a><a href=\"{% ur... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74370411",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20456219/"
] |
74,370,425 | <p>Need a solution to add a Shake View with a progress bar. This view is used as a Toast View in Android, I got a solution such that the View grows from the center and needs help in transforming into the expected result.
The current state is zipped in the drive with the actual video & expected video.</p>
<p><a href... | [
{
"answer_id": 74422828,
"author": "Jabbar",
"author_id": 16930239,
"author_profile": "https://Stackoverflow.com/users/16930239",
"pm_score": 2,
"selected": false,
"text": "SnackProgressBar"
},
{
"answer_id": 74458230,
"author": "Muhammad Ibrahim",
"author_id": 13935335,
... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74370425",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4083142/"
] |
74,370,438 | <p>I am using Room databse in android and I want to update it by using object.</p>
<p>I want to do this. Is it possible?
`</p>
<pre><code>
@Query("UPDATE video_info_table SET videoStatus = :model.videoStatus WHERE id = :model.id")
fun delete(model: FileModelClass)
</code></pre>
<p>`</p>
| [
{
"answer_id": 74370527,
"author": "Somnath",
"author_id": 15660680,
"author_profile": "https://Stackoverflow.com/users/15660680",
"pm_score": 0,
"selected": false,
"text": "@Query(\"UPDATE video_info_table SET videoStatus =:status WHERE id = :id\")\nvoid update(String status, int id);\n... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74370438",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10807840/"
] |
74,370,457 | <p>I am trying to remove an object from an existing <code>JArray</code>, but when I run the method to delete the property from the <code>JArray</code>, the property still exists.</p>
<p>I tried simply using the code below</p>
<pre class="lang-cs prettyprint-override"><code>JObject rss1 = JObject.Parse(File.ReadAllText(... | [
{
"answer_id": 74370639,
"author": "ProgrammingLlama",
"author_id": 3181933,
"author_profile": "https://Stackoverflow.com/users/3181933",
"pm_score": 2,
"selected": false,
"text": "string JValue JArray.Remove JToken JToken JValue JToken item = newOnline.FirstOrDefault(arr => arr.Type == ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74370457",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18762634/"
] |
74,370,533 | <p>trying to upload a an image file using Java selenium</p>
<p>Hi all, I am trying to upload a an image file using Java selenium</p>
<p>below is the code:<br />
first approach:</p>
<pre><code>WebElement upload_file = driver.findElement(By.xpath("xpath of upload button"));
upload_file .click();
// just passed ... | [
{
"answer_id": 74371393,
"author": "Tal Angel",
"author_id": 5359846,
"author_profile": "https://Stackoverflow.com/users/5359846",
"pm_score": 0,
"selected": false,
"text": "upload_file.sendKeys(\"C:\\\\Users\\\\Lenovo\\\\Pictures\\\\Files\\\\image.jpg\");\nupload_button = driver.findEle... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74370533",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20456170/"
] |
74,370,538 | <p>Need help for converting an array to array of object adding label.</p>
<p>For example I have an array:</p>
<pre><code>data = ["data1", "data2", "data3"]
</code></pre>
<p>I want to convert and adding label.
The result expected:</p>
<pre><code>[
{label: "data1", value: "... | [
{
"answer_id": 74370563,
"author": "Sahil jangra",
"author_id": 19977538,
"author_profile": "https://Stackoverflow.com/users/19977538",
"pm_score": 1,
"selected": false,
"text": "const data = [\"data1\", \"data2\", \"data3\"];\nconst object = [];\ndata.forEach((element) => {\n const obj... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74370538",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8861535/"
] |
74,370,544 | <p>I am new to Java, and I am trying to get a Field Goal percentage calculation, and the output keeps giving me 0. Not sure if it has something to do with my constructor, or if it is not pulling the correct info out of my array.</p>
<pre><code>public Player(String newName, int newnumMade, int newnumAttempt)
{
... | [
{
"answer_id": 74370563,
"author": "Sahil jangra",
"author_id": 19977538,
"author_profile": "https://Stackoverflow.com/users/19977538",
"pm_score": 1,
"selected": false,
"text": "const data = [\"data1\", \"data2\", \"data3\"];\nconst object = [];\ndata.forEach((element) => {\n const obj... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74370544",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20456375/"
] |
74,370,580 | <p>A print button is provided in the Rust book. After clicking it, a single page is created from all contents and printing options are displayed.</p>
<p><a href="https://doc.rust-lang.org/book/print.html" rel="nofollow noreferrer">https://doc.rust-lang.org/book/print.html</a></p>
<p>For Hugo template, I want to create ... | [
{
"answer_id": 74370563,
"author": "Sahil jangra",
"author_id": 19977538,
"author_profile": "https://Stackoverflow.com/users/19977538",
"pm_score": 1,
"selected": false,
"text": "const data = [\"data1\", \"data2\", \"data3\"];\nconst object = [];\ndata.forEach((element) => {\n const obj... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74370580",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8415350/"
] |
74,370,592 | <p>I have an HTML file structure as below with hundred of such elements in main tag:</p>
<pre class="lang-html prettyprint-override"><code><main>
<div id="rows">
<p data-name="First Element">
<a target="_blank" href="localhost">
... | [
{
"answer_id": 74370563,
"author": "Sahil jangra",
"author_id": 19977538,
"author_profile": "https://Stackoverflow.com/users/19977538",
"pm_score": 1,
"selected": false,
"text": "const data = [\"data1\", \"data2\", \"data3\"];\nconst object = [];\ndata.forEach((element) => {\n const obj... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74370592",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5515287/"
] |
74,370,598 | <pre><code>how do i get the rupee symbol on the Y axis of the vega charts, i m getting the doller($) symbol through format but not getting rupee symbol
"axes": [
{
"orient": "bottom",
"scale": "x",
"labelAngle": -90,
"labelPa... | [
{
"answer_id": 74378195,
"author": "Roy Ing",
"author_id": 17338310,
"author_profile": "https://Stackoverflow.com/users/17338310",
"pm_score": 2,
"selected": true,
"text": "\"axes\": [\n { \"orient\": \"bottom\", \"scale\": \"xscale\" },\n\n { \"orient\": \"left\", \n \"scale\... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74370598",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20456377/"
] |
74,370,616 | <p>Beginner here. I've just learned the basics of python using VS. I don't know why I get a syntax error in the VSCode text file but not on the terminal for the command.
Any assistance helping me understand would be great, thank you.
<a href="https://i.stack.imgur.com/Lxjhe.png" rel="nofollow noreferrer"><img src="http... | [
{
"answer_id": 74378195,
"author": "Roy Ing",
"author_id": 17338310,
"author_profile": "https://Stackoverflow.com/users/17338310",
"pm_score": 2,
"selected": true,
"text": "\"axes\": [\n { \"orient\": \"bottom\", \"scale\": \"xscale\" },\n\n { \"orient\": \"left\", \n \"scale\... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74370616",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15790774/"
] |
74,370,626 | <p>This might be trivial but I can't figure it out and can't find it online.
Let's say I survey people asking the reason they did something.
Two options: reason 1 and reason 2. They can also pick both options.</p>
<pre><code>data <- data.frame('reason'=c(rep('R1', 5),rep('R2', 3),rep('R1,R2', 4)))
data
reason
1 ... | [
{
"answer_id": 74370720,
"author": "stefan",
"author_id": 12993861,
"author_profile": "https://Stackoverflow.com/users/12993861",
"pm_score": 2,
"selected": false,
"text": "tidyr::separate_rows reason data <- data.frame('reason'=c(rep('R1', 5),rep('R2', 3),rep('R1,R2', 4)))\n\nlibrary(ti... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74370626",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2424489/"
] |
74,370,634 | <p>I have my own servers and have hosted a few services (game servers, web servers, ...), and use to host these on a publicly accessible dynamic IP using DuckDNS.</p>
<p>I have recently moved to a rural area and use a satellite service for my internet that does not support publicly accessible IP address.</p>
<p>I would... | [
{
"answer_id": 74370720,
"author": "stefan",
"author_id": 12993861,
"author_profile": "https://Stackoverflow.com/users/12993861",
"pm_score": 2,
"selected": false,
"text": "tidyr::separate_rows reason data <- data.frame('reason'=c(rep('R1', 5),rep('R2', 3),rep('R1,R2', 4)))\n\nlibrary(ti... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74370634",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20456308/"
] |
74,370,658 | <p>We have a django project in which we are storing images in the backend using image field.The image link is being stored on django admin site.However ,when I click on the link ,I get an error page.Here's my code.
<em><strong>models.py</strong></em></p>
<pre><code> images=models.ImageField(upload_to=upload_to,null=Tr... | [
{
"answer_id": 74370712,
"author": "Manoj Tolagekar",
"author_id": 17808039,
"author_profile": "https://Stackoverflow.com/users/17808039",
"pm_score": 0,
"selected": false,
"text": "MEDIA_ROOT=os.path.join(BASE_DIR,'media') #Just add like this\n images=models.ImageField(upload_to=\"image... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74370658",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16601612/"
] |
74,370,673 | <p>I want to <code>git push</code> on Ubuntu via a single command, such as:</p>
<pre class="lang-bash prettyprint-override"><code>echo -e "email\ntoken" | git push origin branchName
git push origin branchName && email && token
</code></pre>
<p>But after the command I have to put in my email:... | [
{
"answer_id": 74370917,
"author": "Dan Bonachea",
"author_id": 3528321,
"author_profile": "https://Stackoverflow.com/users/3528321",
"pm_score": 1,
"selected": true,
"text": "git remote -vv git remote set-url origin https://yourname@github.com/yourname/yourrepo.git\n yourname@ git remot... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74370673",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20137965/"
] |
74,370,681 | <p>dears, I cloned a simple project from Git hub .
It shows me a tons of error such as Flatt button,
is there any solution to use and lunch this project in Vscode.? or I should renew each peace of code which is deprecated?
here is the example: git address:
(gh repo clone asjqkkkk/flutter-todos)</p>
| [
{
"answer_id": 74370813,
"author": "Khyati Modi",
"author_id": 11647876,
"author_profile": "https://Stackoverflow.com/users/11647876",
"pm_score": 1,
"selected": false,
"text": "FlatButton RaisedButton OutlinedButton"
},
{
"answer_id": 74370906,
"author": "MrShakila",
"a... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74370681",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20019751/"
] |
74,370,692 | <p>I am trying to subtract the value of count <code>routeid</code> from <code>capacity</code>.
It should be 350 - 1, I have no luck doing it code below</p>
<pre><code>(SELECT CAPACITY
FROM PLANE
WHERE SERIALNO = 'FH-FBT') -
(SELECT COUNT(ROUTEID)
FROM RESERVATION
WHERE ROUTEID = 'FBN001')
</code></pre>
| [
{
"answer_id": 74371278,
"author": "gsalem",
"author_id": 7398653,
"author_profile": "https://Stackoverflow.com/users/7398653",
"pm_score": 0,
"selected": false,
"text": "SELECT CAPACITY -(SELECT COUNT(ROUTEID)\n FROM RESERVATION \n WHERE ROUTEID = 'FBN001') \n FROM PLANE \n WHERE SERIAL... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74370692",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2906598/"
] |
74,370,714 | <p>I used to run this bot on replit with no code issues, but after it wiped some JSON files and got API banned, I switched to running it on my PC through VSCode. All functionality works fine, except it doesn't get any response from on_member_update anymore. I didn't change any of the code here, and made sure that all m... | [
{
"answer_id": 74374794,
"author": "Daniel Andersen",
"author_id": 19635097,
"author_profile": "https://Stackoverflow.com/users/19635097",
"pm_score": 0,
"selected": false,
"text": "presence detected"
},
{
"answer_id": 74376847,
"author": "goose.mp4",
"author_id": 1465525... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74370714",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20456474/"
] |
74,370,752 | <p>How do I make <code>NavigationView</code> call <code>onAppear()</code>(or any other functions) whenever it appears, especially when I back out from its child view?</p>
<p>I linked 3 <code>NavigationView</code>s in this way: <code>TestView</code> -> <code>SecondView</code> -> <code>ThirdView</code>, and I put <... | [
{
"answer_id": 74371134,
"author": "workingdog support Ukraine",
"author_id": 11969817,
"author_profile": "https://Stackoverflow.com/users/11969817",
"pm_score": 2,
"selected": true,
"text": "TestView .onAppear {..} VStack{..} SecondView NavigationView .onAppear {..} NavigationView Navig... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74370752",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10349656/"
] |
74,370,764 | <p>I am making angular application and where I have an empty arrays like these :</p>
<pre><code>orders: Order[];
order_details: Product[];
</code></pre>
<p>Then i am making a service call in ngOnInit to store the data into orders array and order_details array,</p>
<pre><code>ngOnInit(): void {
this.getOrders();
}... | [
{
"answer_id": 74370895,
"author": "Đỗ văn Thắng",
"author_id": 11303128,
"author_profile": "https://Stackoverflow.com/users/11303128",
"pm_score": 0,
"selected": false,
"text": "this.product_service.getProductById(val).subscribe({\n next: (data) => {this.order_details.push(... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74370764",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20448477/"
] |
74,370,774 | <p>I have created a api where I am sending some json format data to third party. But there is one column name as <code>RFEDates</code> whose I am getting as</p>
<p><code>"RFEDates":"\/Date(-62135596800000)\/"</code> .</p>
<p>So is there any way where I can convert that date into proper date format i... | [
{
"answer_id": 74370895,
"author": "Đỗ văn Thắng",
"author_id": 11303128,
"author_profile": "https://Stackoverflow.com/users/11303128",
"pm_score": 0,
"selected": false,
"text": "this.product_service.getProductById(val).subscribe({\n next: (data) => {this.order_details.push(... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74370774",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1216804/"
] |
74,370,777 | <p>I'm trying to make a simple to-do list app and seem to be running up against some List View idiosyncracies. I have a View that produces this:</p>
<p><a href="https://i.stack.imgur.com/8FCw5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8FCw5.png" alt="enter image description here" /></a></p>
<pr... | [
{
"answer_id": 74371053,
"author": "Trupesh Vaghasiya",
"author_id": 9331686,
"author_profile": "https://Stackoverflow.com/users/9331686",
"pm_score": 2,
"selected": true,
"text": "9 Days ago .labelStyle(.titleAndIcon) struct ContentView: View {\n var body: some View {\n List {... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74370777",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/802593/"
] |
74,370,811 | <p>How to make <code>(886) 7199 2483</code> to <code>+886 7199 2483</code> using regex?</p>
<p>I can only extract the dial code by</p>
<pre><code>const dialCode = '(886) 7199 2483'.match(/\(([^)]+)\)/)[1]; // 886
</code></pre>
<p>but don't know how to do the next step</p>
| [
{
"answer_id": 74371053,
"author": "Trupesh Vaghasiya",
"author_id": 9331686,
"author_profile": "https://Stackoverflow.com/users/9331686",
"pm_score": 2,
"selected": true,
"text": "9 Days ago .labelStyle(.titleAndIcon) struct ContentView: View {\n var body: some View {\n List {... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74370811",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10686620/"
] |
74,370,824 | <p>I have collected data from a piece of software has separated the contents of a message between two messages. I am relatively new to using Pandas as a whole. Lets say I have a Pandas DataFrame in the following format:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Type</th>
<th>Message</... | [
{
"answer_id": 74371162,
"author": "jezrael",
"author_id": 2901002,
"author_profile": "https://Stackoverflow.com/users/2901002",
"pm_score": 2,
"selected": true,
"text": "g GroupBy.cumcount 2 groupby print (df)\n Type Message\n0 C Start\n1 C End\n2 B Star... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74370824",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10626864/"
] |
74,370,860 | <pre class="lang-js prettyprint-override"><code>type A = [{a: 1}, {a: 'x'}]
type TupleToUnion<T, K> = ...
TupleToUnion<A, 'a'> // expected to be `1 | 'x'`
</code></pre>
<p>How can I define <code>TupleToUnion</code>?</p>
| [
{
"answer_id": 74370996,
"author": "Iain Shelvington",
"author_id": 548562,
"author_profile": "https://Stackoverflow.com/users/548562",
"pm_score": 3,
"selected": false,
"text": "type B = A[number]['a']\n T U K type A = [{a: 1}, {a: 'x'}]\ntype TupleToUnion<T, K> = T extends Array<infer ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74370860",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19671034/"
] |
74,370,871 | <p>I'm really new to Python so I hope this makes sense.
These are a sample of 2 dictionaries. What I cannot work out is how to subtract the current entries from the previous entries where the nested dictionary ie "Name2" matches in the previous dictionary.
Also I cannot introduce or use extra libraries.</p>
<... | [
{
"answer_id": 74370996,
"author": "Iain Shelvington",
"author_id": 548562,
"author_profile": "https://Stackoverflow.com/users/548562",
"pm_score": 3,
"selected": false,
"text": "type B = A[number]['a']\n T U K type A = [{a: 1}, {a: 'x'}]\ntype TupleToUnion<T, K> = T extends Array<infer ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74370871",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17324125/"
] |
74,370,875 | <p>Currently, I have this kind of JSON array with the same field, what I wanted is to split this data into an independent field and the field name is based on a "name" field</p>
<p>events.parameters (this is the field name of the JSON array)</p>
<pre><code>{
"name": "USER_EMAIL",
"val... | [
{
"answer_id": 74370996,
"author": "Iain Shelvington",
"author_id": 548562,
"author_profile": "https://Stackoverflow.com/users/548562",
"pm_score": 3,
"selected": false,
"text": "type B = A[number]['a']\n T U K type A = [{a: 1}, {a: 'x'}]\ntype TupleToUnion<T, K> = T extends Array<infer ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74370875",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10904536/"
] |
74,370,980 | <p>I am working on angular app and I am very new to html and css. I am trying to make a progress bar. I want to divide each section of this progress bar into two sub sections with different background color as shown here in the image below.
<a href="https://i.stack.imgur.com/8vTud.png" rel="nofollow noreferrer"><img sr... | [
{
"answer_id": 74370996,
"author": "Iain Shelvington",
"author_id": 548562,
"author_profile": "https://Stackoverflow.com/users/548562",
"pm_score": 3,
"selected": false,
"text": "type B = A[number]['a']\n T U K type A = [{a: 1}, {a: 'x'}]\ntype TupleToUnion<T, K> = T extends Array<infer ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74370980",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17800542/"
] |
74,371,019 | <pre><code>public class binarysearch {
public static int search(num, target_value) {
int low = 0;
int mid;
int high = num.length - 1;
while (low < high) {
mid = (low + high) / 2;
if (num[mid] == target_value) {
return mid;
... | [
{
"answer_id": 74370996,
"author": "Iain Shelvington",
"author_id": 548562,
"author_profile": "https://Stackoverflow.com/users/548562",
"pm_score": 3,
"selected": false,
"text": "type B = A[number]['a']\n T U K type A = [{a: 1}, {a: 'x'}]\ntype TupleToUnion<T, K> = T extends Array<infer ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74371019",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16721568/"
] |
74,371,035 | <p>I am using iText 7.2.1.</p>
<p>I am trying to add some small icons (drawn by code) in my text. I find if small icons are added into my text, it's hard to have uniform line space.</p>
<p>If all elements of a paragraph are texts, I can just set <code>SetFixedLeading()</code> then no matter how big the font sizes are, ... | [
{
"answer_id": 74662785,
"author": "Jonathon Leach",
"author_id": 20663311,
"author_profile": "https://Stackoverflow.com/users/20663311",
"pm_score": 1,
"selected": false,
"text": "using iText.Kernel.Colors;\nusing iText.Kernel.Pdf;\nusing iText.Kernel.Pdf.Canvas;\nusing iText.Layout;\nu... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74371035",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3745149/"
] |
74,371,089 | <p><a href="https://i.stack.imgur.com/hBNCW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hBNCW.png" alt="enter image description here" /></a></p>
<p>The Render Box is the porblem as the image show below :)
I have a problem with the trailing Column
When i reduce the container height to 30 the overf... | [
{
"answer_id": 74662785,
"author": "Jonathon Leach",
"author_id": 20663311,
"author_profile": "https://Stackoverflow.com/users/20663311",
"pm_score": 1,
"selected": false,
"text": "using iText.Kernel.Colors;\nusing iText.Kernel.Pdf;\nusing iText.Kernel.Pdf.Canvas;\nusing iText.Layout;\nu... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74371089",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9483327/"
] |
74,371,097 | <p>i have applications and i need to use splash screen with background color and app <strong>icon</strong> in center of it.</p>
<p><a href="https://i.stack.imgur.com/8v36t.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8v36t.png" alt="enter image description here" /></a></p>
<p>THE problem with <str... | [
{
"answer_id": 74371996,
"author": "batuhand",
"author_id": 10376031,
"author_profile": "https://Stackoverflow.com/users/10376031",
"pm_score": 0,
"selected": false,
"text": " runApp(MaterialApp(\n theme: ThemeData(\n colorScheme: ColorScheme.light().copyWith(\n prim... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74371097",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15199247/"
] |
74,371,099 | <p>I'm truing to get the employees that have birthday within next 3 days. I tried to do that by using the following query.</p>
<pre><code>public function upcomingBirthdays()
{
$from = now()->format('m-d');
$to = now()->addDays(3)->format('m-d');
$employees = Employees::whereRaw("DATE_FORMAT(d... | [
{
"answer_id": 74371996,
"author": "batuhand",
"author_id": 10376031,
"author_profile": "https://Stackoverflow.com/users/10376031",
"pm_score": 0,
"selected": false,
"text": " runApp(MaterialApp(\n theme: ThemeData(\n colorScheme: ColorScheme.light().copyWith(\n prim... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74371099",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15338342/"
] |
74,371,103 | <p>Im trying to add ROW_NUMBER() in a select query on top of a calculated field and get unique rownum for unique calculated field. But Im getting sequuential rownum for all the values in calculated field.</p>
<p>How can I achieve it in Postgres SQL?</p>
<p>Thanks in advance.</p>
<pre><code>select m.subscriber, count(di... | [
{
"answer_id": 74371241,
"author": "Tim Biegeleisen",
"author_id": 1863229,
"author_profile": "https://Stackoverflow.com/users/1863229",
"pm_score": 1,
"selected": false,
"text": "DENSE_RANK() ROW_NUMBER() SELECT\n m.subscriber,\n COUNT(DISTINCT s.session_id) AS num_session,\n D... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74371103",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14141539/"
] |
74,371,170 | <p>I'm using a an Api to get manga cover arts , and to do so I need to save part of the Json response as a variable.</p>
<pre><code>import requests
import json
title = "prison-school"
base_url = "https://api.mangadex.org"
r = requests.get(
f"{base_url}/manga",
params={"titl... | [
{
"answer_id": 74371241,
"author": "Tim Biegeleisen",
"author_id": 1863229,
"author_profile": "https://Stackoverflow.com/users/1863229",
"pm_score": 1,
"selected": false,
"text": "DENSE_RANK() ROW_NUMBER() SELECT\n m.subscriber,\n COUNT(DISTINCT s.session_id) AS num_session,\n D... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74371170",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20287896/"
] |
74,371,182 | <p>I've a json looking like</p>
<pre><code>[
{
"name": "Architektur"
},
{
"name": "Computer",
"children": [
{
"name": "Icon"
},
{
"name": "Pattern"
},
{
"... | [
{
"answer_id": 74371254,
"author": "peak",
"author_id": 997358,
"author_profile": "https://Stackoverflow.com/users/997358",
"pm_score": 2,
"selected": true,
"text": ".. def children: objects | select(has(\"children\")) | .children[].name;\nmap( {(.name) : [..|children]} ) | add\n {\n \"... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74371182",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1305062/"
] |
74,371,210 | <p>The code below gives different result depending on environments:</p>
<pre class="lang-rust prettyprint-override"><code>fn main() {
let n: usize = 5489031744;
let n_cbrt: usize = (n as f64).cbrt().floor() as usize;
println!("{}", n_cbrt);
}
</code></pre>
<p><a href="https://play.rust-lang.org/?v... | [
{
"answer_id": 74371254,
"author": "peak",
"author_id": 997358,
"author_profile": "https://Stackoverflow.com/users/997358",
"pm_score": 2,
"selected": true,
"text": ".. def children: objects | select(has(\"children\")) | .children[].name;\nmap( {(.name) : [..|children]} ) | add\n {\n \"... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74371210",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8776746/"
] |
74,371,239 | <p>I have been trying to create a column for a dataframe where each new observation depends on the value of the observations of other columns. I tried to come up with code that would do that but haven't been any lucky</p>
<p>I also checked these answers <a href="https://stackoverflow.com/questions/50988447/add-column-w... | [
{
"answer_id": 74371768,
"author": "Stephan",
"author_id": 8598377,
"author_profile": "https://Stackoverflow.com/users/8598377",
"pm_score": 0,
"selected": false,
"text": "dplyr library(dplyr)\n\ndff <- tibble(\n grupo = sample(1:10, 20, replace = TRUE)\n) \n\ndff |> \n mutate(prcganan... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74371239",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17139852/"
] |
74,371,277 | <p>This is my JSON file. When I click the button named <code>info{}</code> object it makes changes on all 5 data at the same time. How should I filter data as per the <code>fid</code> or index value of the data?</p>
<pre><code>{
"response_code": "1",
"message": "Data Found&quo... | [
{
"answer_id": 74371768,
"author": "Stephan",
"author_id": 8598377,
"author_profile": "https://Stackoverflow.com/users/8598377",
"pm_score": 0,
"selected": false,
"text": "dplyr library(dplyr)\n\ndff <- tibble(\n grupo = sample(1:10, 20, replace = TRUE)\n) \n\ndff |> \n mutate(prcganan... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74371277",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20456827/"
] |
74,371,279 | <p>Have two tables payment, payment_info , trying with left join and union to get the ordnums, it gives me duplicate records, below is my tables data structure.</p>
<p>Payment Table:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>id</th>
<th>invoice</th>
<th>cardpay</th>
<th>gpay</th>
<th>... | [
{
"answer_id": 74371768,
"author": "Stephan",
"author_id": 8598377,
"author_profile": "https://Stackoverflow.com/users/8598377",
"pm_score": 0,
"selected": false,
"text": "dplyr library(dplyr)\n\ndff <- tibble(\n grupo = sample(1:10, 20, replace = TRUE)\n) \n\ndff |> \n mutate(prcganan... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74371279",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3387870/"
] |
74,371,312 | <p>I have a nodejs app that has one getUsers endpoint, this endpoint gets the first 10 users from a mongodb database and returns them in a JSON response.</p>
<p>Lets say this is a sync process (async wont make any sense here since i need to fetch and return the result in the same request) and the entire process takes 1... | [
{
"answer_id": 74371859,
"author": "Jaood_xD",
"author_id": 18891587,
"author_profile": "https://Stackoverflow.com/users/18891587",
"pm_score": 1,
"selected": false,
"text": "N - 1 N"
}
] | 2022/11/09 | [
"https://Stackoverflow.com/questions/74371312",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/468975/"
] |
74,371,328 | <p>I'm developing a School Management System for my thesis and I've been stuck at implementing a grading module for 3 weeks now, I have gotten close to achieving my wanted result. I can now list all the students on a page depending on a selected subject and a field where the faculty can input a grade beside the student... | [
{
"answer_id": 74378566,
"author": "haduki",
"author_id": 18229792,
"author_profile": "https://Stackoverflow.com/users/18229792",
"pm_score": 0,
"selected": false,
"text": "\"\" value = {{ student.total_grade }}\n try obj = Students.objects.get(id=ids[s])\n obj.total_grade = total_grade... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74371328",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20456826/"
] |
74,371,333 | <p>I have two tables:</p>
<pre><code>CREATE TABLE users
(
id INTEGER PRIMARY KEY AUTO_INCREMENT,
username VARCHAR(50) NOT NULL UNIQUE,
password VARCHAR(68) NOT NULL,
oldPassword VARCHAR(68),
enabled BOOLEAN NOT NULL
);
</code></pre>
<p>and</p>
<pre><code>CREATE TABLE a... | [
{
"answer_id": 74378566,
"author": "haduki",
"author_id": 18229792,
"author_profile": "https://Stackoverflow.com/users/18229792",
"pm_score": 0,
"selected": false,
"text": "\"\" value = {{ student.total_grade }}\n try obj = Students.objects.get(id=ids[s])\n obj.total_grade = total_grade... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74371333",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4952262/"
] |
74,371,361 | <p>This is the code that I have with me:</p>
<pre><code>%let data=sashelp.cars;
proc transpose data=&data(obs=0) out=names;
var _all_;
run;
proc sql;
select cats('_',_name_,'=missing(',_name_,');') into: stmts separated by ' ' from names;
run;
data missing;
set &... | [
{
"answer_id": 74371560,
"author": "gregor",
"author_id": 20198546,
"author_profile": "https://Stackoverflow.com/users/20198546",
"pm_score": 1,
"selected": false,
"text": "keep _:;\n"
},
{
"answer_id": 74371853,
"author": "saslearner ",
"author_id": 20344621,
"author... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74371361",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20344621/"
] |
74,371,364 | <p>I want to count the 0s between two 1s from a list.
For example:</p>
<p><code>l = [0,1,0,0,0,0,1,1,1,0,0,1,0,1,1,0]</code></p>
<p>I want the output to be <code>[4,2,1]</code>. How can I do that in python?</p>
| [
{
"answer_id": 74371425,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 0,
"selected": false,
"text": "l = [0,1,0,0,0,0,1,1,1,0,0,1,0,1,1,0]\n\ns = pd.Series(l)\n\nout = (s[s.eq(0)&s.cummax()&s.loc[::-1].cummax()]\n ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74371364",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19189066/"
] |
74,371,386 | <p>I'm doing a cool animation, I've divided the whole animation into many segments, and I've calculated the proportion of time each segment takes. I plan to generate a <code>Tween</code> object for each time period, and then generate successive property values. But now I find that I can only provide a <code>Tween</code... | [
{
"answer_id": 74371425,
"author": "mozway",
"author_id": 16343464,
"author_profile": "https://Stackoverflow.com/users/16343464",
"pm_score": 0,
"selected": false,
"text": "l = [0,1,0,0,0,0,1,1,1,0,0,1,0,1,1,0]\n\ns = pd.Series(l)\n\nout = (s[s.eq(0)&s.cummax()&s.loc[::-1].cummax()]\n ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74371386",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11822156/"
] |
74,371,406 | <p>how can I increase the laravel 8 <code>dd()</code> limitations? I have lots of nested relationship and I cant view most of them due to many data. For example this</p>
<pre><code> #relations: array:4 [▼
"activecourses" => Illuminate\Database\Eloquent\Collection {#1346 ▼
#items: array:3 [▼
... | [
{
"answer_id": 74416422,
"author": "Eskay Amadeus",
"author_id": 8722948,
"author_profile": "https://Stackoverflow.com/users/8722948",
"pm_score": 1,
"selected": false,
"text": "Log::debug($activeForces) dd($activeForces[0])"
},
{
"answer_id": 74418232,
"author": "Mtxz",
... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74371406",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11667606/"
] |
74,371,407 | <p>I need to parse a date that I receive in a String with the following format: "Mon, 07 Nov 2022 21:00:00 +0100"</p>
<p>I have to dump the date to an object of type LocalDateTime and I use the following code:</p>
<pre><code>String fecha = "Mon, 07 Nov 2022 21:00:00 +0100";
DateTimeFormatter fo... | [
{
"answer_id": 74371643,
"author": "Christoph Dahlen",
"author_id": 20370596,
"author_profile": "https://Stackoverflow.com/users/20370596",
"pm_score": 3,
"selected": true,
"text": "String fecha = \"Mon, 07 Nov 2022 21:00:00 +0100\";\n \nDateTimeFormatter formato = DateTimeFormatter.R... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74371407",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7359013/"
] |
74,371,420 | <p>I have an jCal JSON array which I'd like to filter with jq. JSON arrays are somewhat new to me and I have been banging my head to the wall on this for hours...</p>
<p>The file looks like this:</p>
<pre class="lang-json prettyprint-override"><code>[
"vcalendar",
[
[
"calscale",
... | [
{
"answer_id": 74371643,
"author": "Christoph Dahlen",
"author_id": 20370596,
"author_profile": "https://Stackoverflow.com/users/20370596",
"pm_score": 3,
"selected": true,
"text": "String fecha = \"Mon, 07 Nov 2022 21:00:00 +0100\";\n \nDateTimeFormatter formato = DateTimeFormatter.R... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74371420",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11669787/"
] |
74,371,430 | <p><a href="https://i.stack.imgur.com/MRkN4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MRkN4.png" alt="enter image description here" /></a></p>
<p>Hello can anyone help me how to solve the issue of RenderFlex overflowed by 2772 pixels on the bottom.</p>
<p>This is my code.</p>
<pre><code>Contain... | [
{
"answer_id": 74371643,
"author": "Christoph Dahlen",
"author_id": 20370596,
"author_profile": "https://Stackoverflow.com/users/20370596",
"pm_score": 3,
"selected": true,
"text": "String fecha = \"Mon, 07 Nov 2022 21:00:00 +0100\";\n \nDateTimeFormatter formato = DateTimeFormatter.R... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74371430",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18275286/"
] |
74,371,446 | <p>I have the issue with Java sort. In SQL, I can sort independently on each field. I need something similar in Java.</p>
<pre class="lang-sql prettyprint-override"><code>SELECT * FROM Stuff ORDER BY name ASC,last_name DSC;
</code></pre>
<p>When using <code>sort(Comparator.comparing(Stuff::getName).thenComparing(Stuff:... | [
{
"answer_id": 74371527,
"author": "Thomas",
"author_id": 637853,
"author_profile": "https://Stackoverflow.com/users/637853",
"pm_score": 3,
"selected": true,
"text": "thenComparing() Comparator thenComparing(function) thenComparing(comparing(function)) Comparator.comparing(Stuff::getNam... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74371446",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3587082/"
] |
74,371,454 | <p>I am facing this error, can someone help in this -
Error:
<em>TypeError: Cannot read properties of null (reading 'useState')</em></p>
<p><strong>Menu.tsx</strong></p>
<pre><code>export const MainMenu: FC = () => {
const [toogle, setToggle] = useState(false);
return(
<>
<SubMen... | [
{
"answer_id": 74371495,
"author": "user20386762",
"author_id": 20386762,
"author_profile": "https://Stackoverflow.com/users/20386762",
"pm_score": 2,
"selected": false,
"text": "toggle SubMenu export const SubMenu: FC = () => { export const SubMenu: FC = ({ toggle }: { toggle: boolean }... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74371454",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5444560/"
] |
74,371,457 | <p>i have multiple markdown files that contain images without alt that look like:</p>
<pre class="lang-markdown prettyprint-override"><code># my file

# this is an example image

</code></pre>
<p>i want to replace them with alt from the filename but without t... | [
{
"answer_id": 74387405,
"author": "deadcoder0904",
"author_id": 6141587,
"author_profile": "https://Stackoverflow.com/users/6141587",
"pm_score": 0,
"selected": false,
"text": "regex101 ./ .png .* use regular expression find: !\\[\\]\\(.\\/(.*).png\\)\nreplace: \n  }
var mSelectedCateg... | [
{
"answer_id": 74373246,
"author": "Gabriele Mariotti",
"author_id": 2016562,
"author_profile": "https://Stackoverflow.com/users/2016562",
"pm_score": 3,
"selected": true,
"text": "@Parcelize @Parcelize\ndata class MainCategory(\n var category_id: String,\n var category_name: Strin... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74371460",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4232013/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.