qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,633,720 | <p>With this script I am trying to parse the content from my Gmail to Google Spreadsheet and it works well with Google Apps Script.</p>
<p>The problem is that in my mail there are two identical fields called "Indirizzo mail:" that I need to be parsed, but I would to parse only the second.</p>
<p>How could I i... | [
{
"answer_id": 74634186,
"author": "Chris",
"author_id": 2199001,
"author_profile": "https://Stackoverflow.com/users/2199001",
"pm_score": 0,
"selected": false,
"text": "@Composable\nfun AlertDialogSample() {\n MaterialTheme {\n Column {\n val openDialog = remember {... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74633720",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14680755/"
] |
74,633,742 | <p>I am working with this code:</p>
<pre><code>test_list = ['small_cat', 'big_dog', 'turtle']
if 'dog' not in test_list:
output = 'Good'
else:
output = 'Bad'
print (Output)
</code></pre>
<p>Because 'dog' is not in the list, 'output' will come back with a response of 'Good'. However, I am looking for 'output... | [
{
"answer_id": 74633767,
"author": "Tom Ron",
"author_id": 1481986,
"author_profile": "https://Stackoverflow.com/users/1481986",
"pm_score": 3,
"selected": true,
"text": "test_list output = 'Good'\nfor test_word in test_list:\n if 'dog' in test_word:\n output = 'Bad'\n b... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74633742",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17212057/"
] |
74,633,755 | <p>Using NetLogo 5.3.1, i'm trying to set up BehaviorSpace so that all its model runs start after exactly the same 500-tick warmup period. However, the results are not intuitive to me.</p>
<p>For illustrative purposes, I will use the 'Flocking.nlogo' model in the model library. Below is the model code, with 2 lines of ... | [
{
"answer_id": 74633767,
"author": "Tom Ron",
"author_id": 1481986,
"author_profile": "https://Stackoverflow.com/users/1481986",
"pm_score": 3,
"selected": true,
"text": "test_list output = 'Good'\nfor test_word in test_list:\n if 'dog' in test_word:\n output = 'Bad'\n b... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74633755",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1087942/"
] |
74,633,763 | <p>I have the following markup:</p>
<pre><code><div class="wrapper">
<div class="one">One</div>
<div class="two">Two</div>
<div class="three">Three</div>
</div>
</code></pre>
<p>I want the layout to accomplish a layout i... | [
{
"answer_id": 74633767,
"author": "Tom Ron",
"author_id": 1481986,
"author_profile": "https://Stackoverflow.com/users/1481986",
"pm_score": 3,
"selected": true,
"text": "test_list output = 'Good'\nfor test_word in test_list:\n if 'dog' in test_word:\n output = 'Bad'\n b... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74633763",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3469841/"
] |
74,633,790 | <p>Consider a matrix where you don't need the third column:</p>
<pre class="lang-matlab prettyprint-override"><code>X = zeros(Int64, (4, 3));
X[:, 1] = [0, 0, 1, 1];
X[:, 2] = [1, 2, 1, 2];
</code></pre>
<pre><code>julia> X
4×3 Matrix{Int64}:
0 1 0
0 2 0
1 1 0
1 2 0
</code></pre>
<p>So you want to select... | [
{
"answer_id": 74633767,
"author": "Tom Ron",
"author_id": 1481986,
"author_profile": "https://Stackoverflow.com/users/1481986",
"pm_score": 3,
"selected": true,
"text": "test_list output = 'Good'\nfor test_word in test_list:\n if 'dog' in test_word:\n output = 'Bad'\n b... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74633790",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12439119/"
] |
74,633,795 | <p>I have three components <code>First</code>, <code>Second</code> and <code>Third</code> that need to render one after the other.</p>
<p>My App looks like this at the moment:</p>
<pre><code>function App() {
return (
<First/>
)
}
</code></pre>
<p>So ideally, there's a form inside <code>First</code> that o... | [
{
"answer_id": 74633767,
"author": "Tom Ron",
"author_id": 1481986,
"author_profile": "https://Stackoverflow.com/users/1481986",
"pm_score": 3,
"selected": true,
"text": "test_list output = 'Good'\nfor test_word in test_list:\n if 'dog' in test_word:\n output = 'Bad'\n b... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74633795",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3327875/"
] |
74,633,844 | <p>I have a form and I want to add a pattern validator to one of the input boxes to only allow numbers between 0 and 130.</p>
<p>I am new in coding and I have no clue what I am doing. I want the input box to get red or have some error message if another number / letters are written.</p>
| [
{
"answer_id": 74633767,
"author": "Tom Ron",
"author_id": 1481986,
"author_profile": "https://Stackoverflow.com/users/1481986",
"pm_score": 3,
"selected": true,
"text": "test_list output = 'Good'\nfor test_word in test_list:\n if 'dog' in test_word:\n output = 'Bad'\n b... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74633844",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18724085/"
] |
74,633,850 | <p>A sequence of non-empty strings stringList is given, containing only uppercase letters of the Latin alphabet. For all strings starting with the same letter, determine their total length and obtain a sequence of strings of the form "S-C", where S is the total length of all strings from stringList that begin... | [
{
"answer_id": 74633935,
"author": "Joe Enos",
"author_id": 111266,
"author_profile": "https://Stackoverflow.com/users/111266",
"pm_score": 1,
"selected": false,
"text": "stringList\n .GroupBy(x => x[0])\n .Select(g => new {\n Len = g.Sum(x => x.Length),\n Char = g.Ke... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74633850",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20569938/"
] |
74,633,851 | <p>I try to compare two dictionaries and if on key, value differs from the other dictionary then print the difference key, value in red.</p>
<p>I think my views.py is correct. But how to show the difference in the template?</p>
<p>So I have views.py:</p>
<pre><code>
def data_compare():
fruits = {
"appe... | [
{
"answer_id": 74633935,
"author": "Joe Enos",
"author_id": 111266,
"author_profile": "https://Stackoverflow.com/users/111266",
"pm_score": 1,
"selected": false,
"text": "stringList\n .GroupBy(x => x[0])\n .Select(g => new {\n Len = g.Sum(x => x.Length),\n Char = g.Ke... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74633851",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7713770/"
] |
74,633,905 | <p>I'm getting started with packaging a Python library, and I'm experiencing odd behavior when trying to import a function. I built a wheel for this library and installed in my conda environment using pip. The structure of my library is:</p>
<pre><code>|- setup.py
|- test_package
|- __init__.py
|- module1.py
... | [
{
"answer_id": 74633979,
"author": "Noah May",
"author_id": 4373214,
"author_profile": "https://Stackoverflow.com/users/4373214",
"pm_score": 0,
"selected": false,
"text": "test_package/__init__.py import myutils\n __init__.py module/__init__.py module.py"
},
{
"answer_id": 74634... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74633905",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20648944/"
] |
74,633,907 | <p>I have the beginnings of some python that will take columns out of a specific csv file and then rename the csv columns something else. The issue that I have is the CSV file will always be in the same directory this script is ran in, but the name won't always be the same (and there will only ever be one csv in the di... | [
{
"answer_id": 74633948,
"author": "abokey",
"author_id": 16120011,
"author_profile": "https://Stackoverflow.com/users/16120011",
"pm_score": 2,
"selected": true,
"text": "glob.glob *.csv from glob import glob\nimport pandas as pd\n\ncsv_file = glob(\"*.csv\")[0]\n\ndf= pd.read_csv(csv_f... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74633907",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19137886/"
] |
74,633,912 | <p>Azure DevOps 2020, I created a new project collection on our DevOps server. When I went to create a new project for that new collection from my work computer browser, I received this message:</p>
<p><em><strong>Oops, something went wrong. Project creation operation failed.</strong></em></p>
<p>Hitting button Try Aga... | [
{
"answer_id": 74633948,
"author": "abokey",
"author_id": 16120011,
"author_profile": "https://Stackoverflow.com/users/16120011",
"pm_score": 2,
"selected": true,
"text": "glob.glob *.csv from glob import glob\nimport pandas as pd\n\ncsv_file = glob(\"*.csv\")[0]\n\ndf= pd.read_csv(csv_f... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74633912",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8149311/"
] |
74,633,925 | <p>Having diffuclty grasping the concept of generics. How can I return a vector from a function with a generic value? I'd like to input text and the output be either a vector of eithers strings or integers. However, the compiler gives me <code>error[E0277]: <T as FromStr>::Err doesn't implement Debug</code>. It's... | [
{
"answer_id": 74634097,
"author": "PitaJ",
"author_id": 847382,
"author_profile": "https://Stackoverflow.com/users/847382",
"pm_score": 2,
"selected": false,
"text": "unwrap unwrap <T as FromStr>::Err Debug Result use std::str::FromStr;\n\nfn main() {\n let a: Vec<u32> = text_to_vec(... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74633925",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8973803/"
] |
74,633,966 | <p>I'm doing a project for my school about the solar system and I added a line (image) to represent the distance between the planets. I tried searching for an answer but all the other websites told to use float left to position my text</p>
<p>HTML:</p>
<pre><code><main>
<div>
<!-- Ima... | [
{
"answer_id": 74634196,
"author": "dbonev",
"author_id": 4200334,
"author_profile": "https://Stackoverflow.com/users/4200334",
"pm_score": 0,
"selected": false,
"text": "<main>\n <div>\n <!-- Images des planetes -->\n <div class=\"inner\">\n <... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74633966",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20478892/"
] |
74,633,999 | <p>I am trying to create a new column "Starting_time" by subtracting 60 days out of "Harvest_date" but I get the same date each time. Can someone point out what did I do wrong please?</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Harvest_date</th>
</tr>
</thead>
<tbody... | [
{
"answer_id": 74634196,
"author": "dbonev",
"author_id": 4200334,
"author_profile": "https://Stackoverflow.com/users/4200334",
"pm_score": 0,
"selected": false,
"text": "<main>\n <div>\n <!-- Images des planetes -->\n <div class=\"inner\">\n <... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74633999",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11125039/"
] |
74,634,022 | <p>Let's say I have two tables like below:</p>
<p><strong>users</strong> table:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>user_id</th>
<th>name</th>
</tr>
</thead>
<tbody>
<tr>
<td>0</td>
<td>kevin</td>
</tr>
<tr>
<td>1</td>
<td>alice</td>
</tr>
<tr>
<td>2</td>
<td>jake</td>
</tr>
<tr... | [
{
"answer_id": 74634196,
"author": "dbonev",
"author_id": 4200334,
"author_profile": "https://Stackoverflow.com/users/4200334",
"pm_score": 0,
"selected": false,
"text": "<main>\n <div>\n <!-- Images des planetes -->\n <div class=\"inner\">\n <... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74634022",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13538357/"
] |
74,634,028 | <p>so some time ago i was assigned a project to find the position relative to time of a simulated pendulum on a free moving cart, i managed to calculate some equations to describe this motion and i tried to simulate it in python to make sure it is correct. The program i made can run and plot its position correctly, but... | [
{
"answer_id": 74634196,
"author": "dbonev",
"author_id": 4200334,
"author_profile": "https://Stackoverflow.com/users/4200334",
"pm_score": 0,
"selected": false,
"text": "<main>\n <div>\n <!-- Images des planetes -->\n <div class=\"inner\">\n <... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74634028",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20649661/"
] |
74,634,070 | <p>trying to convert pandas dataframe column from a to b as below -</p>
<pre><code>import pandas as pd
a = {'01AB': [["ABC",5],["XYZ",4],["LMN",1]],
'02AB_QTY': [["Other",20],["not_Other",150],["another",15]]}
b = {'01AB': {"ABC":5,"XYZ&q... | [
{
"answer_id": 74634235,
"author": "Ivan Perehiniak",
"author_id": 20637117,
"author_profile": "https://Stackoverflow.com/users/20637117",
"pm_score": 1,
"selected": false,
"text": "for key, list_item in a.items():\n a[key] = {v[0]:v[1] for v in list_item}\n b = {}\nfor key, list_item... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74634070",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16578438/"
] |
74,634,073 | <p>I wasn't sure how to word this question.</p>
<p>I have a data frame called p08, that shows how each state voted in the 2008 election. The indicator variable is named 'DemStatus' where 1==voted democrat and 0==voted republican.</p>
<p>I want to label each state as republican and democrat for all four years between el... | [
{
"answer_id": 74634106,
"author": "r2evans - GO NAVY BEAT ARMY",
"author_id": 3358272,
"author_profile": "https://Stackoverflow.com/users/3358272",
"pm_score": 2,
"selected": false,
"text": "library(dplyr)\np08 %>%\n left_join(tibble(YEAR=2008, YEAR1=2008:2011), by = \"YEAR\") %>%\n m... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74634073",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15858688/"
] |
74,634,076 | <p>I am trying to solve this problem. Here is my question that I am trying to solve using SQL.</p>
<ol>
<li><p>I have a project table which has many columns with data; such as (<code>ID</code>, <code>TITLE</code>, <code>DESCRIPTIO</code>,..ETC).</p>
</li>
<li><p>I have another table called field table; the field table ... | [
{
"answer_id": 74634198,
"author": "nbk",
"author_id": 5193536,
"author_profile": "https://Stackoverflow.com/users/5193536",
"pm_score": 0,
"selected": false,
"text": "INSERT INTO FIELD (NAME, LABEL, DATATYPE,ALIGNMENT,\n ISPROJECTID) \nSELECT 'record_id','Record ID','... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74634076",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13668877/"
] |
74,634,082 | <p>I would like to access my server that I host on my computer (Node.js & Express) from my phone. The computer is on the same network as the phone.</p>
<p>As soon as I type localhost:3000 in the address bar of the browser on the desktop PC, everything works without problems.</p>
<p>If I now try to open my site with... | [
{
"answer_id": 74634198,
"author": "nbk",
"author_id": 5193536,
"author_profile": "https://Stackoverflow.com/users/5193536",
"pm_score": 0,
"selected": false,
"text": "INSERT INTO FIELD (NAME, LABEL, DATATYPE,ALIGNMENT,\n ISPROJECTID) \nSELECT 'record_id','Record ID','... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74634082",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17788969/"
] |
74,634,093 | <p>Good afternoon. I work for a telecom company, specifically in the Customer Success team. I created a spreadsheet for one of my customers monthly invoice using the raw csv file that our billing system generates. It works fine in excel, but is a bit messy, and my higher ups wanted me to start using power BI. I was abl... | [
{
"answer_id": 74634718,
"author": "David Browne - Microsoft",
"author_id": 7297700,
"author_profile": "https://Stackoverflow.com/users/7297700",
"pm_score": 1,
"selected": false,
"text": "let\n dir = Folder.Contents(\"c:\\temp\" ),\n #\"Filtered Rows\" = Table.SelectRows(dir, each... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74634093",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20649726/"
] |
74,634,127 | <p>I am in the process of writing my own task app using Django and would like a few specific functions to be executed every day at a certain time (updating tasks, checking due dates, etc.). Is there a way to have Django run functions on a regular basis or how do I go about this in general?</p>
<p>Does it make sense to ... | [
{
"answer_id": 74634718,
"author": "David Browne - Microsoft",
"author_id": 7297700,
"author_profile": "https://Stackoverflow.com/users/7297700",
"pm_score": 1,
"selected": false,
"text": "let\n dir = Folder.Contents(\"c:\\temp\" ),\n #\"Filtered Rows\" = Table.SelectRows(dir, each... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74634127",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16554083/"
] |
74,634,139 | <p>I installed the ingress controller using the following command:</p>
<p><code>kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.5.1/deploy/static/provider/cloud/deploy.yaml</code></p>
<p>And the result of <code>kubectl get pods --namespace=ingress-nginx</code> is:</p>
<pre><cod... | [
{
"answer_id": 74634718,
"author": "David Browne - Microsoft",
"author_id": 7297700,
"author_profile": "https://Stackoverflow.com/users/7297700",
"pm_score": 1,
"selected": false,
"text": "let\n dir = Folder.Contents(\"c:\\temp\" ),\n #\"Filtered Rows\" = Table.SelectRows(dir, each... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74634139",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19155128/"
] |
74,634,142 | <p>I have a number of long strings and I want to match those that contain all <strong>words</strong> of a given list.</p>
<pre><code>keywords=['special','dreams']
search_string1="This is something that manifests especially in dreams"
search_string2="This is something that manifests in special cases in dr... | [
{
"answer_id": 74634718,
"author": "David Browne - Microsoft",
"author_id": 7297700,
"author_profile": "https://Stackoverflow.com/users/7297700",
"pm_score": 1,
"selected": false,
"text": "let\n dir = Folder.Contents(\"c:\\temp\" ),\n #\"Filtered Rows\" = Table.SelectRows(dir, each... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74634142",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5539535/"
] |
74,634,223 | <p>I used a Redgate tool to synchronize data from a SQL Server database, and in the process, the tool created four new columns in each table with names like <code>createdby</code>, <code>updatedby</code>, etc.</p>
<p>Now that the data is in sync, I don't want these columns anymore.</p>
<p>Is there a simple way, maybe a... | [
{
"answer_id": 74634416,
"author": "Piotr Rodak",
"author_id": 227606,
"author_profile": "https://Stackoverflow.com/users/227606",
"pm_score": 3,
"selected": true,
"text": "ALTER TABLE table_name\nDROP COLUMN column_name;\n select 'alter table ' + quotename(table_schema) + '.' + quotenam... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74634223",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/358574/"
] |
74,634,225 | <p>On a MAUI app, I'm trying to pass a value from one page to another through their respective ViewModels, but it's not working and for the life of me I can't figure out why.</p>
<p>Source VM:</p>
<pre><code>[RelayCommand]
public async Task GetAdvertDetailsPageAsync(int advertId)
{
await Shell.Current.GoToAsync($&q... | [
{
"answer_id": 74634416,
"author": "Piotr Rodak",
"author_id": 227606,
"author_profile": "https://Stackoverflow.com/users/227606",
"pm_score": 3,
"selected": true,
"text": "ALTER TABLE table_name\nDROP COLUMN column_name;\n select 'alter table ' + quotename(table_schema) + '.' + quotenam... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74634225",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9978445/"
] |
74,634,267 | <p>I have a Django container and I want to consume another DL container inside it? For example, I have a Django app that predicting images classes and I want to make the prediction using a docker container and not a python library. That Django app will be containerised as well. In production, I will have three docker c... | [
{
"answer_id": 74634416,
"author": "Piotr Rodak",
"author_id": 227606,
"author_profile": "https://Stackoverflow.com/users/227606",
"pm_score": 3,
"selected": true,
"text": "ALTER TABLE table_name\nDROP COLUMN column_name;\n select 'alter table ' + quotename(table_schema) + '.' + quotenam... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74634267",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13473785/"
] |
74,634,277 | <p>so i have a database that has a payment entity within it, the payment entity has few parameters, the most important one is the date parameter, the problem that am facing is am trying to sort the list of payments in the database into a list of lists, each mini list contains the payments made on the same day, <a href=... | [
{
"answer_id": 74634416,
"author": "Piotr Rodak",
"author_id": 227606,
"author_profile": "https://Stackoverflow.com/users/227606",
"pm_score": 3,
"selected": true,
"text": "ALTER TABLE table_name\nDROP COLUMN column_name;\n select 'alter table ' + quotename(table_schema) + '.' + quotenam... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74634277",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18222209/"
] |
74,634,301 | <p>I wrote code in JavaScript for a counter to be output in my HTML webpage, but nothing is being printed. Where is my logic wrong?</p>
<pre><code><script>
function calCountDown(){
var temp = new Date("Dec 11, 2022"); //makes an object 'temp' with current date and time
var deadline = temp.getTim... | [
{
"answer_id": 74634416,
"author": "Piotr Rodak",
"author_id": 227606,
"author_profile": "https://Stackoverflow.com/users/227606",
"pm_score": 3,
"selected": true,
"text": "ALTER TABLE table_name\nDROP COLUMN column_name;\n select 'alter table ' + quotename(table_schema) + '.' + quotenam... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74634301",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20411469/"
] |
74,634,321 | <p>In the new version of Android Studio (Flamingo | 2022.2.1 Canary 9) with the org.jetbrains.kotlin (1.8.0-Beta) plugin and 8.0.0-alpha09 gradle plugin, a new build suddenly gets this error:</p>
<blockquote>
<p>Build Type 'release' contains custom BuildConfig fields, but the feature is disabled.</p>
</blockquote>
<p>I... | [
{
"answer_id": 74634322,
"author": "fattire",
"author_id": 3035127,
"author_profile": "https://Stackoverflow.com/users/3035127",
"pm_score": 2,
"selected": false,
"text": "gradle.properties android.defaults.buildfeatures.buildconfig=true\n buildConfigField BuildConfig.java build.gradle b... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74634321",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3035127/"
] |
74,634,347 | <p>I'm a beginner and I'm trying to figure out a way to get the corresponding neighbors of an index in a 2D array.</p>
<pre><code>
public class Main {
public static int[][] graph(){
int[][] myGraph = {
{1, 2, 3, 4, 5},
{6, 7, 8, 9, 10},
{11, 12, 13, 1... | [
{
"answer_id": 74634322,
"author": "fattire",
"author_id": 3035127,
"author_profile": "https://Stackoverflow.com/users/3035127",
"pm_score": 2,
"selected": false,
"text": "gradle.properties android.defaults.buildfeatures.buildconfig=true\n buildConfigField BuildConfig.java build.gradle b... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74634347",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20020829/"
] |
74,634,383 | <p>Let's say I have a cheap and less reliable datacenter A, and an expensive and more reliable datacenter B. I want to run Kafka in the <strong>most cost-effective</strong> way, even if that means risking data loss and/or downtime. I can run any number of brokers in either datacenter, but remember that costs need to be... | [
{
"answer_id": 74634322,
"author": "fattire",
"author_id": 3035127,
"author_profile": "https://Stackoverflow.com/users/3035127",
"pm_score": 2,
"selected": false,
"text": "gradle.properties android.defaults.buildfeatures.buildconfig=true\n buildConfigField BuildConfig.java build.gradle b... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74634383",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5859621/"
] |
74,634,406 | <p>Based on the script originally suggested by u/commandlineluser at reddit, I (as a Python novice) attempted to revise the original code to remove unwanted parts that vary across column values. The Python script involves creating a dictionary with keys and values and using a list comprehension with str.replace.</p>
<p... | [
{
"answer_id": 74634322,
"author": "fattire",
"author_id": 3035127,
"author_profile": "https://Stackoverflow.com/users/3035127",
"pm_score": 2,
"selected": false,
"text": "gradle.properties android.defaults.buildfeatures.buildconfig=true\n buildConfigField BuildConfig.java build.gradle b... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74634406",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1849365/"
] |
74,634,440 | <p>I have two 2d arrays, one containing float values, one containing bool. I want to create an array containing the mean values of the first matrix for each column considering only the values corresponding to False in the second matrix.</p>
<p>For example:</p>
<pre><code>A = [[1 3 5]
[2 4 6]
[3 1 0]]
B = [[T... | [
{
"answer_id": 74634632,
"author": "gleerman",
"author_id": 726156,
"author_profile": "https://Stackoverflow.com/users/726156",
"pm_score": 0,
"selected": false,
"text": "A = [[1, 3, 5],\n [2, 4, 6],\n [3, 1, 0]]\n\nB = [[True, False, False],\n [False, False, False],\n [T... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74634440",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13955154/"
] |
74,634,456 | <p>I am trying to access an object within an object using the key from another object.</p>
<p>I have two objects:</p>
<pre><code>const OutputReference = {Key1: "Some Random String",Key2: "Some Random String"}
const masterKey = {
...
'Key1':{
Label: "Key 1",
view: [1,2,3],
},
'Key2':{
Label... | [
{
"answer_id": 74634632,
"author": "gleerman",
"author_id": 726156,
"author_profile": "https://Stackoverflow.com/users/726156",
"pm_score": 0,
"selected": false,
"text": "A = [[1, 3, 5],\n [2, 4, 6],\n [3, 1, 0]]\n\nB = [[True, False, False],\n [False, False, False],\n [T... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74634456",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18748354/"
] |
74,634,459 | <p>I want to create a public and private key using curve25519 to encrypt some data in a file. It looks like iOS has something in the CryptoKit to allow clients to build something like this below. How can I use Curve25519 encryption in an Android project? I could not find any android-specific libraries that come with it... | [
{
"answer_id": 74634632,
"author": "gleerman",
"author_id": 726156,
"author_profile": "https://Stackoverflow.com/users/726156",
"pm_score": 0,
"selected": false,
"text": "A = [[1, 3, 5],\n [2, 4, 6],\n [3, 1, 0]]\n\nB = [[True, False, False],\n [False, False, False],\n [T... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74634459",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8207093/"
] |
74,634,468 | <p>So here's a simple algorithmic problem,</p>
<blockquote>
<p>Given a list of integers, check if there are two numbers in this list that when added together give eight (8).</p>
</blockquote>
<p>Here's my solution,</p>
<pre><code>import java.util.List;
public class Main {
static List<Integer> arrayOne = Lis... | [
{
"answer_id": 74634632,
"author": "gleerman",
"author_id": 726156,
"author_profile": "https://Stackoverflow.com/users/726156",
"pm_score": 0,
"selected": false,
"text": "A = [[1, 3, 5],\n [2, 4, 6],\n [3, 1, 0]]\n\nB = [[True, False, False],\n [False, False, False],\n [T... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74634468",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20395420/"
] |
74,634,484 | <p>I am using javascript to check if a pdf or doc extension is found in the item of a list. If it is, I want to remove that element. Is there an easy way to make this work. I can detect if its there. It returns true, but not sure how to select that specific element.</p>
<p><div class="snippet" data-lang="js" data-hide=... | [
{
"answer_id": 74634515,
"author": "Dimava",
"author_id": 5734961,
"author_profile": "https://Stackoverflow.com/users/5734961",
"pm_score": -1,
"selected": false,
"text": "function hasExtOfList(src, list) {\n return list.some(ext => src.includes(ext))\n}\n\nhasExtOfList(\n document.qu... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74634484",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4570185/"
] |
74,634,504 | <p>I'm writing a library with both a C and C++ API. I need to write many enums in the C API and wrap them in the C++ API.</p>
<pre class="lang-c prettyprint-override"><code>typedef enum PREFIX_SomeType
{
PREFIX_SOME_TYPE_A,
PREFIX_SOME_TYPE_B,
PREFIX_SOME_TYPE_C,
} PREFIX_SomeType;
</code></pre>
<p>In the C... | [
{
"answer_id": 74635006,
"author": "David Ranieri",
"author_id": 1606345,
"author_profile": "https://Stackoverflow.com/users/1606345",
"pm_score": 1,
"selected": false,
"text": "#define SOME_TYPE \\\n X(SOME_TYPE_A) \\\n X(SOME_TYPE_B) \\\n X(SOME_TYPE_C)\n typedef enum PREF... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74634504",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6410671/"
] |
74,634,540 | <p>I am trying to create an array of 10 for each item I have, but then put those arrays of 10 into a larger array diagonally with zeros filling the missing spaces.</p>
<p>Here is an example of what I am looking for, but only with arrays of 3.</p>
<pre><code>import numpy as np
arr = np.tri(3,3)
arr
</code></pre>
<p>This... | [
{
"answer_id": 74635006,
"author": "David Ranieri",
"author_id": 1606345,
"author_profile": "https://Stackoverflow.com/users/1606345",
"pm_score": 1,
"selected": false,
"text": "#define SOME_TYPE \\\n X(SOME_TYPE_A) \\\n X(SOME_TYPE_B) \\\n X(SOME_TYPE_C)\n typedef enum PREF... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74634540",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20454313/"
] |
74,634,598 | <p>For some reason Rust Analyzer isn't generating a warning for undefined variables. Do I need to tweak some settings somewhere?</p>
<p><a href="https://i.stack.imgur.com/YHdCN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YHdCN.png" alt="enter image description here" /></a></p>
<p>I'm also not get... | [
{
"answer_id": 74635006,
"author": "David Ranieri",
"author_id": 1606345,
"author_profile": "https://Stackoverflow.com/users/1606345",
"pm_score": 1,
"selected": false,
"text": "#define SOME_TYPE \\\n X(SOME_TYPE_A) \\\n X(SOME_TYPE_B) \\\n X(SOME_TYPE_C)\n typedef enum PREF... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74634598",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13131208/"
] |
74,634,672 | <p>I'm using Trino/Presto and trying to unnest array column which can contain rows with empty or null arrays which results in such rows missing:</p>
<pre><code>with table1(id, arr) as (
values (1, array[1,2,3]),
(2, array[]),
(3, array[42]),
(4, null)
)
select id, a
from table1
cro... | [
{
"answer_id": 74634706,
"author": "Guru Stron",
"author_id": 2501279,
"author_profile": "https://Stackoverflow.com/users/2501279",
"pm_score": 2,
"selected": true,
"text": "unnest null unnest cross join -- query\nselect id, a\nfrom table1,\nunnest(arr, array[1]) as t(a, ignored);\n"
}... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74634672",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20472928/"
] |
74,634,692 | <p>I have a class template, that creates a class with two members:</p>
<pre><code>template<typename coordinateType, typename ...DataTypes>
class Object{
public:
std::tuple<coordinateType, coordinateType, coordinateType> position;
std::tuple<std::vector<DataTypes>...> plan... | [
{
"answer_id": 74634706,
"author": "Guru Stron",
"author_id": 2501279,
"author_profile": "https://Stackoverflow.com/users/2501279",
"pm_score": 2,
"selected": true,
"text": "unnest null unnest cross join -- query\nselect id, a\nfrom table1,\nunnest(arr, array[1]) as t(a, ignored);\n"
}... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74634692",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9776926/"
] |
74,634,699 | <p>I need a code to get the first and second numbers from the PHP string.</p>
<p><code>$string = "ACCESS_NUMBER:160375356:13176570247"; $stringOne = ""; $stringTwo = "";</code>
I need a code that can get 160375356 and store it in $stringOne and also get this 13176570247 and store it in str... | [
{
"answer_id": 74634731,
"author": "Harley Swift",
"author_id": 12348779,
"author_profile": "https://Stackoverflow.com/users/12348779",
"pm_score": 0,
"selected": false,
"text": "$pizza = \"piece1 piece2 piece3 piece4 piece5 piece6\";\n$pieces = explode(\" \", $pizza);\necho $pieces[0];... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74634699",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20520274/"
] |
74,634,781 | <p>I am a beginner programmer, working on a project for an online course. I am trying to build a tip calculator. I want it to take input from the user for three values: Bill total, how many are splitting the bill, and the percent they would wish to tip. My conditional statement only has one if:</p>
<p>if meal_price >... | [
{
"answer_id": 74634731,
"author": "Harley Swift",
"author_id": 12348779,
"author_profile": "https://Stackoverflow.com/users/12348779",
"pm_score": 0,
"selected": false,
"text": "$pizza = \"piece1 piece2 piece3 piece4 piece5 piece6\";\n$pieces = explode(\" \", $pizza);\necho $pieces[0];... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74634781",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20650051/"
] |
74,634,784 | <p>What am I doing wrong?</p>
<p>This is all the code needed to reproduce.</p>
<pre class="lang-py prettyprint-override"><code>import pandas as pd
g = pd.Grouper('datetime', freq='D')
</code></pre>
<p>Result:</p>
<pre class="lang-none prettyprint-override"><code>---------------------------------------------------------... | [
{
"answer_id": 74634898,
"author": "cottontail",
"author_id": 19123103,
"author_profile": "https://Stackoverflow.com/users/19123103",
"pm_score": 1,
"selected": false,
"text": "key g = pd.Grouper(key='datetime', freq='D')\nprint(type(g))\n# pandas.core.resample.TimeGrouper\n TimeGrouper ... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74634784",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7644741/"
] |
74,634,786 | <p>I have a class that can accept arithmetic types and std::complex. A simplified code of the class is</p>
<pre class="lang-cpp prettyprint-override"><code>#include <complex>
template<typename T> struct is_complex : std::false_type {};
template<typename T> struct is_complex<std::complex<T>&g... | [
{
"answer_id": 74634872,
"author": "HolyBlackCat",
"author_id": 2752075,
"author_profile": "https://Stackoverflow.com/users/2752075",
"pm_score": 1,
"selected": false,
"text": "requires struct nullptr_value_type {using value_type = std::nullptr_t;};\n using elem_or_null_t = typename std:... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74634786",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15112100/"
] |
74,634,801 | <p>Im still new to javascript and ajax and all that. Im working on a project for my web dev course and have been stuck on this for a while now. The professor hasnt been of any help.</p>
<p>I am making a data page. On the index there are 4 radio buttons, each on loading another html page into the div. Each of these ... | [
{
"answer_id": 74634872,
"author": "HolyBlackCat",
"author_id": 2752075,
"author_profile": "https://Stackoverflow.com/users/2752075",
"pm_score": 1,
"selected": false,
"text": "requires struct nullptr_value_type {using value_type = std::nullptr_t;};\n using elem_or_null_t = typename std:... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74634801",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20650126/"
] |
74,634,811 | <p>We have a site design that makes use of modules that are developed separately from the master site. Thru reflection, we pick up the modules when the main app starts.</p>
<p>This works fine in local development and on a normal web server. But in the Azure environment when we try to use FTP to deploy the modules to ou... | [
{
"answer_id": 74634872,
"author": "HolyBlackCat",
"author_id": 2752075,
"author_profile": "https://Stackoverflow.com/users/2752075",
"pm_score": 1,
"selected": false,
"text": "requires struct nullptr_value_type {using value_type = std::nullptr_t;};\n using elem_or_null_t = typename std:... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74634811",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/61623/"
] |
74,634,832 | <p>How can I document a method that a subclass overrides without being redundant? For example...</p>
<pre><code>class Parent
# Is this the parent?
# @return [Boolean]
def parent?
true
end
end
class Child < Parent
def parent?
false
end
end
</code></pre>
<p>YARD generates something like this.</p>
... | [
{
"answer_id": 74634872,
"author": "HolyBlackCat",
"author_id": 2752075,
"author_profile": "https://Stackoverflow.com/users/2752075",
"pm_score": 1,
"selected": false,
"text": "requires struct nullptr_value_type {using value_type = std::nullptr_t;};\n using elem_or_null_t = typename std:... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74634832",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14660/"
] |
74,634,925 | <p>Following example code is provided in order to introduce the matter ...</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>const elm = document.getElementById('fname');
elm.... | [
{
"answer_id": 74635445,
"author": "Marlon Amado",
"author_id": 11816824,
"author_profile": "https://Stackoverflow.com/users/11816824",
"pm_score": -1,
"selected": false,
"text": "const body = document.querySelector('body')\nconst btn = document.getElementById('btn'); \nconst el = docum... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74634925",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12160654/"
] |
74,634,945 | <p>I need to find the line, that contains the longest word from a txt file. I can find the longest word but I am not able to find in which line that word is.
Here is the part of the code that works for me. I've tried a bunch of ways to find the line but I failed (I am a begginer at python).</p>
<pre><code>def reading()... | [
{
"answer_id": 74635445,
"author": "Marlon Amado",
"author_id": 11816824,
"author_profile": "https://Stackoverflow.com/users/11816824",
"pm_score": -1,
"selected": false,
"text": "const body = document.querySelector('body')\nconst btn = document.getElementById('btn'); \nconst el = docum... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74634945",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20392142/"
] |
74,635,000 | <p>Currently we have a set of microservice hosted on kubernetes cluster. We are setting hpa values based on rough estimates. I am planning to monitor horizontal pod autoscaling behavior using grafana to ensure we are not over/under allocating the resources like CPU/memory and come up with possible cost optimization rec... | [
{
"answer_id": 74635445,
"author": "Marlon Amado",
"author_id": 11816824,
"author_profile": "https://Stackoverflow.com/users/11816824",
"pm_score": -1,
"selected": false,
"text": "const body = document.querySelector('body')\nconst btn = document.getElementById('btn'); \nconst el = docum... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74635000",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7055628/"
] |
74,635,060 | <p>I have a monorepo for a fullstack webapp with the following directory structure</p>
<pre><code>.
├── client
│ ├── index.html
│ ├── package.json
│ ├── src
│ └── vite.config.ts
├── node_modules
├── package-lock.json
├── package.json
├── server
│ ├── package.json
│ └── src
├── tsconfig.json
└── tsconfig.nod... | [
{
"answer_id": 74635445,
"author": "Marlon Amado",
"author_id": 11816824,
"author_profile": "https://Stackoverflow.com/users/11816824",
"pm_score": -1,
"selected": false,
"text": "const body = document.querySelector('body')\nconst btn = document.getElementById('btn'); \nconst el = docum... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74635060",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12574341/"
] |
74,635,091 | <p>I am currently writing a code in Python where the objective is to find the root of the output of a function with respect to input variable x. The code looks like this:</p>
<pre><code>def Compound_Correlation_Function(x):
# Here comes a long part of the code...
Equity_Solve = Tranches.loc[0,... | [
{
"answer_id": 74635445,
"author": "Marlon Amado",
"author_id": 11816824,
"author_profile": "https://Stackoverflow.com/users/11816824",
"pm_score": -1,
"selected": false,
"text": "const body = document.querySelector('body')\nconst btn = document.getElementById('btn'); \nconst el = docum... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74635091",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20650270/"
] |
74,635,099 | <p>Sample table:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>object_id</th>
<th>event_time</th>
<th>event_type</th>
<th>event_subtype</th>
<th>stage</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>2022-10-01</td>
<td>create</td>
<td>name, stage</td>
<td>A</td>
</tr>
<tr>
<td>1</td>
<td>... | [
{
"answer_id": 74635186,
"author": "nbk",
"author_id": 5193536,
"author_profile": "https://Stackoverflow.com/users/5193536",
"pm_score": 0,
"selected": false,
"text": "ORDER BY SELECT\n\"object_id\", \"event_time\", \"event_type\", \"event_subtype\", \"stage\",\nROW_NUMBER() OVER(PARTITI... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74635099",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3642271/"
] |
74,635,111 | <p>I have to separate .txt file into small pieces, based on the matched value. For example, I have .txt file looks like:</p>
<pre><code>Names Age Country
Mark 19 USA
John 19 UK
Elon 20 CAN
Dominic 21 USA
Andreas 21 UK
</code></pre>
<p>I have to extract all rows with the same value “Age” and to copy them to other file o... | [
{
"answer_id": 74635232,
"author": "user1544752",
"author_id": 1544752,
"author_profile": "https://Stackoverflow.com/users/1544752",
"pm_score": -1,
"selected": false,
"text": "alltext = [\"Names Age Country\", \"Mark 21 USA\", \"John 21 UK\",\"Elon 20 CAN\",\"Dominic 21 USA\", \"Andreas... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74635111",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15703588/"
] |
74,635,135 | <p>I have 2 objects</p>
<pre><code>const obj1 = {
item1: {
name: '1'
},
item2: {
name: '2'
}
}
const obj2 = {
item1: {
sample: 'sample1'
},
item2: {
sample: 'sample2'
}
}
</code></pre>
<p>How can I loop over the second object <code>obj2</code>, find the f... | [
{
"answer_id": 74635200,
"author": "Vit Lit",
"author_id": 12769919,
"author_profile": "https://Stackoverflow.com/users/12769919",
"pm_score": 1,
"selected": false,
"text": "var result = Object.keys(obj1).find(prop=>obj2.hasOwnProperty(prop));\n var resObj = {[result]:obj1[result]};\n co... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74635135",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9401029/"
] |
74,635,142 | <p>i have one error that's is impossible for me to solve, what kind of problem is this shit?
I've searched for many ways to fix this but i don't have found it nothing for this problem on vscode only for android studio, someone can help me?
<a href="https://i.stack.imgur.com/sO2gY.jpg" rel="nofollow noreferrer">enter im... | [
{
"answer_id": 74635200,
"author": "Vit Lit",
"author_id": 12769919,
"author_profile": "https://Stackoverflow.com/users/12769919",
"pm_score": 1,
"selected": false,
"text": "var result = Object.keys(obj1).find(prop=>obj2.hasOwnProperty(prop));\n var resObj = {[result]:obj1[result]};\n co... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74635142",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20650374/"
] |
74,635,145 | <p>Is there any regex to extract words from text that are surrounded by a certain prefix and suffix?</p>
<p>Example:</p>
<pre><code>test[az5]test[az6]test
</code></pre>
<p>I need to extract the numbers surrounded by the prefix <code>[az</code> and the suffix <code>]</code>.</p>
<p>I'm a bit advanced in Python, but not ... | [
{
"answer_id": 74635183,
"author": "accdias",
"author_id": 6789321,
"author_profile": "https://Stackoverflow.com/users/6789321",
"pm_score": 2,
"selected": true,
"text": ">>> import re\n>>> re.findall('\\[az(\\d+)\\]', 'test[az5]test[az6]test')\n['5', '6']\n>>> \n"
},
{
"answer_i... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74635145",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16324551/"
] |
74,635,176 | <p>I am trying to scrape tweets under a hashtag using Python selinum and I use the following code to scroll down
<code>driver.execute_script('window.scrollTo(0,document.body.scrollHeight);')</code></p>
<p>The problem is that selinum only scrapes shown tweets (only 3 tweets) and then scroll down to the end of the page a... | [
{
"answer_id": 74635183,
"author": "accdias",
"author_id": 6789321,
"author_profile": "https://Stackoverflow.com/users/6789321",
"pm_score": 2,
"selected": true,
"text": ">>> import re\n>>> re.findall('\\[az(\\d+)\\]', 'test[az5]test[az6]test')\n['5', '6']\n>>> \n"
},
{
"answer_i... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74635176",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20616285/"
] |
74,635,204 | <p>I have tried to split this string but unsuccessful because of the way the string is arranged in the column. The Null value keeps appearing on the Make and model column and the actually data goes to the wrong column</p>
<p>Sample data:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>MakeM... | [
{
"answer_id": 74635319,
"author": "Cetin Basoz",
"author_id": 894977,
"author_profile": "https://Stackoverflow.com/users/894977",
"pm_score": 2,
"selected": false,
"text": "with data(makeModelColor, part, ordinal) as (\n select makeModelColor, ltrim(rtrim(value)), ordinal\nfrom devices... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74635204",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8753764/"
] |
74,635,210 | <p>Need to figure out an efficient way to query a table using another table as a filter/config (postgres 14.5).</p>
<p>The filter table has 4 levels that match 4 levels in the data. Each level can be read as a RegExp with wildcard, where wildcard is null. But the rules are MUTUALLY EXCLUSIVE. meaning rule aa-* excludes... | [
{
"answer_id": 74635319,
"author": "Cetin Basoz",
"author_id": 894977,
"author_profile": "https://Stackoverflow.com/users/894977",
"pm_score": 2,
"selected": false,
"text": "with data(makeModelColor, part, ordinal) as (\n select makeModelColor, ltrim(rtrim(value)), ordinal\nfrom devices... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74635210",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/295680/"
] |
74,635,226 | <p>I have the following array that I'm attempting to sort each <code>scores</code> array by <code>answer</code> from high to low.</p>
<pre><code>$array = [
503 => [
'scores' => [
4573 => ['answer' => 100],
4574 => ['answer' => 60],
4575 => ['answer' =... | [
{
"answer_id": 74635319,
"author": "Cetin Basoz",
"author_id": 894977,
"author_profile": "https://Stackoverflow.com/users/894977",
"pm_score": 2,
"selected": false,
"text": "with data(makeModelColor, part, ordinal) as (\n select makeModelColor, ltrim(rtrim(value)), ordinal\nfrom devices... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74635226",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7318297/"
] |
74,635,227 | <p>Can someone explain to me what is going on here?</p>
<p>I'm trying to get pyenv and poetry to place nice together. I am on an AWS instance of <code>Ubuntu 20.04</code> which has <code>python 3.8.10</code> installed. (I have removed all traces of python2 from the system). I would like to use python 3.10 but I can't j... | [
{
"answer_id": 74639052,
"author": "9769953",
"author_id": 9769953,
"author_profile": "https://Stackoverflow.com/users/9769953",
"pm_score": 0,
"selected": false,
"text": "poetry new poetry init pyproject.toml python -m poetry init python3.11 -m pip install ."
},
{
"answer_id": 7... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74635227",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/433432/"
] |
74,635,249 | <p>I often do the following:</p>
<pre><code>docker run -dt myimage
docker ps # This step gives the container id necessary for next step
docker exec -it <container-id> bash
</code></pre>
<p>Ideally I'd like to do it all in one line</p>
<pre><code>docker run -dt myimage && docker exec -it <id> bash
</... | [
{
"answer_id": 74635277,
"author": "Garrett Hyde",
"author_id": 250168,
"author_profile": "https://Stackoverflow.com/users/250168",
"pm_score": 2,
"selected": true,
"text": "docker run --name mycontainer -d myimage\ndocker exec -it mycontainer bash\n docker run --name mycontainer --rm --... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74635249",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5783745/"
] |
74,635,284 | <p>I have the following cell in jupyter notebook. What is in ***** is confidential information</p>
<pre><code>import psycopg2
import sqlalchemy as sa
import pandas as pds
from sqlalchemy import create_engine
# Create an engine instance
alchemyEngine = create_engine('*****************************', pool_recycle=3600)... | [
{
"answer_id": 74635277,
"author": "Garrett Hyde",
"author_id": 250168,
"author_profile": "https://Stackoverflow.com/users/250168",
"pm_score": 2,
"selected": true,
"text": "docker run --name mycontainer -d myimage\ndocker exec -it mycontainer bash\n docker run --name mycontainer --rm --... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74635284",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20101840/"
] |
74,635,300 | <p>How i can create a function for reading structure from a test.txt. I have a good works code in main, but i need to carry out it from main(). How combine (struct student PI1[N] and (fread() or fgets() or fwrite()));</p>
<pre><code>struct student {
char surname[50];
char name[50];
char dayBirth[50];
in... | [
{
"answer_id": 74635571,
"author": "chux - Reinstate Monica",
"author_id": 2410359,
"author_profile": "https://Stackoverflow.com/users/2410359",
"pm_score": 2,
"selected": false,
"text": "fgets() struct sprintf() \" %n\" // Return success flag\nbool string_to_student(struct student *stu,... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74635300",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20294643/"
] |
74,635,307 | <p>Just getting started with ES6 classes. As far as I understood it, <strong>this</strong> was supposed to behave predictably inside a class and always point to the object. However, that doesn't seem to be the case:</p>
<pre><code>class BodyPixController {
#target; //Declare a private property
constructor(t... | [
{
"answer_id": 74635338,
"author": "Code Spirit",
"author_id": 6770305,
"author_profile": "https://Stackoverflow.com/users/6770305",
"pm_score": 2,
"selected": false,
"text": "this load Window constructor() {\n // bind this inside init to current object\n this.init = this.init.bind(thi... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74635307",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4344987/"
] |
74,635,309 | <p>Im trying to fetch data from external api, but my screen show this error message:</p>
<pre><code>[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: type 'Null' is not a subtype of type 'bool'
</code></pre>
<p>My Screen code is this:</p>
<pre><code>class PricesScreen extends StatefulWidget {
co... | [
{
"answer_id": 74635338,
"author": "Code Spirit",
"author_id": 6770305,
"author_profile": "https://Stackoverflow.com/users/6770305",
"pm_score": 2,
"selected": false,
"text": "this load Window constructor() {\n // bind this inside init to current object\n this.init = this.init.bind(thi... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74635309",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13509268/"
] |
74,635,313 | <p>I come from a land of ASP.NET Core. Having fun learning a completely new stack.</p>
<p>I'm used to being able to:</p>
<ol>
<li>name a route "orders"</li>
<li>give it a path like <code>/customer-orders/{id}</code></li>
<li>register it</li>
<li>use the routing system to build a URL for my named route</li>
</... | [
{
"answer_id": 74635338,
"author": "Code Spirit",
"author_id": 6770305,
"author_profile": "https://Stackoverflow.com/users/6770305",
"pm_score": 2,
"selected": false,
"text": "this load Window constructor() {\n // bind this inside init to current object\n this.init = this.init.bind(thi... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74635313",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/107783/"
] |
74,635,358 | <p>I am am using ansible to add admin user in mongodb.. I used below playbook but i am getting error. Can someone suggest the solution.. i have also installed pymongo prior to adding user in order to use module. authentication is disabled in mongod.conf and bindIp is set to 0.0.0.0</p>
<pre><code>- hosts: devqa_mongod_... | [
{
"answer_id": 74635338,
"author": "Code Spirit",
"author_id": 6770305,
"author_profile": "https://Stackoverflow.com/users/6770305",
"pm_score": 2,
"selected": false,
"text": "this load Window constructor() {\n // bind this inside init to current object\n this.init = this.init.bind(thi... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74635358",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11107951/"
] |
74,635,385 | <p>I am writing a div right now that will hold multiple lines of text but I need to remove the spacing after every text item. Is there a way to do this in CSS?</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-css l... | [
{
"answer_id": 74635836,
"author": "tao",
"author_id": 1891677,
"author_profile": "https://Stackoverflow.com/users/1891677",
"pm_score": 2,
"selected": true,
"text": "h4 {} h4 .role-text .role-text h4 .role-text 0 h3 h4 p h3, h4 {\n margin: 0 3rem;\n}\np {\n margin: 0;\n}\n"
},
{
... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74635385",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20473091/"
] |
74,635,425 | <p>I have two tables:</p>
<pre><code>restaurant
| id | name |
| -------- | -------- |
| | |
food_item
| restaurant_id | name | price |
| -------- | -------- | ----- |
| | | |
| | | |
</code></pre>
<p>I am trying to get the... | [
{
"answer_id": 74635836,
"author": "tao",
"author_id": 1891677,
"author_profile": "https://Stackoverflow.com/users/1891677",
"pm_score": 2,
"selected": true,
"text": "h4 {} h4 .role-text .role-text h4 .role-text 0 h3 h4 p h3, h4 {\n margin: 0 3rem;\n}\np {\n margin: 0;\n}\n"
},
{
... | 2022/11/30 | [
"https://Stackoverflow.com/questions/74635425",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13350520/"
] |
74,635,451 | <p><strong>issue</strong>:
I am seeing 3 sets of console logs when I visit http://localhost:3000/</p>
<p><strong>expected output</strong>:
I should only be seeing two console.logs::
First middleware
Second middleware</p>
<p>I have the following two files:</p>
<p>server.js ::</p>
<pre><code>const http = require('http');... | [
{
"answer_id": 74636081,
"author": "Finbar",
"author_id": 17525834,
"author_profile": "https://Stackoverflow.com/users/17525834",
"pm_score": 1,
"selected": false,
"text": "<Request>.originalUrl"
}
] | 2022/11/30 | [
"https://Stackoverflow.com/questions/74635451",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17281101/"
] |
74,635,452 | <p>I am trying to run a pretty basic conditional to determine if a current element has a next sibling or not using ES6.</p>
<p>I have tried to determine if nextElementSibling returns as <code>null</code> but this silently fails.</p>
<pre><code>if (el.nextElementSibling == null) {
// do something if there is no next s... | [
{
"answer_id": 74636081,
"author": "Finbar",
"author_id": 17525834,
"author_profile": "https://Stackoverflow.com/users/17525834",
"pm_score": 1,
"selected": false,
"text": "<Request>.originalUrl"
}
] | 2022/11/30 | [
"https://Stackoverflow.com/questions/74635452",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20650607/"
] |
74,635,491 | <p>How to prevent this error, I am trying what ever I can, not possible to add return inside map.</p>
<p>Error:<br />
Line 32:26: Array.prototype.map() expects a return value from arrow function array-callback-return</p>
<pre><code> const parseChartData = (field: string, data: string[][]) => {
let chartData =... | [
{
"answer_id": 74636081,
"author": "Finbar",
"author_id": 17525834,
"author_profile": "https://Stackoverflow.com/users/17525834",
"pm_score": 1,
"selected": false,
"text": "<Request>.originalUrl"
}
] | 2022/12/01 | [
"https://Stackoverflow.com/questions/74635491",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2062973/"
] |
74,635,522 | <p>I have an array of ids that determines the desired order of elements, which looks like this:</p>
<pre><code>var desired_order = [0,4,2,1,3,...]
</code></pre>
<p>In my case it is much longer, so performance is to be considered.</p>
<p>I also have an array of objects with those ids, like this one:</p>
<pre><code>var o... | [
{
"answer_id": 74635601,
"author": "gog",
"author_id": 3494774,
"author_profile": "https://Stackoverflow.com/users/3494774",
"pm_score": 3,
"selected": true,
"text": "id => object let m = new Map(objects.map(o => [o.id, o]))\n let objects_in_desired_order = desired_order.map(id => m.get(... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74635522",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13941802/"
] |
74,635,526 | <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-css lang-css prettyprint-override"><code>.titlebar {
font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
width:... | [
{
"answer_id": 74635601,
"author": "gog",
"author_id": 3494774,
"author_profile": "https://Stackoverflow.com/users/3494774",
"pm_score": 3,
"selected": true,
"text": "id => object let m = new Map(objects.map(o => [o.id, o]))\n let objects_in_desired_order = desired_order.map(id => m.get(... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74635526",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20482298/"
] |
74,635,549 | <p>I have created a C# function to execute a PowerShell script to download and unzip a file from a remote computer. It runs successfully, but nothing is downloaded.</p>
<p>Below is my current code:</p>
<pre><code> public static string RemotePSExecution(string ipAddress, string username, string password, string p... | [
{
"answer_id": 74635601,
"author": "gog",
"author_id": 3494774,
"author_profile": "https://Stackoverflow.com/users/3494774",
"pm_score": 3,
"selected": true,
"text": "id => object let m = new Map(objects.map(o => [o.id, o]))\n let objects_in_desired_order = desired_order.map(id => m.get(... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74635549",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20323871/"
] |
74,635,553 | <p>Is there a way to center the "Open Tray" figure in the bottom row?</p>
<p>I am trying to use <code>sfplot <- ggarrange(Cf, Ff, Of, labels = c("A", "B", "C"))</code>, but obviously it won't automatically center it. Thanks in advance!</p>
<p><img src="https://i.stack.imgur.co... | [
{
"answer_id": 74635601,
"author": "gog",
"author_id": 3494774,
"author_profile": "https://Stackoverflow.com/users/3494774",
"pm_score": 3,
"selected": true,
"text": "id => object let m = new Map(objects.map(o => [o.id, o]))\n let objects_in_desired_order = desired_order.map(id => m.get(... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74635553",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20650833/"
] |
74,635,581 | <p>I have a question, I have a node element like below:</p>
<pre><code><div>
<span>1</span>
<span>2</span>
<span>3</span>
</div>
</code></pre>
<p>I want to clone all span elements and adding to this new prop like onClick but also keep parent element.
How I can do th... | [
{
"answer_id": 74635631,
"author": "dbonev",
"author_id": 4200334,
"author_profile": "https://Stackoverflow.com/users/4200334",
"pm_score": 2,
"selected": true,
"text": "const spanElement = <span>1</span>;\n\n<div>\n {spanElement}\n {React.cloneElement(spanElement)}\n <span>2</span>\n... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74635581",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20206220/"
] |
74,635,590 | <p>How to remove duplicate entries from a JSON file using python?</p>
<p>I have a JSON file that looks like this:</p>
<p>appreciate some one can help to provide a solution for fixing it</p>
<pre><code>json_data = [
{
"authType": "ldap",
"password": "",
... | [
{
"answer_id": 74635631,
"author": "dbonev",
"author_id": 4200334,
"author_profile": "https://Stackoverflow.com/users/4200334",
"pm_score": 2,
"selected": true,
"text": "const spanElement = <span>1</span>;\n\n<div>\n {spanElement}\n {React.cloneElement(spanElement)}\n <span>2</span>\n... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74635590",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20252882/"
] |
74,635,592 | <p>I have an array with data separated by a comma. I need to transpose it so the first part before the comma for each line is joined together by a delimiter as one line and the same for a second part. Example:</p>
<pre><code>AC-2.22,CCI-000012
AC-5.1,CCI-000036
AC-5.3,CCI-001380
</code></pre>
<p>I want to have 2 separa... | [
{
"answer_id": 74636801,
"author": "Santiago Squarzon",
"author_id": 15339544,
"author_profile": "https://Stackoverflow.com/users/15339544",
"pm_score": 2,
"selected": false,
"text": ".Where Split $array = @(\n 'AC-2.22,CCI-000012'\n 'AC-5.1,CCI-000036'\n 'AC-5.3,CCI-001380'\n)\... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74635592",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2282445/"
] |
74,635,606 | <p>I have a dataset with 1 key and two values, like below:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Column A</th>
<th>Column B</th>
<th>Column C</th>
</tr>
</thead>
<tbody>
<tr>
<td>Anh</td>
<td>6</td>
<td>8</td>
</tr>
<tr>
<td>Zavier</td>
<td>2</td>
<td>3</td>
</tr>
<tr>
<td>Trey</t... | [
{
"answer_id": 74636801,
"author": "Santiago Squarzon",
"author_id": 15339544,
"author_profile": "https://Stackoverflow.com/users/15339544",
"pm_score": 2,
"selected": false,
"text": ".Where Split $array = @(\n 'AC-2.22,CCI-000012'\n 'AC-5.1,CCI-000036'\n 'AC-5.3,CCI-001380'\n)\... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74635606",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8748741/"
] |
74,635,614 | <p>I am trying to create an empty list and for some reason it is telling me it's invalid syntax? it also flags the next line with the same error, saying that while count<amount: is invalid. am i wrong for thinking this doesnt make sense? using vsc. thanks in advance.
my code looks like this.</p>
<pre><code>list=[]
c... | [
{
"answer_id": 74635642,
"author": "MrDiamond",
"author_id": 15364728,
"author_profile": "https://Stackoverflow.com/users/15364728",
"pm_score": 2,
"selected": false,
"text": "amount list input () input(\"enter number: \")"
},
{
"answer_id": 74635650,
"author": "Leo Ward",
... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74635614",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20650870/"
] |
74,635,640 | <p>I am practicing on a database on SQL server where the date column in the table is <code>Nvarchar(255)</code> thereby presenting the dates as five digit numbers eg <code>40542</code>,<code>40046</code> etc. How do I change the dates in the column to actual dates?</p>
<p>The articles I checked only helped me to change... | [
{
"answer_id": 74635704,
"author": "Gaël James",
"author_id": 5405174,
"author_profile": "https://Stackoverflow.com/users/5405174",
"pm_score": 0,
"selected": false,
"text": "UPDATE TableName\n SET NewDateColName = ConvertionFunction(OldDateColName)\n CAST(OldDateColName as Date)\n UPDA... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74635640",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20070824/"
] |
74,635,677 | <p>I am having an error when refreshing my browser.</p>
<blockquote>
<p>Uncaught TypeError: Cannot read properties of undefined (reading 'title')</p>
</blockquote>
<p>And it keeps on repeating for all of my states (<code>title</code>, <code>content</code>, <code>id</code>) until I delete them from code down below... An... | [
{
"answer_id": 74635704,
"author": "Gaël James",
"author_id": 5405174,
"author_profile": "https://Stackoverflow.com/users/5405174",
"pm_score": 0,
"selected": false,
"text": "UPDATE TableName\n SET NewDateColName = ConvertionFunction(OldDateColName)\n CAST(OldDateColName as Date)\n UPDA... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74635677",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19407011/"
] |
74,635,688 | <p>I have an Ansible task where I navigate to a YAML variable file in GitHub, download the file, and add the variables as Ansible Facts where they're later used.</p>
<p>My YAML file looks like:</p>
<pre class="lang-yaml prettyprint-override"><code>---
foo: bar
hello: world
</code></pre>
<p>I have a method where I loop ... | [
{
"answer_id": 74638882,
"author": "U880D",
"author_id": 6771046,
"author_profile": "https://Stackoverflow.com/users/6771046",
"pm_score": 0,
"selected": false,
"text": "curl --silent --user \"${ACCOUNT}:${PASSWORD}\" -X GET \"https://${REPOSITORY_URL}/raw/group_vars/test?at=refs%2Fheads... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74635688",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16484106/"
] |
74,635,702 | <p>Silly newbe here.
So I'm banging my head on this:
Can't quite figure out the parameterized query and if it's properly formatted.</p>
<pre><code>import sqlite3
def readSqliteTable():
try:
sqliteConnection = sqlite3.connect('testDB.sqlite')
cursor = sqliteConnection.cursor()
print("Co... | [
{
"answer_id": 74638882,
"author": "U880D",
"author_id": 6771046,
"author_profile": "https://Stackoverflow.com/users/6771046",
"pm_score": 0,
"selected": false,
"text": "curl --silent --user \"${ACCOUNT}:${PASSWORD}\" -X GET \"https://${REPOSITORY_URL}/raw/group_vars/test?at=refs%2Fheads... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74635702",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20650903/"
] |
74,635,719 | <p>How can I change the JavaScript to change the style to "none" of all the <code><div class="class1"></code> that have an <code><img></code> with the <code>alt="long"</code> and not the other ones.</p>
<p>I don't want to use JQuery.</p>
<p>Example HTML:</p>
<pre><code><div ... | [
{
"answer_id": 74638882,
"author": "U880D",
"author_id": 6771046,
"author_profile": "https://Stackoverflow.com/users/6771046",
"pm_score": 0,
"selected": false,
"text": "curl --silent --user \"${ACCOUNT}:${PASSWORD}\" -X GET \"https://${REPOSITORY_URL}/raw/group_vars/test?at=refs%2Fheads... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74635719",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3011784/"
] |
74,635,727 | <pre><code>a <- as.character(readline(" Please input a text: "))
most_repeated_character <- function(x) {
a <- gsub("\\s+", "", a)
lets <- strsplit(a, "")[[1]]
tbl <- sort(table(lets), decreasing=TRUE)
print(paste("most frequently occurring: ("... | [
{
"answer_id": 74635811,
"author": "PatrickdC",
"author_id": 18703712,
"author_profile": "https://Stackoverflow.com/users/18703712",
"pm_score": 2,
"selected": false,
"text": "[^a-zA-Z] a <- gsub(\"\\\\s+\", \"\", a)\n a <- gsub(\"[^a-zA-Z]\", \"\", a)\n"
},
{
"answer_id": 746372... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74635727",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20287224/"
] |
74,635,733 | <p>This is the situation:</p>
<p>I'm using Compose, Hilt, Navigation and ViewModel. I'm trying to get an instance of my ViewModel within a Composable Screen via Hilt:</p>
<pre class="lang-kotlin prettyprint-override"><code>@Composable
fun HomeScreen(
modifier: Modifier = Modifier,
homeViewModel: HomeViewModel =... | [
{
"answer_id": 74636207,
"author": "z.y",
"author_id": 19023745,
"author_profile": "https://Stackoverflow.com/users/19023745",
"pm_score": 2,
"selected": false,
"text": "ViewModel CaptureRepository @Bind @Inject class CaptureRepositoryImpl @Inject constructor(): CaptureRepository\n prov... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74635733",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6845721/"
] |
74,635,735 | <p>I saw a sql code using the isNull function in the where clause, similar like below:<code>date>isNull(date1,date2)</code></p>
<p>Can someone explain what this means?</p>
<p>Many Thanks!
Michelle</p>
| [
{
"answer_id": 74635914,
"author": "LordBaconPants",
"author_id": 4595472,
"author_profile": "https://Stackoverflow.com/users/4595472",
"pm_score": 1,
"selected": false,
"text": " declare @date1 datetime = null\n declare @date2 datetime = getdate()\n\n select isNull(@date1,@date2)\n"
}... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74635735",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14260569/"
] |
74,635,793 | <p>I'm looking to store a txt file with 52 characters that have no spaces into a char array. What I have below only outputs garbage. I would appreciate on some insight on how to solve this.</p>
<p>`</p>
<pre><code>int main()
{
fstream fin, fout;
int maxSize = 9999; // Max length for text file.
int sizeArray... | [
{
"answer_id": 74635914,
"author": "LordBaconPants",
"author_id": 4595472,
"author_profile": "https://Stackoverflow.com/users/4595472",
"pm_score": 1,
"selected": false,
"text": " declare @date1 datetime = null\n declare @date2 datetime = getdate()\n\n select isNull(@date1,@date2)\n"
}... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74635793",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18935759/"
] |
74,635,795 | <p>I'm confusing. I read diferents opinions about main. The first one says that main (as it's the principal section) could contain header and footer as direct children.</p>
<pre><code><main>
<header></header>
<section>for the content</section>
</main>
</code></pre>
<p>Others... | [
{
"answer_id": 74635914,
"author": "LordBaconPants",
"author_id": 4595472,
"author_profile": "https://Stackoverflow.com/users/4595472",
"pm_score": 1,
"selected": false,
"text": " declare @date1 datetime = null\n declare @date2 datetime = getdate()\n\n select isNull(@date1,@date2)\n"
}... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74635795",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16889666/"
] |
74,635,799 | <p>Not able to use property of Array which exists in array for showing data</p>
<p><a href="https://i.stack.imgur.com/7QBC0.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7QBC0.jpg" alt="enter image description here" /></a></p>
<p>Error in accessing the property</p>
<p><a href="https://i.stack.imgur... | [
{
"answer_id": 74635914,
"author": "LordBaconPants",
"author_id": 4595472,
"author_profile": "https://Stackoverflow.com/users/4595472",
"pm_score": 1,
"selected": false,
"text": " declare @date1 datetime = null\n declare @date2 datetime = getdate()\n\n select isNull(@date1,@date2)\n"
}... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74635799",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20651055/"
] |
74,635,810 | <p>By printing the array "total", I can see that the values are appending correctly. And yet when I print(linked_list_values(a)), it returns None.</p>
<pre><code>a = Node(5)
b = Node(3)
c = Node(9)
total = []
def linked_list_values(head):
print(total)
if head == None:
return None
total.append(head.... | [
{
"answer_id": 74635824,
"author": "Lone Lunatic",
"author_id": 7694279,
"author_profile": "https://Stackoverflow.com/users/7694279",
"pm_score": 2,
"selected": false,
"text": "None return total total >>> linked_list_values(a)\nNone\n>>> total\n[5, 3, 9] # Assuming a.next == b and b.next... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74635810",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17084891/"
] |
74,635,839 | <p>I think it would be a simple question but I really stuck on it! how can I use for loop to make my statement more complex and short? I need the output be the exactly<a href="https://i.stack.imgur.com/ltNAx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ltNAx.png" alt="enter image description here"... | [
{
"answer_id": 74635824,
"author": "Lone Lunatic",
"author_id": 7694279,
"author_profile": "https://Stackoverflow.com/users/7694279",
"pm_score": 2,
"selected": false,
"text": "None return total total >>> linked_list_values(a)\nNone\n>>> total\n[5, 3, 9] # Assuming a.next == b and b.next... | 2022/12/01 | [
"https://Stackoverflow.com/questions/74635839",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11588912/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.