Skip to main content
Filter by
Sorted by
Tagged with
2 votes
1 answer
107 views

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. ...
BandannaMan's user avatar
0 votes
1 answer
66 views

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', ...
Chris B.'s user avatar
  • 91.2k
1 vote
2 answers
75 views

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 ...
Matthias's user avatar
  • 1,458
0 votes
2 answers
80 views

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 ...
Dave Ives's user avatar
0 votes
2 answers
130 views

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 "...
scs's user avatar
  • 19
0 votes
1 answer
119 views

Using input payload of { "Date": "2025-09-09T18:03:06.830" } I'm trying to get an output of "2025-09-09T18:03:06.830Z" I've tried this DataWeave %dw 2.0 output ...
ndtorre's user avatar
  • 31
0 votes
0 answers
68 views

Whenever, and only whenever, I have multiple field declarators in a list, I want this style: private static final String CONSTANT_STRING_1 = "foobar", CONSTANT_STRING_2 = "...
Judge Mental's user avatar
  • 5,219
2 votes
1 answer
42 views

I'd like to to highlight a part of a literal/listing/source block "manually" in AsciiDoctor. Is there any way to do so? E.g. I'd like to add a class or just a single "strong/b" to ...
FERcsI's user avatar
  • 560
1 vote
2 answers
127 views

#include <format> #include <print> #include <array> struct Point { int x = 0; int y = 0; int z = 0; }; template <> struct std::formatter<Point> : std::...
Daniel Aviv's user avatar
-1 votes
2 answers
102 views

