qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,338,875 | <p>I am studying C (self-study, not in an educational institution) and have been trying to build a hashtable data structure as part of my learning.</p>
<p>Please refer to this hopefully reproducible example:</p>
<pre><code>#include <stdio.h>
#include <stdlib.h>
struct table_item {
char *name;
char ... | [
{
"answer_id": 74339009,
"author": "Xəyal Şərifli",
"author_id": 20432696,
"author_profile": "https://Stackoverflow.com/users/20432696",
"pm_score": 0,
"selected": false,
"text": "data class User(var name: String, var age: Int) {\n\n var size: String\n\n init {\n size = \"size\"\n }... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74338875",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14608372/"
] |
74,338,878 | <p>For example, let's say there is a array of items each equally likely to be chosen, and the output of this random function will tell which item to be chosen, but I want the function to be split into multiple steps so that along each step the list of potential items is narrowed in giving better insight on the result p... | [
{
"answer_id": 74339696,
"author": "btilly",
"author_id": 585411,
"author_profile": "https://Stackoverflow.com/users/585411",
"pm_score": 1,
"selected": false,
"text": "p 1/(1-p)"
}
] | 2022/11/06 | [
"https://Stackoverflow.com/questions/74338878",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9865950/"
] |
74,338,927 | <p>Ok So For Example let's say this is My Object.</p>
<pre><code>const myObj = {
cf_retryAttempts:0,
cf_amount:1,
cf_event:"SUBSCRIPTION_NEW_PAYMENT",
cf_eventTime:"2022-01-10 10:03:50",
cf_paymentId:1,
cf_referenceId:2,
cf_subReferenceId:3,
}
</code></pre>
<p>If I use JSON.stri... | [
{
"answer_id": 74338998,
"author": "IT goldman",
"author_id": 3807365,
"author_profile": "https://Stackoverflow.com/users/3807365",
"pm_score": 2,
"selected": false,
"text": "const myObj = {\n cf_retryAttempts: 0,\n cf_amount: 1,\n cf_event: \"SUBSCRIPTION_NEW_PAYMENT\",\n cf_eventTi... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74338927",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18705314/"
] |
74,338,942 | <p>Got a question regarding regex matching in Java.
Given is a string with a defined length.
Now I want to check with a matcher if every char contained in that String is different.</p>
<p>For example (only pass of length = 8):</p>
<pre><code>String a = "abcdefgz" -> pass
String b = "aacdefgz" -&g... | [
{
"answer_id": 74338998,
"author": "IT goldman",
"author_id": 3807365,
"author_profile": "https://Stackoverflow.com/users/3807365",
"pm_score": 2,
"selected": false,
"text": "const myObj = {\n cf_retryAttempts: 0,\n cf_amount: 1,\n cf_event: \"SUBSCRIPTION_NEW_PAYMENT\",\n cf_eventTi... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74338942",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14607533/"
] |
74,338,950 | <p>I trying to add quotation mark at the start of first line and then at the end of every 50th line I have like 500 plus lines in notepad++ can anyone help</p>
<p>This is what my file look like</p>
<pre><code>your text
your text
your text
</code></pre>
<p>and I want it to look like</p>
<pre><code>"your text
your t... | [
{
"answer_id": 74339049,
"author": "Toto",
"author_id": 372239,
"author_profile": "https://Stackoverflow.com/users/372239",
"pm_score": 2,
"selected": true,
"text": "(?:.+\\R){2}.+ \"$0\" . matches newline (?: # non capture group\n .+ # 1 or more any character but new... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74338950",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20434394/"
] |
74,338,986 | <p>I want to get the player whos name matches the name of the block which was placed and updated this players gamemode to survival. But this just gives me gibberish in the console:</p>
<pre><code>@EventHandler
public void onPlace(BlockPlaceEvent blockPlaceEvent){
//Player ded = Bukkit.getPlayer(String.valueOf(block... | [
{
"answer_id": 74342660,
"author": "Shivam Puri",
"author_id": 11226302,
"author_profile": "https://Stackoverflow.com/users/11226302",
"pm_score": 1,
"selected": true,
"text": "Player player = Bukkit.getPlayer(String.valueOf(blockPlaceEvent.getItemInHand().displayName()));\n\nplayer.getN... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74338986",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13994905/"
] |
74,338,996 | <p>Hi I<code>ve got basic html file + external css file. css file contain font-size class and text-align class but only font-size class actually work. I try VS Studio code, Pycharm, and use .centered class on body, header, footer - still don</code>t work</p>
<p>Html code:</p>
<pre><code><!DOCTYPE html>
<html ... | [
{
"answer_id": 74339174,
"author": "liquidot",
"author_id": 20400911,
"author_profile": "https://Stackoverflow.com/users/20400911",
"pm_score": -1,
"selected": false,
"text": "<center> Your text here </center>\n margin: 0 auto;\n <body class=\"centered\">\n <body style=\"margin: 0 auto;\... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74338996",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20434413/"
] |
74,339,000 | <p>Having different UI versions for Desktop and Mobile, I'm struggling with targeting certain tests specifically for the mobile while forcing the rest run only for Desktop.
In addition to existing browsers I've added a mobile target like this:</p>
<pre class="lang-js prettyprint-override"><code>{
name: 'mobile',
... | [
{
"answer_id": 74339174,
"author": "liquidot",
"author_id": 20400911,
"author_profile": "https://Stackoverflow.com/users/20400911",
"pm_score": -1,
"selected": false,
"text": "<center> Your text here </center>\n margin: 0 auto;\n <body class=\"centered\">\n <body style=\"margin: 0 auto;\... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74339000",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/400745/"
] |
74,339,012 | <p>I use Table in my CoreData app for macOS</p>
<pre><code>@FetchRequest(sortDescriptors: [NSSortDescriptor(key: "name", ascending: true)]) private var categories: FetchedResults<Categories>
@State private var selectedCategoryID: Categories.ID?
</code></pre>
<p>and I'm wondering how I could catch change... | [
{
"answer_id": 74339597,
"author": "Dawy",
"author_id": 6723756,
"author_profile": "https://Stackoverflow.com/users/6723756",
"pm_score": 0,
"selected": false,
"text": ".onChange(of: selectedCategoryID) { selected in\n print(\"Selected row is \\(selected)\")\n}\n"
},
{
"answer... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74339012",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6723756/"
] |
74,339,032 | <p>I'm slightly confused about how <code>blazor-error-ui</code> works in practice. I understand that it's hidden by default because of CSS (via <code>display: none</code>), but I can't seem to get it to appear by causing errors in the application.</p>
<p>According to the <a href="https://learn.microsoft.com/en-us/aspne... | [
{
"answer_id": 74339560,
"author": "otets_dmitriy",
"author_id": 17393877,
"author_profile": "https://Stackoverflow.com/users/17393877",
"pm_score": 0,
"selected": false,
"text": "blazor-error-ui blazor-error-ui"
},
{
"answer_id": 74341188,
"author": "micka190",
"author_i... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74339032",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7321499/"
] |
74,339,099 | <p>I have these two test cases:</p>
<pre><code>calc1 = [['print', 5]] # 5
calc2 = [['print', 2], ['print', 4], ['print', 8]] # 2 4 8
</code></pre>
<p>And I can print them correctly with this function:</p>
<pre><code>def exec_program(p):
if len(p) == 1:
print(p[0][1])
else:
for i in p:
... | [
{
"answer_id": 74339132,
"author": "Ghazi",
"author_id": 16589029,
"author_profile": "https://Stackoverflow.com/users/16589029",
"pm_score": 0,
"selected": false,
"text": "calc2 = [['print', 2], ['print', 4], ['print', 8]]\ndef print_me(calc2):\n if not calc2:\n return #once... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74339099",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7793969/"
] |
74,339,138 | <p>I have a field that I'm displaying on a report that is a combination of text and codes that represent an image. Some of those icons have ascii symbols that I've used a replace formula to display them as their ascii version. For two or three of the images, I have no luck and have to display a mini picture for the rep... | [
{
"answer_id": 74339132,
"author": "Ghazi",
"author_id": 16589029,
"author_profile": "https://Stackoverflow.com/users/16589029",
"pm_score": 0,
"selected": false,
"text": "calc2 = [['print', 2], ['print', 4], ['print', 8]]\ndef print_me(calc2):\n if not calc2:\n return #once... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74339138",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1154619/"
] |
74,339,140 | <p>I am working with a huge dataset, but just to simplify what I'd like to do, I will use the following one.</p>
<pre><code>testDF <- data.frame(v1 = rep(c('a', 'b', 'c', 'd', 'e', 'f'), 2),
v2 = rep(c(1,0),6))
</code></pre>
<p>Let's assume you could subset it like this.</p>
<pre><code> v1 v2
... | [
{
"answer_id": 74339132,
"author": "Ghazi",
"author_id": 16589029,
"author_profile": "https://Stackoverflow.com/users/16589029",
"pm_score": 0,
"selected": false,
"text": "calc2 = [['print', 2], ['print', 4], ['print', 8]]\ndef print_me(calc2):\n if not calc2:\n return #once... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74339140",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14712320/"
] |
74,339,143 | <p>I have the following JSON data</p>
<pre class="lang-json prettyprint-override"><code>{
"docker_compose_init_result": {
"changed": true,
"failed": false,
"services": {
"grafana": {
"docker-compose_grafana_1&... | [
{
"answer_id": 74339337,
"author": "Vladimir Botka",
"author_id": 6482561,
"author_profile": "https://Stackoverflow.com/users/6482561",
"pm_score": 2,
"selected": false,
"text": "docker_compose_list: \"{{ docker_compose_init_result|\n json_query(_query) }}\"\n_que... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74339143",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7888757/"
] |
74,339,176 | <p>I am trying to use <code><TKey></code> in a function. I don't know how to use it properly as I discovered that recently.</p>
<p>Here is what I tried :</p>
<pre><code>private void filterContour()
{
if (this.geometryRepToDraw.Profile.Famille == "FLAT")
{
filterContour2(x => x[0].Face... | [
{
"answer_id": 74339337,
"author": "Vladimir Botka",
"author_id": 6482561,
"author_profile": "https://Stackoverflow.com/users/6482561",
"pm_score": 2,
"selected": false,
"text": "docker_compose_list: \"{{ docker_compose_init_result|\n json_query(_query) }}\"\n_que... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74339176",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7310000/"
] |
74,339,181 | <p>I am trying to use python recursion in order to draw a box, but have a hard time finding where to start. In principle I want to pass two numbers as arguments which will be the amount of '*''s that are printed both vertically and horizontally like this:</p>
<pre><code>>>> drawRectangle(4, 4)
****
* *
* *
... | [
{
"answer_id": 74339337,
"author": "Vladimir Botka",
"author_id": 6482561,
"author_profile": "https://Stackoverflow.com/users/6482561",
"pm_score": 2,
"selected": false,
"text": "docker_compose_list: \"{{ docker_compose_init_result|\n json_query(_query) }}\"\n_que... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74339181",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18021751/"
] |
74,339,192 | <p>I have a problem pretty similiar to the below:</p>
<p>I need to store the data of studentIDs along with 10 of their favourite foods in an RPG variable.
The best option would be obviously a data structure array.</p>
<p>But as a standard, all DS definitions must reference an external DS (File structure) which obviousl... | [
{
"answer_id": 74339711,
"author": "bvstone",
"author_id": 2296644,
"author_profile": "https://Stackoverflow.com/users/2296644",
"pm_score": 2,
"selected": false,
"text": "dcl-ds STUDREFDS EXTNAME('STUDREF'); \nEnd-ds;\n dcl-ds StudentData qualified;\n StudentID LIKE(STUDENTID);\... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74339192",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19539055/"
] |
74,339,198 | <p>I have a configuration file that the user can modify.</p>
<p>In this configuration file there exists a <code>#define ListOfWords</code> with a list of words to which the user can add or remove any custom words. For example: <code>#define ListOfWords black,bear,Mouse</code>.</p>
<p>User then also defines, using <code... | [
{
"answer_id": 74339711,
"author": "bvstone",
"author_id": 2296644,
"author_profile": "https://Stackoverflow.com/users/2296644",
"pm_score": 2,
"selected": false,
"text": "dcl-ds STUDREFDS EXTNAME('STUDREF'); \nEnd-ds;\n dcl-ds StudentData qualified;\n StudentID LIKE(STUDENTID);\... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74339198",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1806687/"
] |
74,339,214 | <p>I'm trying to get data from an external API and then render it into a flatlist.</p>
<p>I'm very new to React Native so this may be easy to solve.</p>
<p>I'm trying to use the following data: <a href="https://www.nationaltrust.org.uk/search/data/all-places" rel="nofollow noreferrer">https://www.nationaltrust.org.uk/s... | [
{
"answer_id": 74339711,
"author": "bvstone",
"author_id": 2296644,
"author_profile": "https://Stackoverflow.com/users/2296644",
"pm_score": 2,
"selected": false,
"text": "dcl-ds STUDREFDS EXTNAME('STUDREF'); \nEnd-ds;\n dcl-ds StudentData qualified;\n StudentID LIKE(STUDENTID);\... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74339214",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16529639/"
] |
74,339,255 | <p>I want to write a function that will add a constant to each list element. The list can be Doubles or Integers or something similar. I write:</p>
<pre><code>static <T> List<T> forEachIndexChange(List<T> list,
Function<Integer, T> cb) {
for (int i = 0; i < list.size(); ++i) {
... | [
{
"answer_id": 74339348,
"author": "Sweeper",
"author_id": 5133585,
"author_profile": "https://Stackoverflow.com/users/5133585",
"pm_score": 2,
"selected": false,
"text": "static <T extends Number> List<T> divide(List<T> list, int val) {\n if (list.isEmpty()) return list;\n\n if (l... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74339255",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9072753/"
] |
74,339,256 | <p>I have two arrays :</p>
<pre><code>a = [[1, 2, 3],
[4, 5, 6],
[7, 8, 9],
[10, 11, 12],
[13, 14, 15]]
b = [[1, 2, 3],
[4, 5, 6],
[13, 14, 15]]
</code></pre>
<p>And I want to find out which rows of first array are represented in second array</p>
<pre><code>desired_output = [1, 1, 0, 0, 1... | [
{
"answer_id": 74339348,
"author": "Sweeper",
"author_id": 5133585,
"author_profile": "https://Stackoverflow.com/users/5133585",
"pm_score": 2,
"selected": false,
"text": "static <T extends Number> List<T> divide(List<T> list, int val) {\n if (list.isEmpty()) return list;\n\n if (l... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74339256",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20387248/"
] |
74,339,257 | <p>I have a parent repository having branches <code>master</code> <code>stage</code> & <code>develop</code> along with child repository say as <strong>submodule</strong> which has same branches <code>master</code> <code>stage</code> & <code>develop</code>, I made commits in <code>stage</code> branch in child re... | [
{
"answer_id": 74339348,
"author": "Sweeper",
"author_id": 5133585,
"author_profile": "https://Stackoverflow.com/users/5133585",
"pm_score": 2,
"selected": false,
"text": "static <T extends Number> List<T> divide(List<T> list, int val) {\n if (list.isEmpty()) return list;\n\n if (l... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74339257",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19868763/"
] |
74,339,261 | <p>I want to know what models are children of a model to retrieve their <code>on_delete</code> property. As I know, like below, if we have <code>ownerModel</code> which is parent of <code>childModel1</code> and <code>check1Model</code>:</p>
<pre><code>import uuid
from django.db import models
class ownerModel(models.Mo... | [
{
"answer_id": 74340467,
"author": "Zkh",
"author_id": 19235697,
"author_profile": "https://Stackoverflow.com/users/19235697",
"pm_score": 1,
"selected": false,
"text": "Model._meta.related_objects # Example Code\nfrom django.utils.functional import classproperty\nfrom django.db import m... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74339261",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11692124/"
] |
74,339,328 | <p>I have got the Recyclerview working with findViewById but cant get it working with View bindings.</p>
<p>This Works</p>
<pre><code>val tdList: RecyclerView = findViewById(R.id.td_list);
tdList.layoutManager = LinearLayoutManager(this)
tdList.setHasFixedSize(true);
tdList.adapter = reportAdapter
</code></pre>
<p>But ... | [
{
"answer_id": 74339705,
"author": "Tenfour04",
"author_id": 506796,
"author_profile": "https://Stackoverflow.com/users/506796",
"pm_score": 2,
"selected": false,
"text": "findViewById binding tdBinding findViewById setContentView findViewById findViewById findViewById"
},
{
"ans... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74339328",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8423250/"
] |
74,339,362 | <p>Lets say I have a function like this:</p>
<pre><code>Function Hello(){
Write-Host "Hello, World"}
</code></pre>
<p>when used on its own it works perfect but I would also like for it to receive pipeline input:</p>
<pre><code>$MyString = "Something Else please"
$MyString | Hello
</code></pre>
<... | [
{
"answer_id": 74339593,
"author": "RetiredGeek",
"author_id": 13702221,
"author_profile": "https://Stackoverflow.com/users/13702221",
"pm_score": 2,
"selected": false,
"text": "Clear-Host\n\nFunction Hello {\n\n Param (\n [Parameter(Mandatory=$False,ValueFromPipeline=$True)]\n ... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74339362",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17841256/"
] |
74,339,385 | <p>Is it okay to create a list like this?</p>
<pre><code><ul>
<li><a href="#">Item 1</a></li>
<li><a href="#">Item 2</a></li>
<li><a href="#">Item 3</a></li>
<li><a href="#">Item 4&l... | [
{
"answer_id": 74339391,
"author": "Tamás Sengel",
"author_id": 3151675,
"author_profile": "https://Stackoverflow.com/users/3151675",
"pm_score": 2,
"selected": false,
"text": "<p> <li> <p>"
},
{
"answer_id": 74339416,
"author": "Milkmannetje",
"author_id": 2815350,
"... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74339385",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2986930/"
] |
74,339,390 | <p>I am asked to extract the dates of dictionary in which the values exceed the input threshold.</p>
<p>See code beneath:</p>
<pre><code>def get_dates(prices,threshold):
{k:v for k,v in prices if threshold>130}
prc = [
{ 'price': 1279.79, 'date': '2020-01-01' },
{ 'price': 139.01, 'date': '2020-... | [
{
"answer_id": 74339423,
"author": "I'mahdi",
"author_id": 1740577,
"author_profile": "https://Stackoverflow.com/users/1740577",
"pm_score": 1,
"selected": false,
"text": "list comprehensions dict # we use 'dict.get' with default value '0' for price if don't exists.\ndef get_dates(prices... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74339390",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18072226/"
] |
74,339,404 | <p>Im facing a problem with assigning a value to a variable that its name is stored in other variable or a file</p>
<p>cat ids.txt</p>
<pre><code>ID1
ID2
ID3
</code></pre>
<p>What i want to do is:</p>
<pre><code>for i in `cat ids.txt'; do $i=`cat /proc/sys/kernel/random/uuid`
</code></pre>
<p>or</p>
<pre><code>for i in... | [
{
"answer_id": 74339423,
"author": "I'mahdi",
"author_id": 1740577,
"author_profile": "https://Stackoverflow.com/users/1740577",
"pm_score": 1,
"selected": false,
"text": "list comprehensions dict # we use 'dict.get' with default value '0' for price if don't exists.\ndef get_dates(prices... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74339404",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13428400/"
] |
74,339,446 | <p>I'm trying to create a simple vscode extension that will insert some default text into a newly created file. What I want is for the <code>vscode.workspace.createFileSystemWatcher</code> to call a function that gets the <code>activeTextEditor</code> and writes to the new file. Here is what I've tried:</p>
<pre><code>... | [
{
"answer_id": 74339423,
"author": "I'mahdi",
"author_id": 1740577,
"author_profile": "https://Stackoverflow.com/users/1740577",
"pm_score": 1,
"selected": false,
"text": "list comprehensions dict # we use 'dict.get' with default value '0' for price if don't exists.\ndef get_dates(prices... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74339446",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2782124/"
] |
74,339,450 | <p>Can't printout the indexes for all the elements with the same value from an array list. Only the index for the first element found in the array list is printed out.</p>
<p>Current output when list = 5,5,4,5:
Number 5 can be found in the following indexes [0, 0, 0, 0]</p>
<p>The desired output would be:
Number 5 can ... | [
{
"answer_id": 74339423,
"author": "I'mahdi",
"author_id": 1740577,
"author_profile": "https://Stackoverflow.com/users/1740577",
"pm_score": 1,
"selected": false,
"text": "list comprehensions dict # we use 'dict.get' with default value '0' for price if don't exists.\ndef get_dates(prices... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74339450",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20434565/"
] |
74,339,452 | <p>I'm fairly new to Python and coding in general so please bare with me. Overall, what im attempting is to create a script to open up my monthly fire department training, go to the monthly training video's, make a list of the potential videos in that data pod that change monthly and vary in how many video's we have fo... | [
{
"answer_id": 74339677,
"author": "Andrej Kesely",
"author_id": 10035985,
"author_profile": "https://Stackoverflow.com/users/10035985",
"pm_score": 1,
"selected": false,
"text": "js2py import js2py\n\njs_script = \"\"\"\\\n function decode(email) {\n function r(e, t) {\n va... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74339452",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19004472/"
] |
74,339,455 | <p>I have two files from these website:
<a href="https://sedac.ciesin.columbia.edu/data/set/gpw-v4-population-count-rev11/data-download" rel="nofollow noreferrer">https://sedac.ciesin.columbia.edu/data/set/gpw-v4-population-count-rev11/data-download</a></p>
<p>And a shapefile of China from these website
<a href="https:... | [
{
"answer_id": 74339677,
"author": "Andrej Kesely",
"author_id": 10035985,
"author_profile": "https://Stackoverflow.com/users/10035985",
"pm_score": 1,
"selected": false,
"text": "js2py import js2py\n\njs_script = \"\"\"\\\n function decode(email) {\n function r(e, t) {\n va... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74339455",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] |
74,339,464 | <p>When I do <code>Math.pow(3, num)/num</code>, it is giving me the value if <code>Infinity</code> and when I do <code>modulus</code> of that with <code>2</code> it is giving me <code>NaN</code>. I understand NaN is due to Infinity. I am using <code>300530164787</code> as the num and am expecting to do a modulus on the... | [
{
"answer_id": 74339588,
"author": "Girardi",
"author_id": 488229,
"author_profile": "https://Stackoverflow.com/users/488229",
"pm_score": -1,
"selected": false,
"text": "(3^x)/x>1 x>0 Infinity num // Do your thing\nvar numm = num%1000;\n// this should preserve parity,\n// you can use an... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74339464",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3204942/"
] |
74,339,499 | <p>This is a DataFrame sample:</p>
<pre><code> Folder Model
0 123 A
1 123 A
2 123 A
3 4541 A
4 4541 B
5 4541 C
6 4541 A
7 11 B
8 11 C
9 222 D
10 222 D
11 222 B
12 222 ... | [
{
"answer_id": 74339566,
"author": "Panda Kim",
"author_id": 20430449,
"author_profile": "https://Stackoverflow.com/users/20430449",
"pm_score": 2,
"selected": true,
"text": "filter (df\n .groupby('Folder')\n .filter(\n lambda x: (x['Model'].eq('A').sum() > 0) & (x['Model'].ne('A').s... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74339499",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5606352/"
] |
74,339,502 | <p>I am working on a small Laravel application, the problem is with the login, it works fine, but I just found out that the password can be seen if you have the basic knowledge to inspect the request payload. I want to know how can I encrypt the password or what solution can there be for this.</p>
<p>Blade file:</p>
<p... | [
{
"answer_id": 74339556,
"author": "Albert Wijaya",
"author_id": 19570048,
"author_profile": "https://Stackoverflow.com/users/19570048",
"pm_score": 0,
"selected": false,
"text": "'password' => Hash::make($request->yourpassword)\n"
},
{
"answer_id": 74339559,
"author": "Tural... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74339502",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13600579/"
] |
74,339,512 | <p>I wanted to ask how to create channels in discord.js 14 (i tried to researched but found nothing) I want to make a simple text channel! :)) Also, with the stuff i found, it worked ( no errors) it just didnt create anything / post errors in debug log</p>
| [
{
"answer_id": 74339567,
"author": "str1ng",
"author_id": 12826055,
"author_profile": "https://Stackoverflow.com/users/12826055",
"pm_score": 1,
"selected": false,
"text": " guild.channels.create({\n name: \"hello\",\n type: ChannelType.GuildText,\n parent: cat[0].... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74339512",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18269108/"
] |
74,339,518 | <p>I need to extract all email addresses from all text files within a directory with a lot of subdirectories. It is to much work to do this manually. I wrote the python script below to automate this task. However, when I execute the script I end up with an empty array printed. No errors shown. Can one please indicate w... | [
{
"answer_id": 74339613,
"author": "Danielle M.",
"author_id": 3434388,
"author_profile": "https://Stackoverflow.com/users/3434388",
"pm_score": -1,
"selected": false,
"text": "list.insert() f read_text_file() def read_text_file(file_path):\n print(f\"attempting to parse {file_path}\"... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74339518",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5953578/"
] |
74,339,552 | <p>So I am doing some graphics rendering and have gotten to a point where the data being used is too high and run/loading time takes way too long. Completely my fault as I am copying a massive chucks (2+ gig) of data all over the place. Naturally I need to transition to pointers and here is the problem I face.</p>
<p>W... | [
{
"answer_id": 74339613,
"author": "Danielle M.",
"author_id": 3434388,
"author_profile": "https://Stackoverflow.com/users/3434388",
"pm_score": -1,
"selected": false,
"text": "list.insert() f read_text_file() def read_text_file(file_path):\n print(f\"attempting to parse {file_path}\"... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74339552",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5776660/"
] |
74,339,594 | <p>I have 3 data frame. 2 of them are only one column, another one is two columns.
3 dataframe looks like this</p>
<pre><code>Itemcode Itemcode2 Itemcode count
AAC AAC AAC 2
AAB AAB AAB 1
AAG AAF AAT 0
AAD AAD AAD 1
AAC ... | [
{
"answer_id": 74339754,
"author": "Bushmaster",
"author_id": 15415267,
"author_profile": "https://Stackoverflow.com/users/15415267",
"pm_score": 0,
"selected": false,
"text": "df3 = df3.set_index('Itemcode').rename(columns={'count':'df3'})\na=df1.Itemcode.value_counts().rename('df1').to... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74339594",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20434497/"
] |
74,339,694 | <p>I'm styling a <a href="https://moodle.org/?lang=pt_br" rel="nofollow noreferrer">moodle theme</a> and put this effect on nav:</p>
<p><img src="https://i.imgur.com/INjP5em.gif" alt="" /></p>
<p>But i don't want it to appear on "Active" nav: Only appearing on <strong>server</strong> and not on <strong>appear... | [
{
"answer_id": 74342178,
"author": "Sampat Aheer",
"author_id": 10835518,
"author_profile": "https://Stackoverflow.com/users/10835518",
"pm_score": 0,
"selected": false,
"text": ".active.nav-link:hover::after {\n width: 0;\n}\n"
},
{
"answer_id": 74344133,
"author": "reptofr... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74339694",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10832965/"
] |
74,339,698 | <pre><code>import React, { useState } from "react";
import { v4 as uuidv4 } from 'uuid';
const ReturantInfo = ()=>{
const data = [
{
name: "Haaland Restaurant's",
stars: 5,
price:"100$",
ranking:"top 1 in e... | [
{
"answer_id": 74342178,
"author": "Sampat Aheer",
"author_id": 10835518,
"author_profile": "https://Stackoverflow.com/users/10835518",
"pm_score": 0,
"selected": false,
"text": ".active.nav-link:hover::after {\n width: 0;\n}\n"
},
{
"answer_id": 74344133,
"author": "reptofr... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74339698",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19786784/"
] |
74,339,729 | <p>I need to open multiple txt (all have the same number of variables and variables names, see picture[<a href="https://i.stack.imgur.com/1oz2n.jpg" rel="nofollow noreferrer">1</a>]); to each, add multiple columns with specific parts of their file name; then save a CSV resulting from merging all txts, with the added co... | [
{
"answer_id": 74342178,
"author": "Sampat Aheer",
"author_id": 10835518,
"author_profile": "https://Stackoverflow.com/users/10835518",
"pm_score": 0,
"selected": false,
"text": ".active.nav-link:hover::after {\n width: 0;\n}\n"
},
{
"answer_id": 74344133,
"author": "reptofr... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74339729",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20434880/"
] |
74,339,733 | <p>I am building a custom Keras layer that it is essentially the softmax function with a base parameter which is trainable. While the layer works on its own, when placed inside a sequential model, <code>model.summary()</code> determines its output shape as <code>None</code> and <code>model.fit()</code> raises a presuma... | [
{
"answer_id": 74340277,
"author": "Dr. Snoopy",
"author_id": 349130,
"author_profile": "https://Stackoverflow.com/users/349130",
"pm_score": 1,
"selected": false,
"text": "compute_output_shape def compute_output_shape(self, input_shape):\n return [(None, out_shape)]\n out_shape"
},... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74339733",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6942918/"
] |
74,339,734 | <pre><code> df1:
Customer Manager Time Period Amount
Samsung Rosalie 90D 46726190
Samsung Rosalie 18M 46726190
Samsung Rosalie 18M 46726190
Samsung Rosalie 18M 46726190
... | [
{
"answer_id": 74340277,
"author": "Dr. Snoopy",
"author_id": 349130,
"author_profile": "https://Stackoverflow.com/users/349130",
"pm_score": 1,
"selected": false,
"text": "compute_output_shape def compute_output_shape(self, input_shape):\n return [(None, out_shape)]\n out_shape"
},... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74339734",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19446467/"
] |
74,339,763 | <p>I want to store several <strong>general extension settings and specific website settings</strong>.</p>
<p>I need to save a website name if it's not yet saved and according to its number retrieve the individual settings.</p>
<p>Would the below setup be the best approach using an object with object for websites number... | [
{
"answer_id": 74339937,
"author": "Dakeyras",
"author_id": 1857909,
"author_profile": "https://Stackoverflow.com/users/1857909",
"pm_score": 3,
"selected": true,
"text": "websiteSettings let extensionsettings = {\n websites: {\n 'website 1': {\n color: 'green',\n ... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74339763",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8719001/"
] |
74,339,765 | <p>We are trying to use one single <code>.gradle</code> cache among our multiple build workers (in jenkins) by creating <code>.gradle</code> in <strong>NFS</strong> mount which is shared with all the workers.</p>
<p>Now when we run multiple projects using gradle builds, they get failed with following errors:</p>
<pre><... | [
{
"answer_id": 74339937,
"author": "Dakeyras",
"author_id": 1857909,
"author_profile": "https://Stackoverflow.com/users/1857909",
"pm_score": 3,
"selected": true,
"text": "websiteSettings let extensionsettings = {\n websites: {\n 'website 1': {\n color: 'green',\n ... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74339765",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19513849/"
] |
74,339,774 | <p>I am new on Node.js and I have app.js file like:</p>
<pre><code>const express = require('express');
const app = express();
const port = 8080;
app.get('/', (req, res) => res.send('Hello World'));
app.listen(port);
console.log(`App running on http://localhost:${port}`);
</code></pre>
<p>I also have index.html file... | [
{
"answer_id": 74339937,
"author": "Dakeyras",
"author_id": 1857909,
"author_profile": "https://Stackoverflow.com/users/1857909",
"pm_score": 3,
"selected": true,
"text": "websiteSettings let extensionsettings = {\n websites: {\n 'website 1': {\n color: 'green',\n ... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74339774",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3226924/"
] |
74,339,807 | <p>I previously used datagridview but now changed it to use a datatable
`</p>
<pre><code> private void table()
{
//create a data set
DataSet ds = new DataSet();
//create a data table for the data set
DataTable dt = new DataTable();
//create some... | [
{
"answer_id": 74339937,
"author": "Dakeyras",
"author_id": 1857909,
"author_profile": "https://Stackoverflow.com/users/1857909",
"pm_score": 3,
"selected": true,
"text": "websiteSettings let extensionsettings = {\n websites: {\n 'website 1': {\n color: 'green',\n ... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74339807",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20432584/"
] |
74,339,815 | <p>Define a function convert(input str) to return a list of characters based on the input
string input str. Specifically, each character in input str will be included as a separate element of
the returned list, while any spaces in input str will be ignored</p>
<pre><code>def convert(input_str):
newlist = []
rea... | [
{
"answer_id": 74339842,
"author": "Omer Dagry",
"author_id": 15010874,
"author_profile": "https://Stackoverflow.com/users/15010874",
"pm_score": 0,
"selected": false,
"text": "if char != \" \": char new_list def convert(input_str):\n new_list = []\n for char in input_str:\n ... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74339815",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20430206/"
] |
74,339,843 | <p>I am facing this for the first time and I have no options on how to do it. I read many forums and did not find anything like this anywhere. I need to do as in the picture, how can I do it<br />
This is a sample of how it should turn out:
<a href="https://i.stack.imgur.com/VpRua.png" rel="nofollow noreferrer">enter i... | [
{
"answer_id": 74339842,
"author": "Omer Dagry",
"author_id": 15010874,
"author_profile": "https://Stackoverflow.com/users/15010874",
"pm_score": 0,
"selected": false,
"text": "if char != \" \": char new_list def convert(input_str):\n new_list = []\n for char in input_str:\n ... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74339843",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20350574/"
] |
74,339,844 | <p>I have this class:</p>
<pre><code>public class user
{
public string FirstName { get; set; }
public string LastName { get; set; }
public EyeColor EyeColor { get; set; }
}
public enum EyeColor
{
Brown,
Black
}
</code></pre>
<p>I can use <code>user.GetType().GetProperties();</code> to get properties... | [
{
"answer_id": 74339842,
"author": "Omer Dagry",
"author_id": 15010874,
"author_profile": "https://Stackoverflow.com/users/15010874",
"pm_score": 0,
"selected": false,
"text": "if char != \" \": char new_list def convert(input_str):\n new_list = []\n for char in input_str:\n ... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74339844",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16180500/"
] |
74,339,864 | <p>I am currently experimenting with tkinter in python, but I couldnt figure out how to turn the string that is written inside an Entry to an integer.</p>
<pre><code>from tkinter import *
window = Tk()
erstertext = Label(window, text="Hi! You have to enter your information for this program.")
erstertext.pack... | [
{
"answer_id": 74339842,
"author": "Omer Dagry",
"author_id": 15010874,
"author_profile": "https://Stackoverflow.com/users/15010874",
"pm_score": 0,
"selected": false,
"text": "if char != \" \": char new_list def convert(input_str):\n new_list = []\n for char in input_str:\n ... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74339864",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20435019/"
] |
74,339,867 | <p>So I have faced an interesting thing in my React Native Code. Can you guys explain why it ' s happening like that?</p>
<pre><code>import React, { useState, useEffect } from "react";
import { SafeAreaView, Text, FlatList } from "react-native";
import config from "../../../config";
import... | [
{
"answer_id": 74339842,
"author": "Omer Dagry",
"author_id": 15010874,
"author_profile": "https://Stackoverflow.com/users/15010874",
"pm_score": 0,
"selected": false,
"text": "if char != \" \": char new_list def convert(input_str):\n new_list = []\n for char in input_str:\n ... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74339867",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15648347/"
] |
74,339,868 | <p>I am creating a div in css with two elements split into two columns. My goal is to have one element be two-thirds of the page, and another to be a third. The columns will also collapse when the page size reaches a certain minimum width, and have each element take up the entire width of the page.</p>
<p>When I use th... | [
{
"answer_id": 74339842,
"author": "Omer Dagry",
"author_id": 15010874,
"author_profile": "https://Stackoverflow.com/users/15010874",
"pm_score": 0,
"selected": false,
"text": "if char != \" \": char new_list def convert(input_str):\n new_list = []\n for char in input_str:\n ... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74339868",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16752502/"
] |
74,339,891 | <p>I am trying to create a folder structure for audit logs that gets generated by the AIX system and Database</p>
<p>Below is a simple example of a file in a folder:</p>
<pre><code>ls -l /opt/audit/move/
</code></pre>
<p>Output:</p>
<pre><code>-rw-r--r-- 1 gl_user user 0 18 Aug 2019 test1.txt
-rw-r--r-- 1 ... | [
{
"answer_id": 74339907,
"author": "Christopher Karsten",
"author_id": 5607499,
"author_profile": "https://Stackoverflow.com/users/5607499",
"pm_score": 0,
"selected": false,
"text": "INFORLOG_BKP=\"/opt/audit\"\nfor i in `ls ${INFORLOG_BKP}/move`\ndo\nFILE_MONTH=`istat ${INFORLOG_BKP}/m... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74339891",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5607499/"
] |
74,339,916 | <p>I am trying to get the ELB name using Ansible dig, but it is returning DNS name. Is there a way I can match the DNS name pattern and get the ELB name out of DNS. For example, I am trying to get ELB name from below DNS name in Ansible get fact.</p>
<p><code>internal-synergy-so-synergyin-883nxyin6e2o-278193237.us-west... | [
{
"answer_id": 74340628,
"author": "D1__1",
"author_id": 17194645,
"author_profile": "https://Stackoverflow.com/users/17194645",
"pm_score": 1,
"selected": false,
"text": "^[^-]+-\\K[^.]+(?=-)\n ^ [^-] + - \\K [^.] + (?=-) -"
},
{
"answer_id": 74340754,
"author": "Vladimir Bo... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74339916",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3388058/"
] |
74,339,931 | <p>My HTML elements are not changing size when the screen size changes, width is set at 100% for all elements. it works for my header but not my background image on the main part of the page. nor does it work with any of the elements below the header with the exception of the map picture under locations. code below, no... | [
{
"answer_id": 74340032,
"author": "liquidot",
"author_id": 20400911,
"author_profile": "https://Stackoverflow.com/users/20400911",
"pm_score": 0,
"selected": false,
"text": "body{\nwidth: 100%;\n}\n"
}
] | 2022/11/06 | [
"https://Stackoverflow.com/questions/74339931",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20435058/"
] |
74,339,966 | <p>For a wordpress website that I am developing I am trying to order a list of objects in SQL by price and would like to have the order descending but have prices that are not numbers (Price on demand for example) on top.</p>
<p>Here's an example of the list I need:</p>
<div class="s-table-container">
<table class="s-t... | [
{
"answer_id": 74340284,
"author": "ORGPEV",
"author_id": 20085325,
"author_profile": "https://Stackoverflow.com/users/20085325",
"pm_score": 0,
"selected": false,
"text": "SELECT fieldName FROM tableName\nORDER BY\nCASE\n WHEN SUBSTR(fieldName, 1, 1) BETWEEN '0' AND '9' THEN 'B'\n ... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74339966",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13626048/"
] |
74,339,990 | <p>I want a reflection of a ray but only in the X-Z axis, while the Y-axis should only allow me to adjust the height of the reflection, but have no impact on the reflection itself;</p>
<p>Here's the regular reflection:<a href="https://i.stack.imgur.com/DCSD9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgu... | [
{
"answer_id": 74340284,
"author": "ORGPEV",
"author_id": 20085325,
"author_profile": "https://Stackoverflow.com/users/20085325",
"pm_score": 0,
"selected": false,
"text": "SELECT fieldName FROM tableName\nORDER BY\nCASE\n WHEN SUBSTR(fieldName, 1, 1) BETWEEN '0' AND '9' THEN 'B'\n ... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74339990",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14757786/"
] |
74,339,992 | <p>I have component A where I want to set variable using useQuery instead of useState</p>
<pre><code>function A() {
let varA= useQuery(['objA'], '');
</code></pre>
<p>then inside A I have dropDown list where I set varA using callback function</p>
<pre><code> const handleDropDownSelect = (e) => {
varA= e.value;... | [
{
"answer_id": 74340284,
"author": "ORGPEV",
"author_id": 20085325,
"author_profile": "https://Stackoverflow.com/users/20085325",
"pm_score": 0,
"selected": false,
"text": "SELECT fieldName FROM tableName\nORDER BY\nCASE\n WHEN SUBSTR(fieldName, 1, 1) BETWEEN '0' AND '9' THEN 'B'\n ... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74339992",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/678855/"
] |
74,339,995 | <p>I have a table like this:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Student_1</th>
<th>Student_2</th>
<th>lesson_id</th>
</tr>
</thead>
<tbody>
<tr>
<td>352-03-3624</td>
<td>805-17-4143</td>
<td>27</td>
</tr>
<tr>
<td>352-03-3624</td>
<td>805-17-4144</td>
<td>27</td>
</tr>
<tr>
<td... | [
{
"answer_id": 74340070,
"author": "MT0",
"author_id": 1509264,
"author_profile": "https://Stackoverflow.com/users/1509264",
"pm_score": 1,
"selected": false,
"text": "SELECT *\nFROM table_name\nWHERE (Student_1, Student_2, lesson_id) IN (\n ('352-03-3624', '805-17-4144', 27),... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74339995",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20360789/"
] |
74,340,008 | <p>I am iterating through a list of dicts and want to update another dict that may have a key with the same name. Instead of overwriting the key I would like to increment the key with suffix '<code>_[num]</code>'. The problem is I don't know what the last incremented value is so I need to loop through all keys every t... | [
{
"answer_id": 74342819,
"author": "joquicho",
"author_id": 19889819,
"author_profile": "https://Stackoverflow.com/users/19889819",
"pm_score": 0,
"selected": false,
"text": "# Max index of all the different keys, ex: {\"keyA\": 5, \"keyB\": 21, \"keyC\": 44}\nmax_index_dict = {}\n\n# Ge... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74340008",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5525619/"
] |
74,340,026 | <p>I had some vector icons that were converted from SVG and I need to customize the tint colors for them based on some conditions, I'm trying to change the tint color programmatically</p>
<pre><code>Image(
modifier = Modifier.size(128.dp),
painter = painterResource(id = R.drawable.icon_1),
conte... | [
{
"answer_id": 74340460,
"author": "cd1",
"author_id": 38333,
"author_profile": "https://Stackoverflow.com/users/38333",
"pm_score": 0,
"selected": false,
"text": "Icon Image Icon Icon(\n modifier = Modifier.size(128.dp),\n painter = painterResource(id = R.drawable.icon_1),\n co... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74340026",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5368454/"
] |
74,340,035 | <p>The following code first defines the protocol <code>Proto</code> and then define a function that takes a variable follows that protocol. Then define classes <code>A</code> and <code>B</code> that I thought both follows the protocol, although only the argument name of <code>B.__call__</code> is different from the pro... | [
{
"answer_id": 74340082,
"author": "joel",
"author_id": 5986907,
"author_profile": "https://Stackoverflow.com/users/5986907",
"pm_score": 3,
"selected": true,
"text": "Proto p p(0) p(x=0) B B class Proto(Protocol):\n def __call__(self, x: int, /) -> int:\n ...\n"
},
{
"... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74340035",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7624196/"
] |
74,340,049 | <p>I have two arrays A, B with objects from the database. I want to merge the objects from array B into array A that have a relation: (A[n].id == B[n].a_id).</p>
<pre class="lang-js prettyprint-override"><code>const array_a = [
{
"id": 4,
"status": 0,
},
{
"id": 5,
&q... | [
{
"answer_id": 74340094,
"author": "Asraf",
"author_id": 20361860,
"author_profile": "https://Stackoverflow.com/users/20361860",
"pm_score": 3,
"selected": true,
"text": "dict ={} a_id dict dict[val.id] map() reduce() .map() filter find 1000 items 1000*1000 = 1000000 const array_a = [\n ... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74340049",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18066399/"
] |
74,340,051 | <p>I'm looking for a Regex to match the whole text of every sentence between the OR operators that contains one or more ANDs, if and only if, one or more ANDs is in the sentence between two ORs. For instance:</p>
<p>this should match</p>
<p><code>OR "Message:\"An Arm and a Leg \<Meaning\>: Something tha... | [
{
"answer_id": 74340145,
"author": "Andrej Kesely",
"author_id": 10035985,
"author_profile": "https://Stackoverflow.com/users/10035985",
"pm_score": 3,
"selected": true,
"text": "AND OR (?<=OR)((?:(?!OR).)+AND(?:(?!OR).)+)(?=OR)\n"
},
{
"answer_id": 74340389,
"author": "Claud... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74340051",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5498926/"
] |
74,340,052 | <p>I have been breaking my head with this function.</p>
<pre><code>def snatch(data,threshold):
</code></pre>
<p>Given I have the following data:</p>
<pre><code>data = { 'x': [1, 2, 3, 7], 'y': [1, 3, 7, 2] }
threshold = { 'x': 3, 'y': 2 }
</code></pre>
<p>Briefly, the data dictionaries' values are supposed to merge as ... | [
{
"answer_id": 74340089,
"author": "ShlomiF",
"author_id": 5024514,
"author_profile": "https://Stackoverflow.com/users/5024514",
"pm_score": 0,
"selected": false,
"text": "from itertools import chain\n\ndef snatch(data, threshold): return list(chain(*[[a for a in data[k] if a >= v] for k... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74340052",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18072226/"
] |
74,340,060 | <p>When I add a calendar event, it is off by 1 hour after DST changed.</p>
<p>I have been adding calendar events to my google calendar from google sheets in bulk, but after the daylight saving change, it become messed up. It appears in my Execution log that the time starts in "GMT-0400 (Eastern Daylight Time)"... | [
{
"answer_id": 74521406,
"author": "Gustavo",
"author_id": 17839041,
"author_profile": "https://Stackoverflow.com/users/17839041",
"pm_score": 0,
"selected": false,
"text": "Sunday, November 6, 2022 4:00:00 AM"
}
] | 2022/11/06 | [
"https://Stackoverflow.com/questions/74340060",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1009123/"
] |
74,340,112 | <p>I have a file where each line contains a person's name, occupation, and duties separated by commas.
How could I print the name of the people who have a specific occupation?
So far i have</p>
<p><code>awk -v val="barrister" '$0 ~ val' Occupation.txt</code></p>
<p>for printing the lines that contain the occu... | [
{
"answer_id": 74340183,
"author": "Christoph Dahlen",
"author_id": 20370596,
"author_profile": "https://Stackoverflow.com/users/20370596",
"pm_score": -1,
"selected": false,
"text": "grep barrister Occupation.txt | \\\n awk -F, '{ print $1 }'\n"
},
{
"answer_id": 74340383,
... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74340112",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20152389/"
] |
74,340,159 | <p>I am sending notification with firebase, when click on notification I want to redirect to a page in webview, how can I do that?</p>
<pre><code>FirebaseMessaging.onMessageOpenedApp.listen((RemoteMessagemessage) {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => ,
... | [
{
"answer_id": 74340183,
"author": "Christoph Dahlen",
"author_id": 20370596,
"author_profile": "https://Stackoverflow.com/users/20370596",
"pm_score": -1,
"selected": false,
"text": "grep barrister Occupation.txt | \\\n awk -F, '{ print $1 }'\n"
},
{
"answer_id": 74340383,
... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74340159",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20435171/"
] |
74,340,266 | <p>I'm in the middle of taking an online C++ course, and I've been having issues with this homework problem. I tried reaching out to my professor twice, but he hasn't responded. I've sought out many solutions, but since I'm new in the course, many of the solutions involve using techniques I haven't learned yet (like ch... | [
{
"answer_id": 74340768,
"author": "guivi",
"author_id": 1856251,
"author_profile": "https://Stackoverflow.com/users/1856251",
"pm_score": 1,
"selected": false,
"text": "#include <iostream>\n#include <string>\n\nusing namespace std;\n\nint main()\n{\n char letter;\n std::string run... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74340266",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20435305/"
] |
74,340,271 | <p>Here is the code of the (My)SQL function (it works outside of the function),
but I can't manage to save it as a function for further reuse...</p>
<p>This is an example of the working query:</p>
<pre class="lang-sql prettyprint-override"><code>SELECT
(
SUM(Items_Available * Store_Sales) - (SUM(Items_Available) ... | [
{
"answer_id": 74340332,
"author": "GMB",
"author_id": 10676716,
"author_profile": "https://Stackoverflow.com/users/10676716",
"pm_score": 2,
"selected": true,
"text": "COUNT SUM select PEARSON_R (1, 2);\nError: ER_INVALID_GROUP_FUNC_USE: Invalid use of group function\n CREATE FUNCTION P... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74340271",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1986681/"
] |
74,340,280 | <p>My Calculator is half working. I really put my brain in it but I cant figure out why its not working. Can someone help me?</p>
<pre><code>number1 = input("Enter first number: ")
number2 = input("Enter second number: ")
operator = input("Enter the operation character: ")
result = number1... | [
{
"answer_id": 74340332,
"author": "GMB",
"author_id": 10676716,
"author_profile": "https://Stackoverflow.com/users/10676716",
"pm_score": 2,
"selected": true,
"text": "COUNT SUM select PEARSON_R (1, 2);\nError: ER_INVALID_GROUP_FUNC_USE: Invalid use of group function\n CREATE FUNCTION P... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74340280",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20435309/"
] |
74,340,317 | <p>Somehow i managed to stop getting the 400 POST error on the Login and Register Components in my app, but now for some reason they shoot me the "Formik.tsx:824 Warning: An unhandled error was caught from submitForm() TypeError: onSubmit is not a function" problem when i click the submit button (they both pr... | [
{
"answer_id": 74340332,
"author": "GMB",
"author_id": 10676716,
"author_profile": "https://Stackoverflow.com/users/10676716",
"pm_score": 2,
"selected": true,
"text": "COUNT SUM select PEARSON_R (1, 2);\nError: ER_INVALID_GROUP_FUNC_USE: Invalid use of group function\n CREATE FUNCTION P... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74340317",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19840995/"
] |
74,340,337 | <p>Getting started with using Chrome webdrivers and selenium. When I execute the code:</p>
<pre><code>from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import WebDriverWait
driver = webdriver.Chrome(executable_path = \
r"... | [
{
"answer_id": 74340332,
"author": "GMB",
"author_id": 10676716,
"author_profile": "https://Stackoverflow.com/users/10676716",
"pm_score": 2,
"selected": true,
"text": "COUNT SUM select PEARSON_R (1, 2);\nError: ER_INVALID_GROUP_FUNC_USE: Invalid use of group function\n CREATE FUNCTION P... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74340337",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18069825/"
] |
74,340,339 | <p>Good evening,</p>
<p>I'm wondering how i can exclude certain characters from a frequency table?</p>
<p>first i read the file, creates a frequency table. after this i change it to a tuple to be able to get a percentage of occourence for each letter.
however i am wondering how i can implement that it does not count ce... | [
{
"answer_id": 74340386,
"author": "soyapencil",
"author_id": 12161501,
"author_profile": "https://Stackoverflow.com/users/12161501",
"pm_score": 1,
"selected": false,
"text": "if frequency_table = {char : data.count(char) for char in set(data) if char not in EXCLUDE} \n ['a', 'b', 'c', ... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74340339",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9861217/"
] |
74,340,355 | <p>I'm new with HTML & JS and I face the following problem:</p>
<p>I have an input in html that creates a new li Element (in combination with JS); is it possible to give every newly-created li element its own id? For example to delete an specific element?</p>
<p>For Example:</p>
<pre><code><li id="one"... | [
{
"answer_id": 74340386,
"author": "soyapencil",
"author_id": 12161501,
"author_profile": "https://Stackoverflow.com/users/12161501",
"pm_score": 1,
"selected": false,
"text": "if frequency_table = {char : data.count(char) for char in set(data) if char not in EXCLUDE} \n ['a', 'b', 'c', ... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74340355",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16837874/"
] |
74,340,359 | <p>I am super new to SQL and am trying to figure out how to find the average by day. So YTD what were they averaging by day.</p>
<p>the table below is an example of the table I am working with</p>
<pre><code>Study Date | ID | Subject
01\01\2018 | 123 | Math
01\01\2018 | 456 | Science
01\02\2018 | 789 | Sci... | [
{
"answer_id": 74340381,
"author": "GMB",
"author_id": 10676716,
"author_profile": "https://Stackoverflow.com/users/10676716",
"pm_score": 2,
"selected": false,
"text": "select subject, sum(cnt_daily) as cnt, \n min(cnt_daily) as min_cnt_daily, max(cnt_daily) as max_cnt_daily\nfrom (\... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74340359",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20435318/"
] |
74,340,365 | <p>This is my first time attempting to use APIs with Blazor, and I am struggling to save info from nested JSON objects into C# objects. I have been following these guides:
<a href="https://learn.microsoft.com/en-us/aspnet/core/blazor/call-web-api?view=aspnetcore-6.0&pivots=server" rel="nofollow noreferrer">https://... | [
{
"answer_id": 74340381,
"author": "GMB",
"author_id": 10676716,
"author_profile": "https://Stackoverflow.com/users/10676716",
"pm_score": 2,
"selected": false,
"text": "select subject, sum(cnt_daily) as cnt, \n min(cnt_daily) as min_cnt_daily, max(cnt_daily) as max_cnt_daily\nfrom (\... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74340365",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18228665/"
] |
74,340,370 | <p>Fairly new to Flutter and have encountered an issue. I am trying to get the emulator (for both iOS and Android) of my app to connect to an API that is running on my local machine. I had it working up until I upgraded flutter null-safety and have not been able to get it back since. Any suggestions on how I can fix th... | [
{
"answer_id": 74340381,
"author": "GMB",
"author_id": 10676716,
"author_profile": "https://Stackoverflow.com/users/10676716",
"pm_score": 2,
"selected": false,
"text": "select subject, sum(cnt_daily) as cnt, \n min(cnt_daily) as min_cnt_daily, max(cnt_daily) as max_cnt_daily\nfrom (\... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74340370",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1937987/"
] |
74,340,395 | <p>I am brushing up on my rails. I have a dead simple form. views -> genalg -> index.html.erb</p>
<pre><code><h1>Genalg#index</h1>
<p>Find me in app/views/genalg/index.html.erb</p>
<%= form_with url: "/calculate" do |form| %>
<%= form.text_field :query %>
... | [
{
"answer_id": 74340381,
"author": "GMB",
"author_id": 10676716,
"author_profile": "https://Stackoverflow.com/users/10676716",
"pm_score": 2,
"selected": false,
"text": "select subject, sum(cnt_daily) as cnt, \n min(cnt_daily) as min_cnt_daily, max(cnt_daily) as max_cnt_daily\nfrom (\... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74340395",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1222564/"
] |
74,340,407 | <p>I have a structure like this:</p>
<pre><code>{
_id: new ObjectId("634aa49f98e3a05346dd2327"),
filmName: 'Film number 1',
episodes: [
{
episodeName: 'Testing 1',
slugEpisode: 'testing-1',
_id: new ObjectId("6351395c17f08335f1dabfc9")
},
{
episodeName: 'Tes... | [
{
"answer_id": 74340381,
"author": "GMB",
"author_id": 10676716,
"author_profile": "https://Stackoverflow.com/users/10676716",
"pm_score": 2,
"selected": false,
"text": "select subject, sum(cnt_daily) as cnt, \n min(cnt_daily) as min_cnt_daily, max(cnt_daily) as max_cnt_daily\nfrom (\... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74340407",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16240395/"
] |
74,340,413 | <p>I was using replit (maybe because replit doesnt work?) tryoing to make some code for a Discord bot when I saw this:</p>
<p><code>Type error: __init__ missing 1 required keyword-only argument: "intents"</code></p>
<p>Im not really sure what is means</p>
<p>Heres my code (BTW i used <em><strong>pip install d... | [
{
"answer_id": 74340422,
"author": "liquidot",
"author_id": 20400911,
"author_profile": "https://Stackoverflow.com/users/20400911",
"pm_score": 1,
"selected": false,
"text": "client = discord.Client()\n client = discord.Client(intents=discord.Intents.default())\n"
},
{
"answer_id... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74340413",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20435438/"
] |
74,340,427 | <p>Windows 11.
I am not great at virtual environments, and I have bumped around between a half dozen different "solutions." I thought I had it solved with chocolatey, but I am trying to install python3.11, and not having success. Basically, choco says it is installed, but I can't find it anywhere.</p>
<pre ... | [
{
"answer_id": 74340422,
"author": "liquidot",
"author_id": 20400911,
"author_profile": "https://Stackoverflow.com/users/20400911",
"pm_score": 1,
"selected": false,
"text": "client = discord.Client()\n client = discord.Client(intents=discord.Intents.default())\n"
},
{
"answer_id... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74340427",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3112610/"
] |
74,340,457 | <p>Given this JSON,</p>
<pre><code>{
"token": {
"accessToken": "scrciFyGuLAQn6XgKkaBWOxdZA1",
"issuedAt": "2022-11-06T22:54:27Z",
"expiresIn": 1799
}
}
</code></pre>
<p>I can get the <code>DeserializeObject</code> to work if I d... | [
{
"answer_id": 74340535,
"author": "Thorberg",
"author_id": 15638584,
"author_profile": "https://Stackoverflow.com/users/15638584",
"pm_score": 0,
"selected": false,
"text": "public class Response<T>\n{\n public User User { get; set; }\n public Token Token { get; set; }\n public To... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74340457",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1007906/"
] |
74,340,488 | <p>I am simply looking to get a count of the <strong>character</strong> (not the words) in a Google document. It cannot be in the active document for this use case, so would need to be post <code>getBody</code>.</p>
<p>Here is my very fragmented script so far. For context, I am looking to integrate a few features into ... | [
{
"answer_id": 74340535,
"author": "Thorberg",
"author_id": 15638584,
"author_profile": "https://Stackoverflow.com/users/15638584",
"pm_score": 0,
"selected": false,
"text": "public class Response<T>\n{\n public User User { get; set; }\n public Token Token { get; set; }\n public To... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74340488",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20426355/"
] |
74,340,497 | <p>I am wondering which is a better way of designing my data base.</p>
<p>Currently designing for Hospitals that advertise positions
which require specific skills (e.g., nursing, administrative, etc.). Candidates may be invited to
interviews for the positions.</p>
<p>For one of the requirments I have to include informa... | [
{
"answer_id": 74340535,
"author": "Thorberg",
"author_id": 15638584,
"author_profile": "https://Stackoverflow.com/users/15638584",
"pm_score": 0,
"selected": false,
"text": "public class Response<T>\n{\n public User User { get; set; }\n public Token Token { get; set; }\n public To... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74340497",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20425502/"
] |
74,340,512 | <p>How can you determine the amount of flip flops that will be generated during synthesis without using any tool?</p>
<p>This first code is supposed to create 5 flip flops</p>
<pre><code>module regdesp (PL, RST, ENSERIE, CLOCK, ENPARA, SALSERIE);
input PL;
input RST;
input ENSERIE;
input CLOCK;
inpu... | [
{
"answer_id": 74340645,
"author": "mkrieger1",
"author_id": 4621513,
"author_profile": "https://Stackoverflow.com/users/4621513",
"pm_score": 0,
"selected": false,
"text": "SHIFT SALSERIE aux tamyano tamyano"
},
{
"answer_id": 74349810,
"author": "Alberto Garcia",
"autho... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74340512",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20435422/"
] |
74,340,534 | <pre><code>import random
money=int(0) # money starts at 0 always
bet=int(input("enter a bet.")) # user inputs a bet.
winningnumber=(random.randint(0,30)) # chooses random integer from 0 - 30, stores it as variable winningnumber
number = int(input("Pick a number 0-30"))
if number % 2 == 0: #checks i... | [
{
"answer_id": 74340647,
"author": "Vin",
"author_id": 7955271,
"author_profile": "https://Stackoverflow.com/users/7955271",
"pm_score": 1,
"selected": false,
"text": "if-else money True if-else False if-else else money print (money) if-else number == primenum == 0 True primenum number i... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74340534",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20435533/"
] |
74,340,550 | <p>For example, if I have two lists:</p>
<p><code>x <- data.frame(c('a', 'b', 'c'))</code>
<code>y <- data.frame(c('1', '2', '3'))</code></p>
<p>I want my output to look like:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>x</th>
<th>y</th>
</tr>
</thead>
<tbody>
<tr>
<td>a</td>
<td>... | [
{
"answer_id": 74340647,
"author": "Vin",
"author_id": 7955271,
"author_profile": "https://Stackoverflow.com/users/7955271",
"pm_score": 1,
"selected": false,
"text": "if-else money True if-else False if-else else money print (money) if-else number == primenum == 0 True primenum number i... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74340550",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20435521/"
] |
74,340,555 | <p>I need to read data from a JSON and there are some money data as shown below:</p>
<pre><code>$234,205,860
</code></pre>
<p>I thought to map this data to my DTO class as String, but I am not sure if there is a proper data type in Java. I look at on the web, but could not see any for this kind of data.</p>
<p>So, is t... | [
{
"answer_id": 74340647,
"author": "Vin",
"author_id": 7955271,
"author_profile": "https://Stackoverflow.com/users/7955271",
"pm_score": 1,
"selected": false,
"text": "if-else money True if-else False if-else else money print (money) if-else number == primenum == 0 True primenum number i... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74340555",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20416459/"
] |
74,340,602 | <p>I have a chat collection.</p>
<p>each document has an array with two user id's.
my goal is to get the chat that has both user sys id's</p>
<p>I tried running the following but I got an error because we cant use two 'arrayContains' in one query.</p>
<p>Is there any way to perform such query?</p>
<p>here is an image o... | [
{
"answer_id": 74340647,
"author": "Vin",
"author_id": 7955271,
"author_profile": "https://Stackoverflow.com/users/7955271",
"pm_score": 1,
"selected": false,
"text": "if-else money True if-else False if-else else money print (money) if-else number == primenum == 0 True primenum number i... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74340602",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17281101/"
] |
74,340,633 | <p>I have a large csv file with consecutive repeated rows except for the time related columns (columns 1, 2, 3, 4) I want to skip except for the first occurence (non-consecutive repeated rows are ok).</p>
<p>Is there a more efficient way than the below code? (I also don't want to painfully hard code that condition, say... | [
{
"answer_id": 74340702,
"author": "Ed Morton",
"author_id": 1745001,
"author_profile": "https://Stackoverflow.com/users/1745001",
"pm_score": 3,
"selected": true,
"text": "$ awk '{prev=key; key=$0; sub(/([^,]*,){4}/,\"\",key)} key != prev' file\na,z,k,d,5,6,7,8,9\nc,c,l,e,8,9,1,2,3\ne,b... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74340633",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5805389/"
] |
74,340,636 | <p>I was not sure if better to ask here, or on GameDev Stack Exchange. I believe it carries over to general programming.</p>
<p><strong>Context</strong></p>
<ul>
<li>I am using Unity3D and building an Online Multiplayer Game.</li>
<li>I would like to use Constructor Dependency Injection, so no "magic" reflect... | [
{
"answer_id": 74340702,
"author": "Ed Morton",
"author_id": 1745001,
"author_profile": "https://Stackoverflow.com/users/1745001",
"pm_score": 3,
"selected": true,
"text": "$ awk '{prev=key; key=$0; sub(/([^,]*,){4}/,\"\",key)} key != prev' file\na,z,k,d,5,6,7,8,9\nc,c,l,e,8,9,1,2,3\ne,b... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74340636",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19204352/"
] |
74,340,665 | <p>I want to cut zeros from the beginning of the string in the calculation rules but don't want to make it a number.</p>
<p>I want something like this:</p>
<pre><code>'000' // '0'
'050' // '50'
'076' // '76'
'135' // '135'
'107' // '107'
</code></pre>
| [
{
"answer_id": 74340689,
"author": "acdcjunior",
"author_id": 1850609,
"author_profile": "https://Stackoverflow.com/users/1850609",
"pm_score": 2,
"selected": false,
"text": "Number('005').toString() Number '005'.replace(/^(0(?!$))+/, '') const test = (s) => console.log(s, '-->', s.repla... | 2022/11/06 | [
"https://Stackoverflow.com/questions/74340665",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17333112/"
] |
74,340,724 | <p>If I have a string like:</p>
<pre><code>query = """
SELECT
alias.column_one,
alias.column_two,
alias.column_three
FROM
table_name
"""
</code></pre>
<p>How do I just return the characters between "SELECT" and "FROM" in a list so I have a list like below wh... | [
{
"answer_id": 74340782,
"author": "Vin",
"author_id": 7955271,
"author_profile": "https://Stackoverflow.com/users/7955271",
"pm_score": 1,
"selected": false,
"text": "query = \"\"\"\nSELECT\n alias.column_one,\n alias.column_two,\n alias.column_three\nFROM\n table_name\n\"\"\"\n... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74340724",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13621215/"
] |
74,340,727 | <p>CSS newbie here wondering if this is possible. If I have something like the code below, is it possible to override just the section that has the class itemtile AND data-id of ABC123? My goal is to hide that entire section from being displayed. I've reviewed some past comments about specifity but when it comes to wan... | [
{
"answer_id": 74340749,
"author": "Anye",
"author_id": 16752210,
"author_profile": "https://Stackoverflow.com/users/16752210",
"pm_score": 3,
"selected": true,
"text": "JavaScript let class = document.getElementsByClassName(\"itemtile\"); \n\nfor(let i = 0; i < class.length; i++){ \n ... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74340727",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10885761/"
] |
74,340,744 | <pre><code>lcolhead = ['ID', 'Name', 'Email']
lrow1 = [1, 'Jane Doe', 'janedoe@doemail.com']
lrow2 = [2, 'Jake Doe', 'jakedoe@doemail.com']
lrow3 = [3, 'Jane Fox', 'janefox@foxmail.com']
ltable1 = [lcolhead, lrow1, lrow2, lrow3]
for row in ltable1:
for item in row:
print(item, end=' | ')
</code></pre>
<p... | [
{
"answer_id": 74340959,
"author": "user3435121",
"author_id": 3435121,
"author_profile": "https://Stackoverflow.com/users/3435121",
"pm_score": -1,
"selected": false,
"text": "for row in ltable1:\n print( \" | \".join( row) + \" | \")\n"
},
{
"answer_id": 74340982,
"auth... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74340744",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20435686/"
] |
74,340,759 | <p>I have a number of instance running under my app service in Azure. I need to get back all the id's of these instances.</p>
<p>I am currently using</p>
<pre><code>Get-AzureRmResource -ResourceGroupName $ResourceGroupName -ResourceType
Microsoft.Web/sites/instances -Name $WebAppName -ApiVersion 2016-03-01
</code></pr... | [
{
"answer_id": 74340959,
"author": "user3435121",
"author_id": 3435121,
"author_profile": "https://Stackoverflow.com/users/3435121",
"pm_score": -1,
"selected": false,
"text": "for row in ltable1:\n print( \" | \".join( row) + \" | \")\n"
},
{
"answer_id": 74340982,
"auth... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74340759",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19592688/"
] |
74,340,763 | <p>I am currently developing a Discord bot for replit, and I am able to get it to post and even get it to send an intro message when joining a server, however whenever I try to get it to respond to a command I type it won't respond. The message for the first one client.on guild create works. However the client.on for a... | [
{
"answer_id": 74342059,
"author": "Thunder",
"author_id": 16499723,
"author_profile": "https://Stackoverflow.com/users/16499723",
"pm_score": 0,
"selected": false,
"text": "const { Client } = require('discord.js');\nconst client = new Client({ intents: 131071 });\n\n//const Discord = re... | 2022/11/07 | [
"https://Stackoverflow.com/questions/74340763",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20434076/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.