13,123 questions
Score of 0
0 answers
59 views
h264 chroma_format_idc field in sps
I am confused that if chroma_format_idc in sps field is 0 (Zero), Do I process Chroma format like 4:2:0 ?
ISO_IEC 14996-10. Table 6-1 – SubWidthC, and SubHeightC values derived from chroma_format_idc ...
Score of 6
1 answer
275 views
string literals and constexpr string msg = format(...) with C++23
I want to build string literals at compile time using format(...);
There are contradicting messages on how to do it and I can not do it.
For an application I usualy need a few string literals with ...
Score of 4
3 answers
192 views
force number of digits in awk output (no printf)
the problem is that awk transforms any roundable float into integers: 1.000 -> 1
for example:
cat <<EOF | awk -v CONVFMT=%.06f '{$1=$1*2; print}'
0.000 some stuff
1.000 other different ...
Score of 1
1 answer
69 views
Omitting character during the last iteration when iterating over a list of sublists with format
It is possible to omit a character for the last iteration with format by prepending it with the ~^ format directive:
(format nil "~{~A~^,~}" '(1 2 3))
;; -> "1,2,3"
It is also ...
Score of 0
0 answers
17 views
Does Apache IoTDB's FORMAT function require using %1\$tY style format specifiers?
I am using Apache IoTDB 2.0.6 (table model) and encountering inconsistencies with format specifiers when using the FORMAT function to convert a TIMESTAMP column to a string.
Assume a table test with a ...
Score of 0
1 answer
78 views
Insert a newline after a function block
VSCode's formatter doesn't do anything to the following snippet:
function funciton1() {
...
} function function2() {
...
}
How do I get it to insert a newline after the function block?
...
Score of 0
0 answers
56 views
Same grid lines for two different y-axes with vega lite deneb in PowerBI
I am trying to make the right y-axis use the same grid lines as the left y-axis, but I can't find a way to achieve this.
I can't use a fixed domain because the data range changes depending on the ...
Score of 5
1 answer
165 views
How to format numerics in Fortran E notation without relying on string manipulation
I have a need to print numerics from R in the format that mimics Fortran's E4 format code letter. That is, the numeric 3.141596 is formatted as 0.3141E+01 where the first significant digit is always ...
Score of 0
1 answer
832 views
In cursor editor Prettier Code Formatter stopped working for jsx file
In cursor editor Prettier Code Formatter suddenly stopped working for jsx file.
When i set setting.json to this
it doesn't format files using prettier
and gives the warning below
FormattingExtension '...
Score of 5
3 answers
784 views
C++ efficient method of formatting std::cout
Say we have the following code:
#include <iostream>
#include <print>
#include <stdio.h>
int main() {
std::cout << "Calculator App" << std::endl;
double ...
Score of 2
1 answer
120 views
Cannot use Format on reflected object's property ToString
I can format an Int32, I1, as currency - it displays:
I1 = $31,742.
But I cannot format an Int32 property of a class whose PropertyInfo and whose value and whose format is determined by reflection. ...
Score of 1
1 answer
99 views
Why does dart format code with three tabs?
I've got the dart formatter running on my code, and for some reason it insists on the following formatting:
String get display => switch (type) {
ListType.star => 'Starred',
...
Score of 1
2 answers
164 views
Format Currency for given culture and currency ISO code
I want to format a number with a given culture and a given currency ISO Code. I was not aware that besides the position and number format also the currency symbol changes based on culture.
That's what ...
Score of 0
2 answers
87 views
Highlighting excel cells based on matching other cells that meet a separate criteria
I have a spreadsheet that identifies highlights and gives text when a set of conditions are met.
Basic data sample is (Sorry, unsure how to make it look like it does in excel with formatting and ...
Score of 0
2 answers
140 views
Struggling to understand how to print numerous columns with similar data
Basically, I need to print out random temperatures for each day of the year (1 through 365). It needs to be formatted like so:
How would I do this? I'm not exactly sure what this kind of data "...