I have struct/class that formats numbers. I want to tune its formatting parameters how i like. And this means I "need"(could be not, if there's another much more clever way of doing it?): &...
kusok_kvarka's user avatar
1 vote
1 answer
63 views

I have the below script that works fine but I am wanting the four numbers and post code in the body (an example is 3260 TA4 33Q) to be bold and red but the rest is fine as it is. I have read a lot of ...
Vicki Allan's user avatar
3 votes
2 answers
92 views

In C, one can write: printf("%.3s", "foobar"); To get foo printed as a result (that is, print the initial part of a string). In OCaml, Printf.printf "%.3s" "foobar&...
anol's user avatar
  • 9,400
0 votes
1 answer
75 views

CellStyle textStyle = workbook.createCellStyle(); textStyle.setDataFormat(format.getFormat("@")); Set<Integer> forceTextIndexes = new HashSet<>(); if ("LE_27"....
user28803304's user avatar
0 votes
0 answers
34 views

I just recently reinstalled VS Code on my Mac. Before when I added changes from Explorer, the lines in the gutter would disappear. Now, after staging, the lines are still there. The only way to ...
Barb Leung's user avatar
0 votes
1 answer
115 views

not sure how to categorize the following issue, I thought about relating it to BASH or Python first, but actually it's rather language-independent imo... Anyway, I was searching but couldn't find any ...
SevenChalices's user avatar
-4 votes
1 answer
98 views

I've got a job which I am not allowed to use SQL/BigQuery to analyze data, because of the compliance/data security, so I must download data from a dashboard. In the dashboard I just can download in a ...
julius.86's user avatar
0 votes
0 answers
80 views

After upgrading dart to 2.7.0+ (2.8.0 has the same problem), a nested ternary operator is being dart formatted the following way: final initialLocation = isAuthenticated ? AppRoute.root :...
Miro's user avatar
  • 449
0 votes
0 answers
36 views

So I'm doing some preprocessor #ifdef statemnts in a header file to manage configurations which I am trying to tab indent to make a little more clear logically. The issue is whenever I type the #, it ...
Leinad den's user avatar
2 votes
1 answer
185 views

I have a table, which I have read from a database. I want to display the table in a jupyter notebook, showing the elements of totals and subtotals indented. I want the end result to look like this ...
mortysporty's user avatar
  • 2,911
2 votes
1 answer
265 views

I am trying to use dotnet format cli command to enforce some rules on our code bases. I would like to remove unused using statements and also enforce the use of "is null" instead of "== ...
Yarles Davis's user avatar
0 votes
1 answer
114 views

Excel automatically treats cells with number-alike content as Numeric cells, and some cells with function-alike content as Function cells, etc. I want what I write into the cells to be treated as ...
Maltose's user avatar
  • 11
1 vote
1 answer
123 views

following code create a buggy excel file (bug when opening) from openpyxl.cell.text import InlineFont from openpyxl.cell.rich_text import TextBlock, CellRichText from openpyxl.styles.colors import ...
PatriceC's user avatar
1 vote
1 answer
34 views

I'm trying to implement a -WhatIf flag in a RoboCopy script (swap user for your user profile): [CmdletBinding(SupportsShouldProcess)] param ( $Purge = $false ) $RCCommand = "Robocopy C:\...
gargoylebident's user avatar
0 votes
0 answers
42 views

Environment I have a mkdocs project to write my documentation using markdown. I'm using CLion to edit and write the markdown files (since CLion is also my main development tool and I wanted to avoid ...
skrat's user avatar
  • 748
0 votes
3 answers
147 views

In order to use C++20's format capabilities with custom types, we have to provide template specializations of std::formatter for every type we want to format. The nice thing about this approach is ...
Raven's user avatar
  • 3,658
1 vote
1 answer
120 views

My VSCode suddenly insert a space after an if statements. I want to type it like this if(something == null) { } But it auto formatted to this if (something == null) { } How do I disable the auto ...
Jeremy Edward's user avatar
1 vote
2 answers
57 views

my userform to sign out equipment is automatically changing the date to US format (e.g. mm/dd/yyyy), even though it is being completed using UK format date (i.e. dd/mm/yyyy). Is there something I ...
Tom Grew's user avatar
2 votes
1 answer
376 views

I am attempting to read in CSV files from an external stage without having to manually specify the field names. Snowflake's Template function along with Infer Schema does the job, however, the result ...
Dev_Reka's user avatar
-3 votes
1 answer
82 views

I have a column filled with values like: [0,55553656475856 ; -8,34567323546546] I would like to display them as [0,56 ; -8,34 ] so both numbers displaying only 2 decimal positions. Is there a ...
Petr Osipov's user avatar
0 votes
2 answers
108 views

I have implemented std::fmt::Display for my struct and I have followed the example from the Display's documentation almost verbatim. However, when I try to pad the string representation, it does not ...
sampathsris's user avatar
  • 22.4k
1 vote
1 answer
54 views

Some cmdlets like Get-AzContext return complex objects that can be used down pipeline or stored within variables, but also display console output that is not passed along. Further this output is ...
Matthew McDonald's user avatar
2 votes
3 answers
96 views

I need to fill rows from A:D if Column A has text. I tried a lot of codes. I ended up recording macro. It fills only cells in Column A. How to replace "Selections" to a Range? Columns("...
evmeshuris's user avatar
3 votes
1 answer
71 views

I'm building a Flutter widget that displays song lyrics with chords placed above the words (like on Ultimate Guitar) with a monospace font. I'm trying to handle automatic line-wrapping based on screen ...
Phoenyx's user avatar
  • 31
-1 votes
0 answers
47 views

so i have been programming incorrectly for many many many years by now and cannot change my habits. the common etiquette for typing a function in c# looks like this where you put both curly braces ...
LeminWedj's user avatar
0 votes
1 answer
104 views

Trying to script new calendar events for use with Raycast (which is limited in that it can't add 0 duration or all day events, can't add alarms.) The following code results in error "Calendar ...
spinhead's user avatar
0 votes
1 answer
100 views

I am currently using data from Jikan API. The datetime data looks like this: "broadcast": { "day": "Saturdays", "time": "01:53", ...
Ye Min Hein's user avatar
0 votes
0 answers
45 views

I have a Pivot chart as shown below. It has Scenario_Model and Gx.Region under x-Axis (Categories). I want to add a clear visible distinctive line to differentiate the different scenarios. I have done ...
hbstha123's user avatar
  • 1,820
0 votes
0 answers
67 views

I'm currently developing a macOS application using Avalonia. This application displays information in the UI (specifically in a TextBlock with ViewModel), and at the same time, it writes the same ...
Su Tony's user avatar
  • 11
-1 votes
1 answer
48 views

Both ChatGPT & Copilot have failed me. I am seeking to add padding to a time that gives me two digits for whole seconds and three digits for fractional seconds. So, given $time which is produced ...
Gordon's user avatar
  • 7,027
0 votes
0 answers
38 views

My company would like to enforce coding rules to C++ code submitted to our continuous integration pipeline. I can create a .editorconfig file, but how to ckeck it during the CI (Jenkins) ? Visual ...
Oodini's user avatar
  • 1,463
-1 votes
2 answers
297 views

I want to convert a series of huge PNGs into AVIF. ffmpeg -i 'img (%d).png' -c:v libsvtav1 -s 1280x720 .\lidl\img%d.avif FFmpeg always outputs an animated AVIF. How to force it to output AVIF image ...
EntityinArray's user avatar
1 vote
1 answer
116 views

single expression methods public void Method() { Expression; } need to format in Method() => Expression;
vjobs's user avatar
  • 13
0 votes
0 answers
27 views

I have a basic table in Excel for Mac that is not honoring the size of the text within a cell when I autofit columns. It has something to do with the Theme, but I cannot find where to update the ...
Whitney Hamilton's user avatar
0 votes
1 answer
35 views

I want the output to be like image/png. type then followed by the extension. The filename doesn't include any information. I tried basics such as mediainfo and ffprobe but one showed missing libraries ...
Ur Niiicb's user avatar
0 votes
1 answer
67 views

I've been trying to make the UI of my profile/website look cleaner. Previously, I asked for some help on how to make my drop-down menus have a smoother animation. Now, it looks great on the web ...
Sarah Z's user avatar
  • 23
0 votes
1 answer
182 views

I am trying to reduce the line spacing for a text label that is inside a gallery. I don't want the label to show a scroll bar to navigate through each line of text, originally I have this: Instead ...
AlSub's user avatar
  • 1,055
0 votes
1 answer
149 views

I have this class called BaseMessage that contains string field Message: public class BaseMessage { public string Message; ... } And I have another class ProcessMessage that derives from ...
bleat interteiment's user avatar
0 votes
0 answers
125 views

I can easily do this for floats using an f-string like this: x = float(123456789.123456) print(f"{x:_f}") prints 123_456_789.123456 exactly as expected. But if try the same technique for a ...
HaroldFinch's user avatar
0 votes
0 answers
49 views

Using CodePen "POST to Prefill Editor". Everything works fine except for the fact the HTML is not formatted. Difficult to send formatting in a POST so wondered if there's a parameter that I ...
rkever's user avatar
  • 884
0 votes
0 answers
71 views

I have a SharePoint list [Project List] with few columns like Title,Project Start Date and Project end date.In another SharePoint list [Project Task list] and I have to format the list view to a Gantt ...
kambala chandrika's user avatar

1
2 3 4 5
264