qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
74,479,001
<p>Writing an admin action so an administrator can select a template they can use to send a message to subscribers by inputting only the subject and text message. Using a filtered list from the admin panel an action called <code>broadcast</code> is triggered on this queryset (the default filter list). The admin action ...
[ { "answer_id": 74535017, "author": "Maxim Danilov", "author_id": 18728010, "author_profile": "https://Stackoverflow.com/users/18728010", "pm_score": 3, "selected": true, "text": "POST POST list_view send_email.html {% load l10n %}\n{# any your staff here #}\n\n{% block content %}\n<form ...
2022/11/17
[ "https://Stackoverflow.com/questions/74479001", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15146780/" ]
74,479,025
<p>I have no basic clue about html and and right now am kinda stuck, I need two images side by side around the bottom half part of a email template, thing is no matter what I do I can't get the image to be side by side. there is already a hero image on the email template I am not sure if that's what causing the error. ...
[ { "answer_id": 74535017, "author": "Maxim Danilov", "author_id": 18728010, "author_profile": "https://Stackoverflow.com/users/18728010", "pm_score": 3, "selected": true, "text": "POST POST list_view send_email.html {% load l10n %}\n{# any your staff here #}\n\n{% block content %}\n<form ...
2022/11/17
[ "https://Stackoverflow.com/questions/74479025", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20532020/" ]
74,479,043
<p>This is an example of the dataset</p> <pre><code>n | rbc ------- 1 | 2500 2 | 2.7 3 | 4500 </code></pre> <p>I want to find rows that has decimal points and then multiply them by 1000</p>
[ { "answer_id": 74535017, "author": "Maxim Danilov", "author_id": 18728010, "author_profile": "https://Stackoverflow.com/users/18728010", "pm_score": 3, "selected": true, "text": "POST POST list_view send_email.html {% load l10n %}\n{# any your staff here #}\n\n{% block content %}\n<form ...
2022/11/17
[ "https://Stackoverflow.com/questions/74479043", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20532118/" ]
74,479,054
<p>I have a tableView with cells that contain UiCollectionView. My didSelect tableView's delegate isn't called when I touch the cell on the collectionView. I think it's my collectionView that get the touch instead. Do you have any elegant solution to keep the scroll enabled on my collectionView but disable the selectio...
[ { "answer_id": 74481687, "author": "Ankur Lahiry", "author_id": 8475638, "author_profile": "https://Stackoverflow.com/users/8475638", "pm_score": 1, "selected": false, "text": "didSelectItem UICollectionViewClass DidSelectItem cellForRowAtIndexPath super.didSelect.." }, { "answer...
2022/11/17
[ "https://Stackoverflow.com/questions/74479054", "https://Stackoverflow.com", "https://Stackoverflow.com/users/631927/" ]
74,479,060
<p>I have the json file, which is define the fields for form in react, so in this file I defined soome properties regarding this field, so I have for example this json object:</p> <pre class="lang-json prettyprint-override"><code> &quot;type&quot;: &quot;input&quot;, &quot;config&quot;: { ...
[ { "answer_id": 74481687, "author": "Ankur Lahiry", "author_id": 8475638, "author_profile": "https://Stackoverflow.com/users/8475638", "pm_score": 1, "selected": false, "text": "didSelectItem UICollectionViewClass DidSelectItem cellForRowAtIndexPath super.didSelect.." }, { "answer...
2022/11/17
[ "https://Stackoverflow.com/questions/74479060", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15790479/" ]
74,479,074
<p>I have app that work with decks (decks of one trading card game).</p> <p>My security config:</p> <pre class="lang-java prettyprint-override"><code> @Bean //httpSecurity прототип public SecurityFilterChain filterChain(HttpSecurity httpSecurity) throws Exception { httpSecurity .authorizeReq...
[ { "answer_id": 74480244, "author": "Артём Власов", "author_id": 13411640, "author_profile": "https://Stackoverflow.com/users/13411640", "pm_score": 0, "selected": false, "text": "/decks/{\\\\d+} permiteAll" }, { "answer_id": 74482277, "author": "jzheaux", "author_id": 224...
2022/11/17
[ "https://Stackoverflow.com/questions/74479074", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13411640/" ]
74,479,083
<p>In the Next.js application, I am getting the error</p> <pre><code>TestingLibraryElementError: Unable to find an accessible element with the role &quot;link&quot; </code></pre> <p>while performing below assertion -</p> <pre><code>expect(screen.getAllByRole(&quot;link&quot;).length).toEqual(1); </code></pre> <p>for t...
[ { "answer_id": 74480244, "author": "Артём Власов", "author_id": 13411640, "author_profile": "https://Stackoverflow.com/users/13411640", "pm_score": 0, "selected": false, "text": "/decks/{\\\\d+} permiteAll" }, { "answer_id": 74482277, "author": "jzheaux", "author_id": 224...
2022/11/17
[ "https://Stackoverflow.com/questions/74479083", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1506462/" ]
74,479,087
<p>I'm working on an angular project, where I want to convert a list to a specific data structure, to be able to use it with the TreeSelect component of primeng.</p> <p>from:</p> <pre><code> initialDataStructure = [ { &quot;country&quot;: &quot;GERMANY&quot;, &quot;productType&quot;: &quot;BASE&quot;, &quot;delive...
[ { "answer_id": 74479326, "author": "Dreamy Player", "author_id": 15319747, "author_profile": "https://Stackoverflow.com/users/15319747", "pm_score": -1, "selected": false, "text": "const initialDs = [\n { country: 'GERMANY', productType: 'BASE', deliveryPeriod: 'MONTH' },\n { country: ...
2022/11/17
[ "https://Stackoverflow.com/questions/74479087", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10203015/" ]
74,479,105
<p>I need to write a <code>golang</code> application with the help of <a href="https://github.com/kubernetes/client-go" rel="nofollow noreferrer">client-go</a> which will listen/watch a particular namespace for any of these events:</p> <ul> <li>A new pod has been created</li> <li>A pod has been deleted</li> <li>A new c...
[ { "answer_id": 74501528, "author": "Raihan Khan", "author_id": 7360615, "author_profile": "https://Stackoverflow.com/users/7360615", "pm_score": 2, "selected": false, "text": "OnUpdate package main\n\nimport (\n \"flag\"\n \"fmt\"\n corev1 \"k8s.io/api/core/v1\"\n \"k8s.io/ap...
2022/11/17
[ "https://Stackoverflow.com/questions/74479105", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7084115/" ]
74,479,111
<p>Let's say I have a list <code>[1,2,3,4,5,6]</code>, and I want to iterate over all the subgroups of len 2 <code>[1,2] [3,4] [5,6]</code>.</p> <p>The naive way of doing it</p> <pre><code> L = [1,2,3,4,5,6] N = len(L)//2 for k in range(N): slice = L[k*2:(k+1)*2] for val in slice: ...
[ { "answer_id": 74479409, "author": "Woodford", "author_id": 8451814, "author_profile": "https://Stackoverflow.com/users/8451814", "pm_score": 3, "selected": true, "text": "grouper itertools import itertools\n\ndef grouper(iterable, n, fillvalue=None):\n \"Collect data into fixed-lengt...
2022/11/17
[ "https://Stackoverflow.com/questions/74479111", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4952549/" ]
74,479,115
<p>I am trying to extract date from a DF column containing strings and store in another column.</p> <pre><code>from dateutil.parser import parse extract = parse(&quot;January 24, 1976&quot;, fuzzy_with_tokens=True) print(str(extract[0])) </code></pre> <p>The above code extracts: 1976-01-24 00:00:00</p> <p>I would lik...
[ { "answer_id": 74479125, "author": "Ian Thompson", "author_id": 6509519, "author_profile": "https://Stackoverflow.com/users/6509519", "pm_score": 1, "selected": false, "text": "pd.to_datetime df[\"Dates\"] = pd.to_datetime(df[\"Dates\"])\n errors=\"coerce\" df[\"Dates\"] = pd.to_datetime...
2022/11/17
[ "https://Stackoverflow.com/questions/74479115", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15130945/" ]
74,479,143
<p>I am just starting to play with Excel macros and am already stuck.</p> <p>I have a main sheet where data is structured like this:</p> <pre><code>France 10 Germany 14 US 20 </code></pre> <p>and then I have three other sheets called: France, Germany, US.</p> <p>My goal is to copy the number into each corre...
[ { "answer_id": 74479125, "author": "Ian Thompson", "author_id": 6509519, "author_profile": "https://Stackoverflow.com/users/6509519", "pm_score": 1, "selected": false, "text": "pd.to_datetime df[\"Dates\"] = pd.to_datetime(df[\"Dates\"])\n errors=\"coerce\" df[\"Dates\"] = pd.to_datetime...
2022/11/17
[ "https://Stackoverflow.com/questions/74479143", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20531763/" ]
74,479,164
<p>I thought my goal was simple enough. I have a client that makes calls to a Web API (registered in an Azure B2C tenant) to receive an access token. So far so good. When I use this access token to call a Web API method that is secured with the [Authorize] tag, I only get back an 401 Unauthorized error.</p> <p>I'm usin...
[ { "answer_id": 74479125, "author": "Ian Thompson", "author_id": 6509519, "author_profile": "https://Stackoverflow.com/users/6509519", "pm_score": 1, "selected": false, "text": "pd.to_datetime df[\"Dates\"] = pd.to_datetime(df[\"Dates\"])\n errors=\"coerce\" df[\"Dates\"] = pd.to_datetime...
2022/11/17
[ "https://Stackoverflow.com/questions/74479164", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20439892/" ]
74,479,177
<p>Im a complete noob to computer vision.</p> <p>I have went through the Roboflow tutorial how to train YOLOv7 with my custom dataset using colab, Tutorial: <a href="https://www.youtube.com/watch?v=5nsmXLyDaU4" rel="nofollow noreferrer">https://www.youtube.com/watch?v=5nsmXLyDaU4</a> colab notebook: <a href="https://co...
[ { "answer_id": 74479125, "author": "Ian Thompson", "author_id": 6509519, "author_profile": "https://Stackoverflow.com/users/6509519", "pm_score": 1, "selected": false, "text": "pd.to_datetime df[\"Dates\"] = pd.to_datetime(df[\"Dates\"])\n errors=\"coerce\" df[\"Dates\"] = pd.to_datetime...
2022/11/17
[ "https://Stackoverflow.com/questions/74479177", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11019692/" ]
74,479,183
<pre><code>enter code here i = 0 sums = [] while i &lt;= 1000: if i%3==0 or i%5==0: sums.append(i) i=i+1 for i in sums: total = sums[i] + sums[i+1] print(total) </code></pre> <p>The problem was: If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum o...
[ { "answer_id": 74479125, "author": "Ian Thompson", "author_id": 6509519, "author_profile": "https://Stackoverflow.com/users/6509519", "pm_score": 1, "selected": false, "text": "pd.to_datetime df[\"Dates\"] = pd.to_datetime(df[\"Dates\"])\n errors=\"coerce\" df[\"Dates\"] = pd.to_datetime...
2022/11/17
[ "https://Stackoverflow.com/questions/74479183", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17957425/" ]
74,479,192
<p>I have a pandas dataframe:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>Reference</th> <th>timestamp</th> <th>sub_reference</th> <th>datatype_indicator</th> <th>figure</th> </tr> </thead> <tbody> <tr> <td>REF1</td> <td>2022-09-01</td> <td>10</td> <td>A</td> <td>23.6</td> </tr> <tr> <t...
[ { "answer_id": 74479347, "author": "Naveed", "author_id": 3494754, "author_profile": "https://Stackoverflow.com/users/3494754", "pm_score": 0, "selected": false, "text": "# create a year-month from teh date\n# groupby and sum figure\ndf['month'] = pd.to_datetime(df['timestamp']).dt.strft...
2022/11/17
[ "https://Stackoverflow.com/questions/74479192", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20410122/" ]
74,479,220
<p>Wondering if there would be a neat way to use <code>List Comprehension</code> to accomplish removing an element from a list based on a bool.</p> <h1>example</h1> <pre><code>test_list = [ &quot;apple&quot;, &quot;orange&quot;, &quot;grape&quot;, &quot;lemon&quot; ] apple = True if apple: ...
[ { "answer_id": 74479279, "author": "9769953", "author_id": 9769953, "author_profile": "https://Stackoverflow.com/users/9769953", "pm_score": 2, "selected": true, "text": "test_list = [x for x in test_list if not (apple and x == \"apple\")]\n >>> apple = True\n>>> [x for x in test_list if...
2022/11/17
[ "https://Stackoverflow.com/questions/74479220", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15126763/" ]
74,479,233
<p>Parse int is messing up my file scanning I'm basically trying to read the first number in this txt document and use that as the number to implement within a for loop. My code runs well without including it but I want to use this to continue with this small project.</p> <pre><code> { int i=0; while(in...
[ { "answer_id": 74479279, "author": "9769953", "author_id": 9769953, "author_profile": "https://Stackoverflow.com/users/9769953", "pm_score": 2, "selected": true, "text": "test_list = [x for x in test_list if not (apple and x == \"apple\")]\n >>> apple = True\n>>> [x for x in test_list if...
2022/11/17
[ "https://Stackoverflow.com/questions/74479233", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18336823/" ]
74,479,254
<p>I have a .txt file with lines such as &quot;G1 X174.774 Y46.362 E1.48236&quot;, &quot;M73 Q1 S245&quot;, all with one letter then a number and then a space. I'm trying to create a dataframe such that each row is a line from my file and each column is a letter. If my file were just the two lines above, my resulting d...
[ { "answer_id": 74479423, "author": "juanpa.arrivillaga", "author_id": 5014455, "author_profile": "https://Stackoverflow.com/users/5014455", "pm_score": 2, "selected": true, "text": "df.loc[j] = pd.Series(line_dict)\n data = []\nfor line in tqdm(range(lines)):\n points = line.split()\n...
2022/11/17
[ "https://Stackoverflow.com/questions/74479254", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17135502/" ]
74,479,263
<p>I am trying to set to &quot;Other&quot; the names which are not in the top 3 values by group (and the top 3 will be &quot;TOP&quot;). I tried this, and i really don't know why it's not working...</p> <pre><code>x &lt;- data.frame( Groupe=c(rep(&quot;a&quot;, 10), rep(&quot;b&quot;, 10)), Value=c(runif(20)*20), Name=...
[ { "answer_id": 74479540, "author": "Gregor Thomas", "author_id": 903061, "author_profile": "https://Stackoverflow.com/users/903061", "pm_score": 3, "selected": true, "text": "slice_max(., order_by=Value, n=3)$Name Names group_by rank() x %>%\n group_by(Groupe) %>% \n mutate(test = ife...
2022/11/17
[ "https://Stackoverflow.com/questions/74479263", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13433781/" ]
74,479,273
<p>I need a regex to change this:</p> <pre class="lang-css prettyprint-override"><code>.my-class { @apply .p-4 .bg-red-500; } </code></pre> <p>into this:</p> <pre class="lang-css prettyprint-override"><code>.my-class { @apply p-4 bg-red-500; } </code></pre> <p>I found this regex but it is not working:</p> <pre><cod...
[ { "answer_id": 74480286, "author": "Wiktor Stribiżew", "author_id": 3832970, "author_profile": "https://Stackoverflow.com/users/3832970", "pm_score": 2, "selected": true, "text": "regex ((?:\\G(?!^)|@apply)[^.\\r\\n]*)\\.\n $1 @apply \\r \\n \\r \\n ((?:\\G(?!^)|@apply)[^.\\r\\n]*) \\G(?...
2022/11/17
[ "https://Stackoverflow.com/questions/74479273", "https://Stackoverflow.com", "https://Stackoverflow.com/users/738345/" ]
74,479,293
<p>I want to hide a link if the records are less than 6. The code that I'm using -</p> <pre><code>var link = document.getElementById('id-name'); if (index&lt;=4){ link.style.visibility = 'hidden'; } else{ link.style.visibility = 'visible'; } </code></pre> <p>Its working fine if I have 1 record present. ...
[ { "answer_id": 74480286, "author": "Wiktor Stribiżew", "author_id": 3832970, "author_profile": "https://Stackoverflow.com/users/3832970", "pm_score": 2, "selected": true, "text": "regex ((?:\\G(?!^)|@apply)[^.\\r\\n]*)\\.\n $1 @apply \\r \\n \\r \\n ((?:\\G(?!^)|@apply)[^.\\r\\n]*) \\G(?...
2022/11/17
[ "https://Stackoverflow.com/questions/74479293", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15439038/" ]
74,479,313
<p>This is a select &amp; option in HTML. I use jquery here. I need to fetch the value of both select and pass the values to ajax.php where I need to use both values to check in my database and proceed with another dependent dropdown.</p> <pre><code>&lt;label&gt;Select Number: &lt;/label&gt; &lt;select id= &quot;number...
[ { "answer_id": 74480286, "author": "Wiktor Stribiżew", "author_id": 3832970, "author_profile": "https://Stackoverflow.com/users/3832970", "pm_score": 2, "selected": true, "text": "regex ((?:\\G(?!^)|@apply)[^.\\r\\n]*)\\.\n $1 @apply \\r \\n \\r \\n ((?:\\G(?!^)|@apply)[^.\\r\\n]*) \\G(?...
2022/11/17
[ "https://Stackoverflow.com/questions/74479313", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19869127/" ]
74,479,316
<p>I have a dictionary where the key is a list</p> <pre><code>cfn = {('A', 'B'): 1, ('A','C'): 2 , ('A', 'D'): 3} genes = ['A', 'C', 'D', 'E'] </code></pre> <p>I am trying to get a value from the dictionary if the gene pairs in the key exist in a list together. My attempt is as follows, however I get <code>TypeError: ...
[ { "answer_id": 74479344, "author": "Wolric", "author_id": 20163209, "author_profile": "https://Stackoverflow.com/users/20163209", "pm_score": 2, "selected": true, "text": "cfn tuple immutable [] () def create_networks(genes, cfn):\n network = list()\n for i in range(0, len(genes)):...
2022/11/17
[ "https://Stackoverflow.com/questions/74479316", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12369606/" ]
74,479,334
<p>I have a dataframe 'df1' with a string column 'Field_notes' of various information that looks like this:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>Alt_ID</th> <th>Field_notes</th> </tr> </thead> <tbody> <tr> <td></td> <td>JMs # 04J0342</td> </tr> <tr> <td></td> <td>JMs # 04J0343</t...
[ { "answer_id": 74479412, "author": "TarJae", "author_id": 13321647, "author_profile": "https://Stackoverflow.com/users/13321647", "pm_score": 2, "selected": false, "text": "# df %>% \n mutate(Alt_ID = ifelse(nchar(Field_notes)==13, str_extract(Field_notes, '\\\\b\\\\w+$'), \"\"), .bef...
2022/11/17
[ "https://Stackoverflow.com/questions/74479334", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7238688/" ]
74,479,339
<p>I'm looking for a solution to fix the max-height of a div related to another div in CSS, if it exceeds it should let use the scrollbar.</p> <p>I was planned to use flexbox or grid, but I do not success to the result wanted...</p> <p>The objective is to not specify any height in px but keep something flexible without...
[ { "answer_id": 74479412, "author": "TarJae", "author_id": 13321647, "author_profile": "https://Stackoverflow.com/users/13321647", "pm_score": 2, "selected": false, "text": "# df %>% \n mutate(Alt_ID = ifelse(nchar(Field_notes)==13, str_extract(Field_notes, '\\\\b\\\\w+$'), \"\"), .bef...
2022/11/17
[ "https://Stackoverflow.com/questions/74479339", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3472601/" ]
74,479,351
<p>We have an application that validate user credentials with our internal ActiveDirectory domain. To do so, it uses the PrincipalContext::ValidateCredentials method from the .NET Framework.</p> <p>While investigating another issue, we discovered that this method return true even when the password is expired. This resu...
[ { "answer_id": 74479412, "author": "TarJae", "author_id": 13321647, "author_profile": "https://Stackoverflow.com/users/13321647", "pm_score": 2, "selected": false, "text": "# df %>% \n mutate(Alt_ID = ifelse(nchar(Field_notes)==13, str_extract(Field_notes, '\\\\b\\\\w+$'), \"\"), .bef...
2022/11/17
[ "https://Stackoverflow.com/questions/74479351", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19617189/" ]
74,479,362
<p>Between the dates 11/28/2023 and 10/01/2022 I know how many days there are. DATE(2023, 11, 28) - DATE(2022, 12, 02), how can I calculate that between these two dates are the months of November 2022, December 2022 to November 2023?</p>
[ { "answer_id": 74479412, "author": "TarJae", "author_id": 13321647, "author_profile": "https://Stackoverflow.com/users/13321647", "pm_score": 2, "selected": false, "text": "# df %>% \n mutate(Alt_ID = ifelse(nchar(Field_notes)==13, str_extract(Field_notes, '\\\\b\\\\w+$'), \"\"), .bef...
2022/11/17
[ "https://Stackoverflow.com/questions/74479362", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9847636/" ]
74,479,418
<p>i have document_title variable value with lowercase letters and same value is in the dic keys with upercase letter</p> <pre><code> TITLE_MAP = { 'AUS Marketing Consent': &quot;DOCUMENT_TYPE_MARKETING_CONSENT&quot;, 'Consent &amp; History': &quot;DOCUMENT_TYPE_CONSENT&quot;, } document_title = 'aus marketing...
[ { "answer_id": 74479673, "author": "Luke B", "author_id": 8228122, "author_profile": "https://Stackoverflow.com/users/8228122", "pm_score": 1, "selected": false, "text": "casefold if document_title.casefold() in [x.casefold() for x in TITLE_MAP.keys()]:\n print(True)\n" }, { "...
2022/11/17
[ "https://Stackoverflow.com/questions/74479418", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19416392/" ]
74,479,429
<p>Ok this topic had been discussed a lot of times, but since Haskell evolves lets consider it again to see what we can do in contemporary Haskell (by contemporary I mean GHC 9.0 - 9.2).</p> <p>Fist let me state the problem by an example. Suppose we have a function which determines a number of bytes required to store a...
[ { "answer_id": 74480002, "author": "Iceland_jack", "author_id": 165806, "author_profile": "https://Stackoverflow.com/users/165806", "pm_score": 2, "selected": false, "text": "{-# OPTIONS_GHC -fplugin=IfSat.Plugin #-}\n\nimport Data.Constraint.If ( type (||) (dispatch) )\n\ninstance Fixed...
2022/11/17
[ "https://Stackoverflow.com/questions/74479429", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2236092/" ]
74,479,431
<p>I have 96 bam files, How do I output the txt file with the unique sample IDs? I am looping through the bam files, but need to assign unique output files. For example: SC845414.txt</p> <pre><code>#Typical Bam Files: SC845414-CTGATCGT-GCGCATAT_Aligned.sortedByCoord.out.bam SC845425-TGTGACTG-AGCCTATC_Aligned.sortedByCo...
[ { "answer_id": 74479545, "author": "Nick S", "author_id": 726773, "author_profile": "https://Stackoverflow.com/users/726773", "pm_score": 2, "selected": true, "text": "for d in $DIR; do\n id=$(basename \"$d\" | cut -f 1 -d -)\n python -m HTSeq.scripts.count -s yes -f bam \"$d\" /PA...
2022/11/17
[ "https://Stackoverflow.com/questions/74479431", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5640213/" ]
74,479,435
<p>I was wondering what's the &quot;best&quot; or most common way to use semantic elements in HTML. I know what they are and what they do, but should I use them like that :</p> <pre><code>&lt;section&gt; &lt;div class=&quot;info&quot;&gt; ... </code></pre> <p>or like that :</p> <pre><code>&lt;section clas...
[ { "answer_id": 74480427, "author": "Danyal Chatha", "author_id": 20401157, "author_profile": "https://Stackoverflow.com/users/20401157", "pm_score": 1, "selected": false, "text": "<section>\n <div class=\"info\">\n <h1>Information</h1>\n </div>\n</section>\n" }, { "answer_id...
2022/11/17
[ "https://Stackoverflow.com/questions/74479435", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19111213/" ]
74,479,445
<p>Say I have a dataframe 'df':</p> <p><a href="https://i.stack.imgur.com/CvQbt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CvQbt.png" alt="enter image description here" /></a></p> <p>I would like to add an additional column named 'Day No' which adds a count to each day. Desired output below:</p>...
[ { "answer_id": 74479550, "author": "Nuri Taş", "author_id": 19255749, "author_profile": "https://Stackoverflow.com/users/19255749", "pm_score": 0, "selected": false, "text": "map unique reversed_dict = dict(enumerate(df['DateTime'].unique(), 1))\n\ndf['Day No'] = df['DateTime'].map({v:k ...
2022/11/17
[ "https://Stackoverflow.com/questions/74479445", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7605946/" ]
74,479,505
<p>I am using a task template in Azure Devops which is like the snippet below</p> <pre><code> - task: sampletask@0 inputs: flag1: true flag2: true </code></pre> <p>The flag1&amp;2 are expected to be boolean values there. But instead of making it hardcoded as 'true', there is an option t...
[ { "answer_id": 74479550, "author": "Nuri Taş", "author_id": 19255749, "author_profile": "https://Stackoverflow.com/users/19255749", "pm_score": 0, "selected": false, "text": "map unique reversed_dict = dict(enumerate(df['DateTime'].unique(), 1))\n\ndf['Day No'] = df['DateTime'].map({v:k ...
2022/11/17
[ "https://Stackoverflow.com/questions/74479505", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14398751/" ]
74,479,513
<p>I have an array of objects below. This is the raw data</p> <pre><code>const data = [ {id:1, sItem:&quot;This is javascript&quot;, status:&quot;trending&quot;}, {id:2, sItem:&quot;javascript is fun&quot;, status:&quot;trending&quot;}, {id:3, sItem:&quot;learning javascript&quot;, status:&quot;trending&quot;}, ...
[ { "answer_id": 74479697, "author": "Kinglish", "author_id": 1772933, "author_profile": "https://Stackoverflow.com/users/1772933", "pm_score": 1, "selected": false, "text": "[...data.reduce((b,a) => {\nif (a.sItem.split(\" \")[0].toLowerCase() == \"javascript\") b[0].push(a);\nelse b[1].p...
2022/11/17
[ "https://Stackoverflow.com/questions/74479513", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16479883/" ]
74,479,514
<p>I was able to align the numbers by decimal points but I don't know how to add the comma. I know how to add commas using the format() but don't know how to align and add commas together. I need to align by the decimal points and have commas also.</p> <pre><code>print(f&quot;{i + 1}\t\t\t{salary :11.2f}&quot;) </code>...
[ { "answer_id": 74479697, "author": "Kinglish", "author_id": 1772933, "author_profile": "https://Stackoverflow.com/users/1772933", "pm_score": 1, "selected": false, "text": "[...data.reduce((b,a) => {\nif (a.sItem.split(\" \")[0].toLowerCase() == \"javascript\") b[0].push(a);\nelse b[1].p...
2022/11/17
[ "https://Stackoverflow.com/questions/74479514", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14749171/" ]
74,479,628
<p>I have a perfect code that compares the data from one table with another (see below) which works totally fine and runs fine as well in BigQuery:</p> <pre><code>with source1 as ( select b.id, b.qty, a.price from &lt;table&gt; as a ,unnest &lt;details&gt; as b where b.status != 'canceled' ), source2 as ( select ...
[ { "answer_id": 74479697, "author": "Kinglish", "author_id": 1772933, "author_profile": "https://Stackoverflow.com/users/1772933", "pm_score": 1, "selected": false, "text": "[...data.reduce((b,a) => {\nif (a.sItem.split(\" \")[0].toLowerCase() == \"javascript\") b[0].push(a);\nelse b[1].p...
2022/11/17
[ "https://Stackoverflow.com/questions/74479628", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12513693/" ]
74,479,635
<p>How to show only HTML elements that match the element selected by the drop-down list ?</p> <p>I want to show in my page only the element that matchup with the value that I choose in drop-down list</p> <p>When I changed the value of select element to 3 i get the text Nodelist in the body of html</p> <p><div class="sn...
[ { "answer_id": 74479697, "author": "Kinglish", "author_id": 1772933, "author_profile": "https://Stackoverflow.com/users/1772933", "pm_score": 1, "selected": false, "text": "[...data.reduce((b,a) => {\nif (a.sItem.split(\" \")[0].toLowerCase() == \"javascript\") b[0].push(a);\nelse b[1].p...
2022/11/17
[ "https://Stackoverflow.com/questions/74479635", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15789479/" ]
74,479,651
<p>I have a list object like the following:</p> <p><code>list_data &lt;- list(&quot;Red&quot;, &quot;Green&quot;, c(&quot;Purple&quot;, &quot;Yellow&quot;), &quot;Orange&quot;, c(&quot;Black&quot;,&quot;White&quot;)) </code></p> <p>I would like to drop the second observations in every character vector to get an output ...
[ { "answer_id": 74479697, "author": "Kinglish", "author_id": 1772933, "author_profile": "https://Stackoverflow.com/users/1772933", "pm_score": 1, "selected": false, "text": "[...data.reduce((b,a) => {\nif (a.sItem.split(\" \")[0].toLowerCase() == \"javascript\") b[0].push(a);\nelse b[1].p...
2022/11/17
[ "https://Stackoverflow.com/questions/74479651", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19473322/" ]
74,479,654
<p><strong>my Code doesent understand letters in the list i would like somone to help me fix this</strong></p> <pre><code>usernames = (BTP, btp, Btp, BTp) def username(usernames2): if usernames == input('whats your username? : ') </code></pre> <p>Its a simple username system, i plan to use for a interface im making...
[ { "answer_id": 74479723, "author": "Random Davis", "author_id": 6273251, "author_profile": "https://Stackoverflow.com/users/6273251", "pm_score": 1, "selected": false, "text": "usernames BTP btp Btp BTp \"btp\" usename = \"btp\"\ndef username(usernames2):\n if input('whats your userna...
2022/11/17
[ "https://Stackoverflow.com/questions/74479654", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20427591/" ]
74,479,658
<p>Below is a small QML application. What I intended was for the application to start full screen, and on the Escape key, change it to maximized:</p> <pre class="lang-js prettyprint-override"><code>import QtQuick 2.15 import QtQuick.Window 2.15 Window { id: topLevelWindow width: 640 height: 480 visibl...
[ { "answer_id": 74479723, "author": "Random Davis", "author_id": 6273251, "author_profile": "https://Stackoverflow.com/users/6273251", "pm_score": 1, "selected": false, "text": "usernames BTP btp Btp BTp \"btp\" usename = \"btp\"\ndef username(usernames2):\n if input('whats your userna...
2022/11/17
[ "https://Stackoverflow.com/questions/74479658", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3684433/" ]
74,479,668
<p>Regex to validate image url which may contains extension like jpeg, jpg, gif, png</p> <p>I'm using</p> <pre><code>/\.(jpg|jpeg|png|gif|webp)(\?.*)*$/i </code></pre> <p>but it gives false for <code>https://store.storeimages.cdn-apple.com/4668/as-images.apple.com/is/macbook-air-gallery3-20201110?wid=4000&amp;hei=3072&...
[ { "answer_id": 74479723, "author": "Random Davis", "author_id": 6273251, "author_profile": "https://Stackoverflow.com/users/6273251", "pm_score": 1, "selected": false, "text": "usernames BTP btp Btp BTp \"btp\" usename = \"btp\"\ndef username(usernames2):\n if input('whats your userna...
2022/11/17
[ "https://Stackoverflow.com/questions/74479668", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19439659/" ]
74,479,688
<p>I have a script for creating accounts that outputs the following:</p> <pre><code>creating user in XYZ: username: testing firstName: Bob lastName:Test email:auto999@nowhere.com password:gWY6*Pja&amp;4 </code></pre> <p>So, I need to create a python script that will store the username and password in a csv file.</p> <p...
[ { "answer_id": 74479723, "author": "Random Davis", "author_id": 6273251, "author_profile": "https://Stackoverflow.com/users/6273251", "pm_score": 1, "selected": false, "text": "usernames BTP btp Btp BTp \"btp\" usename = \"btp\"\ndef username(usernames2):\n if input('whats your userna...
2022/11/17
[ "https://Stackoverflow.com/questions/74479688", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20532510/" ]
74,479,749
<p>First timer posting here and new to Python, so apologies in advance if I am missing any key information below.</p> <p>Essentially, I have a large CSV file that I was able to clean up a bit on scripts that contains various numerical values over ~150 miles of data with each data line being one foot. After I clean the ...
[ { "answer_id": 74480003, "author": "amirhm", "author_id": 4529589, "author_profile": "https://Stackoverflow.com/users/4529589", "pm_score": 0, "selected": false, "text": "df.groupby('ABC')['Ft'].mean()\n ABC\nA 1009.9\nB 1005.5\nC 1010.0\nName: Ft, dtype: float64\n" }, { ...
2022/11/17
[ "https://Stackoverflow.com/questions/74479749", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20531737/" ]
74,479,753
<p>This problem occurs when using the kbl() function to create tables in R if the table's caption is too long. If the caption is too long, the text begins to wrap to the next line, but then it becomes left-justified.</p> <p>Sometimes the caption is short enough can be solved by adding the landscape argument to the styl...
[ { "answer_id": 74545257, "author": "Carlos Luis Rivera", "author_id": 10215301, "author_profile": "https://Stackoverflow.com/users/10215301", "pm_score": 1, "selected": false, "text": "caption justification=centering \\usepackage[justification=centering]{caption} header-includes ---\nhea...
2022/11/17
[ "https://Stackoverflow.com/questions/74479753", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20532475/" ]
74,479,776
<p>What is the best way to find out if a address/postalcode is within 60 miles of an address in Snowflake? In Google BigQuery there is the <code>bigquery-public-data.geo_us_boundaries.zip_codes</code> that allows you to this.</p>
[ { "answer_id": 74545257, "author": "Carlos Luis Rivera", "author_id": 10215301, "author_profile": "https://Stackoverflow.com/users/10215301", "pm_score": 1, "selected": false, "text": "caption justification=centering \\usepackage[justification=centering]{caption} header-includes ---\nhea...
2022/11/17
[ "https://Stackoverflow.com/questions/74479776", "https://Stackoverflow.com", "https://Stackoverflow.com/users/420558/" ]
74,479,814
<p>I know there are similar questions asked but I have read them and couldn't solved my problem I'm trying to <code>import pyrebase</code>; however it gives me these error messages:</p> <pre><code>Traceback (most recent call last): File &quot;c:\Users\yaman\OneDrive\Masaüstü\BİYOLOJİK ŞİFRELEME\JustSth.py&quot;, line...
[ { "answer_id": 74545257, "author": "Carlos Luis Rivera", "author_id": 10215301, "author_profile": "https://Stackoverflow.com/users/10215301", "pm_score": 1, "selected": false, "text": "caption justification=centering \\usepackage[justification=centering]{caption} header-includes ---\nhea...
2022/11/17
[ "https://Stackoverflow.com/questions/74479814", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16723643/" ]
74,479,848
<p>I've multiple users which I want to configure into spring-boot's <code>UserDetailsService</code> for basic authentication.</p> <p><code>User</code> has a additional field <code>id</code> tagged with it.</p> <pre><code>import org.springframework.security.core.userdetails.UserDetails; public class User implements Use...
[ { "answer_id": 74504414, "author": "jccampanero", "author_id": 13942448, "author_profile": "https://Stackoverflow.com/users/13942448", "pm_score": 2, "selected": false, "text": "basic-auth:\n users:\n oliver:\n password: twist\n id: 1\n ruskin:\n ...
2022/11/17
[ "https://Stackoverflow.com/questions/74479848", "https://Stackoverflow.com", "https://Stackoverflow.com/users/926572/" ]
74,479,854
<p>I have a 10-input form. I added button cancel which is activating =&gt; confirmation modal which pop up when all input are filled. But I must do this is such way that modal will pop-up from 2 inputs are filled up ? Any suggestion? help articles? Angular</p> <pre><code> &lt;app-task-form #form [draftInput]=&quot;data...
[ { "answer_id": 74504414, "author": "jccampanero", "author_id": 13942448, "author_profile": "https://Stackoverflow.com/users/13942448", "pm_score": 2, "selected": false, "text": "basic-auth:\n users:\n oliver:\n password: twist\n id: 1\n ruskin:\n ...
2022/11/17
[ "https://Stackoverflow.com/questions/74479854", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15515293/" ]
74,479,863
<p>I'm trying to get a list of my top-level dirs in a subdir, so I can post process them, e.g., delete certain ones. I have</p> <pre class="lang-bash prettyprint-override"><code># List the top-level dirs and create an array with the resul DIRS=`ls -1` IFS=$'\n' read -ra TOP_DIRS &lt;&lt;&lt; &quot;$DIRS&quot; # Iterat...
[ { "answer_id": 74479914, "author": "Barmar", "author_id": 1491895, "author_profile": "https://Stackoverflow.com/users/1491895", "pm_score": 3, "selected": true, "text": "ls top_dirs=(*)\n" }, { "answer_id": 74480035, "author": "markp-fuso", "author_id": 7366100, "auth...
2022/11/17
[ "https://Stackoverflow.com/questions/74479863", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1401560/" ]
74,479,880
<p>I am trying to aggregate strings that belong to the same product code in one row. Which Qlik sense aggregation function should I use?</p> <p><a href="https://i.stack.imgur.com/i1rmy.png" rel="nofollow noreferrer">image</a></p> <p>I am able to aggregate integers in such example, but failed for string aggregation.</p>...
[ { "answer_id": 74522780, "author": "SmoothBrane", "author_id": 11486874, "author_profile": "https://Stackoverflow.com/users/11486874", "pm_score": 0, "selected": false, "text": "MaxString() Only() Concat() Join Concatenate Join" } ]
2022/11/17
[ "https://Stackoverflow.com/questions/74479880", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20532584/" ]
74,479,890
<p>I have an issue where I need to track the progression of patients insurance claim statuses based on the dates of those statuses. I also need to create a count of status based on certain conditions.</p> <p>DF:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>ClaimID</th> <th>New</th> <th>A...
[ { "answer_id": 74527080, "author": "wrbp", "author_id": 16662333, "author_profile": "https://Stackoverflow.com/users/16662333", "pm_score": 1, "selected": false, "text": "import pandas as pd\nimport numpy as np\nfrom datetime import timedelta\nfrom datetime import date\n\ndef dateRange(d...
2022/11/17
[ "https://Stackoverflow.com/questions/74479890", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19852587/" ]
74,479,898
<p>Let me explain the structure of the problem that I'm trying to solve. Let's suppose that we have two dataframes</p> <p>DF1:</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>ID</th> <th>Value</th> </tr> </thead> <tbody> <tr> <td>AA</td> <td>2</td> </tr> <tr> <td>AB</td> <td>1</td> </tr> <t...
[ { "answer_id": 74527080, "author": "wrbp", "author_id": 16662333, "author_profile": "https://Stackoverflow.com/users/16662333", "pm_score": 1, "selected": false, "text": "import pandas as pd\nimport numpy as np\nfrom datetime import timedelta\nfrom datetime import date\n\ndef dateRange(d...
2022/11/17
[ "https://Stackoverflow.com/questions/74479898", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12252396/" ]
74,479,899
<p>I am very badly stuck on this error for days, and I am unable to understand what it is trying to tell me as it is only 2 words.</p> <p>The error is coming when I am trying to insert data into the DB table using python manage.py shell</p> <pre><code>&gt; from app_name.models import Usermanagement &gt; from app_name.m...
[ { "answer_id": 74527080, "author": "wrbp", "author_id": 16662333, "author_profile": "https://Stackoverflow.com/users/16662333", "pm_score": 1, "selected": false, "text": "import pandas as pd\nimport numpy as np\nfrom datetime import timedelta\nfrom datetime import date\n\ndef dateRange(d...
2022/11/17
[ "https://Stackoverflow.com/questions/74479899", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19818111/" ]
74,479,931
<p>I'm using Github pages to host my website currently and my function works perfectly fine on desktop but not on my phone(Ios) and other peoples phone(also Ios).</p> <p>My function is supposed to calculate how many calories and grams of protein someone needs to maintain/gain/lose weight.</p> <p>my code</p> <pre><code>...
[ { "answer_id": 74480456, "author": "Ali Iqbal", "author_id": 20321054, "author_profile": "https://Stackoverflow.com/users/20321054", "pm_score": 1, "selected": false, "text": "submit() let info = lbsToProtein(parseFloat(lbs), parseInt(weightGoal), ftTocm(height.toString()), parseInt(age)...
2022/11/17
[ "https://Stackoverflow.com/questions/74479931", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11499016/" ]
74,479,939
<p>I want to sort a list with an <em>arbitrary</em> number of lists inside to sort by <em>each</em> of said lists. Furthermore I do <em>not</em> want to use any libraries (neither python-native nor 3rd party).</p> <pre class="lang-py prettyprint-override"><code>data = [['a', 'b', 'a', 'b', 'a'], [9, 8, 7, 6, 5]] </code...
[ { "answer_id": 74480120, "author": "Temba", "author_id": 3593621, "author_profile": "https://Stackoverflow.com/users/3593621", "pm_score": 1, "selected": false, "text": "data = [[\"a\", \"b\", \"a\", \"b\", \"a\"], [9, 8, 7, 6, 5]]\n\n\ndef sortList(inputList):\n masterList = [[value,...
2022/11/17
[ "https://Stackoverflow.com/questions/74479939", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8537572/" ]
74,479,970
<p>Filter seems slower than the vectorised version in the following example:</p> <pre class="lang-r prettyprint-override"><code>u = rnorm(1000000) system.time(u[u &gt; 0]) # utilisateur système écoulé # 0.02 0.00 0.01 system.time(Filter(\(x) x &gt; 0, u)) # utilisateur système ...
[ { "answer_id": 74480183, "author": "akrun", "author_id": 3732271, "author_profile": "https://Stackoverflow.com/users/3732271", "pm_score": 2, "selected": false, "text": "subset Filter > system.time(subset(u, u > 0))\n user system elapsed \n 0.022 0.005 0.027\n> system.time(Filter...
2022/11/17
[ "https://Stackoverflow.com/questions/74479970", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8806649/" ]
74,479,971
<p>I have a scenario where I have different events like the following:</p> <pre><code>type EventType = 'foo' | 'bar' type Event = { type: 'foo', timestamp: number, payload: { a: number } } | { type: 'bar', timestamp: number, payload: { b: string } } </code></pre> <p>Then I have a listener like this:</p> <p...
[ { "answer_id": 74480015, "author": "Dimava", "author_id": 5734961, "author_profile": "https://Stackoverflow.com/users/5734961", "pm_score": -1, "selected": false, "text": "if (event.type == 'foo') {\n // event is Extract<event, {type: 'foo'}>\n event.payload.a\n} else {\n // event ...
2022/11/17
[ "https://Stackoverflow.com/questions/74479971", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5452969/" ]
74,480,005
<p>I have a data.table made of data.tables as per the dput at the end of this question. I manipulate this data.table of data.tables using the following nested for-loops:</p> <pre><code>test_E2 &lt;- list() for (i in unique(lst_512_32_E2$ID)){ test_E2[[i]] &lt;- list() for (j in 1:length(lst_512_32_E2$V1[[i]])...
[ { "answer_id": 74480015, "author": "Dimava", "author_id": 5734961, "author_profile": "https://Stackoverflow.com/users/5734961", "pm_score": -1, "selected": false, "text": "if (event.type == 'foo') {\n // event is Extract<event, {type: 'foo'}>\n event.payload.a\n} else {\n // event ...
2022/11/17
[ "https://Stackoverflow.com/questions/74480005", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7221040/" ]
74,480,056
<p>I have user-defined type:</p> <pre><code>class String::CharProxy { public: const char* operator&amp;() const; char* operator&amp;(); operator char() const; operator char&amp;(); }; </code></pre> <p>The problem is when I'm trying to perform some explicit casts, the wrong operator is called:</p> <pre><...
[ { "answer_id": 74480237, "author": "Nicol Bolas", "author_id": 734069, "author_profile": "https://Stackoverflow.com/users/734069", "pm_score": 2, "selected": false, "text": "char& char p CharProxy& CharProxy const& char" }, { "answer_id": 74480302, "author": "Wintermute", ...
2022/11/17
[ "https://Stackoverflow.com/questions/74480056", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20492391/" ]
74,480,093
<p>I'm currently porting a C library to python using pybind11, and it has lots of <em>C-style function pointers</em> (i.e. <em>not</em> std::function, as described in <a href="https://pybind11.readthedocs.io/en/stable/advanced/cast/functional.html" rel="nofollow noreferrer">https://pybind11.readthedocs.io/en/stable/adv...
[ { "answer_id": 74480877, "author": "ecatmur", "author_id": 567292, "author_profile": "https://Stackoverflow.com/users/567292", "pm_score": 3, "selected": true, "text": "static m.def(\"glfwSetMonitorCallback\", [](std::function<std::remove_pointer_t<GLFWmonitorfun>> f) {\n static std::...
2022/11/17
[ "https://Stackoverflow.com/questions/74480093", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19816/" ]
74,480,148
<p>I created a class method that is called when a new object is created and copied from an old existing object. However, I only want to copy <strong>some</strong> of the values. Is there some sort of Ruby shorthand I can use to clean this up? It's not entirely necessary, just curious to know if something like this exis...
[ { "answer_id": 74480609, "author": "AbM", "author_id": 2697183, "author_profile": "https://Stackoverflow.com/users/2697183", "pm_score": 3, "selected": true, "text": "def set_message_settings_from_existing(existing)\n [:can_message, :current_format, :send_initial_message, :send_alert, :...
2022/11/17
[ "https://Stackoverflow.com/questions/74480148", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15587214/" ]
74,480,186
<p>I would like to filter my query with only closed months, so today (17/11/2022) would return only 31/10/2022 and before. I have tried the following:</p> <pre><code>WHERE EXTRACT(MONTH FROM dc.data) &lt;= (EXTRACT(MONTH FROM CURDATE()) - 1) </code></pre> <p>So I get the current date, extract the month and subtract 1,...
[ { "answer_id": 74480609, "author": "AbM", "author_id": 2697183, "author_profile": "https://Stackoverflow.com/users/2697183", "pm_score": 3, "selected": true, "text": "def set_message_settings_from_existing(existing)\n [:can_message, :current_format, :send_initial_message, :send_alert, :...
2022/11/17
[ "https://Stackoverflow.com/questions/74480186", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17604480/" ]
74,480,192
<p>I follow this installation guide : <a href="https://docs.janusgraph.org/getting-started/installation/" rel="nofollow noreferrer">https://docs.janusgraph.org/getting-started/installation/</a></p> <p>I run :</p> <pre><code>docker run -it -p 8182:8182 janusgraph/janusgraph </code></pre> <p>but when i try to connect wit...
[ { "answer_id": 74480609, "author": "AbM", "author_id": 2697183, "author_profile": "https://Stackoverflow.com/users/2697183", "pm_score": 3, "selected": true, "text": "def set_message_settings_from_existing(existing)\n [:can_message, :current_format, :send_initial_message, :send_alert, :...
2022/11/17
[ "https://Stackoverflow.com/questions/74480192", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13870287/" ]
74,480,232
<p><a href="https://stackoverflow.com/questions/15389091/how-to-exclude-records-with-certain-values-in-sql-select">How to exclude records with certain values in sql select</a></p> <p>I need to exclude the entire month where Video or Face-to-Face exist but keep the months where either one of those options is not found. ...
[ { "answer_id": 74480359, "author": "Abe", "author_id": 18092664, "author_profile": "https://Stackoverflow.com/users/18092664", "pm_score": -1, "selected": false, "text": "select main.* \nfrom a1 main\nwhere extract(month from main.c2) not in(\n select extract(month from sub.c2)\n f...
2022/11/17
[ "https://Stackoverflow.com/questions/74480232", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20505025/" ]
74,480,257
<p>I need to select the count of unique value combinations of column B in an XRef table which is grouped by column A.</p> <p>Consider the following schema and data, which represents a simple family structure. Each child has a father and mother:</p> <p><strong>TABLE Father</strong></p> <div class="s-table-container"> <...
[ { "answer_id": 74482243, "author": "Tim Jarosz", "author_id": 2452207, "author_profile": "https://Stackoverflow.com/users/2452207", "pm_score": 1, "selected": false, "text": "CREATE DROP FOR XML PATH WITH distinctCombos AS (\n SELECT DISTINCT\n c.FatherID, c.MotherID\n FROM ...
2022/11/17
[ "https://Stackoverflow.com/questions/74480257", "https://Stackoverflow.com", "https://Stackoverflow.com/users/406732/" ]
74,480,291
<p>I have a data frame that looks like:</p> <pre><code>Amount person1 person2 person3 pocketmoney 0.5 1.3 1.7 chores 3 5 2 </code></pre> <p>How do I turn it into something like this:</p> <pre><code> Person Pocketmoney chores person1 0.5 3 pe...
[ { "answer_id": 74482243, "author": "Tim Jarosz", "author_id": 2452207, "author_profile": "https://Stackoverflow.com/users/2452207", "pm_score": 1, "selected": false, "text": "CREATE DROP FOR XML PATH WITH distinctCombos AS (\n SELECT DISTINCT\n c.FatherID, c.MotherID\n FROM ...
2022/11/17
[ "https://Stackoverflow.com/questions/74480291", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20322342/" ]
74,480,336
<p>As stated, I would like to use a Mock where all of the void methods are inhibited.</p> <p>I am mocking a CLASS and not an interface. The default behaviour is to run the class methods.</p> <pre><code>MyClass = new Mock&lt;MyClass&gt;().Object; </code></pre> <p>Obviously, I can setup all of the methods to do nothing:<...
[ { "answer_id": 74482243, "author": "Tim Jarosz", "author_id": 2452207, "author_profile": "https://Stackoverflow.com/users/2452207", "pm_score": 1, "selected": false, "text": "CREATE DROP FOR XML PATH WITH distinctCombos AS (\n SELECT DISTINCT\n c.FatherID, c.MotherID\n FROM ...
2022/11/17
[ "https://Stackoverflow.com/questions/74480336", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5317085/" ]
74,480,365
<p>I have below drawing image which is an arc of a circumference and now I would like to apply rotations from 0 to 360 in a loop indefinitely to simulate a spinner animated. Something like you can see <a href="https://www.lowgif.com/dc86e54ceca03be4.html" rel="nofollow noreferrer">here</a>, an arc of circumference rota...
[ { "answer_id": 74480873, "author": "Clemens", "author_id": 1136211, "author_profile": "https://Stackoverflow.com/users/1136211", "pm_score": 2, "selected": true, "text": "Angle RotateTransform RenderTransform DoubleAnimation StoryBoard EventTrigger Loaded Path <Path Data=\"M100,10 A90,90...
2022/11/17
[ "https://Stackoverflow.com/questions/74480365", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1624552/" ]
74,480,379
<p>Im trying to add coördinates to a set of addresses that are saved in an excel file using the google geocoder API. See code below:</p> <pre><code>for i, row in df.iterrows(): #below combines the address columns together in one variable, to push to the geocoder API. apiAddress = str(df.at[i, 'adresse1']) + ',...
[ { "answer_id": 74480873, "author": "Clemens", "author_id": 1136211, "author_profile": "https://Stackoverflow.com/users/1136211", "pm_score": 2, "selected": true, "text": "Angle RotateTransform RenderTransform DoubleAnimation StoryBoard EventTrigger Loaded Path <Path Data=\"M100,10 A90,90...
2022/11/17
[ "https://Stackoverflow.com/questions/74480379", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18861667/" ]
74,480,381
<p>I have a query that return values ​​based on a boolean column: if the id_crsp includes a boolean true AND false, then it is selected. Values ​​of id_crsp that have only a true or false value are not selected.</p> <p>From this result, I would like to sort the id_crsp which have duplicates, and select only the one wit...
[ { "answer_id": 74480873, "author": "Clemens", "author_id": 1136211, "author_profile": "https://Stackoverflow.com/users/1136211", "pm_score": 2, "selected": true, "text": "Angle RotateTransform RenderTransform DoubleAnimation StoryBoard EventTrigger Loaded Path <Path Data=\"M100,10 A90,90...
2022/11/17
[ "https://Stackoverflow.com/questions/74480381", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14131200/" ]
74,480,474
<p>Given the following two tables</p> <p>users</p> <pre><code>user_id name join_date 1 Jon 2020-02-14 2 Jane 2020-02-14 3 Jill 2020-02-15 4 Josh 2020-02-15 5 Jean 2020-02-16 6 Justin 2020-02-17 7 Jeremy 2020-02-18 </code></pre> <p>events</p> <pre><code>user...
[ { "answer_id": 74481076, "author": "Diego", "author_id": 20478349, "author_profile": "https://Stackoverflow.com/users/20478349", "pm_score": 1, "selected": false, "text": "SELECT users.user_id, differ_date.user_id\nFROM users\nLEFT JOIN differ_date\nON users.user_id = differ_date.user_id...
2022/11/17
[ "https://Stackoverflow.com/questions/74480474", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17775991/" ]
74,480,475
<p>I wrote a code in C# that get the user input and saves it in a JSON file, but like I need a database, that means that I'll need write several lines, but that's the problem, the code do not put it inside the []. Here is the output:</p> <pre class="lang-json prettyprint-override"><code>[ {&quot;modelo&quot;:&quot;...
[ { "answer_id": 74480612, "author": "SNBS", "author_id": 20426120, "author_profile": "https://Stackoverflow.com/users/20426120", "pm_score": 2, "selected": false, "text": "JsonSerializer Estoque string data = File.ReadAllText(\"YourFilePath\"); // using System.IO\n\nvar array = await Json...
2022/11/17
[ "https://Stackoverflow.com/questions/74480475", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15391900/" ]
74,480,500
<p>I'm trying to check what letters repeat in a string by creating a new array of only the repeated letters using the <code>.filter()</code> method but I only want the letter to appear one time, no matter how many times it repeats.</p> <p>This is what I tried:</p> <pre><code>const fullName = &quot;Muhammad Ali&quot;; c...
[ { "answer_id": 74480553, "author": "El Mehdi", "author_id": 14529779, "author_profile": "https://Stackoverflow.com/users/14529779", "pm_score": 1, "selected": false, "text": "repeats const fullName = \"Muhammad Ali\";\nconst fullNameLowercase = fullName.toLowerCase();\nconst splitName = ...
2022/11/17
[ "https://Stackoverflow.com/questions/74480500", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17250969/" ]
74,480,543
<p>I'm new to html/css and javascript. I want Buttons to be on the same line and they can be scrolled through horizontally... The problem is two</p> <ol> <li>I can't get them all in one line rather some are going to second line..</li> <li>I can't understand how can I have them all in one so I can scroll them horizontal...
[ { "answer_id": 74482197, "author": "Giorgi Shalamberidze", "author_id": 20248276, "author_profile": "https://Stackoverflow.com/users/20248276", "pm_score": 0, "selected": false, "text": "body {\n background-size: cover;\n background-repeat: no-repeat;\n color: #585858;\n margin: 0;\n pad...
2022/11/17
[ "https://Stackoverflow.com/questions/74480543", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20520316/" ]
74,480,548
<p>I am following Microsoft documentation in obtaining credentials for Azure Graph API. <a href="https://learn.microsoft.com/en-us/graph/sdks/choose-authentication-providers?tabs=Java#authorization-code-provider" rel="nofollow noreferrer">This document</a> states that an unattended application should use <code>client ...
[ { "answer_id": 74483883, "author": "Derek Gusoff", "author_id": 1452528, "author_profile": "https://Stackoverflow.com/users/1452528", "pm_score": -1, "selected": false, "text": "/me /me" }, { "answer_id": 74495565, "author": "Roy Hinkley", "author_id": 371077, "author...
2022/11/17
[ "https://Stackoverflow.com/questions/74480548", "https://Stackoverflow.com", "https://Stackoverflow.com/users/371077/" ]
74,480,557
<p>I'm a bit confused about what to do with this problem. I have to take a Stack and flip it, once flipped the elements in the stack have to also 'flip'. for example every string that reads 'blue' must now read 'red', every string that reads 'White' should be 'black' etc.</p> <p>I've written a method to flip the stack,...
[ { "answer_id": 74483883, "author": "Derek Gusoff", "author_id": 1452528, "author_profile": "https://Stackoverflow.com/users/1452528", "pm_score": -1, "selected": false, "text": "/me /me" }, { "answer_id": 74495565, "author": "Roy Hinkley", "author_id": 371077, "author...
2022/11/17
[ "https://Stackoverflow.com/questions/74480557", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20532996/" ]
74,480,562
<p>I have a fixture that looks something like this:</p> <pre><code>{ &quot;field&quot;: [ { &quot;1&quot;: { &quot;admin&quot;: { &quot;place&quot;: &quot;For Admins&quot;, &quot;email&quot;: &quot;admin@gmail.com&quot;, &quot;password&quot;: &quot;admin123&quot; ...
[ { "answer_id": 74480605, "author": "Brandon", "author_id": 7763383, "author_profile": "https://Stackoverflow.com/users/7763383", "pm_score": 1, "selected": false, "text": "/fixture/field/1 admin.json {\n \"place\": \"For Admins\",\n \"email\": \"admin@gmail.com\",\n \"password\": \"ad...
2022/11/17
[ "https://Stackoverflow.com/questions/74480562", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4322208/" ]
74,480,581
<p>Let's assume I have the following proto definition:</p> <pre><code>message Course { int32 id = 1; string course_name = 2; } </code></pre> <p>And the following legacy Controller (Spring Boot) that needs to be backwards compatible:</p> <pre><code>@RestController public class CourseController { @Autowired Cours...
[ { "answer_id": 74480605, "author": "Brandon", "author_id": 7763383, "author_profile": "https://Stackoverflow.com/users/7763383", "pm_score": 1, "selected": false, "text": "/fixture/field/1 admin.json {\n \"place\": \"For Admins\",\n \"email\": \"admin@gmail.com\",\n \"password\": \"ad...
2022/11/17
[ "https://Stackoverflow.com/questions/74480581", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1867854/" ]
74,480,613
<p>I am trying to get the name of several webpages and this is an example of the dataset that I have:</p> <pre class="lang-r prettyprint-override"><code>c(&quot;https://arealdata-api.miljoeportal.dk/download/dai/BES_NATURTYPER_SHAPE.zip&quot;, &quot;https://download.kortforsyningen.dk/content/matrikelkortet&quot;, &q...
[ { "answer_id": 74480644, "author": "akrun", "author_id": 3732271, "author_profile": "https://Stackoverflow.com/users/3732271", "pm_score": 2, "selected": false, "text": "(...) : [^:]+ ^ : // .* \\\\1 sub(\"^([^:]+://[^/]+/).*\", \"\\\\1\", URLS)\n [1] \"https://arealdata-api.miljoeporta...
2022/11/17
[ "https://Stackoverflow.com/questions/74480613", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3808018/" ]
74,480,656
<p>We have a Spring-Boot REST application running with Infinispan 13.0.12 caches and we see periodic seemingly random cases where the application becomes un-responsive. A thread dump indicates over 200 threads in this state:</p> <pre><code>&quot;http-nio-8080-exec-379&quot; #11999 daemon prio=5 os_prio=0 tid=0x00007f28...
[ { "answer_id": 74480644, "author": "akrun", "author_id": 3732271, "author_profile": "https://Stackoverflow.com/users/3732271", "pm_score": 2, "selected": false, "text": "(...) : [^:]+ ^ : // .* \\\\1 sub(\"^([^:]+://[^/]+/).*\", \"\\\\1\", URLS)\n [1] \"https://arealdata-api.miljoeporta...
2022/11/17
[ "https://Stackoverflow.com/questions/74480656", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4541199/" ]
74,480,694
<p>I have created a sample data frame below using a relatively raw and somehow &quot;dumb&quot; way and I would like to know if there are shorter/neater ways doing so? Million thanks.</p> <pre><code>library(pedquant) PECCPC&lt;-md_stock(c(&quot;600028&quot;,&quot;601857&quot;,&quot;00386.HK&quot;,&quot;00857.HK&quot;)...
[ { "answer_id": 74480644, "author": "akrun", "author_id": 3732271, "author_profile": "https://Stackoverflow.com/users/3732271", "pm_score": 2, "selected": false, "text": "(...) : [^:]+ ^ : // .* \\\\1 sub(\"^([^:]+://[^/]+/).*\", \"\\\\1\", URLS)\n [1] \"https://arealdata-api.miljoeporta...
2022/11/17
[ "https://Stackoverflow.com/questions/74480694", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16601198/" ]
74,480,734
<p>I found the code of logical gate xor written in Haskell, but I don't know what does this &quot;<code>(/=)</code>&quot; mean!</p> <pre><code>xor :: Bool -&gt; Bool -&gt; Bool xor = (/=) </code></pre>
[ { "answer_id": 74481075, "author": "Willem Van Onsem", "author_id": 67579, "author_profile": "https://Stackoverflow.com/users/67579", "pm_score": 4, "selected": true, "text": "(/=) :: Eq a => a -> a -> Bool Eq True Bool x y x /= y x `xor` y False False False False False True True True Tr...
2022/11/17
[ "https://Stackoverflow.com/questions/74480734", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15203917/" ]
74,480,738
<p>I have a component that need to dynamically load another component in its template, so I followed this tutorial <a href="https://angular.io/guide/dynamic-component-loader" rel="nofollow noreferrer">dynamic-component-loader</a>, so basically my component looks like</p> <pre><code>@Component( selector: 'appPopout', te...
[ { "answer_id": 74481075, "author": "Willem Van Onsem", "author_id": 67579, "author_profile": "https://Stackoverflow.com/users/67579", "pm_score": 4, "selected": true, "text": "(/=) :: Eq a => a -> a -> Bool Eq True Bool x y x /= y x `xor` y False False False False False True True True Tr...
2022/11/17
[ "https://Stackoverflow.com/questions/74480738", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19199956/" ]
74,480,741
<p>I understand the concept of non-nullable types, and try to use them whenever possible, but have hit a situation where I don't understand what to do.</p> <p>If I create a Blazor component (content irrelevant and therefore not shown), and want to refer to it in code, I can add a private variable for it. Since I know t...
[ { "answer_id": 74481075, "author": "Willem Van Onsem", "author_id": 67579, "author_profile": "https://Stackoverflow.com/users/67579", "pm_score": 4, "selected": true, "text": "(/=) :: Eq a => a -> a -> Bool Eq True Bool x y x /= y x `xor` y False False False False False True True True Tr...
2022/11/17
[ "https://Stackoverflow.com/questions/74480741", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6826677/" ]
74,480,742
<p>I want function maxmintuple(m), that takes m, a 2D list returns a tuple with the min value and max value in the corresponding brackets. eg:</p> <pre><code>maxmintuple ([[3,5],[6,8]]) (3,8) </code></pre> <p>This is how I call it:</p> <p>maxmintuple([1,5],[2,8])</p> <p>and it returns this :</p> <pre><code>Traceback...
[ { "answer_id": 74480852, "author": "Khaled DELLAL", "author_id": 15852600, "author_profile": "https://Stackoverflow.com/users/15852600", "pm_score": 2, "selected": false, "text": "def maxmintuple(m):\n\n min1 = min(m[0])\n max1 = max(m[1])\n\n return (min1,max1)\n maxmintuple([[...
2022/11/17
[ "https://Stackoverflow.com/questions/74480742", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20420123/" ]
74,480,755
<pre><code>let obj = { one : 1, two : 2, three : 3 } </code></pre> <p>I want output like this :</p> <pre><code>let obj ={ three: 3, two : 2, one : 1 } </code></pre> <p>let keys = Object.keys(obj);</p> <p>obj = {...keys.reverse()}</p> <p>but it has errors</p>
[ { "answer_id": 74480804, "author": "Brr Switch", "author_id": 5145745, "author_profile": "https://Stackoverflow.com/users/5145745", "pm_score": 2, "selected": true, "text": "const obj = {\n one : 1, \n two : 2, \n three : 3\n};\n\n// ️ ['3', '2', '1']\nconst reversedKeys = Object.keys(o...
2022/11/17
[ "https://Stackoverflow.com/questions/74480755", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20493210/" ]
74,480,766
<p>I'm trying to find the number of palindromes in a certain range using the Python code below:</p> <pre class="lang-py prettyprint-override"><code>def test(n,m): return len([i for i in range(n,m+1) if str(i) == str(i)[::-1]]) </code></pre> <p>Can anyone discover any other ways to make this code simpler in order to...
[ { "answer_id": 74480903, "author": "Edward Peters", "author_id": 6016064, "author_profile": "https://Stackoverflow.com/users/6016064", "pm_score": 2, "selected": false, "text": "O(2^n) n 2^(n/2) n abcd abcddcba abcdcba" }, { "answer_id": 74500621, "author": "Arbaz ali", "...
2022/11/17
[ "https://Stackoverflow.com/questions/74480766", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20309866/" ]
74,480,775
<p>I'm trying to extract text from a local image with Python and Vision, based off <a href="https://cloud.google.com/vision/docs/ocr" rel="nofollow noreferrer">Cloud Vision API: Detect text in images</a>.</p> <p>This is the function to extract text:</p> <pre class="lang-py prettyprint-override"><code>def detect_text(pa...
[ { "answer_id": 74481100, "author": "BeeFriedman", "author_id": 13949270, "author_profile": "https://Stackoverflow.com/users/13949270", "pm_score": 1, "selected": true, "text": "request = {\n \"image\": {\n \"source\": {\n \"image_uri\": \"IMAGE_URL\"\n }\n }, \n ...
2022/11/17
[ "https://Stackoverflow.com/questions/74480775", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20532012/" ]
74,480,783
<p>I'm new to learning react and have been having problems getting the array to filter using the .filter() method. I'm trying to create a grocery list and I keep getting the error message &quot;Cannot read properties of null (reading 'filter')&quot; Can someone please assist me on getting this work? Here is the code th...
[ { "answer_id": 74481100, "author": "BeeFriedman", "author_id": 13949270, "author_profile": "https://Stackoverflow.com/users/13949270", "pm_score": 1, "selected": true, "text": "request = {\n \"image\": {\n \"source\": {\n \"image_uri\": \"IMAGE_URL\"\n }\n }, \n ...
2022/11/17
[ "https://Stackoverflow.com/questions/74480783", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16791112/" ]
74,480,815
<p>I have two buttons that show two different components when toggling them. For UX reasons (to know which component is showing) I would like to style the buttons according to if the value of the state is true or false (give them an underline and a darker color if the state is true). Is this possible in any way?</p> <p...
[ { "answer_id": 74481100, "author": "BeeFriedman", "author_id": 13949270, "author_profile": "https://Stackoverflow.com/users/13949270", "pm_score": 1, "selected": true, "text": "request = {\n \"image\": {\n \"source\": {\n \"image_uri\": \"IMAGE_URL\"\n }\n }, \n ...
2022/11/17
[ "https://Stackoverflow.com/questions/74480815", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19388493/" ]
74,480,816
<p>I currently have an action that creates a new link between an object of <code>type A</code>, named <code>OA</code>, and an object of <code>type B</code>, named <code>OB</code>.</p> <p>Our workflow has a constraint such that any object of <code>type B</code> can at most, be linked to 4 objects of <code>type A</code>....
[ { "answer_id": 74480827, "author": "Austin Atmaja", "author_id": 19819281, "author_profile": "https://Stackoverflow.com/users/19819281", "pm_score": 1, "selected": false, "text": "type A OB // Search around to all objects of type A that are linked to OB\nconst linkedObjects = OB.objectTy...
2022/11/17
[ "https://Stackoverflow.com/questions/74480816", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19819281/" ]
74,480,818
<p>I'm currently a web developer boot camp student and I am working on a project. I know there is a way to simplify this function but I can't seem to grasp it. What is the way to simplify this entire thing into a for loop so I don't have to do this to every element? I am calling a weather API and applying them to the H...
[ { "answer_id": 74480926, "author": "Fabio Almeida", "author_id": 4719158, "author_profile": "https://Stackoverflow.com/users/4719158", "pm_score": 2, "selected": false, "text": "let fiveDayWeather = function (weatherValue) {\n let todaysMonth = dayjs().$M;\n [...Array(5).keys()] // gen...
2022/11/17
[ "https://Stackoverflow.com/questions/74480818", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20116550/" ]
74,480,823
<p>I'm trying to create a heading in two colors, black and white. The color change should occur in the letter, so I can't use span. The Heading is &quot;Modern Art Gallery&quot;. I want the change to happen in the letter 'n'. (See example image below.)</p> <p>I tried to use a filter but that didn't work. Now I am tryin...
[ { "answer_id": 74480986, "author": "chvndb", "author_id": 4035939, "author_profile": "https://Stackoverflow.com/users/4035939", "pm_score": 1, "selected": false, "text": "* { margin: 0; padding: 0 }\n\nheader {\n overflow: hidden;\n height: 100vh;\n background: url(https://s3-us-west-...
2022/11/17
[ "https://Stackoverflow.com/questions/74480823", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19113047/" ]
74,480,824
<p>I created these two arrays</p> <pre><code>students = np.array([['Hannah'],['Alonzo'], ['Antoinette'], ['Latasha'], ['Phil']]) grades = np.array([[86, 94], [83, 79], [97, 95], [90, 87], [73, 76]]) </code></pre> <p>how do I select all rows from grade based on the student name, for example Alonzo?</p> <p>I tried to sel...
[ { "answer_id": 74480869, "author": "Edward Peters", "author_id": 6016064, "author_profile": "https://Stackoverflow.com/users/6016064", "pm_score": 0, "selected": false, "text": "dictionary map indexOf" }, { "answer_id": 74480883, "author": "eshirvana", "author_id": 136745...
2022/11/17
[ "https://Stackoverflow.com/questions/74480824", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18787236/" ]
74,480,834
<p>I am stuck in a seemingly easy task. Imagine the following <code>data.table</code>:</p> <pre class="lang-r prettyprint-override"><code>dt1 &lt;- data.table(ID = as.factor(c(&quot;202E&quot;, &quot;202E&quot;, &quot;202E&quot;)), timestamp = as.POSIXct(c(&quot;2017-05-02 00:00:00&quot;, ...
[ { "answer_id": 74480869, "author": "Edward Peters", "author_id": 6016064, "author_profile": "https://Stackoverflow.com/users/6016064", "pm_score": 0, "selected": false, "text": "dictionary map indexOf" }, { "answer_id": 74480883, "author": "eshirvana", "author_id": 136745...
2022/11/17
[ "https://Stackoverflow.com/questions/74480834", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19031038/" ]
74,480,916
<p>I'm currently trying to create a navbar for my website. The navbar is implemented using a <code>ul</code> container which is set to <code>display: flex</code>. Most of the items inside this <code>flexbox</code> are <code>li</code> tags containing anchor elements, but the first <code>li</code> contains an <code>svg</...
[ { "answer_id": 74480869, "author": "Edward Peters", "author_id": 6016064, "author_profile": "https://Stackoverflow.com/users/6016064", "pm_score": 0, "selected": false, "text": "dictionary map indexOf" }, { "answer_id": 74480883, "author": "eshirvana", "author_id": 136745...
2022/11/17
[ "https://Stackoverflow.com/questions/74480916", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19072633/" ]
74,480,919
<p>This may be very basic, but I'm trying to get the exact number of records for a query in Oracle SQL.</p> <p>Since the platform doesn't allow to get big files as an export, I need to divide the output in parts, but I want to know how many records I have in each year for example.</p> <p>This is the query:</p> <pre><co...
[ { "answer_id": 74480956, "author": "Bohemian", "author_id": 256196, "author_profile": "https://Stackoverflow.com/users/256196", "pm_score": -1, "selected": true, "text": "count(*) select count(*)\nfrom Table1 a, Table2 b, Table3 c, Table4 d\nwhere a.ID1 = b.ID1\nand b.ID1 = c.ID1\nand c....
2022/11/17
[ "https://Stackoverflow.com/questions/74480919", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11904865/" ]
74,480,923
<p>EF Core 6 introduced the ability to auto-include navigations (<a href="https://learn.microsoft.com/en-us/ef/core/querying/related-data/eager#model-configuration-for-auto-including-navigations" rel="nofollow noreferrer">https://learn.microsoft.com/en-us/ef/core/querying/related-data/eager#model-configuration-for-auto...
[ { "answer_id": 74525852, "author": "Gabor", "author_id": 6208915, "author_profile": "https://Stackoverflow.com/users/6208915", "pm_score": 0, "selected": false, "text": ".AutoInclude() .SetIsEagerLoaded(bool?) public static void AutoInclude(this IMutableEntityType entityType)\n{\n var...
2022/11/17
[ "https://Stackoverflow.com/questions/74480923", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13706650/" ]
74,480,932
<p>I want to write a program that asks the user for a message, then converts the message using the telephony codes, codes that translate each letter into a specific word. Here is sample output from the program:</p> <blockquote> <p>This program will translate a message using telephony codes. What is your message? I love...
[ { "answer_id": 74480975, "author": "CharlieBONS", "author_id": 20529340, "author_profile": "https://Stackoverflow.com/users/20529340", "pm_score": 1, "selected": false, "text": "for letter in list(word):\n if output == '':\n output = dictionary[letter]\n else:\n output = o...
2022/11/17
[ "https://Stackoverflow.com/questions/74480932", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20533197/" ]