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
-1
votes
2 answers

What is the most pythonic way to generate a string from a dictionary full of metadata?

Rather than create for-loops/nested for-loops, is there a more Pythonic way to write a fixed-width string using a meta-data dictionary? My input is as follows: { 't_order': 11112014, 't_date': 20150101, 't_external': 'from sample', 't_mode':…
Carlos
  • 1,897
  • 3
  • 19
  • 37
-1
votes
1 answer

twitter bootstrap responsive website with fixed length and width

I have noticed several people providing good feedback on a fixed width for twitter bootstrap. My problem is I need fixed width and LENGTH on my layout and it must be viewable on multiple platforms (Smarphone, ipad and multiple pc screen sizes). We…
-1
votes
1 answer

Read a table according to a certain number of characters

I want to extract the name of comets from my table held in a text file. However some comets are 1-worded, others are 2-worded, and some are 3-worded. My table looks like this: 9P/Tempel 1 1.525 0.514 10.5 5.3 …
aloha
  • 4,554
  • 6
  • 32
  • 40
-1
votes
1 answer

Import flat-file fixed width - suggestions

I am reading a flat file (fixed width fields) so that I can import it into SQLServer. This is a new project in my company. I have not yet worked on parsing huge files in the most time-efficient and quick way. Scouring on the Internet, I have found a…
DataRiver
  • 188
  • 1
  • 8
  • 21
-1
votes
2 answers

How to split lines with regex C#

Does anyone know how to split this file with regex 1 TESTAAA SERNUM A DESCRIPTION 2 TESTBBB ANOTHR ANOTHER DESCRIPTION 3 TESTXXX BLAHBL The lenght of each column {id} {firsttext} {serialhere} {description} 4 22 6 …
Maximus Decimus
  • 4,901
  • 22
  • 67
  • 95
-1
votes
1 answer

Full-width divs behind main content / wrapper.(But with a repeating background)

First question posed, so apologies if it is not worded correctly or vague. My question is this: Can a fullwidth div be put in the background of a wrapper? Here is what I'm trying to achieve: (Not enough reputation to upload image?) Basically, I…
MikeMc
  • 29
  • 1
  • 7
-1
votes
1 answer

Different page width on different pages

After installing bootstrap and playing around with it, I somehow set different page width for different pages, which I just hate. I guess I have to add something to my .css file to fix a page width, but everything I found on stackoverflow and google…
Illia Strikhar
  • 53
  • 1
  • 10
-2
votes
1 answer

Pyspark to Spark-scala conversion

Fellow developers, I am working on creating dynamic fixed length file read function - where schema will be coming from JSON file: my code language is : scala as most of existing code is already written in scala. while browsing, I found exact code I…
-2
votes
1 answer

Splitting a data file in python or pandas

Have a data file consisting of a string (no tabs and no spaces and no column names). First two columns are equivalent to one piece of data, third column is another and 4 thru 7 are something else, etc. How can I get these strings into a dataframe…
TIll
  • 15
-3
votes
1 answer

What Are The Best Width Ranges for Media Queries in laptops and cell phones

I was wondering what the right parameters of width ranges to insert in my code would be for larger devices like tablets and laptops and then smaller deices such as cellphones in a responsive design?
Garmi
  • 29
  • 1
-4
votes
1 answer

Fixed-width clustering algorithm

Fixed-width clustering algorithm: Fixed width clustering creates a set of clusters of fixed radius (width) w. Here the width w is a parameter to be specified by the user. First, a data vector is taken and used as the centroid (center) of the first…
-8
votes
2 answers

C# Convert currency to string, remove decimal point but keep decimals, prepend 0s to have fixed width

How do I convert money amount like this 38.50 , to fixed width like this 000003850 I dont want to add commas and decimal places as some suggested answers here are explaining how to do. Neither do I want to remove decimals, I only want to remove…
cd491415
  • 823
  • 2
  • 14
  • 33
1 2 3
30
31