qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,671,399 | <p>I want to create a function that labels the location of certain HTML tags (e.g., italics tags) in a string with respect to the locations of characters in a tagless version of the string.
(I intend to use this label data to train a neural network for tag recovery from data that has had the tags stripped out.)
The mag... | [
{
"answer_id": 74671586,
"author": "KIKO Software",
"author_id": 3986005,
"author_profile": "https://Stackoverflow.com/users/3986005",
"pm_score": 1,
"selected": false,
"text": "function label_italics($string) {\n return preg_replace(['/<i>/', '/<\\/i>/', '/[^#]/', '/##0/', '/#0/'], \... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74671399",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4541003/"
] |
74,671,409 | <p>I have strings stored in cells of a column in Excel that I would like to concatenate in several pieces, like sentences, with VBA. Here is an example:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Column A</th>
</tr>
</thead>
<tbody>
<tr>
<td>Jack</td>
</tr>
<tr>
<td>learns</td>
</tr>
<... | [
{
"answer_id": 74671586,
"author": "KIKO Software",
"author_id": 3986005,
"author_profile": "https://Stackoverflow.com/users/3986005",
"pm_score": 1,
"selected": false,
"text": "function label_italics($string) {\n return preg_replace(['/<i>/', '/<\\/i>/', '/[^#]/', '/##0/', '/#0/'], \... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74671409",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20677698/"
] |
74,671,420 | <p>The context doesn't matter too much, but I came across the problem that while trying to pop <code>dict</code> objects from a <code>list</code>, it wouldn't delete all of them. I'm doing this to filter for certain values in the <code>dict</code> objects, and I was left with things that should have been removed. Just ... | [
{
"answer_id": 74671460,
"author": "blackeyeaquarius",
"author_id": 20677128,
"author_profile": "https://Stackoverflow.com/users/20677128",
"pm_score": 3,
"selected": true,
"text": "# Create an empty list to store the items that we want to keep\nfiltered_auctions = []\n\n# Iterate over t... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74671420",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18106922/"
] |
74,671,424 | <p>I have decided to remove Visual studio; Because it does not auto-fill for me when I write the code, so I want to know if I delete it will that will affect the previous C# files I wrote in Unity !?</p>
<p>I haven't deleted it yet. I also went into the program settings to solve the autofill problem but to no avail.</p... | [
{
"answer_id": 74671460,
"author": "blackeyeaquarius",
"author_id": 20677128,
"author_profile": "https://Stackoverflow.com/users/20677128",
"pm_score": 3,
"selected": true,
"text": "# Create an empty list to store the items that we want to keep\nfiltered_auctions = []\n\n# Iterate over t... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74671424",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20677692/"
] |
74,671,429 | <p>I have such .txt file:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Field</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<tr>
<td>First</td>
<td>1</td>
</tr>
<tr>
<td>Second</td>
<td>alfa</td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td>First</td>
<td>23</td>
</tr>
<tr>
<td>Second</td>
... | [
{
"answer_id": 74673261,
"author": "Andrea S.",
"author_id": 14895961,
"author_profile": "https://Stackoverflow.com/users/14895961",
"pm_score": 0,
"selected": false,
"text": "import pandas as pd\n\nfile = './data.txt'\ndf = pd.read_csv(file, sep='\\t',header=0, engine='python')\ndf = df... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74671429",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7347438/"
] |
74,671,432 | <p>I want to change the font size and color of the a when I hover over p. It is not working. Probably there is a simple solution, but I am struggling with this since a few hours.</p>
<p>If anyone has not to complicated links related to this topic I also would be happy</p>
<pre><code><!DOCTYPE html>
<html lang=... | [
{
"answer_id": 74673261,
"author": "Andrea S.",
"author_id": 14895961,
"author_profile": "https://Stackoverflow.com/users/14895961",
"pm_score": 0,
"selected": false,
"text": "import pandas as pd\n\nfile = './data.txt'\ndf = pd.read_csv(file, sep='\\t',header=0, engine='python')\ndf = df... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74671432",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20554918/"
] |
74,671,472 | <p>how can you ensure URL you receive from users is a valid url and not just a <a href="http://nothing.com" rel="nofollow noreferrer">http://nothing.com</a></p>
<p>my code looks like this:</p>
<pre><code>String urlFromUser = getUrlFromUser(); // might return: http://www.notARealSite.com
URL url = new URL(urlFromUser);
... | [
{
"answer_id": 74671486,
"author": "Yiğit",
"author_id": 5549860,
"author_profile": "https://Stackoverflow.com/users/5549860",
"pm_score": 1,
"selected": false,
"text": "String urlFromUser = getUrlFromUser(); // might return: http://www.notARealSite.com\n\ntry {\n URL url = new URL(ur... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74671472",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20677777/"
] |
74,671,475 | <p>I'm struggling with some Python homework.</p>
<p>I'm really new to Python, and coding in general. I have really basic knowledge in Python, and somewhat acceptable level in JavaScript.</p>
<p>My issue: I have to make a graph to represent these two functions:</p>
<pre><code>distance = (x**2/2 - np.cos(5*x) - 7)
speed... | [
{
"answer_id": 74671486,
"author": "Yiğit",
"author_id": 5549860,
"author_profile": "https://Stackoverflow.com/users/5549860",
"pm_score": 1,
"selected": false,
"text": "String urlFromUser = getUrlFromUser(); // might return: http://www.notARealSite.com\n\ntry {\n URL url = new URL(ur... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74671475",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20677721/"
] |
74,671,476 | <p>How to write a predicate sum 3 max values in list?
max3(L,X)</p>
<p>Example:</p>
<pre><code>max3([1,7,9,3,5],X).
X = 21.
</code></pre>
| [
{
"answer_id": 74671486,
"author": "Yiğit",
"author_id": 5549860,
"author_profile": "https://Stackoverflow.com/users/5549860",
"pm_score": 1,
"selected": false,
"text": "String urlFromUser = getUrlFromUser(); // might return: http://www.notARealSite.com\n\ntry {\n URL url = new URL(ur... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74671476",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20453757/"
] |
74,671,484 | <p>It seems that once every other week I have the same issue where my React Native project stops building and won't open in Xcode, and I wanted to know what some fixes could be for this. When I try and build in Visual Studio Code the app gets stuck at the <code>⠇ Building the app</code> message. And when I try opening ... | [
{
"answer_id": 74671486,
"author": "Yiğit",
"author_id": 5549860,
"author_profile": "https://Stackoverflow.com/users/5549860",
"pm_score": 1,
"selected": false,
"text": "String urlFromUser = getUrlFromUser(); // might return: http://www.notARealSite.com\n\ntry {\n URL url = new URL(ur... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74671484",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17284184/"
] |
74,671,511 | <p>I've been writing a script to copy some data from an input sheet to a database to keep track of some data. I've managed to successfully write the code for linear arrays (only one row) but when I try to copy an entire 15x15 cells range I get an error stating the parameters are not correct (suggesting the dimension of... | [
{
"answer_id": 74671486,
"author": "Yiğit",
"author_id": 5549860,
"author_profile": "https://Stackoverflow.com/users/5549860",
"pm_score": 1,
"selected": false,
"text": "String urlFromUser = getUrlFromUser(); // might return: http://www.notARealSite.com\n\ntry {\n URL url = new URL(ur... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74671511",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18029702/"
] |
74,671,516 | <p>I can't seem to figure out how to print out what the user has entered for their password once their finished answering the questions.</p>
<p>I want to use 4 different for loops for upperCase, lowerCase, numbers, symbols,based on what the user has entered. If anyone has any different ideas please share. It would be a... | [
{
"answer_id": 74671549,
"author": "Rodrigo Munoz",
"author_id": 14694310,
"author_profile": "https://Stackoverflow.com/users/14694310",
"pm_score": 2,
"selected": false,
"text": "// Create a random number generator\nvar random = new Random();\n\n// Create arrays of characters to use in ... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74671516",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11879103/"
] |
74,671,532 | <p>I've observed performance differences based on the location of my instantiated <code>StateObject</code>. Specifically, I noticed that when my top-level <code>View</code> owns the <code>StateObject</code>, my app's usage on the main thread decreases by ~5%. For some reason, instantiating this <code>StateObject</code>... | [
{
"answer_id": 74671575,
"author": "thatthing",
"author_id": 624493,
"author_profile": "https://Stackoverflow.com/users/624493",
"pm_score": -1,
"selected": false,
"text": "StateObject View"
}
] | 2022/12/03 | [
"https://Stackoverflow.com/questions/74671532",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7396787/"
] |
74,671,577 | <p>I made a function that is being called recursively, and the condition for it to keep being called is a user input.</p>
<p>The recursion is working but the final value of the variable is being returned as None.
I am a beginner at Python and i am trying to learn Functions and Recursion before going to Classes, OOP, Wr... | [
{
"answer_id": 74671652,
"author": "Gerg",
"author_id": 20677932,
"author_profile": "https://Stackoverflow.com/users/20677932",
"pm_score": 2,
"selected": true,
"text": "def switch(valor):\n case = int(input('Escolha uma opcao... (0 para encerrar) : '))\n if case == 1:\n val... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74671577",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8297745/"
] |
74,671,589 | <p>I have a MyList Component where I search based on date specified and render the detail using Flatlist</p>
<pre><code>const MyList =( {date}) =>{
const [list, setList] = useState([]);
useEffect(() => {
const url = `https://some-service.com/list?date=${date}`
axios.get(url).the... | [
{
"answer_id": 74671652,
"author": "Gerg",
"author_id": 20677932,
"author_profile": "https://Stackoverflow.com/users/20677932",
"pm_score": 2,
"selected": true,
"text": "def switch(valor):\n case = int(input('Escolha uma opcao... (0 para encerrar) : '))\n if case == 1:\n val... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74671589",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12312638/"
] |
74,671,602 | <p>I would like to use the MDA (mean direction accuracy) as a custom loss function for a tensorflow neural network.</p>
<p>I am trying to implement this as described in here:
<a href="https://stackoverflow.com/questions/46876213/custom-mean-directional-accuracy-loss-function-in-keras">Custom Mean Directional Accuracy l... | [
{
"answer_id": 74671624,
"author": "Reda Bourial",
"author_id": 6072029,
"author_profile": "https://Stackoverflow.com/users/6072029",
"pm_score": 1,
"selected": false,
"text": "import tensorflow as tf\n\ndef mda(y_true, y_pred):\n s = tf.equal(tf.math.sign(y_true[1:] - y_true[:-1]),\n... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74671602",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2632307/"
] |
74,671,615 | <p>I am having some issues in finding the correct regular expression</p>
<p>lets say I have this list of keywords:</p>
<p>keywords = [' b.o.o', ' a.b.a', ' titi']</p>
<p>(please keep in mind that there is a blank space before any keyword and this list can contain up to 100keywords so I can't to it without a function)
a... | [
{
"answer_id": 74671624,
"author": "Reda Bourial",
"author_id": 6072029,
"author_profile": "https://Stackoverflow.com/users/6072029",
"pm_score": 1,
"selected": false,
"text": "import tensorflow as tf\n\ndef mda(y_true, y_pred):\n s = tf.equal(tf.math.sign(y_true[1:] - y_true[:-1]),\n... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74671615",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20677638/"
] |
74,671,623 | <p>I have three tables, <strong>table A</strong> (product), <strong>table B</strong> (invoice) and <strong>table C</strong> (invoices_info) which contains two columns referencing <code>invoice_id</code> and <code>product_id</code>. How can i insert a new entry (a new invoice) while inserting the products to the appropr... | [
{
"answer_id": 74672000,
"author": "Emad",
"author_id": 1753089,
"author_profile": "https://Stackoverflow.com/users/1753089",
"pm_score": 2,
"selected": true,
"text": "// create a new Product entity\nProduct product = new Product();\nproduct.setFamilyId(1);\nproduct.setProductName(\"Prod... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74671623",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16564712/"
] |
74,671,630 | <p>I want to loop through the news table and get the title and rating of each row. I tried different options, but I can’t understand why the select method receives all the options at once.
I need to get each news block in a loop.</p>
<p>I used this way to get table link:
Elements elements = document.select("#hnmai... | [
{
"answer_id": 74672000,
"author": "Emad",
"author_id": 1753089,
"author_profile": "https://Stackoverflow.com/users/1753089",
"pm_score": 2,
"selected": true,
"text": "// create a new Product entity\nProduct product = new Product();\nproduct.setFamilyId(1);\nproduct.setProductName(\"Prod... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74671630",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20667902/"
] |
74,671,633 | <p>I'm trying to make a list of names based off the last number in the values list. The new list will be ordered based on highest number to lowest number but is a list of the names.</p>
<pre><code>folks = {'Leia': [28, 'F', 'W', False, True, 'Unemployed',1],
'Junipero': [15, 'M', 'E', False, False, 'Teacher', ... | [
{
"answer_id": 74671648,
"author": "Reda Bourial",
"author_id": 6072029,
"author_profile": "https://Stackoverflow.com/users/6072029",
"pm_score": 0,
"selected": false,
"text": "# Get the values of the last item in each sublist\nlast_values = [folks[name][-1] for name in folks]\n\n# Sort ... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74671633",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20677867/"
] |
74,671,673 | <p>I have a Json file, it contains connectionstring. I want to asynchronously read the file and deserialize it to a ConnectionString object and I always get a null result. I'm using .NET Core 6 and System.Text.Json.</p>
<p>Here is contents of my Json file:</p>
<pre><code>{
"ConnectionStrings": {
&... | [
{
"answer_id": 74671648,
"author": "Reda Bourial",
"author_id": 6072029,
"author_profile": "https://Stackoverflow.com/users/6072029",
"pm_score": 0,
"selected": false,
"text": "# Get the values of the last item in each sublist\nlast_values = [folks[name][-1] for name in folks]\n\n# Sort ... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74671673",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20676149/"
] |
74,671,674 | <p>When building my code I get the following "undefined reference"-errors, which I cannot get rid of. I've already tried several hints from stack overflow but nothing helps :-(. Maybe you have an idea?</p>
<p>I use VSCode with PlatformIO for an Arduino Uno on Mac OS.</p>
<blockquote>
<p>in function `get7SegBi... | [
{
"answer_id": 74671704,
"author": "Jon Forhan",
"author_id": 19760305,
"author_profile": "https://Stackoverflow.com/users/19760305",
"pm_score": -1,
"selected": false,
"text": "this->bitMap[] = { ///< charMap contains bitmaps for 7-seg-displays\n //gfedcba\n 0b0111111, ... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74671674",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13268845/"
] |
74,671,685 | <p>Sorry, I've only been using python for about an hour, I'm using PyCharm if that has to do with the problem, I don't think it does though.</p>
<p>Here is my code:</p>
<pre><code>userAge = input("Hi, how old are you?\n")
longRussiaString = (
"When will you guys stop telling me about how you had to ... | [
{
"answer_id": 74671707,
"author": "topsail",
"author_id": 1467914,
"author_profile": "https://Stackoverflow.com/users/1467914",
"pm_score": 1,
"selected": true,
"text": "0 - 5 userAge >= 0 and userAge <= 5"
},
{
"answer_id": 74671715,
"author": "Chris",
"author_id": 1526... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74671685",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20677930/"
] |
74,671,719 | <pre><code>while True:
try:
color1 = str(input("What should the color of the broken window be, Purple or Sky Blue? > ")).lower().strip()
color2 = str(input("What should the color of the broken window, white Yellow or Pink? > ")).lower().strip()
user_info = {"co... | [
{
"answer_id": 74671707,
"author": "topsail",
"author_id": 1467914,
"author_profile": "https://Stackoverflow.com/users/1467914",
"pm_score": 1,
"selected": true,
"text": "0 - 5 userAge >= 0 and userAge <= 5"
},
{
"answer_id": 74671715,
"author": "Chris",
"author_id": 1526... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74671719",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20677970/"
] |
74,671,732 | <p>I'm trying to run flask-mqtt on raspberry pi. I am running python version 3.7.3 it looks like I can't update python to 3.10 on pi. I don't know if that is necessary. I have installed flask-mqtt with following command</p>
<p><code>pip install Flask-MQTT:</code></p>
<blockquote>
<p>Requirement already satisfied: Flask... | [
{
"answer_id": 74671707,
"author": "topsail",
"author_id": 1467914,
"author_profile": "https://Stackoverflow.com/users/1467914",
"pm_score": 1,
"selected": true,
"text": "0 - 5 userAge >= 0 and userAge <= 5"
},
{
"answer_id": 74671715,
"author": "Chris",
"author_id": 1526... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74671732",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20571767/"
] |
74,671,750 | <p>I have been trying to use a simple audio audio player for android auto and just stream a audio from a link. But when the function is called the media player cant set the data source from url. and it will return the following error.</p>
<p>Code :</p>
<pre><code>class HelloWorldScreen(carContext: CarContext) : Screen... | [
{
"answer_id": 74675464,
"author": "hassan bazai",
"author_id": 14279755,
"author_profile": "https://Stackoverflow.com/users/14279755",
"pm_score": 1,
"selected": false,
"text": "// Create a MediaSource instance\nMediaSource source = new MediaSource.Factory(dataSourceFactory)\n .c... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74671750",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8090228/"
] |
74,671,788 | <p>I am new to flutter. I am building todo list app by following one of the article. I have managed to find couple of errors already such as asyn and .then method, FieldButton to Text button. I am struggling to fix couple of errors</p>
<p>This is the first error message:</p>
<pre><code>lib/main.dart:88:24: Error: Undef... | [
{
"answer_id": 74675464,
"author": "hassan bazai",
"author_id": 14279755,
"author_profile": "https://Stackoverflow.com/users/14279755",
"pm_score": 1,
"selected": false,
"text": "// Create a MediaSource instance\nMediaSource source = new MediaSource.Factory(dataSourceFactory)\n .c... | 2022/12/03 | [
"https://Stackoverflow.com/questions/74671788",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7006738/"
] |
74,671,815 | <p>I am trying to update a DB Table at my college using JDBC and JAVAFx. I have tried everything to get the SQL Update command to work.</p>
<p>I have a table where the player_id is the foreign key from the table - Player -, and is a child table to its parent namely - Player and Game Information -.</p>
<p>I have set up ... | [
{
"answer_id": 74671918,
"author": "thatthing",
"author_id": 624493,
"author_profile": "https://Stackoverflow.com/users/624493",
"pm_score": 1,
"selected": false,
"text": "String sql = \"UPDATE player SET\" +\n\" first_name= '\" + first_name + \"',\" +\n\" last_name= '\" + last_name + \"... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74671815",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16951322/"
] |
74,671,817 | <p>i'm sorry if this question is answered already but i don't find it in the search. :-)</p>
<p>I'm trying to access a li text value to set an id for this. I tried the following.</p>
<p>Below my jquery code</p>
<pre><code>$(document).ready(function() {
$("#hinzubutton").click(function(){
$("#... | [
{
"answer_id": 74671918,
"author": "thatthing",
"author_id": 624493,
"author_profile": "https://Stackoverflow.com/users/624493",
"pm_score": 1,
"selected": false,
"text": "String sql = \"UPDATE player SET\" +\n\" first_name= '\" + first_name + \"',\" +\n\" last_name= '\" + last_name + \"... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74671817",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16837874/"
] |
74,671,824 | <pre><code>a = [ [200,300,5000,400],[554,500,1000,652],[800,500,650,800],[950,120,470,500],[500,600,2000,100]]
for i in range(len(a)):
for j in range(len(a[i])):
print(a[i][j], end=' ')
print()
</code></pre>
<p>I am trying to increase each value by 20%, and then print the matrix with the increase, For ... | [
{
"answer_id": 74671918,
"author": "thatthing",
"author_id": 624493,
"author_profile": "https://Stackoverflow.com/users/624493",
"pm_score": 1,
"selected": false,
"text": "String sql = \"UPDATE player SET\" +\n\" first_name= '\" + first_name + \"',\" +\n\" last_name= '\" + last_name + \"... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74671824",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7922452/"
] |
74,671,829 | <p>I have currently started with PROLOG and I want to write a predicate which checks if a given object is in this list or not. If the object is in the list the predicate should return the index of the element. If the element is not found it should return 0.</p>
<p>It should work like this: <code>find(3,[1,4,5,3,2,3],N)... | [
{
"answer_id": 74673641,
"author": "TessellatingHeckler",
"author_id": 478656,
"author_profile": "https://Stackoverflow.com/users/478656",
"pm_score": 0,
"selected": false,
"text": "find_([], _, _, 0).\nfind_([X|_], X, Counter, Counter).\nfind_([_|T], X, Counter, Result) :... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74671829",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12118403/"
] |
74,671,835 | <p>Every time if my session is invalid i got this output: "Please enter your phone (or bot token): "
Is there anyway to pass it or ignore it?</p>
<p>I tried to edit telethon source code, but im bad at it))</p>
| [
{
"answer_id": 74672027,
"author": "Marz1k",
"author_id": 17545131,
"author_profile": "https://Stackoverflow.com/users/17545131",
"pm_score": 0,
"selected": false,
"text": "client = TelegramClient(f\"session\", api_id, api_hash)\nclient.connect()\nprint(client)\nif client.is_user_authori... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74671835",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17545131/"
] |
74,671,856 | <p>I created a TODO List. I have a input and take the value of the input to append it to an element.
With the value of the input i create a new list elemnet with a delete button. Now i have troubles to delete my new created elemnt within the list.</p>
<p>this is my js code</p>
<pre><code>//create a variable for the bu... | [
{
"answer_id": 74671935,
"author": "dev",
"author_id": 6476490,
"author_profile": "https://Stackoverflow.com/users/6476490",
"pm_score": 0,
"selected": false,
"text": "// create the element\nvar newElement = document.createElement('p');\nnewElement.innerHTML = 'Click here to remove me';\... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74671856",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16850827/"
] |
74,671,865 | <p>I've been struggling for the past couple days with getting my python code to be more efficient, while also getting the run time to be with in the given specifications of the problem below ( 3 seconds, for any given input). Was told that linear time may help, but was hoping I can get some help on how I'd approach it ... | [
{
"answer_id": 74671928,
"author": "Nova",
"author_id": 16807831,
"author_profile": "https://Stackoverflow.com/users/16807831",
"pm_score": 1,
"selected": false,
"text": "import time # import time module\narr = list(map(int, input().split(\" \")))\n\n# sort the list in ascending order\na... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74671865",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20379696/"
] |
74,671,883 | <p>I have a Pandas dataframe such that <code>df['cname']</code>:</p>
<pre><code>0 [berkshire, hathaway]
1 [icbc]
2 [saudi, arabian, oil, company, saudi, aramco]
3 [jpmorgan, chase]
4 [china, const... | [
{
"answer_id": 74671928,
"author": "Nova",
"author_id": 16807831,
"author_profile": "https://Stackoverflow.com/users/16807831",
"pm_score": 1,
"selected": false,
"text": "import time # import time module\narr = list(map(int, input().split(\" \")))\n\n# sort the list in ascending order\na... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74671883",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2205916/"
] |
74,671,893 | <p>I have a have a dataset that looks something like this:</p>
<pre><code>data <- data.frame(group = c("09081997", "13122006", "09081997", "22031969", "09081997"),
date1 = c("2021-08-09", "2021-08-10", "2021-08-21", &q... | [
{
"answer_id": 74671934,
"author": "Vinícius Félix",
"author_id": 9696037,
"author_profile": "https://Stackoverflow.com/users/9696037",
"pm_score": 1,
"selected": false,
"text": "library(dplyr)\nlibrary(lubridate)\n\ndata %>% \n mutate(across(.cols = starts_with(\"date\"),.fns = ymd)) %... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74671893",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17659253/"
] |
74,671,920 | <p>I am trying to control the position of two calls of <code>geom_text</code> inside <code>geom_bar</code>, but I just can't get it right.</p>
<p>This is what I have so far:</p>
<p><a href="https://i.stack.imgur.com/qbp7M.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qbp7M.png" alt="enter image des... | [
{
"answer_id": 74671934,
"author": "Vinícius Félix",
"author_id": 9696037,
"author_profile": "https://Stackoverflow.com/users/9696037",
"pm_score": 1,
"selected": false,
"text": "library(dplyr)\nlibrary(lubridate)\n\ndata %>% \n mutate(across(.cols = starts_with(\"date\"),.fns = ymd)) %... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74671920",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4272937/"
] |
74,671,936 | <p>I need to tune the number of hidden layers and their hidden size of a regression model.</p>
<p>As I tested before, generic hyperparameter optimization algorithms (grid search and random search) are not enough due to a large number of hyperparameters. Could I use PBT or Bayesian optimization to tune the network struc... | [
{
"answer_id": 74671934,
"author": "Vinícius Félix",
"author_id": 9696037,
"author_profile": "https://Stackoverflow.com/users/9696037",
"pm_score": 1,
"selected": false,
"text": "library(dplyr)\nlibrary(lubridate)\n\ndata %>% \n mutate(across(.cols = starts_with(\"date\"),.fns = ymd)) %... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74671936",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14082033/"
] |
74,671,990 | <p>In TC2000 its possible to use minv3.1 (minimum volume requirement for each of the last 3 bars) which I cannot figure out for pinescript (since its not the same a average volume). How would one create it?</p>
<p>I've only tried</p>
<p>V[0] > 1000 <strong>and</strong> V[1] > 1000 <strong>and</strong> V[2] > 1... | [
{
"answer_id": 74671934,
"author": "Vinícius Félix",
"author_id": 9696037,
"author_profile": "https://Stackoverflow.com/users/9696037",
"pm_score": 1,
"selected": false,
"text": "library(dplyr)\nlibrary(lubridate)\n\ndata %>% \n mutate(across(.cols = starts_with(\"date\"),.fns = ymd)) %... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74671990",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20343078/"
] |
74,672,009 | <p>Hello everyone i need some help over this issue in Django *IntegrityError at /api/course/ (1048, "Column 'category_id' cannot be null") i got this when i tried to insert a new course
*</p>
<pre><code>
</code></pre>
<p>class Course(models.Model):</p>
<pre><code>category = models.ForeignKey(CourseCategory, o... | [
{
"answer_id": 74671934,
"author": "Vinícius Félix",
"author_id": 9696037,
"author_profile": "https://Stackoverflow.com/users/9696037",
"pm_score": 1,
"selected": false,
"text": "library(dplyr)\nlibrary(lubridate)\n\ndata %>% \n mutate(across(.cols = starts_with(\"date\"),.fns = ymd)) %... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74672009",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9989036/"
] |
74,672,015 | <p>I need to scrape texts from a website, but could not figure out a way to scrape a specific text for this situation:</p>
<pre><code><td valign="top" class="testo_normale">
<font face="Geneva">
<i>W. Richard Bowen</i>
<br>
"Wa... | [
{
"answer_id": 74672083,
"author": "mike16889",
"author_id": 7340796,
"author_profile": "https://Stackoverflow.com/users/7340796",
"pm_score": 0,
"selected": false,
"text": "import re\n\ndef extract_text(string):\n pattern = r'<br>\\s*(.*?)\\s*(?:<br>|<)'\n regex = re.compile(patte... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74672015",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17356493/"
] |
74,672,034 | <p>the string looks like
(37°35'11.2" N 85°30'40.3"W)</p>
<p>grep does not work</p>
<pre><code>
grep -a "(37\°35\'11\.2\" N 85\°30\'40\.3\"W)" file.txt
grep "(37\°35\'11\.2\" N 85\°30\'40\.3\"W)" file.txt
grep -a "(37°35'11.2\" N 85°30'40.3\"W)" ... | [
{
"answer_id": 74672083,
"author": "mike16889",
"author_id": 7340796,
"author_profile": "https://Stackoverflow.com/users/7340796",
"pm_score": 0,
"selected": false,
"text": "import re\n\ndef extract_text(string):\n pattern = r'<br>\\s*(.*?)\\s*(?:<br>|<)'\n regex = re.compile(patte... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74672034",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/850399/"
] |
74,672,118 | <p>I am trying to send an activity from the botController.cs and I want to catch it from the bot framework composer.
here is the code when I am sending the event activity:</p>
<pre><code>var userAccount = new ChannelAccount("e7h84gd7-fbb5-y3u6-h9d8-f8q3789649ec", "User");
var botAccount = new Channe... | [
{
"answer_id": 74672154,
"author": "affctn",
"author_id": 20678271,
"author_profile": "https://Stackoverflow.com/users/20678271",
"pm_score": 1,
"selected": false,
"text": "var userAccount = new ChannelAccount(\"e7h84gd7-fbb5-y3u6-h9d8-f8q3789649ec\", \"User\");\nvar botAccount = new Cha... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74672118",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15556473/"
] |
74,672,132 | <p>Been beating my head against this and can't get it. Here is the forumla:</p>
<pre><code>=IF(E3=E2,F2,F2+1)
</code></pre>
<p>Pretty simple. All it does is look at the cell above it...if they are the same it doesn't increase the number iteration. If they are different it does. Somehow I can't figure out how to format ... | [
{
"answer_id": 74672139,
"author": "affctn",
"author_id": 20678271,
"author_profile": "https://Stackoverflow.com/users/20678271",
"pm_score": 1,
"selected": false,
"text": "=ARRAYFORMULA(IF(E3:E=E2:E,F2:F,F2:F+1))\n"
},
{
"answer_id": 74672224,
"author": "player0",
"autho... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74672132",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4056670/"
] |
74,672,164 | <p>I'm trying to "reference" (or something like it) a non-primary attribute from a table. Say I have two tables from a database called DoctorsOffice.</p>
<pre><code>CREATE TABLE DOCTOR (
Doctor_ID varchar(10) NOT NULL, -- PRIMARY KEY
Last_name varchar(15) NOT NULL,
First_name varchar(20) NOT NULL,... | [
{
"answer_id": 74672283,
"author": "The Impaler",
"author_id": 6436191,
"author_profile": "https://Stackoverflow.com/users/6436191",
"pm_score": 1,
"selected": false,
"text": "First_name CREATE TABLE DOCTOR (\n Doctor_ID varchar(10) NOT NULL,\n Last_name varchar(15) NOT NULL,\n First_... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74672164",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12283812/"
] |
74,672,168 | <p>Sorry, I know this has been asked before but I have read all the answers and nothing works! Please help.
When I check acutal and expected outputs, they match, but in check50 It gives an error message.
Here is the link for check50 results: <a href="https://submit.cs50.io/check50/6d939efb8a55e3fadec1c60952311f6198cd0e... | [
{
"answer_id": 74672218,
"author": "Andreas Wenzel",
"author_id": 12149471,
"author_profile": "https://Stackoverflow.com/users/12149471",
"pm_score": 2,
"selected": true,
"text": "printf check50 for(int a=0; a<lng ;a++)\n{\n printf(\"%c\",crypt(key,plain[a]));\n}\n strlen(plain)+1 lng... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74672168",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20678264/"
] |
74,672,222 | <pre><code>Type Date Cost
Shampoo 01/31/2022 $10
Shampoo 01/31/2022 $15
Shampoo 02/22/2019 $15
Conditioner 03/15/2020 $17
Conditioner 05/16/2022 $19
Soap. 01/31/2021 $5
Soap 01/06/2022 $2
Soap 12/31... | [
{
"answer_id": 74672236,
"author": "Vinícius Félix",
"author_id": 9696037,
"author_profile": "https://Stackoverflow.com/users/9696037",
"pm_score": 0,
"selected": false,
"text": "library(dplyr)\nlibrary(lubridate)\n\nyour_data_frame %>% \n group_by(type, year = year(dmy(Date))) %>% \n ... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74672222",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6063433/"
] |
74,672,225 | <p>Trying both <code>ng install</code> or <code>npm install</code> fails:</p>
<pre><code>The package @ng-bootstrap/ng-bootstrap@13.1.1 will be installed and executed.
Would you like to proceed? Yes
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: my-app@0.0.... | [
{
"answer_id": 74672236,
"author": "Vinícius Félix",
"author_id": 9696037,
"author_profile": "https://Stackoverflow.com/users/9696037",
"pm_score": 0,
"selected": false,
"text": "library(dplyr)\nlibrary(lubridate)\n\nyour_data_frame %>% \n group_by(type, year = year(dmy(Date))) %>% \n ... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74672225",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/666818/"
] |
74,672,270 | <p>I have an appendable list of <code>View</code> and I want to add space to between each element of my list.</p>
<p>Here is an overview of my code -</p>
<pre><code> list = []
function func(){
button(){
list.append(
<View style = {1}>
...
... | [
{
"answer_id": 74672413,
"author": "Jason Lee",
"author_id": 12827322,
"author_profile": "https://Stackoverflow.com/users/12827322",
"pm_score": 2,
"selected": true,
"text": "style={{marginTop: 12}} list.append(\n <View style={{marginTop: 12}}> \n ...\n ...\n ...\n ... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74672270",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18284412/"
] |
74,672,284 | <p>The groovy script needs to find the x location of string1 and put them into a list. The final output will be like
finaList=[[2,3],[5]]</p>
<p>The following scripts are created by me, but it doesn't work</p>
<pre><code>checkStr='01xx0x1'
i=0
tempaList=[]
finalList=[]
while (i<checkStr.length()){
if(checkStr[i... | [
{
"answer_id": 74672459,
"author": "liuxu",
"author_id": 20653168,
"author_profile": "https://Stackoverflow.com/users/20653168",
"pm_score": -1,
"selected": false,
"text": "checkStr='01xx0x1'\ni=0\ntempaList=[]\nfinalList=[]\n\nwhile(i<checkStr.length()){\n if(checkStr[i]==\"x\"){\n ... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74672284",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20653168/"
] |
74,672,309 | <p>I'm just starting to learn Rust and I'm still working on understanding its approach. The particular thing I'm working on is trying to find out if two strings have any characters in common. In another language I might do this by creating two sets of the characters in the strings and performing an intersection on the ... | [
{
"answer_id": 74672317,
"author": "Stephen Weinberg",
"author_id": 727643,
"author_profile": "https://Stackoverflow.com/users/727643",
"pm_score": 2,
"selected": true,
"text": "HashSet::from_iter() let lines: Vec<&str> = text_from_file.lines().collect();\nlet set1: HashSet<char> = HashS... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74672309",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/76810/"
] |
74,672,338 | <p>I have a data frame that looks like this.</p>
<pre><code>import pandas as pd
import numpy as np
data = [
['A',1,2,3,4],
['A',5,6,7,8],
['A',9,10,11,12],
['B',13,14,15,16],
['B',17,18,19,20],
['B',21,22,23,24],
['B',25,26,27,28],
['C',29,30,31,32],
['C',33,34,35,36],
['C',37,38,39,40],
['D',13,... | [
{
"answer_id": 74672432,
"author": "Panda Kim",
"author_id": 20430449,
"author_profile": "https://Stackoverflow.com/users/20430449",
"pm_score": 3,
"selected": true,
"text": "n = len(weights)\ndf=df.groupby('Name').agg(lambda g: sum(g*weights[n-len(g):])/sum(weights[n-len(g):]))\n df ... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74672338",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16875907/"
] |
74,672,372 | <p>my current issue with my react native app is that when a user wants to open a lesson (from the lessons array with each object being a lesson with a title,description,img url etc)to make it bigger through a modal, its state does not update. What i Mean by this is that the books title,description,and other attributes... | [
{
"answer_id": 74672462,
"author": "yts",
"author_id": 1825352,
"author_profile": "https://Stackoverflow.com/users/1825352",
"pm_score": 0,
"selected": false,
"text": "Modal modalVisible true Modal LessonCard Learn {lessons && lessons.map((doc,key) => (\n <LessonCard lesson={doc} ke... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74672372",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15875108/"
] |
74,672,395 | <p>Very long title but essentially there is a <code>Type 'string' is not assignable to type 'never'.ts(2322) fieldArray.d.ts(7, 5): The expected type comes from property 'name' which is declared here on type 'UseFieldArrayProps<FormValues, never, "id">'</code> error on the fieldArray definition in react... | [
{
"answer_id": 74672462,
"author": "yts",
"author_id": 1825352,
"author_profile": "https://Stackoverflow.com/users/1825352",
"pm_score": 0,
"selected": false,
"text": "Modal modalVisible true Modal LessonCard Learn {lessons && lessons.map((doc,key) => (\n <LessonCard lesson={doc} ke... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74672395",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8865488/"
] |
74,672,405 | <p>I have 3 series with data like below</p>
<pre><code>s1 = [1,1,3]
s2 = [2,3,2]
s3 = [4,2,1]
</code></pre>
<p>I want to create a new series with values such that</p>
<p><code>s_new = [124,132,321]</code></p>
<p>please note that <code>s_new = int(''.join(s1,s2,s3))</code>
I know the above syntax is wrong but you get th... | [
{
"answer_id": 74672486,
"author": "BENY",
"author_id": 7964527,
"author_profile": "https://Stackoverflow.com/users/7964527",
"pm_score": 2,
"selected": true,
"text": "agg s = pd.DataFrame([s1,s2,s3]).astype(str).agg(''.join).astype(int).tolist()\nOut[334]: [124, 132, 321]\n"
},
{
... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74672405",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10758118/"
] |
74,672,423 | <p>Okay, so I've been driving myself crazy trying to get this to display in SQL. I have a table that stores types of food, the culture they come from, a score, and a boolean value about whether or not they are good. I want to display a record of how many "goods" each culture racks up. Here's the table (don... | [
{
"answer_id": 74672486,
"author": "BENY",
"author_id": 7964527,
"author_profile": "https://Stackoverflow.com/users/7964527",
"pm_score": 2,
"selected": true,
"text": "agg s = pd.DataFrame([s1,s2,s3]).astype(str).agg(''.join).astype(int).tolist()\nOut[334]: [124, 132, 321]\n"
},
{
... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74672423",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9883126/"
] |
74,672,427 | <p>Daily I’m receiving a new table with same format name but different dates, I want to concatenate daily new table data with main_table.</p>
<p>I want to concatenate daily new table data with my main table.
Note : Dataset is same, schema also same</p>
| [
{
"answer_id": 74672486,
"author": "BENY",
"author_id": 7964527,
"author_profile": "https://Stackoverflow.com/users/7964527",
"pm_score": 2,
"selected": true,
"text": "agg s = pd.DataFrame([s1,s2,s3]).astype(str).agg(''.join).astype(int).tolist()\nOut[334]: [124, 132, 321]\n"
},
{
... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74672427",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20670906/"
] |
74,672,441 | <p>We are fetching data from API like:</p>
<pre><code><script setup>
import { onMounted, inject } from 'vue'
let list = [];
function init() {
axios
.post("/some-link/here")
.then((o) => {
list = o.data.bla;
console.log(list);
})
.catch((o)... | [
{
"answer_id": 74672486,
"author": "BENY",
"author_id": 7964527,
"author_profile": "https://Stackoverflow.com/users/7964527",
"pm_score": 2,
"selected": true,
"text": "agg s = pd.DataFrame([s1,s2,s3]).astype(str).agg(''.join).astype(int).tolist()\nOut[334]: [124, 132, 321]\n"
},
{
... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74672441",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20621336/"
] |
74,672,444 | <p>I was working on a project, and thought, <em>Couldn't there be an easier way to write a list without having to waste 3 minutes and one line of code?</em> I'm probably wasting even more time here, but suppose I want to spell out "Hello, world!":</p>
<pre><code>class Main {
public static void main(String... | [
{
"answer_id": 74672495,
"author": "Shahood ul Hassan",
"author_id": 7983864,
"author_profile": "https://Stackoverflow.com/users/7983864",
"pm_score": 1,
"selected": false,
"text": "class Main {\n public static void main(String[] args) {\n String[] array = {\"H\", \"E\", \"L\",... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74672444",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20678048/"
] |
74,672,480 | <p>I did the following calculations in Julia</p>
<pre><code>z = LinRange(-0.09025000000000001,0.19025000000000003,5)
d = Normal.(0.05*(1-0.95) .+ 0.95.*z .- 0.0051^2/2, 0.0051 .* (similar(z) .*0 .+1))
minimum(cdf.(d, (z[3]+z[2])/2))
</code></pre>
<p>The problem I have is that the last code sometimes gives me the correc... | [
{
"answer_id": 74673288,
"author": "Rimuru",
"author_id": 6571922,
"author_profile": "https://Stackoverflow.com/users/6571922",
"pm_score": 1,
"selected": false,
"text": "using Pkg\nPkg.add(\"SpecialFunctions\")\nusing SpecialFunctions\n\nz = LinRange(-0.09025000000000001,0.1902500000000... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74672480",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16844272/"
] |
74,672,508 | <p>I've a data set with list of names & combinations and need to map with the team.</p>
<p>For ex, if the list of name is unique, then it should give me team name.. If the name of combination from team, it should give same team name.. Combination between two teams, then it should say team C.</p>
<p>Here is the trix... | [
{
"answer_id": 74673288,
"author": "Rimuru",
"author_id": 6571922,
"author_profile": "https://Stackoverflow.com/users/6571922",
"pm_score": 1,
"selected": false,
"text": "using Pkg\nPkg.add(\"SpecialFunctions\")\nusing SpecialFunctions\n\nz = LinRange(-0.09025000000000001,0.1902500000000... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74672508",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19264018/"
] |
74,672,541 | <p>I have alphabets that I want to assign as follows:</p>
<p>lowercase items a-z have value of 1-26
uppercase items A-Z have value of 27-52</p>
<p>What is the shortest way to implement this</p>
<p>[a,B,h,R]
Expected Output:
[1,28,8,44]</p>
<p>How can we go about doing this in Python</p>
<p>Thank you</p>
| [
{
"answer_id": 74672568,
"author": "Andrew Ryan",
"author_id": 7451892,
"author_profile": "https://Stackoverflow.com/users/7451892",
"pm_score": 0,
"selected": false,
"text": "print([ord(item) - 38 if ord(item) < 97 else ord(item) - 96 for item in ['a','B','h','R']])\n"
},
{
"ans... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74672541",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12098085/"
] |
74,672,587 | <p>I have a header that looks like this:</p>
<pre class="lang-html prettyprint-override"><code><header>
<div>A</div>
<div>B</div>
<div>C</div>
</header>
</code></pre>
<p>Rather than spacing these items evenly, I want all the space to be between A and B, like t... | [
{
"answer_id": 74672568,
"author": "Andrew Ryan",
"author_id": 7451892,
"author_profile": "https://Stackoverflow.com/users/7451892",
"pm_score": 0,
"selected": false,
"text": "print([ord(item) - 38 if ord(item) < 97 else ord(item) - 96 for item in ['a','B','h','R']])\n"
},
{
"ans... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74672587",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/388916/"
] |
74,672,594 | <p>I'm using material top tabs. Problem is, when a state changes in one tab, all other tabs that use the same state render again which slows the app a little. How do I prevent tabs from getting updated unless they are focused / seen ?</p>
| [
{
"answer_id": 74672568,
"author": "Andrew Ryan",
"author_id": 7451892,
"author_profile": "https://Stackoverflow.com/users/7451892",
"pm_score": 0,
"selected": false,
"text": "print([ord(item) - 38 if ord(item) < 97 else ord(item) - 96 for item in ['a','B','h','R']])\n"
},
{
"ans... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74672594",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19860468/"
] |
74,672,630 | <p>So my issue is that, I want to get user's <strong>id</strong> info from the chat.</p>
<p>The chat area what I'm looking for, looks like this...</p>
<pre><code><div id="chat_area" class="chat_area" style="will-change: scroll-position;">
<dl class="" user_id="asdf1... | [
{
"answer_id": 74672568,
"author": "Andrew Ryan",
"author_id": 7451892,
"author_profile": "https://Stackoverflow.com/users/7451892",
"pm_score": 0,
"selected": false,
"text": "print([ord(item) - 38 if ord(item) < 97 else ord(item) - 96 for item in ['a','B','h','R']])\n"
},
{
"ans... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74672630",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7820717/"
] |
74,672,648 | <p>I have this dataframe:</p>
<pre><code>id check_id
1 10
1 100
2 10
3 34
4 12
1 101
</code></pre>
<p>and a list:</p>
<pre><code>list=[10,101]
</code></pre>
<p>I am trying to filter this df like this:</p>
<pre><code>df[(df['id']==1) and (df['check_id'].isin(list))]
</code></pre>
<p... | [
{
"answer_id": 74672568,
"author": "Andrew Ryan",
"author_id": 7451892,
"author_profile": "https://Stackoverflow.com/users/7451892",
"pm_score": 0,
"selected": false,
"text": "print([ord(item) - 38 if ord(item) < 97 else ord(item) - 96 for item in ['a','B','h','R']])\n"
},
{
"ans... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74672648",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18333836/"
] |
74,672,655 | <p>I need your help to deploy a web application developed with spring, java, jpa, mysql.</p>
<p>I have google cloud account.</p>
<p>I have deployed a REST service with a .jar file.</p>
<p>Do you have any reference to any manual or courses?</p>
| [
{
"answer_id": 74672568,
"author": "Andrew Ryan",
"author_id": 7451892,
"author_profile": "https://Stackoverflow.com/users/7451892",
"pm_score": 0,
"selected": false,
"text": "print([ord(item) - 38 if ord(item) < 97 else ord(item) - 96 for item in ['a','B','h','R']])\n"
},
{
"ans... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74672655",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20079590/"
] |
74,672,691 | <p>Unless I am overlooking something, I cannot find the solution to the following.</p>
<p>If I have the following single element vector:</p>
<pre><code>c("133 45123; 4514;25")
</code></pre>
<p>How can I find the position within this element that has the ";" and " ", such that I can then us... | [
{
"answer_id": 74672771,
"author": "onyambu",
"author_id": 8380272,
"author_profile": "https://Stackoverflow.com/users/8380272",
"pm_score": 3,
"selected": true,
"text": "x <- c(\"133 45123; 4514;25\")\n\nstringr::str_extract(x, \"\\\\w+(?=; )\")\n[1] \"45123\"\n sub(\".*?(\\\\w+); .*\",... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74672691",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15326829/"
] |
74,672,767 | <p>I am writing a script that reads two Json files into dictionaries</p>
<p>The dictionaries are more or less similar, like this</p>
<pre><code>{ "elements":[
{
"element_id":0,
"thedata":{
"this": 5
}
},
{
"element... | [
{
"answer_id": 74672771,
"author": "onyambu",
"author_id": 8380272,
"author_profile": "https://Stackoverflow.com/users/8380272",
"pm_score": 3,
"selected": true,
"text": "x <- c(\"133 45123; 4514;25\")\n\nstringr::str_extract(x, \"\\\\w+(?=; )\")\n[1] \"45123\"\n sub(\".*?(\\\\w+); .*\",... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74672767",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4451521/"
] |
74,672,781 | <p>As I know that templates are expanded at compile time but in below example i am deciding or doing
template instantiation at runtime depending on user input but still i am getting expected output.how this running?
can someone explain me</p>
<pre><code>#include <iostream>
using namespace std;
template<typena... | [
{
"answer_id": 74672771,
"author": "onyambu",
"author_id": 8380272,
"author_profile": "https://Stackoverflow.com/users/8380272",
"pm_score": 3,
"selected": true,
"text": "x <- c(\"133 45123; 4514;25\")\n\nstringr::str_extract(x, \"\\\\w+(?=; )\")\n[1] \"45123\"\n sub(\".*?(\\\\w+); .*\",... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74672781",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10931141/"
] |
74,672,798 | <p><a href="https://i.stack.imgur.com/Vtl7B.png" rel="nofollow noreferrer">enter image description here</a></p>
<pre><code>bank_account = None
highest = 0
for account, amount in accounts.items():
if amount > highest: -------------<
bank_account = account
highest = account
... | [
{
"answer_id": 74672771,
"author": "onyambu",
"author_id": 8380272,
"author_profile": "https://Stackoverflow.com/users/8380272",
"pm_score": 3,
"selected": true,
"text": "x <- c(\"133 45123; 4514;25\")\n\nstringr::str_extract(x, \"\\\\w+(?=; )\")\n[1] \"45123\"\n sub(\".*?(\\\\w+); .*\",... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74672798",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20597938/"
] |
74,672,802 | <p>Hi i am trying to get ID card details in a component and form an object "idCardDetails".
In JS i was able to dynamicaly add key and values :
<code>let myObj = {}; myObj.name = "sid"; myObj.num= 4444;</code></p>
<p>I cant create such a dynamic obj in Type script.</p>
<p>I tried this in TS angular
... | [
{
"answer_id": 74672771,
"author": "onyambu",
"author_id": 8380272,
"author_profile": "https://Stackoverflow.com/users/8380272",
"pm_score": 3,
"selected": true,
"text": "x <- c(\"133 45123; 4514;25\")\n\nstringr::str_extract(x, \"\\\\w+(?=; )\")\n[1] \"45123\"\n sub(\".*?(\\\\w+); .*\",... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74672802",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16477896/"
] |
74,672,824 | <p>I am using Python 3.9, PyCharm 2022.</p>
<p>My purpose (Ultimate goal of this question): create a command line application receive 2 parameters:</p>
<ul>
<li>Path of directory</li>
<li>Extension of files</li>
</ul>
<p>then get size of files (Per file size, not sum of files size).</p>
<pre class="lang-py prettyprint-... | [
{
"answer_id": 74672875,
"author": "Alec Cureau",
"author_id": 20590353,
"author_profile": "https://Stackoverflow.com/users/20590353",
"pm_score": 0,
"selected": false,
"text": "parse_args() Namespace path os.listdir(args1.path)\n"
},
{
"answer_id": 74673024,
"author": "tdela... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74672824",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3728901/"
] |
74,672,848 | <p>I am making a chrome extension that aims to pause execution of a tab if it inactive after some time in order to stop if from consuming resources.
By "Pause", I mean something like <code>debugger</code>, however, <code>debugger</code> does not seem to work unless the developer inspector tool is open.</p>
<p... | [
{
"answer_id": 74672875,
"author": "Alec Cureau",
"author_id": 20590353,
"author_profile": "https://Stackoverflow.com/users/20590353",
"pm_score": 0,
"selected": false,
"text": "parse_args() Namespace path os.listdir(args1.path)\n"
},
{
"answer_id": 74673024,
"author": "tdela... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74672848",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6727914/"
] |
74,672,849 | <p>I have two CDK/Cfn stacks which instantiate application load balancers with SSL certificates. I'm using DNS validation which the CDK manages by creating a Lambda function which requests and validates the certificates.</p>
<p>Unfortunately, those Lambda functions were manually deleted and now when I try to update my ... | [
{
"answer_id": 74672875,
"author": "Alec Cureau",
"author_id": 20590353,
"author_profile": "https://Stackoverflow.com/users/20590353",
"pm_score": 0,
"selected": false,
"text": "parse_args() Namespace path os.listdir(args1.path)\n"
},
{
"answer_id": 74673024,
"author": "tdela... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74672849",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1354026/"
] |
74,672,877 | <p>I have a graph that looks like this</p>
<pre><code>A1 A2 A3 A4 A5
\ / \ | /
S1 S2
\ /
E1
</code></pre>
<p>There can be many E nodes. But the essence from the above is:
It is a one to many mapping between E and S nodes
It is a one to many mapping between S and A nodes
The same S... | [
{
"answer_id": 74674085,
"author": "Christophe Willemsen",
"author_id": 2662355,
"author_profile": "https://Stackoverflow.com/users/2662355",
"pm_score": 2,
"selected": false,
"text": "CREATE (e1:E {id: 'e1'})\nCREATE (e2:E {id: 'e2'})\nCREATE (s1:S {id: 's1'})\nCREATE (s2:S {id: 's2'})\... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74672877",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/734748/"
] |
74,672,920 | <p>I'm trying to make a list of employees working in a same department like:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>employeeName</th>
<th>department</th>
<th>employeeName</th>
</tr>
</thead>
<tbody>
<tr>
<td>Tim</td>
<td>2</td>
<td>kim</td>
</tr>
<tr>
<td>Tim</td>
<td>2</td>
<td>Ji... | [
{
"answer_id": 74673367,
"author": "Jonas Metzler",
"author_id": 18794826,
"author_profile": "https://Stackoverflow.com/users/18794826",
"pm_score": 2,
"selected": false,
"text": "CROSS JOIN WHERE SELECT \ne1.emp_name AS employeeName, \ne1.dept_code AS department, \ne2.emp_name AS employ... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74672920",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20387081/"
] |
74,672,925 | <p>I have a test.fasta file with the following data:</p>
<pre><code>>PPP.0124.1.PC lib=RU01 length=410 description=Protein description goes here 1 serine/threonine
MLEAPKFTGIIGLNNNHDNYDLSQGFYHKLGEGSNMSIDSFGSLQLSNGG
GSVAMSVSSVGSNDSHTRILNHQGLKRVNGNYSVARSVNRGKVSHGLSDD
ALAQ
>PPP.14552.PC lib=RU01 length=104 descrip... | [
{
"answer_id": 74673367,
"author": "Jonas Metzler",
"author_id": 18794826,
"author_profile": "https://Stackoverflow.com/users/18794826",
"pm_score": 2,
"selected": false,
"text": "CROSS JOIN WHERE SELECT \ne1.emp_name AS employeeName, \ne1.dept_code AS department, \ne2.emp_name AS employ... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74672925",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19590799/"
] |
74,672,964 | <pre><code>{
"requireCurlyBraces": [ "if", "else", "for", "while", "do" ],
"requireSpaceAfterKeywords": [ "if", "else", "for", "while", "do", "switch", "return" ],
&quo... | [
{
"answer_id": 74673367,
"author": "Jonas Metzler",
"author_id": 18794826,
"author_profile": "https://Stackoverflow.com/users/18794826",
"pm_score": 2,
"selected": false,
"text": "CROSS JOIN WHERE SELECT \ne1.emp_name AS employeeName, \ne1.dept_code AS department, \ne2.emp_name AS employ... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74672964",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20678949/"
] |
74,672,989 | <p>My Product Schema Look like this.</p>
<pre><code>import mongoose from 'mongoose';
const productSchema = new mongoose.Schema(
{
name: { type: String, required: true },
game: {
type: mongoose.Schema.Types.ObjectId,
ref: 'Game',
required: true,
},
catego... | [
{
"answer_id": 74673014,
"author": "Saurabh Mistry",
"author_id": 6943762,
"author_profile": "https://Stackoverflow.com/users/6943762",
"pm_score": 0,
"selected": false,
"text": " const products = await Product.find({}).populate({\n path: 'game',\n model:'Game',\n ... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74672989",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19969053/"
] |
74,673,028 | <p>I'm making a Tetris game now. I want to implement it so that if I press the down key , the block falls quickly, and if I press the left and right keys, the block moves quickly. Pressing the key used the pygame.key.get_pressed() function and used pygame.time.set_timer() function to make speed change. The game speed w... | [
{
"answer_id": 74673014,
"author": "Saurabh Mistry",
"author_id": 6943762,
"author_profile": "https://Stackoverflow.com/users/6943762",
"pm_score": 0,
"selected": false,
"text": " const products = await Product.find({}).populate({\n path: 'game',\n model:'Game',\n ... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74673028",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20108310/"
] |
74,673,076 | <p>I was in <code>class</code> section of python programming and I am confused here.</p>
<p>I have learned that <code>super</code> is used to call the method of <code>parent</code> class but here <code>Employee</code> is not a parent of <code>Programmer</code> yet it's called (showing the result of <code>getLanguage</c... | [
{
"answer_id": 74673125,
"author": "tdelaney",
"author_id": 642070,
"author_profile": "https://Stackoverflow.com/users/642070",
"pm_score": 3,
"selected": true,
"text": "super Programmer Programmer2 Programmer p3 = Programmer()\np3.getLanguage()\n AttributeError: 'super' object has no at... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74673076",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19757319/"
] |
74,673,110 | <p>trying to iterate through an array list with a for loop and initialized a variable p in the loop. when using the variable as an index to get from the arraylist it is giving me a p cannot be resolved to a variable.</p>
<pre><code>for (int p = 0; p < this.playerList.size(); p++);
Player tempPlayer = thi... | [
{
"answer_id": 74673125,
"author": "tdelaney",
"author_id": 642070,
"author_profile": "https://Stackoverflow.com/users/642070",
"pm_score": 3,
"selected": true,
"text": "super Programmer Programmer2 Programmer p3 = Programmer()\np3.getLanguage()\n AttributeError: 'super' object has no at... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74673110",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20679145/"
] |
74,673,119 | <p>I m getting typescript error when I tried to upgraded React-router-dom v5 to v6, How can I fix this typescript error. below you can find the code Thanks in advance</p>
<p>`</p>
<pre><code>export function withRouter(ui: React.ReactElement) {
const history = useNavigate();
const routerValues: any = {
history: ... | [
{
"answer_id": 74673125,
"author": "tdelaney",
"author_id": 642070,
"author_profile": "https://Stackoverflow.com/users/642070",
"pm_score": 3,
"selected": true,
"text": "super Programmer Programmer2 Programmer p3 = Programmer()\np3.getLanguage()\n AttributeError: 'super' object has no at... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74673119",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17257477/"
] |
74,673,132 | <p>I have a users table and a column supervised_by where I want the id of the user who created the new user. For example: get the id of the admin in supervised_by column of the user the admin creates.
<a href="https://i.stack.imgur.com/cR9YB.png" rel="nofollow noreferrer">users table</a></p>
<p>//migration file</p>
<pr... | [
{
"answer_id": 74673155,
"author": "Vicky Maharjan",
"author_id": 9135930,
"author_profile": "https://Stackoverflow.com/users/9135930",
"pm_score": 0,
"selected": false,
"text": "$admin_id = Auth::user()->id;\n $admin_id = Auth::id();\n use Illuminate\\Support\\Facades\\Auth;\n"
},
{... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74673132",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11386553/"
] |
74,673,156 | <p>So I could print out the odd numbers. However, the output isn't what i want. It should look like 1+3+5+7 = 16 but I could not make it into a single line.</p>
<p>I couldn't figure out how to extract the values from the while loop as with my method it only gives the latest odd number which is 7 while 1,3 and 5 could n... | [
{
"answer_id": 74673209,
"author": "Soumendra",
"author_id": 5014656,
"author_profile": "https://Stackoverflow.com/users/5014656",
"pm_score": 0,
"selected": false,
"text": "oddNum odd num = int(input(\"Insert a positive integer:\"))\noddNum = 1\ntotal = 0\ncount = 1\nodd = \"\"\nwhile c... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74673156",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20679149/"
] |
74,673,168 | <p>I've built a simple interface for selecting items from a menu, contained in a component called <code>Sodas</code>, and it's displayed in the Parent component: <code>VendingMachine</code>.</p>
<p>As it is, <code>Sodas</code> is able to successfully change the state in the <code>VendingMachine</code>, however, the sta... | [
{
"answer_id": 74673209,
"author": "Soumendra",
"author_id": 5014656,
"author_profile": "https://Stackoverflow.com/users/5014656",
"pm_score": 0,
"selected": false,
"text": "oddNum odd num = int(input(\"Insert a positive integer:\"))\noddNum = 1\ntotal = 0\ncount = 1\nodd = \"\"\nwhile c... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74673168",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16451251/"
] |
74,673,181 | <p>I want to consolidate the data of column B into a single cell ONLY IF the index (ie., Column A) is duplicated.</p>
<p>For example:</p>
<p><a href="https://i.stack.imgur.com/otMvd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/otMvd.png" alt="enter image description here" /></a></p>
<p>Currently, ... | [
{
"answer_id": 74673209,
"author": "Soumendra",
"author_id": 5014656,
"author_profile": "https://Stackoverflow.com/users/5014656",
"pm_score": 0,
"selected": false,
"text": "oddNum odd num = int(input(\"Insert a positive integer:\"))\noddNum = 1\ntotal = 0\ncount = 1\nodd = \"\"\nwhile c... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74673181",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12870091/"
] |
74,673,241 | <p>In my SQL query, I want to check if a column has the string 'test' and safe the value in a new column</p>
<p>When I use the new column in GROUP BY, I get error saying it can't find the new column:</p>
<pre><code>SELECT
CAST([EvtTime] as date) AS myDay,
CASE WHEN [result] LIKE '%test%' THEN 1 ELSE 0 END AS te... | [
{
"answer_id": 74673272,
"author": "MD Zand",
"author_id": 5118861,
"author_profile": "https://Stackoverflow.com/users/5118861",
"pm_score": 0,
"selected": false,
"text": "SELECT *,\n COUNT_BIG(*) AS myCount\nFROM (\n SELECT\n CAST([EvtTime] as date) AS myDay,\n C... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74673241",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18443805/"
] |
74,673,245 | <p>Trying to scrape all the names from this website with Python:</p>
<p><a href="https://profile.tmb.state.tx.us/Search.aspx?9e94dec6-c7e7-4054-b5fb-20a1fcdbab53" rel="nofollow noreferrer">https://profile.tmb.state.tx.us/Search.aspx?9e94dec6-c7e7-4054-b5fb-20a1fcdbab53</a></p>
<p>The issue is that it limits each search... | [
{
"answer_id": 74673337,
"author": "Alec Cureau",
"author_id": 20590353,
"author_profile": "https://Stackoverflow.com/users/20590353",
"pm_score": 1,
"selected": false,
"text": "a a* a aa* ab* ac*"
}
] | 2022/12/04 | [
"https://Stackoverflow.com/questions/74673245",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12076064/"
] |
74,673,249 | <p>I have a dataframe where the rows contain NaN values. The df contains <strong>original columns</strong> namely <strong>Heading 1 Heading 2 and Heading 3</strong> and <strong>extra columns</strong> called <strong>Unnamed: 1 Unnamed: 2 and Unnamed: 3</strong> as shown:</p>
<div class="s-table-container">
<table class=... | [
{
"answer_id": 74673337,
"author": "Alec Cureau",
"author_id": 20590353,
"author_profile": "https://Stackoverflow.com/users/20590353",
"pm_score": 1,
"selected": false,
"text": "a a* a aa* ab* ac*"
}
] | 2022/12/04 | [
"https://Stackoverflow.com/questions/74673249",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18567298/"
] |
74,673,260 | <p>I want to create WebSecurityConfig class that extends WebSecurityConfigurerAdapter, but I always get error "Cannot resolve symbol 'WebSecurityConfigurerAdapter'".
I have already tried to add different dependencies. It's my gradle file</p>
<pre><code>dependencies {
runtimeOnly 'org.postgresql:postgresql... | [
{
"answer_id": 74674453,
"author": "стасевич",
"author_id": 16436722,
"author_profile": "https://Stackoverflow.com/users/16436722",
"pm_score": 0,
"selected": false,
"text": "WebSecurityConfigurerAdapter SecurityFilterChain @Bean\npublic SecurityFilterChain filterChain(HttpSecurity http)... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74673260",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17588867/"
] |
74,673,300 | <p>Im a newbie, Not able to select items in Radio button, inside a ListTile. I tied to use same code without ListTile and working as expected. Looks like combination is not correct or i might be missing something.</p>
<pre><code>class _TempState extends State<Temp> {
int selectedValue = 0;
@override
Widget... | [
{
"answer_id": 74674453,
"author": "стасевич",
"author_id": 16436722,
"author_profile": "https://Stackoverflow.com/users/16436722",
"pm_score": 0,
"selected": false,
"text": "WebSecurityConfigurerAdapter SecurityFilterChain @Bean\npublic SecurityFilterChain filterChain(HttpSecurity http)... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74673300",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3397828/"
] |
74,673,310 | <p>I'm following an online tutorial on how to build a calculator in C program, but it doesn't work even if I follow it step to step. It always give me 0.000000 as the answer.
So I copied the tutor's own code to try, but it doesn't work either.</p>
<p>Here's my code:</p>
<pre><code> double num1;
double num2;
... | [
{
"answer_id": 74674453,
"author": "стасевич",
"author_id": 16436722,
"author_profile": "https://Stackoverflow.com/users/16436722",
"pm_score": 0,
"selected": false,
"text": "WebSecurityConfigurerAdapter SecurityFilterChain @Bean\npublic SecurityFilterChain filterChain(HttpSecurity http)... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74673310",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20632417/"
] |
74,673,358 | <p>My apologies if this is a duplicate, I couldn't find an answer after searching for a while on Stackoverflow.
I am trying to use a nested loop to find any duplicate characters in a string.
So far, all I can manage to do is to find one duplicate the string.</p>
<p>For example, when I try the string "aabbcde"... | [
{
"answer_id": 74673466,
"author": "flyingfox",
"author_id": 3176419,
"author_profile": "https://Stackoverflow.com/users/3176419",
"pm_score": 0,
"selected": false,
"text": "const myStr1 = \"aabbcde\";\nconst myStr2 = \"ffeddbaa\";\n\nconst duplicateCount = str => {\n let map = {}\n fo... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74673358",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5220731/"
] |
74,673,377 | <p>I have written the following code to generate a <strong>random</strong> list. I want the list to have elements between <strong>0</strong> and <strong>500</strong>, but the <strong>summation</strong> of all elements does not exceed <strong>1300</strong>. I dont know how to continue my code to do that. I have written ... | [
{
"answer_id": 74673408,
"author": "Ouroborus",
"author_id": 367865,
"author_profile": "https://Stackoverflow.com/users/367865",
"pm_score": 2,
"selected": true,
"text": "append while len() < maxLen nv len(bounds) len(var) len(var) var bounds sum() * .uniform() import random\n\nbounds = ... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74673377",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12385685/"
] |
74,673,433 | <p>I hope you're doing well, I just need some help with my problem, been stuck at it for a while now and I cannot figure out a work around. I implemented another login for the admin in my project and I use a custom guard and custom middleware for it. This works properly without any problem. The problem started when I t... | [
{
"answer_id": 74673408,
"author": "Ouroborus",
"author_id": 367865,
"author_profile": "https://Stackoverflow.com/users/367865",
"pm_score": 2,
"selected": true,
"text": "append while len() < maxLen nv len(bounds) len(var) len(var) var bounds sum() * .uniform() import random\n\nbounds = ... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74673433",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15799007/"
] |
74,673,445 | <p>I tried for hours and read many posts but I still can't figure out how to handle this request:</p>
<p>I have a table like this :</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Gender</th>
<th>Marks</th>
</tr>
</thead>
<tbody>
<tr>
<td>M</td>
<td>75</td>
</tr>
<tr>
<td>F</td>
<td>88</td>... | [
{
"answer_id": 74673467,
"author": "Tim Biegeleisen",
"author_id": 1863229,
"author_profile": "https://Stackoverflow.com/users/1863229",
"pm_score": 1,
"selected": false,
"text": "SELECT MAX(Gender) AS Gender,\n Marks,\n CASE WHEN MIN(Gender) = MAX(Gender) THEN 0 ELSE 1 END A... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74673445",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18118826/"
] |
74,673,476 | <p>I am trying to make it so anytime a user enters ."insert word here" the program will recognize this an invalid command and send the user a message saying something like "invalid command type .help for a list of commands". I already have my active commands working but Im not sure how to catch inva... | [
{
"answer_id": 74673497,
"author": "Tim Biegeleisen",
"author_id": 1863229,
"author_profile": "https://Stackoverflow.com/users/1863229",
"pm_score": 2,
"selected": false,
"text": "switch while (true) {\n String userInput = scan.nextLine();\n\n switch(userInput) {\n case \".h... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74673476",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19918960/"
] |
74,673,484 | <p>How should access and refresh tokens obtained from the Twitter API v2 be stored and used in a secure manner?</p>
<p>I can't just store access_token and refresh_token alone, right? I will need some kind of identifier. And probably save that identifier in the client.</p>
<p>Are there any recommended approaches or best... | [
{
"answer_id": 74673497,
"author": "Tim Biegeleisen",
"author_id": 1863229,
"author_profile": "https://Stackoverflow.com/users/1863229",
"pm_score": 2,
"selected": false,
"text": "switch while (true) {\n String userInput = scan.nextLine();\n\n switch(userInput) {\n case \".h... | 2022/12/04 | [
"https://Stackoverflow.com/questions/74673484",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17870144/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.