120 questions
2
votes
1
answer
503
views
Assembly Program for Pascal's Triangle Prints Garbled Output Beyond Row 4
I'm developing an Assembly program using the Irvine32 library to print Pascal's Triangle based on user input (ranging from 1 to 13 rows). While the program correctly displays the first few rows, ...
0
votes
1
answer
128
views
How can I both export execution plan XML and get column names in tables?
I need to get both the full text of an actual execution plan and my full table of results with column names from sqlcmd. My first requirement forces to me pass in -y 0 as documented here. However, ...
0
votes
0
answers
32
views
Output Formatting Issue in Python Code for Employee Hierarchy
I'm encountering an issue with the output formatting in my Python code related to displaying the hierarchy of employees in a company. Despite implementing the logic correctly, the output is displaying ...
-1
votes
1
answer
164
views
NewtonsoftJsonOutputFormatter Customized but it wont work
I have a custom output formatter like below:
public class WrappedJsonOutputFormatter : NewtonsoftJsonOutputFormatter
{
public ApiVersion Version { get; set; }
public ...
1
vote
1
answer
405
views
Can I redefine output formatter for one controller method in Net Core 6?
All my method in Backend API working fine and return correct JSON by the same way
Return OK(obj)
Return Unauthorized()
Return StatusCode(StatusCodes.Status500InternalServerError, obj)
But in one ...
0
votes
1
answer
58
views
How can I change the code below to produce horizontal annotations in Stanford NLP?
When I use the code java -cp "*" edu.stanford.nlp.pipeline.StanfordCoreNLP -annotators tokenize,ssplit,pos,lemma -file 1.txt -outputFormat conll -output.columns lemma to annotate this ...
0
votes
1
answer
305
views
kubectl on on Powershell gives a string representation of a custom object created from JSON
I ran into this weird issue and wonder if how to resolve it.
On my Windows machine running Powershell 5.1.19041.1682 (major.minor.build.revision), this command below gives me a proper JSON.
PS C:\...
0
votes
0
answers
538
views
Formatting MySQL output in online IDE
Test platform Used - HackerRank | MySQL/MSSQL
Recently attempted an code assessment for a job post involving SQL questions. I was able to get the correct output for the problem statement but the ...
0
votes
2
answers
1k
views
I'm trying to make a user enter 10 names and make them into a list and remove the even words in the said list
name1 = str (input("Please Enter a Name:"))
lista = []
lista.append(name1)
if name1 % 2 == 0:
lista.remove(name1)
This is the part where my code messes up it says " TypeError: not ...
1
vote
1
answer
3k
views
Specify comma as decimal separator in all outputs (SAS 9.4)
My data has '.' as decimal separator, but that's not the problem for me.
I want all outputs in SAS to use comma as decimal separator, and use dot as 3-digit separator, but I don't find a global ...
1
vote
1
answer
768
views
Add integer to a float and get the output as float in r [duplicate]
x <- 1626307200
y = 0.034
x+y
I want to add these two numbers in r and save it as a float (1626307200.034).
Both numbers are in numeric format.
Tried several ways but didn't work
1
vote
1
answer
719
views
Convert dataframe display float format to human readable for output display purpose only
I wish to display the dataframe column values in human readable format like 10, 100, 1K, 1M, 1B, etc.
So far, I could convert the scientific values (say) 1.111111e1 to numeric float format using ...
1
vote
1
answer
687
views
Is There a Way to Cause Powershell to Use a Particular Format for a Function's Output?
I wish to suggest (perhaps enforce, but I am not firm on the semantics yet) a particular format for the output of a PowerShell function.
about_Format.ps1xml (versioned for PowerShell 7.1) says this: '...
2
votes
2
answers
181
views
python split problems I need the data output to look different
s = "ez , dad , tada"
print(s.split(" , "))
prints the following:
['ez', 'dad', 'tada']
The problems is, I need the output to be with double quotes, not with single quotes, like ...
0
votes
1
answer
245
views
python Tabulate library: TypeError: zip_longest argument #1 must support iteration
I have this dictionary: {'id': 1, 'inner': {'test1': 1, 'test2': 2}} which I want to tabulate, but I get the following exception:
>>> from tabulate import tabulate
>>> d = {'id': 1, ...