Questions tagged [fixed-width]

Fixed layouts are layouts that start with a specific size, determined by the Web designer. They remain that width, regardless of the size of the browser window viewing the page. Fixed width layouts allow a designer more direct control over how the page will look in most situations. They are often preferred by designers with a print background, as they allow the designer to make minute adjustments to the layout and have them remain consistent across browsers and computers.

source: http://webdesign.about.com/od/layout/g/bldeffixedlyot.htm

Fixed Width Text File Definition: Above all, a fixed width text file is a file that has a specific format which allows for the saving of textual information/data in an organized fashion. Fixed width text files are special cases of text files where the format is specified by column widths, pad character and left/right alignment. Column widths are in units of characters. So if you have data in a text file where the first column always has exactly 10 characters, and the second column has exactly 5, the third has exactly 12 (and so on), then you have a fixed width text file.

Each row (paragraph) contains one record of information; each record can contain multiple pieces of data (fields), each data field (column) has a precise number of characters. The data is padded with spaces (or any character you specify) if it does not completely use all the characters allotted to it. Further, each piece of data can be left or right justified, meaning the padding of characters can occur on either side.

source: http://www.softinterface.com/Convert-XLS%5CFeatures%5CFixed-Width-Text-File-Definition.htm

462 questions
4
votes
0 answers

Pandas does not separate first two columns when reading in fixed-width file

I'm trying to read a fixed-width file into Python using Pandas but the first two columns are returned as one. Here is a sample of the file I am trying to read in: Some header information Date day value 01/01/2015 …
Ellis Valentiner
  • 2,136
  • 3
  • 25
  • 36
4
votes
0 answers

Problems with big fixed-width flat files

I'm trying to read a fixed-width flat file with JRecordBind. Each line can be a subrecord of the previous one and the first line and the last one are header and footer of root record. Example: xxxxxxxxxxxxx -> Record1 header with list of…
mordis84
  • 41
  • 3
4
votes
2 answers

Make fixed width flexbox items wrap correctly

I can't manage to wrap flex items correctly if they're fixed width in Google Chrome. However, when using percentage-based widths, everything wraps correctly. How can I make this work with fixed width items? See…
Adriaan Meuris
  • 351
  • 2
  • 12
4
votes
1 answer

How to set a fixed width on buttons within a jQuery buttonset?

I have a button set, and would like to set the width of each button so they can be the same size (i.e. if I have 4 buttons of 25% each of the element) Basically the site has a table on the left, and within that table I have 4 options. The way it is…
ruinernix
  • 690
  • 2
  • 8
  • 21
4
votes
2 answers

Why do fixed-width integers print out chars instead of ints?

Given the following code. #include #include #include int main() { int8_t x = 5; std::cout << x << '\n'; int y = 5; std::cout << y; std::cin.clear(); …
Wandering Fool
  • 2,170
  • 3
  • 18
  • 48
4
votes
0 answers

Save fixed width text file from pandas dataframe

I have some data stored in fixed width text file format that I can read into pandas - however, I need to be able to save it back the same way. I'm almost able to save it using numpy.savetxt() but I can't get the format string to left pad zeros…
pbreach
  • 16,049
  • 27
  • 82
  • 120
4
votes
2 answers

Susy 2: Fixed width sidebar with fluid main content area

Using Susy 2 (release candidate), I'm trying to figure out how to create a simple fluid layout with a fixed width sidebar - either left position or right - I'm happy using the first and last keywords. Can anyone give me any pointers on how to do…
user1247989
4
votes
1 answer

Generating report as txt file - How to set the exact positions and sizes for texts in Column Header and Detail bands

We have a requirement where text reports are to be generated using JasperReports. The precision has to be accurate, sample format is as follows Header user name has to start at column 0. Header last accessed must start at column 23. Header is…
Suraj
  • 132
  • 1
  • 1
  • 9
4
votes
1 answer

Python float formatting: fixed total number of digits

I am saving some data with numpy.savetxt(path,array,fmt="%.2f %.2f %.2f %.2f %.2f") and I want the text file to be formated nicely. I would like to limit the floats to a certain amount of digits, like this: 11.2345 -> 11.2 1.2345 -> 1.23 Currently…
Sasha
  • 1,338
  • 2
  • 13
  • 22
4
votes
2 answers

Portable C++ 03 Exact Width Types

Background Unfortunately the current C++ standard lacks C99's exact-width types defined in the stdint header. The next best thing I could find (in terms of portability) was Boost's cstdint.hpp implementation from the Boost.Integer…
Senelt
4
votes
3 answers

Import fixed-width text file into sqlite

What is a good way to import fixed-width text files into sqlite tables, preferably without using peripheral software? E.g. specifying the width of each field Field 1: 10 characters starting with the second character Field 2: 5 characters starting…
nacnudus
  • 6,328
  • 5
  • 33
  • 47
3
votes
1 answer

Conditional record type with FileHelpers

I'm trying to parse a file using the Filehelpers library. My file looks like this: 000001,"A",123,456 000002,"B","ABC","XYZ" 000003,"B","DEF","XYZ" 000004,"B","HIJ","XYZ" My file contains rows that have different column definitions, where the…
Dav Evans
  • 4,031
  • 7
  • 41
  • 60
3
votes
1 answer

How to use writeStream from a pyspark streaming dataframe to chop the values into different columns?

I am trying to ingest some files and each of them is being read as a single column string (which is expected since it is a fixed-width file) and I have to split that single value into different columns. This means that I must access the dataframe…
3
votes
2 answers

Is there a way to prevent a background-image from being resized when zooming the page?

The background-image is just a simple pattern that looks best at 100%. Is there a way to prevent such a background-image from being resized when zooming the page?
laRana
  • 31
  • 1
  • 2