Top "Formatting" questions

The process of transforming text or data for presentation.

Convert to binary and keep leading zeros in Python

I'm trying to convert an integer to binary using the bin() function in Python. However, it always removes the leading …

python binary formatting bitwise-operators
Pandas: Setting no. of max rows

I have a problem viewing the following DataFrame: n = 100 foo = DataFrame(index=range(n)) foo['floats'] = np.random.randn(n) …

python formatting pandas ipython-notebook
How to output git log with the first line only?

I am trying to customize the format for git log. I want all commits to be shown in one line. …

git version-control formatting logging commit-message
How can I format a nullable DateTime with ToString()?

How can I convert the nullable DateTime dt2 to a formatted string? DateTime dt = DateTime.Now; Console.WriteLine(dt.ToString("…

c# datetime formatting nullable
Converting camel case to underscore case in ruby

Is there any ready function which converts camel case Strings into underscore separated string? I want something like this: "CamelCaseString".…

ruby-on-rails ruby string formatting case-conversion
What are the valid Style Format Strings for a Reporting Services [SSRS] Expression?

I am trying to figure out the style string for the Format(Expression as Object, Style as String) function in …

reporting-services formatting
Ordering issue with date values when creating pivot tables

I have a 2-column spreadsheet which contains Dates and Sales figures as follows: When doing Right click -> Format …

excel date formatting pivot-table
Newline in JLabel

How can I display a newline in JLabel? For example, if I wanted: Hello World! blahblahblah This is what I …

java user-interface swing formatting jlabel
Formatting code snippets for blogging on Blogger

My blog is hosted on Blogger and I frequently post code snippets in C / C# / Java / XML etc. but I …

formatting blogs blogger
MVC DateTime binding with incorrect date format

Asp.net-MVC now allows for implicit binding of DateTime objects. I have an action along the lines of public ActionResult …

asp.net-mvc datetime localization formatting model-binders