Id int64 4 8.51M | PostTypeId int64 1 7 | AcceptedAnswerId int64 7 75.5M ⌀ | ParentId int64 4 41.8M ⌀ | Score int64 -208 27.7k | ViewCount int64 11 12.4M ⌀ | Body stringlengths 0 45k | Title stringlengths 2 150 ⌀ | ContentLicense stringclasses 3
values | FavoriteCount int64 0 225 ⌀ | CreationDate stringdate 2008-07-31 21:42:52 2011-12-14 18:48:47 | LastActivityDate stringdate 2008-08-01 12:19:17 2023-03-05 04:40:26 | LastEditDate stringdate 2008-08-01 13:54:25 2023-03-05 03:12:45 ⌀ | LastEditorUserId int64 -1 21.3M ⌀ | OwnerUserId int64 -1 21.1M ⌀ | Tags listlengths 1 6 ⌀ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
75,631,485 | 1 | null | null | 0 | 50 | I have a C++ program that can be compiled for single or double precision floating point numbers. Similar as explained here ([Switching between float and double precision at compile time](https://stackoverflow.com/questions/14511910/switching-between-float-and-double-precision-at-compile-time)), I have a header file whi... | Flexibly set floating point number precision at compile time | CC BY-SA 4.0 | null | 2023-03-03T20:11:06.660 | 2023-03-03T20:32:05.720 | null | null | 6,931,707 | [
"c++",
"precision"
] |
75,631,493 | 2 | null | 61,542,285 | -1 | null | You may write in Tinker:
```
echo $user->email.chr(13).chr(10)
```
| null | CC BY-SA 4.0 | null | 2023-03-03T20:12:45.290 | 2023-03-03T20:18:04.317 | 2023-03-03T20:18:04.317 | 8,864,226 | 21,328,393 | null |
75,631,483 | 1 | null | null | 0 | 13 |
# Issue
- `.zshrc`
```
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="robbyrussell"
plugins=(git)
source $ZSH/oh-my-zsh.sh
```
- When I use the UP arrow key with a blank terminal my `zsh_history` file will be searched for the latest commands I have typed, starting from the most recent command. If I start typing a comm... | ZSH with OhMyZsh cycle through history when there is no match | CC BY-SA 4.0 | null | 2023-03-03T20:10:49.600 | 2023-03-03T20:11:55.850 | 2023-03-03T20:11:55.850 | 10,139,615 | 10,139,615 | [
"zsh",
"oh-my-zsh",
"zshrc",
"zsh-completion",
"zsh-zle"
] |
75,631,495 | 1 | null | null | -1 | 19 | I am currently working on an optimization project implemented in pyomo in which I need to calculate the sum of the decision variable and bin the result.
```
for example suppose x = decision variable$
at time t = 0, constraint.skip
at time t = 1, if sum(x0) >= 1$, then y=1 otherwise y=0
at time t = 2, if sum(x0,x1) >= ... | How to bin the sum of a decision variable in Pyomo | CC BY-SA 4.0 | null | 2023-03-03T20:12:59.667 | 2023-03-03T20:12:59.667 | null | null | 14,857,955 | [
"python",
"linear-programming",
"pyomo",
"mixed-integer-programming",
"scip"
] |
75,631,499 | 1 | null | null | 0 | 15 | I'm wondering if it is possible to use YouTube's API to find the most viewed videos each week. Ideally, the request would also yield the subscriber count from the channel that hosts the video as well as the language. Is this possible?
| YouTube API - get most watched videos for a given week | CC BY-SA 4.0 | null | 2023-03-03T20:13:30.657 | 2023-03-03T21:53:51.813 | null | null | 372,526 | [
"youtube-api"
] |
75,631,498 | 2 | null | 54,106,725 | 0 | null | In my case, the only deployment of metrics-server that worked for hpa, is this one that I share with you, I tried it with docker-desktop
[this is a modification of a solution i found, which i shared for another repo](https://github.com/thelman/peladonerd/blob/metrics-2023-kubernetes/kubernetes/5/metrics-2023/desktop-me... | null | CC BY-SA 4.0 | null | 2023-03-03T20:13:27.420 | 2023-03-03T20:13:27.420 | null | null | 9,114,454 | null |
75,631,497 | 1 | null | null | 0 | 20 | I am working on a Django employee management system, I want the employee bio data on the same table as the user object used for registration and login
I tried adding the user model as a OnetoOneField on the employee table, but I don’t like having to register the user and then fill the employee form separately.
I want t... | How to properly extend user model in Django | CC BY-SA 4.0 | null | 2023-03-03T20:13:20.990 | 2023-03-03T20:13:20.990 | null | null | 9,318,907 | [
"python",
"django",
"one-to-one",
"django-users",
"abstractuser"
] |
75,631,503 | 2 | null | 75,631,443 | 2 | null | Pressing `enter` will trigger the button again, so you need to `blur` from the button after clicking.
```
function handleClick(e) {
e.preventDefault();
e.stopPropagation();
CreateOverlay("Now press ENTER and it will trigger again.");
e.target.blur();
}
```
[](https://codesandbox.io/s/cool-mountain-jx... | null | CC BY-SA 4.0 | null | 2023-03-03T20:13:52.800 | 2023-03-03T20:13:52.800 | null | null | 11,887,902 | null |
75,631,494 | 1 | null | null | 0 | 25 | I have 100 xml-files and I want parse them in python
Example of files:
```
<?xml version="1.0" <?xml version="1.0" encoding="UTF-8"?>
<api version="3.2">
<peoplecount>
<entry id="1" name="" userid="">
<count datetime="2022.07.11 14:16:20" realin="0" realout="1" realpass="0" queuetime="0" />
<count datetime="2022.07.11... | Open xml-files in python | CC BY-SA 4.0 | null | 2023-03-03T20:12:59.077 | 2023-03-03T21:09:09.477 | 2023-03-03T21:09:09.477 | 16,016,201 | 16,016,201 | [
"python",
"xml"
] |
75,631,502 | 1 | null | null | -1 | 27 | I am trying to get a PySerial program to read data from an APC220 connected to an Arduino. The APC220 is receiving data from the Arduino; I can see it on the serial monitor, but the Python program cannot read it. The code takes the a number sent from the Arduino and calculates the delay in receiving the signal. It conn... | PySerial Unable to read output from APC220 | CC BY-SA 4.0 | null | 2023-03-03T20:13:42.923 | 2023-03-03T20:26:40.383 | 2023-03-03T20:26:40.383 | 6,273,251 | 19,934,880 | [
"python",
"arduino",
"pyserial"
] |
75,631,507 | 2 | null | 75,631,393 | 1 | null | The builder of ScreenUtilInit requires Build context and an optional Widget parameter.
```
class MyApp extends StatelessWidget {
static const double _designWidth = 375;
static const double _designHeight = 812;
const MyApp(Key? key}) : super(key: key);
@override
Widget build(BuildConte... | null | CC BY-SA 4.0 | null | 2023-03-03T20:14:28.387 | 2023-03-03T20:14:28.387 | null | null | 14,223,427 | null |
75,631,505 | 2 | null | 75,462,304 | 0 | null | PostgreSQL [distinct on](https://www.postgresql.org/docs/current/sql-select.html#SQL-DISTINCT) can help whenever your spec says you want one, top record in a group. You can use it in a [scalar subquery](https://www.postgresql.org/docs/current/sql-expressions.html#SQL-SYNTAX-SCALAR-SUBQUERIES) in an update: [online demo... | null | CC BY-SA 4.0 | null | 2023-03-03T20:14:15.370 | 2023-03-03T20:15:28.127 | 2023-03-03T20:15:28.127 | 5,298,879 | 5,298,879 | null |
75,631,482 | 1 | null | null | -1 | 39 | Hi I am trying to apply lookup on a table to find corresponding values from another table. But since there are null values I want to apply another lookup using a different column in the main table and finding those values in a different lookup table. Though I am able to achieve the 1st problem but unable to apply multi... | How to Find Lookup Values in Multiple Tables in Power Query | CC BY-SA 4.0 | null | 2023-03-03T20:10:39.983 | 2023-03-04T18:14:42.320 | 2023-03-04T16:49:04.247 | 5,350,785 | 5,350,785 | [
"powerbi",
"powerquery",
"vlookup",
"power-automate",
"lookup-tables"
] |
75,631,470 | 1 | null | null | 0 | 63 | I am trying to create a 4 week running average of data, and then pivot it for a pivot table report. I am basically porting a spreadsheet-as-a-DB and it's reports and I am just starting to realize how sloppy and forgiving excel is.
The goal is to take the running 4 week average, of all the `RC`s (even if they have no da... | Oracle 4 weeks running average - missing values must imply 0 | CC BY-SA 4.0 | null | 2023-03-03T20:09:28.620 | 2023-03-04T00:00:29.423 | 2023-03-03T23:20:22.320 | 889,053 | 889,053 | [
"sql",
"oracle"
] |
75,631,509 | 1 | null | null | 0 | 5 | In Informatica, how to filter a table based on the aggregation result of another table?
Given the following 2 tables:
Table_1:
SomeText VARCHAR,
SomeDate DATE
Table_2:
SomeDate_2 DATE,
OutputDate_2 DATE
and the following aggregation (into output port "MinDate") of Table_2:
SELECT MIN(OutputDate_2) AS MinDate
FROM Table... | Informatica: How to filter a table based on aggregation result of another table? | CC BY-SA 4.0 | null | 2023-03-03T20:14:47.063 | 2023-03-03T21:53:03.470 | null | null | 3,812,719 | [
"filter",
"aggregation",
"informatica"
] |
75,631,513 | 2 | null | 73,475,190 | 0 | null | Figured it out, instead of using `localhost`, replace it with `host.docker.internal`
| null | CC BY-SA 4.0 | null | 2023-03-03T20:15:21.310 | 2023-03-03T20:15:21.310 | null | null | 2,832,053 | null |
75,631,501 | 2 | null | 75,630,483 | 2 | null | The only way to block input (without writing custom drivers) is to use `SetWindowsHookEx()` keyboard/mouse hooks. Its documentation tells you how to block input for each type of hook:
[KeyboardProc callback function](https://learn.microsoft.com/en-us/previous-versions/windows/desktop/legacy/ms644984(v=vs.85))
> Return... | null | CC BY-SA 4.0 | null | 2023-03-03T20:13:40.973 | 2023-03-03T20:22:39.123 | 2023-03-03T20:22:39.123 | 65,863 | 65,863 | null |
75,631,510 | 2 | null | 75,630,794 | 1 | null | The `venv` module uses the `ensurepip` module to install a hard-coded version of `pip` that is bundled with `ensurepip` itself. While `pip` is not part of the standard library, `ensurepip` is. It does this, I believe, for a couple of reasons:
1. You know exactly what version of pip will initially be installed fora giv... | null | CC BY-SA 4.0 | null | 2023-03-03T20:14:48.890 | 2023-03-03T20:17:52.367 | 2023-03-03T20:17:52.367 | 1,126,841 | 1,126,841 | null |
75,631,511 | 1 | null | null | 1 | 32 | I can't figure out how to make the object move first from right to left, and then as soon as it got to the left side, it immediately started moving in the other direction
```
var tm;
var cars;
var cx;
var gameBegin;
function go()
{
if(gameBegin==1) return;
gameBegin = 1;
cars = new Array();
for (var i=... | I want the object to move in different directions | CC BY-SA 4.0 | null | 2023-03-03T20:14:57.787 | 2023-03-03T21:11:44.953 | null | null | 20,544,251 | [
"javascript"
] |
75,631,504 | 2 | null | 75,631,211 | 1 | null | - `$service_report_xls``"..."``\\"...\\"`
```
`"C:\\Program Files\\PowerShell\\7\\pwsh.exe" -NoProfile -noninteractive -ExecutionPolicy bypass -Command "\\\\wserverp01\\kiosksupport\\Retailer_DeviceSN\\MoveSNToSprdsht_1.0.ps1 \\"$service_report_xls\\""`;
```
- `-Command`[PowerShell CLI](https://learn.microsoft.com/en-... | null | CC BY-SA 4.0 | null | 2023-03-03T20:14:05.523 | 2023-03-03T20:19:17.753 | 2023-03-03T20:19:17.753 | 45,375 | 45,375 | null |
75,631,514 | 1 | null | null | 0 | 5 | I'm reading .lrcat data using a python script and sqlite3.
I have a column in the Adobe_AdditionalMetadata table called xmp with an odd encoding, probably an Adobe Lightroom encoding.
Here's my chunk of code:
```
from libxmp import XMPFiles
cursor = conn.execute('SELECT xmp FROM Adobe_AdditionalMetadata')
row = cursor... | Decoding XMP data read using python from .lrcat | CC BY-SA 4.0 | null | 2023-03-03T20:15:36.970 | 2023-03-03T20:15:36.970 | null | null | 13,083,700 | [
"python",
"encoding",
"xmp",
"lightroom"
] |
75,631,506 | 1 | null | null | 0 | 13 | I am trying to plot measurement data by using plotly.js. As data should resemble a 3 dimensional item, I was looking for a 3D plot and found the ribbon plot to be quite suitable. Untortunately, unlike in the 2D plots in plotly, a lot of functions like annotations seem to be not working. Is there any way to label e.g. m... | How do I add data labels to surface and ribbon plots in plotly.js | CC BY-SA 4.0 | null | 2023-03-03T20:14:24.283 | 2023-03-04T15:20:25.170 | null | null | 7,033,334 | [
"plot",
"charts",
"diagram",
"ribbon",
"plotly.js"
] |
75,631,517 | 2 | null | 75,630,353 | 0 | null | lldb's running fine, it's just telling you your program crashed while running strlen. `EXC_BAD_ACCESS` means you tried to read or write from invalid memory. The exception message also tells you what the address was:
EXC_BAD_ACCESS (code=1, address=0x0)
The code means it was a read access. The address you tried to re... | null | CC BY-SA 4.0 | null | 2023-03-03T20:15:52.950 | 2023-03-03T20:15:52.950 | null | null | 2,465,073 | null |
75,631,520 | 2 | null | 75,631,425 | 1 | null | You could use a conditional expression to determin the multiplier and to check the criteria:
```
select *,
result = price * amount *
case when exists (
select * from t t2
where t2.invoice = t.invoice
having Min(prodid) = 1 and Max(prodid) = 2
) then 1 else 1.1 end
from t;
```
| null | CC BY-SA 4.0 | null | 2023-03-03T20:16:12.520 | 2023-03-03T20:16:30.197 | 2023-03-03T20:16:30.197 | 15,332,650 | 15,332,650 | null |
75,631,518 | 2 | null | 75,629,308 | 0 | null | Not in any good way. You can set the default work_mem and statement_timeout on a per user basis (`ALTER USER ... SET ...`). But this is merely cooperative, as the user can countermand those settings if they wish to.
And the settings might also have perverse effects. A lower work_mem could cause the query to adopt a m... | null | CC BY-SA 4.0 | null | 2023-03-03T20:15:55.710 | 2023-03-03T20:15:55.710 | null | null | 1,721,239 | null |
75,631,519 | 2 | null | 75,631,402 | 1 | null | The reason for this error is that the thenReturn method expects a PutRecordResponse object, but you are passing in a PutRecordResult object.
To fix this error, you should create a PutRecordResponse object and set its sequenceNumber and shardId fields to appropriate values, then use it in the thenReturn method like this... | null | CC BY-SA 4.0 | null | 2023-03-03T20:16:04.803 | 2023-03-03T20:29:29.277 | 2023-03-03T20:29:29.277 | 2,116,248 | 2,116,248 | null |
75,631,523 | 1 | null | null | 1 | 8 | I am in a thread where I am using
```
AssemblyLoadContext.Default.Assemblies
```
to retrieve the loaded assemblies and call `GetTypes()` on them.
In the list of assemblies there is also `PresentationFramework` which turns to be a ready-to-run (R2R) assembly. When calling `GetTypes()` or even inspecting the assembly in... | Access Violation from R2R (ready-to-run) assembly when using GetTypes() from a thread in Net Core (Net7) | CC BY-SA 4.0 | null | 2023-03-03T20:16:21.073 | 2023-03-03T21:53:46.473 | 2023-03-03T21:53:46.473 | 13,302 | 2,630,465 | [
"c#",
".net-core",
"access-violation",
"assembly-loading"
] |
75,631,515 | 1 | null | null | 0 | 21 | I have dummy CSV data like below:
```
Salesman_id;Name;Surname
105;Ann;Alstonn
121;Abaziel;XYZ
148;Fenoftale;Ina
151;Stefan;Merro
151;Stefan;Merro
```
I can't imagine why i have nan in Salesm_id. Why isn't it 4.00 like in Name and Surname column?
```
+--------+-------------+--------+----------+
| | Salesman_id ... | Problem with NaN value in first column, pandas | CC BY-SA 4.0 | null | 2023-03-03T20:15:37.880 | 2023-03-03T20:19:29.390 | 2023-03-03T20:19:29.390 | 21,219,510 | 21,219,510 | [
"python",
"pandas",
"nan",
"prettytable",
"describe"
] |
75,631,512 | 1 | 75,631,796 | null | -1 | 39 | I'm trying to send through multipart/form-data a post request from my products controller, where I upload a file of images and information of my product in json
```
@RestController
@CrossOrigin(origins = "*", maxAge = 3600)
@RequestMapping("/product")
public class ProductController {
final ProductService productSe... | Spring boot - method 'POST' is not supported (multipart/form-data) | CC BY-SA 4.0 | null | 2023-03-03T20:14:59.627 | 2023-03-03T21:52:59.550 | 2023-03-03T21:52:59.550 | 21,267,269 | 21,267,269 | [
"java",
"spring",
"spring-boot",
"api",
"postman"
] |
75,631,521 | 1 | null | null | 0 | 6 | I am trying to get user list with specifice role and who is register between two date. I tried But getting zero record (**it has record in database **)in result.
```
$meta_query = array('relation' => 'AND');
if(isset($_GET['interviewr'])) {
$interviewr = sanitize_text_field( $_GET['interviewr'] );
... | Getting zero record in user meta data in wordpress | CC BY-SA 4.0 | null | 2023-03-03T20:16:16.837 | 2023-03-03T20:16:16.837 | null | null | 3,400,617 | [
"wordpress",
"user-roles",
"user-data",
"meta-query",
"usermetadata"
] |
75,631,522 | 1 | null | null | 1 | 49 | Parsing a string JSON object nullifies numbers that are in nested arrays.
I'm parsing a string JSON object in javascript.
The string: (throw it into [https://jsonformatter.org/json-pretty-print](https://jsonformatter.org/json-pretty-print) if you want, but its pretty simple)
```
{"teams":[["Roman Bravo-Young (PSU)","vi... | JSON.parse changing number values to null | CC BY-SA 4.0 | null | 2023-03-03T20:16:19.390 | 2023-03-04T01:21:10.590 | 2023-03-03T20:31:01.307 | 1,491,895 | 20,207,966 | [
"javascript",
"arrays",
"json"
] |
75,631,492 | 1 | null | null | 0 | 15 | I'm struggling to add a new column with `mat-checkboxes` to my `mat-table`, including a `mat-checkbox` in the table's header for selecting all items. I added the corresponding code in HTML, but I'm not sure how I should approach the matter in the TypeScript file as the other columns are displayed dynamically.
I tried f... | Add `mat-checkboxes` column to `mat-table` with dynamic columns | CC BY-SA 4.0 | null | 2023-03-03T20:12:34.473 | 2023-03-04T11:07:32.247 | 2023-03-04T11:07:32.247 | 10,567,690 | 10,567,690 | [
"html",
"angular",
"typescript",
"angular-material",
"frontend"
] |
75,631,527 | 2 | null | 75,629,413 | 1 | null | I have adjusted your code a bit as I wasn't sure if I was allowed to change both tables at the same time or if you might place certain things in between those tables so I made an extra sub to make it shorter(ish). This will make sure it only affects the cells it had prior to the resize (since you're only resizing the r... | null | CC BY-SA 4.0 | null | 2023-03-03T20:16:35.393 | 2023-03-03T20:16:35.393 | null | null | 19,353,309 | null |
75,631,529 | 2 | null | 75,630,894 | 1 | null | You're basically just moving the `s` parameter into the original call. Then you just return `s.replace(...)` as you did before. You also don't need to wrap the body in an [IIFE](https://developer.mozilla.org/en-US/docs/Glossary/IIFE).
```
var wontParse2 = (s, in_chrs, out_chrs) => {
let chars_rgx = new RegExp("[" + i... | null | CC BY-SA 4.0 | null | 2023-03-03T20:16:46.617 | 2023-03-03T20:16:46.617 | null | null | 18,244,921 | null |
75,631,525 | 1 | null | null | 0 | 22 | I would like to parse the following json string using Jackson ObjectMapper:
```
["EVENT","event-id",{"content":"{}","created_at":1677781808,"tags":[["t","tag1"]]}]
```
I was trying the following model class:
```
@JsonFormat(shape= JsonFormat.Shape.ARRAY)
public class Event {
@JsonProperty
String event;
@... | Jackson parse array with both anonymous and named field | CC BY-SA 4.0 | null | 2023-03-03T20:16:32.227 | 2023-03-04T06:56:56.320 | null | null | 3,522,818 | [
"json",
"jackson"
] |
75,631,531 | 2 | null | 72,023,945 | 0 | null | According to the [Documentation](https://developer.apple.com/documentation/storekit/skpaymentqueue/3566726-presentcoderedemptionsheet?changes=lat_7_8&language=objc) this API is not available for MacCatalyst apps even though it is marked as so.
> This function doesn’t affect Mac apps built with Mac Catalyst.
| null | CC BY-SA 4.0 | null | 2023-03-03T20:17:19.377 | 2023-03-03T20:17:19.377 | null | null | 8,160,613 | null |
75,631,528 | 1 | null | null | 0 | 18 | I am trying to convert a local CSV file to an array. I found a package called csv-to-array that is supposed to convert the CSV file to a JSON array.
When I try to iterate through it and add values, nothing happens and x remains at 0. But I tried outputting the values of `array.Cost` to the console and it showed the cor... | Converting a local CSV File to an array | CC BY-SA 4.0 | null | 2023-03-03T20:16:41.637 | 2023-03-03T20:39:07.247 | null | null | 21,327,899 | [
"reactjs"
] |
75,631,524 | 1 | null | null | 0 | 22 | longtime front-end dev trying to pick up some back-end stack. I'm taking a course through Coursera on using NodeJS with AWS. The first assignment had us set up some IAM policies/users, upload a JSON object to S3, and then attempt to load and console.log the contents of that object using the aws-sdk with selectObjectC... | Accessing S3 object with NodeJS | CC BY-SA 4.0 | null | 2023-03-03T20:16:22.947 | 2023-03-03T21:50:29.600 | null | null | 9,659,759 | [
"node.js",
"amazon-web-services",
"amazon-s3",
"aws-sdk"
] |
75,631,530 | 1 | null | null | 0 | 17 | I am trying to create a drawer using react native navigation but I am getting the error
"TypeError: Cannot convert undefined value to object".
I haven't been able to find exactly where the problem comes from.
App.js
```
import { NavigationContainer } from '@react-navigation/native'
import { createDrawerNavigator } from... | React native navigation "TypeError: Cannot convert undefined value to object" | CC BY-SA 4.0 | null | 2023-03-03T20:17:07.097 | 2023-03-04T10:54:40.280 | 2023-03-03T20:21:43.287 | 13,339,500 | 13,339,500 | [
"react-native",
"react-native-navigation"
] |
75,631,534 | 2 | null | 55,209,615 | 0 | null | Okay, i just found the solution while sharing the same issue that originated this post.
the code
```
import ScenePlay from "./scenes/ScenePlay.js";
import BootLoader from "./bootloader.js";
const config = {
width: 640,
height: 400,
parent: "container",
physics: {
default: "arcade"
},
sc... | null | CC BY-SA 4.0 | null | 2023-03-03T20:17:33.723 | 2023-03-03T20:17:33.723 | null | null | 3,889,334 | null |
75,631,536 | 1 | null | null | 0 | 14 | In Power BI, is there a view or other way to show a single record as a list of key value pairs?
I'd like to list out the values of single record/row. Its column headings would be in the first column and the values in the second column. In Azure Log Analytics, this is a default feature with every individual row able to ... | In Power BI, is there a view or other way to show a single record as a list of key value pairs? | CC BY-SA 4.0 | null | 2023-03-03T20:17:51.813 | 2023-03-05T01:33:36.910 | 2023-03-05T01:33:36.910 | 80,161 | 80,161 | [
"powerbi",
"powerbi-desktop"
] |
75,631,540 | 2 | null | 75,594,224 | 0 | null | to get it work , just change to lower caps the column Ivalues (hobby)
DB FIDDLE (UK) after : [https://dbfiddle.uk/gP0kAnZ5](https://dbfiddle.uk/gP0kAnZ5)
| null | CC BY-SA 4.0 | null | 2023-03-03T20:18:26.087 | 2023-03-03T20:18:26.087 | null | null | 18,940,449 | null |
75,631,537 | 2 | null | 75,631,271 | 1 | null |
# Problem
The problem is that you're setting the `BindingContext` multiple times.
You set it twice here:
```
namespace IotApp.Views
{
public partial class ItemDetailPage : ContentPage
{
public ItemDetailPage()
{
InitializeComponent();
BindingContext = new PowerViewMode... | null | CC BY-SA 4.0 | null | 2023-03-03T20:18:17.380 | 2023-03-03T20:18:35.770 | 2023-03-03T20:18:35.770 | 4,308,455 | 4,308,455 | null |
75,631,541 | 1 | null | null | 0 | 18 | I made an android application.
I have problem when starting the app because of location permission, when app start I put function to get device location. The problem is sometime when we click "Yes" on the permission it crashed on the first time. It still get the location and have no problem for second and afterwards.
D... | Android studio location permission issue | CC BY-SA 4.0 | null | 2023-03-03T20:18:26.303 | 2023-03-03T21:21:59.287 | 2023-03-03T20:51:50.197 | 209,103 | 18,223,057 | [
"java",
"android"
] |
75,631,533 | 1 | null | null | 0 | 22 | The data type for the last column for all the dataframes is "object".
The remaining columns of the `mut` dataframe is binary, whereas the remaining columns of the other dataframes are float.
In my code below, the resulting dataframe `df_scaled` has "object" data type for all the columns.
```
X = df.iloc[:,:-1].astype(i... | Retain data types after concatenating pandas dataframes | CC BY-SA 4.0 | null | 2023-03-03T20:17:29.197 | 2023-03-03T20:17:29.197 | null | null | 18,090,706 | [
"python",
"pandas",
"types"
] |
75,631,532 | 1 | null | null | 0 | 8 | I know this question has appeared multiple times on SO, but NONE of the answers helped, here's a list of what I've tried before:
- - - - - - - - - - - - [https://stackoverflow.com/a/44214842/15749574](https://stackoverflow.com/a/44214842/15749574)-
I am not using a VPN, the emulator was working fine yesterday (things ... | Android Emulator Wifi Connected with No Internet | CC BY-SA 4.0 | null | 2023-03-03T20:17:28.480 | 2023-03-03T20:17:28.480 | null | null | 15,749,574 | [
"android",
"android-studio",
"android-emulator"
] |
75,631,544 | 2 | null | 67,710,630 | 0 | null | ```
npm i package-name -f
```
If above command does not solve the error then use below both commands in terminal :
```
npm config set legacy-peer-deps true
npm cache clean --force
```
| null | CC BY-SA 4.0 | null | 2023-03-03T20:19:18.187 | 2023-03-03T20:24:24.713 | 2023-03-03T20:24:24.713 | 20,493,210 | 20,493,210 | null |
75,631,538 | 2 | null | 74,764,220 | 0 | null | You need the collection of the mongo db cluster in order to use the `update_one()` function.
Change your code to:
```
check = warndb.warn_logs.find_one({"case_id": caseid}) #getting the document
reason = str(check['reason']) #accessing the values for reason and case_id
case_id = str(check['case_id'])
warndb.warn_logs.u... | null | CC BY-SA 4.0 | null | 2023-03-03T20:18:21.333 | 2023-03-03T20:18:21.333 | null | null | 17,381,704 | null |
75,631,542 | 1 | null | null | -1 | 20 | How to run a specific process of a third-party program using python? Suppose I want to create software for cleaning computer memory using third-party programs, what are the options for implementing this idea? I am already aware of RPA, but this approach to the solution does not suit me, I would like to run the necessar... | How to interact with third-party programs using python? | CC BY-SA 4.0 | null | 2023-03-03T20:18:26.773 | 2023-03-03T20:50:12.987 | 2023-03-03T20:50:12.987 | 21,328,377 | 21,328,377 | [
"python",
"rpa"
] |
75,631,535 | 1 | null | null | 0 | 8 | I am trying to use Material UI's Autocomplete, but having trouble controlling it's behavior. So basically when there is more than one selected value the component overflows on Y-axes if being focused because it's container has explicit width.
[](https://i.stack.imgur.com/cHaKI.png)
I would like it to either grow on X-a... | MUI Autocomplete's container expands on multiple values | CC BY-SA 4.0 | null | 2023-03-03T20:17:47.843 | 2023-03-03T20:17:47.843 | null | null | 19,178,916 | [
"css",
"material-ui",
"react-mui"
] |
75,631,547 | 2 | null | 75,104,923 | 0 | null | You may not need `import "react-pdf/dist/esm/Page/TextLayer.css"`, but you can add `import "react-pdf/dist/esm/Page/AnnotationLayer.css"`.
Then add
`<Page pageNumber={1} renderTextLayer={false} />`
renderTextLayer={false} is the one that removes extra text. AnnotationLayer.css remove the extra space that would appear b... | null | CC BY-SA 4.0 | null | 2023-03-03T20:19:50.217 | 2023-03-03T20:20:39.330 | 2023-03-03T20:20:39.330 | 13,256,043 | 13,256,043 | null |
75,631,545 | 2 | null | 75,630,989 | 0 | null | Well, if it's MysSql 5.7, then you can not use window functions and common table expressions. So, you have to use derived tables (subqueries) few times:
```
select t1.*
from (
select
user_id,
emotion,
YEAR(registered_on) as regyear,
COUNT(*) as cnt
from users_emotions
group by 1, 2, 3
) as t1
where... | null | CC BY-SA 4.0 | null | 2023-03-03T20:19:24.247 | 2023-03-03T20:19:24.247 | null | null | 2,142,028 | null |
75,631,543 | 1 | null | null | -1 | 10 | I was developing a Flask service on an Ubuntu 22.04 server. To run it in the production mode, I used waitress as the web server, and PM2 as the daemonizer tool. It was OK for a while, and unfortunately, after two weeks I realized that the Flask app is not sending the status message to its Telegram channel. After loggin... | PM2 processes were disappeared from Ubuntu with no server restart | CC BY-SA 4.0 | null | 2023-03-03T20:19:14.813 | 2023-03-03T20:20:13.143 | 2023-03-03T20:20:13.143 | 10,399,496 | 10,399,496 | [
"python",
"flask",
"pm2"
] |
75,631,548 | 1 | null | null | -1 | 9 | I have a Multi-Page React App. I saw a few tutorials on YouTube that were showing the same thing:
1. Add homepage in package.json
2. Run npm run build
3. Upload the content of /build folder to cPanel (in /public_html)
My question is: Do I have to do something else for a Multi-Page React App?
I ask this because in t... | How to deploy a Multi-Page React App in cPanel? | CC BY-SA 4.0 | null | 2023-03-03T20:19:54.820 | 2023-03-03T20:19:54.820 | null | null | 18,346,539 | [
"reactjs",
"react-router",
"hosting",
"cpanel",
"multi-page-application"
] |
75,631,552 | 2 | null | 75,629,809 | 0 | null | It's not possible.
You are describing a situation where you have multiple commits being rebased, and multiple commits have conflicts, and you're wondering if you can resolve multiple conflicts from multiple commits into a single commit. You can't do that, because when you rebase you are replaying each commit one at a t... | null | CC BY-SA 4.0 | null | 2023-03-03T20:20:12.427 | 2023-03-03T20:27:12.617 | 2023-03-03T20:27:12.617 | 184,546 | 184,546 | null |
75,631,551 | 2 | null | 75,630,327 | 1 | null | It is not clear what you really want and if it is just a translation and substitution or if groupby is needed. Assumining you mean strings for the column and that you want just a substitution then you need a way of translating such as 1 to 'One' (a Dictionary is ideal) and then applying this to each row. You can use:
... | null | CC BY-SA 4.0 | null | 2023-03-03T20:20:03.097 | 2023-03-03T21:06:28.353 | 2023-03-03T21:06:28.353 | 19,077,881 | 19,077,881 | null |
75,631,549 | 1 | null | null | 0 | 19 | I'm trying to read a csv file from a opendata public institution website, but when i tried to read it, it is not possible with 'utf-8' encodin; so i tried with others like 'ascii', 'ISO-8859-1' or 'latin1'. With these i'm able to read it, but it doesn't read the spanish accents ('´') and get "ó", for all these ki... | How to Read correctly accents characters on pandas dataframe? | CC BY-SA 4.0 | null | 2023-03-03T20:19:55.997 | 2023-03-03T20:33:56.307 | null | null | 19,242,353 | [
"python",
"pandas",
"encoding",
"decoding",
"read.csv"
] |
75,631,556 | 1 | null | null | 0 | 11 | I need to monitor and control the functions in an azure functions app, from outside of azure portal.
I'm looking for a way to extract a list of functions, their execution history, their schedule and status.
Is there a rest API that can give me that information? or can I get it inside an azure function?
Searching for th... | monitor azure functions from rest api | CC BY-SA 4.0 | null | 2023-03-03T20:20:48.007 | 2023-03-03T20:20:48.007 | null | null | 2,814,552 | [
"rest",
"azure-functions",
"monitoring"
] |
75,631,557 | 2 | null | 75,596,795 | 0 | null | You can pipe your env var directly into the helm command, and read it via stdin:
```
echo $VALUES | helm install mychart ./mychart -f -
```
Here's a better explanation:
[https://askubuntu.com/questions/1074067/what-does-the-syntax-of-pipe-and-ending-dash-mean](https://askubuntu.com/questions/1074067/what-does-the-synt... | null | CC BY-SA 4.0 | null | 2023-03-03T20:21:02.430 | 2023-03-03T20:21:02.430 | null | null | 8,286,172 | null |
75,631,559 | 1 | null | null | 0 | 13 | **Hello
i'm using pycharm for Django on windows and when i use this code
.\venv\Scripts\activate system shows me this error [this is my error](https://i.stack.imgur.com/BOJQg.png)
what should i do to activating my virtual enviroment **
i just try this code .\venv\Scripts\activate
| Is there anyway to activate 'venv' on Pycharm? | CC BY-SA 4.0 | null | 2023-03-03T20:21:54.607 | 2023-03-03T20:27:29.667 | null | null | 21,166,967 | [
"django",
"pycharm"
] |
75,631,553 | 1 | null | null | 0 | 17 | I'm trying to reverse engineer the data sent from a very old temperature/humidity device and decode the date/time and other data from serial communication.
This are some of the older registers of the device:
1997 table
[](https://i.stack.imgur.com/IJIHU.png)
and this are more recent registers, device is out of date:
20... | Strange date/time protocol, need help solving | CC BY-SA 4.0 | null | 2023-03-03T20:20:20.883 | 2023-03-04T10:12:57.620 | 2023-03-04T10:12:57.620 | 5,772,882 | 16,245,481 | [
"datetime",
"hex",
"reverse-engineering"
] |
75,631,550 | 1 | null | null | 1 | 26 | According to the official [Livewire docs on inline scripts](https://laravel-livewire.com/docs/2.x/inline-scripts#accessing-javascript-component-instance), it's possible to get the current instance of a Livewire component inside the inline scripts of their views by using `@this` directive.
As the documentation points ou... | How to get the root element of the current instance of a Livewire component? | CC BY-SA 4.0 | null | 2023-03-03T20:19:56.340 | 2023-03-04T08:20:07.267 | 2023-03-04T08:04:38.850 | 13,963,216 | 13,963,216 | [
"javascript",
"laravel-livewire"
] |
75,631,558 | 1 | null | null | 1 | 19 | I am trying to understand np.gradient() routine for 2D arrays. In the example provided in the documentation, we have:
```
dx = 2.
y = [1., 1.5, 3.5]
np.gradient(np.array([[1, 2, 6], [3, 4, 5]], dtype=float), dx, y)
```
which gives
```
[array([[ 1. , 1. , -0.5],
[ 1. , 1. , -0.5]]),
array([[2. , 2. , 2. ],
... | Regarding the np.gradient routine | CC BY-SA 4.0 | null | 2023-03-03T20:21:34.130 | 2023-03-03T20:22:16.913 | 2023-03-03T20:22:16.913 | 7,135,463 | 7,135,463 | [
"python",
"numpy",
"gradient"
] |
75,631,560 | 1 | null | null | -1 | 35 | Unless a column has its Identity Specification (Is Identity) property = true
my table will not update. Why?
I am trying to make the primary key a 5-digit unique ID number that I can append myself with values from an instance of an object in my C# Windows Forms application.
Here is an image of the SQL Server refusing to... | Why won't SQL Server table update without auto increment column? (SQL, C#, Windows Forms, Visual Studio) | CC BY-SA 4.0 | null | 2023-03-03T20:21:58.920 | 2023-03-04T17:04:48.343 | 2023-03-04T17:04:48.343 | 7,297,700 | 20,085,924 | [
"sql-server",
"visual-studio"
] |
75,631,554 | 1 | null | null | 0 | 12 | Very simply: I am trying to pull the same docker image from 2 different machines:
One is on an AWS virt (where I first encountered the problem) and the second is from a test box I have at home. The image, which might matter, is actually located in GCR
Is it possible that there is an IP restriction on pulling a GCR imag... | Why Can I pull the same (public) docker image from 1 machine, but not from another? | CC BY-SA 4.0 | null | 2023-03-03T20:20:43.403 | 2023-03-03T20:35:01.640 | 2023-03-03T20:35:01.640 | 889,053 | 889,053 | [
"docker"
] |
75,631,562 | 1 | null | null | 0 | 6 | I am trying to make an exclusive lock semaphore using mongoose on a documentDb collection document.
The index and document gets created alright, however the document never expire. I've tried turning createdAt into a string and set it to an ISO string, to no avail. Any ideas how to get ttl to work in documentDb 4.0? I c... | Setting expireAfterSeconds on index for ttl not working in documentDb 4.0 | CC BY-SA 4.0 | null | 2023-03-03T20:22:38.900 | 2023-03-03T20:22:38.900 | null | null | 1,575,416 | [
"node.js",
"mongodb",
"mongoose",
"aws-documentdb"
] |
75,631,563 | 2 | null | 75,630,421 | 0 | null | What u need to do is to create an interface that holds the properties that are common for type `T` for example:
```
public interface IArticles
{
int ExternalArticleId;
int ExternalCategoryId;
int ExternalSubCategoryId;
int ExternalBrandId;
}
```
then define a constrain in the generic type `T` using ... | null | CC BY-SA 4.0 | null | 2023-03-03T20:22:55.913 | 2023-03-03T20:22:55.913 | null | null | 21,328,318 | null |
75,631,564 | 2 | null | 75,631,429 | 0 | null | Thanks @dan04, @MarkTolonen and @ (see the comments to my question) as @MarkTolonen says
> command prompt uses the default OEM code page (cp437 for US Windows ....)"
This seems clear from checking [code page 437](https://en.wikipedia.org/wiki/Code_page_437) for the values I'm trying to encode:
```
>>> 'á' #-> '\xa0' e... | null | CC BY-SA 4.0 | null | 2023-03-03T20:22:59.110 | 2023-03-03T20:22:59.110 | null | null | 1,175,496 | null |
75,631,567 | 2 | null | 783,104 | 0 | null | Didn't see this mentioned here so adding in 2023.
I sorted this issue by installing the [Prism](https://www.nuget.org/packages/Prism.Core) library via NuGet (VS suggested it to me for "DelegateCommand") and used [DelegateCommand](https://learn.microsoft.com/en-us/previous-versions/msp-n-p/gg431408(v=pandp.38)) instead ... | null | CC BY-SA 4.0 | null | 2023-03-03T20:23:41.050 | 2023-03-03T20:23:41.050 | null | null | 336,753 | null |
75,631,568 | 2 | null | 74,850,394 | 0 | null | ```
import java.util.ArrayList;
import java.util.List;
public class PalindromeSubStrings {
private static boolean isPalindrome(String s){
if(s.length()<2)
return false;
return s.equals(new StringBuilder(s).reverse().toString());
}
public static void main(String[] args) {
... | null | CC BY-SA 4.0 | null | 2023-03-03T20:23:49.150 | 2023-03-03T20:37:47.250 | 2023-03-03T20:37:47.250 | 21,328,396 | 21,328,396 | null |
75,631,566 | 1 | null | null | 0 | 29 | Suppose the following:
```
const person = {
name: 'George',
age: 30,
hobbies: ['art', 'gaming'],
};
if (1 + 1 === 2) {
person.position = 'Sales Clerk'; // error here
}
```
I can fix this as follows:
```
type TPerson = {
name: string;
age: number;
hobbies: string[];
position?: string;
}
const person = ... | How to conditionally add properties to an object that was initialized already, without typing it? | CC BY-SA 4.0 | null | 2023-03-03T20:23:38.160 | 2023-03-03T22:27:54.433 | 2023-03-03T20:24:10.370 | 2,891,356 | 2,891,356 | [
"typescript"
] |
75,631,539 | 1 | null | null | 0 | 48 | Some example data:
```
CREATE TABLE #TempTable (
ID varchar(10),
GroupCD varchar(10),
SurrogateKEY1 varchar(10),
SurrogateKEY2 varchar(10)
)
INSERT INTO #TempTable (ID, GroupCD, SurrogateKEY1, SurrogateKEY2)
VALUES
('1', 'UNK', '12345', '89225'),
('3', 'ABC', NULL, '44658'),
('3', 'DEF', NULL, '99658'),... | SQL - Create multiple columns for fill rates based on conditions, with GROUP BY | CC BY-SA 4.0 | null | 2023-03-03T20:18:23.950 | 2023-03-04T10:19:15.407 | 2023-03-03T20:18:57.087 | 9,027,407 | 9,027,407 | [
"sql",
"sql-server"
] |
75,631,570 | 1 | null | null | 0 | 33 | I tried to swap one female name in between two male names
Input
```
Id Name Sal Gender
1 AA 2000 M
2 BB 1500 M
3 CC 3000 F
```
expected output could be
```
Id Name Sal Gender
1 AA 2000 M
3 CC 3000 F
2 BB 1500 M
```
| swap one female name in-between two male name | CC BY-SA 4.0 | null | 2023-03-03T20:23:55.523 | 2023-03-04T08:25:05.633 | 2023-03-04T05:38:17.807 | 21,267,569 | 21,267,569 | [
"sql",
"oracle"
] |
75,631,572 | 1 | null | null | 0 | 18 | So, I have a series of corresponding image and audio files "0.mp3", "0.png", "1.mp3", "1.png", etc...
I want to have it so the image shows for the duration of the audio file. I also want music to play in the background. The command will also eventually be generated programmatically, so it needs to be able to handle an ... | FFMPeg command to combine images with audio and then add background music | CC BY-SA 4.0 | null | 2023-03-03T20:24:01.440 | 2023-03-03T20:24:01.440 | null | null | 4,917,882 | [
"ffmpeg"
] |
75,631,555 | 1 | null | null | 0 | 21 | I’ve written the below script. Its job is to take a (well-formatted) Excel file and, row by row, create new Contacts in Outlook.
Am running Windows 11 with everything recently updated (this morning, actually).
Within PowerShell (run as Administrator), the script runs without throwing any errors. The data outputted to t... | Excel to new Outlook Contact: correct data but not reading in | CC BY-SA 4.0 | null | 2023-03-03T20:20:46.907 | 2023-03-04T15:31:20.583 | 2023-03-04T11:05:40.703 | 1,603,351 | 15,237,631 | [
"excel",
"powershell",
"outlook",
"office-automation",
"com-automation"
] |
75,631,569 | 1 | null | null | 0 | 26 | I hope someone can point me in the right direction. I want to use google scripts to compare contents of 2 google sheets (one master and one with weekly information). I would like the script to pop-up a dialog box with a dropdown control containing all the sheets in the workbook and using the control the user will iden... | Create dropdown list of all the sheets in a google workbook | CC BY-SA 4.0 | null | 2023-03-03T20:23:54.477 | 2023-03-04T18:37:14.633 | 2023-03-04T18:37:14.633 | 4,258,054 | 4,258,054 | [
"google-apps-script",
"dialog",
"google-sheets-api"
] |
75,631,575 | 2 | null | 75,628,457 | 0 | null | Verify that it's grabbing the proper gameObject. Debug.Log(this.gameObject.name)
```
private void OnMouseDown()
{
// Change the sprite to the "popped" sprite
gameObject.GetComponent<SpriteRenderer>().sprite = poppedSprite;
// Set the flag indicating that the bubble has been popped
isPopped = true;
D... | null | CC BY-SA 4.0 | null | 2023-03-03T20:24:08.070 | 2023-03-03T20:24:08.070 | null | null | 21,328,288 | null |
75,631,571 | 1 | null | null | 0 | 6 | I want to be able to programmatically find out if versioning of blobs is enabled on a storage account. Via the web console I can see this in Data Protection -> Tracking. I cannot find any reference to how to get (or set) this setting using the Python SDK or REST API.
Ideally I want a Python SDK solution, but also happy... | How can I get the "versioning of blobs" setting for a storage account via Azure Python SDK or REST API | CC BY-SA 4.0 | null | 2023-03-03T20:23:56.210 | 2023-03-04T11:10:11.017 | 2023-03-04T11:10:11.017 | 21,328,408 | 21,328,408 | [
"azure-storage-account",
"azure-rest-api",
"azure-python-sdk"
] |
75,631,577 | 2 | null | 75,630,145 | 0 | null | A fix at [https://github.com/fsspec/filesystem_spec/pull/1201](https://github.com/fsspec/filesystem_spec/pull/1201) will enable this as requested. Your URL will be like "dir::protocol://path/to/mount".
| null | CC BY-SA 4.0 | null | 2023-03-03T20:24:25.313 | 2023-03-03T20:24:25.313 | null | null | 3,821,154 | null |
75,631,582 | 2 | null | 15,972,549 | 0 | null | I was facing the same issue. Although I was using @OneToMany instead of @CollectionTable, once I have changed @OneToMany to @ManyToMany the "unwanted" constraint hasn't been generated.
| null | CC BY-SA 4.0 | null | 2023-03-03T20:25:19.137 | 2023-03-03T20:25:19.137 | null | null | 1,187,644 | null |
75,631,579 | 1 | 75,632,183 | null | 0 | 23 | I have a list of numbers (floats) (with the list size typically being greater than 20k) and need to find the pairwise product of each of those. For example if I have 10 numbers, I need an output of 45 numbers in a list with the output being these 45 numbers. A nested for loop in Python is extremely slow. Is there any ... | Pairwise product on a Python List (or numpy array) | CC BY-SA 4.0 | null | 2023-03-03T20:24:30.280 | 2023-03-03T22:45:56.053 | 2023-03-03T20:31:46.590 | 10,604,476 | 10,604,476 | [
"python-3.x",
"optimization",
"vectorization"
] |
75,631,578 | 1 | null | null | 0 | 22 | I have designed a chat page. I have used a long line next to all the chats to style it, but there is a problem.
css style:
```
.inner-chat {
flex-basis: 75%;
position: relative;
overflow-y: auto;
}
.inner-chat::after {
content: '';
position: absolute;
background: #BDBDBD;
width: 1px;
height: 100%;
to... | set flex base height to another elemet | CC BY-SA 4.0 | null | 2023-03-03T20:24:28.323 | 2023-03-04T22:17:28.020 | 2023-03-04T22:17:28.020 | 10,655,742 | 12,812,010 | [
"html",
"css",
"flexbox"
] |
75,631,576 | 1 | null | null | 0 | 4 | So I have imported Vuforia's Magic Leap 2 Sample into Unity and have double-checked the build settings between according to what has been posted on their development page. When I go to test the build in Unity, the targeted camera ends up being my webcam and not the magic leap simulator camera, which is linked to the sc... | Configuring Vuforia's Magic Leap 2 Sample Scene 10.13.3 to work with the Magic Leap Simulator (within Unity) | CC BY-SA 4.0 | null | 2023-03-03T20:24:13.547 | 2023-03-03T20:24:13.547 | null | null | 21,328,347 | [
"vuforia",
"magic-leap"
] |
75,631,565 | 2 | null | 75,618,964 | 0 | null | Today, I had some more time for this problem.
First, let's define our `ToastComponent` like this:
```
import { Component, ElementRef, OnInit } from '@angular/core';
@Component({
selector: 'toast-component',
template: `
<div style="width: 300px; border: 1px solid black; display: flex; align-items: center;justif... | null | CC BY-SA 4.0 | null | 2023-03-03T20:23:35.910 | 2023-03-03T20:24:15.870 | 2023-03-03T20:24:15.870 | 1,958,929 | 1,958,929 | null |
75,631,580 | 1 | null | null | 0 | 7 | I have some asciimath text on my angular page and would like any asciimath, delimited by backticks `` to
i.e.: `sum_(i=1)^n i^3=((n(n+1))/2)^2` in these backticks, should be picked up by the MathJax library and converted into math annotation
[](https://i.stack.imgur.com/O8vfj.png)
I have installed:
```
npm install math... | How can I set up MathJax to work with angular (throughout the entire project, and not just a specific component)? | CC BY-SA 4.0 | null | 2023-03-03T20:24:37.017 | 2023-03-04T06:01:26.157 | 2023-03-04T06:01:26.157 | 4,420,967 | 13,521,559 | [
"angular",
"module",
"mathjax",
"asciimath"
] |
75,631,584 | 2 | null | 75,631,485 | 1 | null | You can do this with a macro that appends an `f` suffix for `float`, as with `#define foo(x) x##f`, and does not for `double`, as with `#define foo(x) x`.
While you can also coerce constants to become `float` values with casts or various induced conversions, this creates a double-rounding process: The literal in source... | null | CC BY-SA 4.0 | null | 2023-03-03T20:25:22.503 | 2023-03-03T20:32:05.720 | 2023-03-03T20:32:05.720 | 298,225 | 298,225 | null |
75,631,573 | 1 | null | null | -1 | 21 | So I am trying to make a space simulation for younger ages and there are 3 separate difficulties based on the user's age.
If the user is aged 7-9, the easy difficulty should be presented to them.
If the user is aged 10-12, the medium difficulty should be presented to them.
If the user is aged 13-15, the hard difficulty... | How do I get an if and elif statement to open a different screen based on the conditions i've set? | CC BY-SA 4.0 | null | 2023-03-03T20:24:04.480 | 2023-03-03T20:24:43.337 | 2023-03-03T20:24:43.337 | 19,720,996 | 19,720,996 | [
"python",
"tkinter"
] |
75,631,585 | 1 | null | null | 0 | 14 | I've created a simple test to fill up a queue with messages mark with timeToLive of 60 seconds. I've added the deadletter stategy processExpired="false" so that the messages are just discarded.. When the queue exceeds persistance store size 40mb, it block as expected.. But, when the the records are discarded it never c... | ActiveMQ kahadb space full | CC BY-SA 4.0 | null | 2023-03-03T20:25:26.250 | 2023-03-03T20:58:36.227 | 2023-03-03T20:58:36.227 | 5,333,970 | 5,333,970 | [
"activemq",
"kahadb"
] |
75,631,593 | 2 | null | 75,631,566 | 0 | null | If you're allowed to change the definition of `person`, why not
```
const person = {
name: 'George',
age: 30,
hobbies: ['art', 'gaming'],
position: undefined as string | undefined,
};
```
It may not be the cleanest but it's simple and it works.
[Playground](https://www.typescriptlang.org/play?#code/MYewdgzgLgB... | null | CC BY-SA 4.0 | null | 2023-03-03T20:26:32.220 | 2023-03-03T20:26:32.220 | null | null | 18,244,921 | null |
75,631,590 | 1 | null | null | 0 | 10 | I'm trying to create a local fontawesome model to be able to import it into my vuejs application, but I'm not succeeding, could someone help me?
`fontawesome.js
```
import { library } from '@fortawesome/fontawesome-svg-core'
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
import { faUserSecret } from '@f... | How to create fontawesome local template in vue js? | CC BY-SA 4.0 | null | 2023-03-03T20:25:47.827 | 2023-03-04T09:39:51.927 | null | null | 20,367,778 | [
"vue.js"
] |
75,631,586 | 2 | null | 75,628,860 | 0 | null | Assuming you want to tidy up things that docker is no longer using you can uses the `prune` action. You can first check what space docker can clean up with the command
```
sudo docker system df
TYPE TOTAL ACTIVE SIZE RECLAIMABLE
Images 14 2 8.751GB 7.387GB (84%)
Containe... | null | CC BY-SA 4.0 | null | 2023-03-03T20:25:26.440 | 2023-03-03T20:25:26.440 | null | null | 1,212,401 | null |
75,631,594 | 1 | null | null | 0 | 69 | See the sample panda data below.
```
ID DT InOut
120 2022-12-22-02:12:123 IN
120 2022-12-23-04:12:456 OUT
120 2022-12-26-08:11:125 IN
120 2022-12-30-02:12:126 OUT
```
First I need to change my datetime variable to only 2 digits for the second part (ex: 2023-03-03 14:11:43).Then I need to ... | Add one second to datetime with condition | CC BY-SA 4.0 | null | 2023-03-03T20:26:53.313 | 2023-03-03T21:48:08.720 | 2023-03-03T20:55:53.317 | 10,327,147 | 10,327,147 | [
"python",
"pandas",
"datetime"
] |
75,631,595 | 2 | null | 75,629,319 | 0 | null | You need a separate symmetric CMK to perform a symmetric operation. You need to create a new KMS CMK to use for this operation which is different than the symmetric key you have already created.
[https://awscli.amazonaws.com/v2/documentation/api/2.1.29/reference/kms/generate-data-key.html#:~:text=You%20cannot%20use%20a... | null | CC BY-SA 4.0 | null | 2023-03-03T20:27:11.253 | 2023-03-03T20:27:44.693 | 2023-03-03T20:27:44.693 | 12,713,117 | 12,713,117 | null |
75,631,596 | 2 | null | 75,630,176 | 1 | null | You are likely using a PyTorch version < 1.10.
Depending on the version of PyTorch you are using this feature might not be available. For version 1.10 and upwards, the `target` tensor can be provided either in dense format (with class indices) or as a probability map (soft labels).
You can compare the documentation pag... | null | CC BY-SA 4.0 | null | 2023-03-03T20:27:25.093 | 2023-03-03T20:27:25.093 | null | null | 6,331,369 | null |
75,631,598 | 2 | null | 75,631,559 | 0 | null | It has nothing to do with PyCharm. AS you can see it says unauthorized error.
Try this:
[https://youtu.be/7cVMs202xag](https://youtu.be/7cVMs202xag)
An execution policy is part of the PowerShell security strategy. Execution policies determine whether you can load configuration files, such as your PowerShell profile, or... | null | CC BY-SA 4.0 | null | 2023-03-03T20:27:29.667 | 2023-03-03T20:27:29.667 | null | null | 16,184,054 | null |
75,631,588 | 1 | 75,632,302 | null | 0 | 26 | once I dragged the usercontrol to form1 designer.
then I tried to change the usercontrol size while it's on form1 designer but then when I drag the usercontrol around the usercontrol size is changing.
here are two screenshots showing the usercontrol size each time I'm dragging it.
the usercontrol is the map.
when I hol... | Why the usercontrol size is changing each time i'm dragging the control over form1 designer? | CC BY-SA 4.0 | null | 2023-03-03T20:25:33.630 | 2023-03-03T22:14:34.007 | null | null | 21,281,950 | [
"c#",
"winforms"
] |
75,631,583 | 1 | null | null | -2 | 30 | I need to compare two XML Files but it is not allowed to use tiers tools or import libraries to do it.
So I can't use XMLUnit or JAXB.
Scanner don't seem useful.
File1 is the opening file and File2 is the modified file.
The goal is :
1°) Check if, in the file2, there is new Keys and so new values or if keys have been ... | How are the means to compare two XML files in JAVA WITHOUT import JARs? | CC BY-SA 4.0 | null | 2023-03-03T20:25:20.983 | 2023-03-03T20:32:49.547 | 2023-03-03T20:32:49.547 | 20,140,051 | 20,140,051 | [
"java"
] |
75,631,597 | 1 | null | null | -1 | 26 | When I click on button (first attempt) string is assign "word" and on second attempt is assign to right value.
`Textview.settext` works.
How to make it work on first time ?
```
import ...
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
... | I cant assign value (String) on first time | CC BY-SA 4.0 | null | 2023-03-03T20:27:26.993 | 2023-03-03T20:34:58.017 | 2023-03-03T20:34:58.017 | 438,154 | 21,328,370 | [
"java",
"android",
"string",
"api",
"android-volley"
] |
75,631,599 | 2 | null | 75,631,425 | 2 | null | If the invoice just needs to have either ProdId of `1` or `2` or both but nothing else then you can use
```
select *,
result1 = price * amount * max(iif(ProdId not in (1,2), 1.01, 1)) over (partition by invoice)
from YourTable;
```
If the invoice needs exactly both ProdId of `1` or `2` to be present a SQL Ser... | null | CC BY-SA 4.0 | null | 2023-03-03T20:27:35.760 | 2023-03-04T11:33:12.863 | 2023-03-04T11:33:12.863 | 73,226 | 73,226 | null |
75,631,603 | 2 | null | 75,631,011 | 0 | null | Try to clear build cache :
```
flutter clean
```
an rebuild again
| null | CC BY-SA 4.0 | null | 2023-03-03T20:28:11.923 | 2023-03-03T20:28:11.923 | null | null | 13,222,080 | null |