For some reason I need to print a big array of data (2D) retrieved from the DB.  There is so many column that the array go over the screen width.  So I wonder if there is any tricks to show this kind of big HTML array in a good way.  Thanks for you help and advices!
122554
I have a Twitter Bootstrap based table with responsive CSS. Everything looks good but, when I try to put more columns than the size of the table supports, I have a line breaking. I tried to change font size. But I think it would be strange or confusing for the user if I have different font sizes in each table. So I am in a dead end. Some restrictions  Maximum width: The table must not exceed 940 pixels. Single Table: I can't divide the information in multiple tables.  This is what I have:  Is there a better way to display tabular data considering the restrictions?
74148
Does anyone know of a program, a utility, or some programmatic library, preferably for Linux, that takes an unformatted SQL string and pretty prints it?  For example I would like the following  select * from users where name = 'Paul'   be changed to something like this  select *  from users where    name = 'Paul'   The exact formatting is not important. I just need something to take a large SQL string and break it up into something more readable.
75863
I've got a question about dealing  with huge PageObject. In the website that I'm currently testing there is a form with circa 50 inputs/dropdowns/selects.   In the current state my class got about 900 lines. It will be hard to debug, and in my opinion it's not so readable.   Is it consistent with the assumption of Page object model to create some subclasses and separate some WebElements and methods that are used by those elements? I'm using PageFactory so for declare all of the elements(I wrote circa 400 lines). It's so many.
38313
I have a series of tables that are going to be very (very!) wide, but with only 3 rows. Is there any way I can get the tables to wrap within my margins, without having to break the rows within the .tex file itself?
62694
When writing a long post, if you want to check the output as you go along, you have to keep scrolling down and then back up to see the preview of the output.  Which gets annoying after a post gets long enough.  I imagine on Math or other sites where there is a lot of rendered output this is an even bigger annoyance.  Is it possible to give the preview box a standard size, which could be elongated at the bottom, and able to be scrolled, just like the box I'm typing in right now?  That way, I could position my window so that the editing box and the preview box are both in full view at the position that I am currently working on.
29737
I'm writing an application which reads large arrays of floats and performs some simple operations with them. I'm using floats, because I thought it'd be faster than doubles, but after doing some research I've found that there's some confusion about this topic. Can anyone elaborate on this?
81643
What is the purpose of the LongLength property for arrays in .Net.  Using a standard integer for length, you could accommodate up to 2 billion indices.  Are there really people using .Net to maintain a single array with more the 2 billion elements.  Even if each element was a single byte, that would still be 2 GB of data.   Is it feasible to use such a large array in .Net?
123088
I am writing a SQL query creator using some parameters. In Java, it's very easy to detect the last element of an array from inside the for loop by just checking the current array position with the array length.  for(int i=0; i&lt; arr.length;i++){      boolean isLastElem = i== (arr.length -1) ? true : false;         }   In PHP they have non-integer indexes to access arrays. So you must iterate over an array using a foreach loop. This becomes problematic when you need to take some decision (in my case to append or/and parameter while building query).   I am sure there must be some standard way of doing this.   How do you solve this in PHP?
24392
I have a HTML report, which needs to be printed landscape because of the many columns. It there a way to do this, without the user having to change the document settings?  And what are the options amongst browsers.
78286
I got a loop from internet (I forgot the site) for two column post view. It has a nice CSS for it too. But skipping that for the question now.  &lt;?php $counter = 1; ?&gt;                  &lt;?php query_posts( 'cat=3&amp;showposts=6' ); //Find whether the catID is 3 ?&gt;             &lt;?php while ( have_posts() ) : the_post() ?&gt;                   &lt;?php /* Two Column Support get class */ ?&gt;              &lt;?php $class = ( $counter % 2  ? ' one' : '' ) ?&gt;                  &lt;?php /* Two Column output open the div class */ ?&gt;              &lt;div class="column&lt;?php echo $class;// echo $first; ?&gt;"&gt;              &lt;?php news_format(); ?&gt;             &lt;/div&gt; &lt;!-- End Two Column Support close div class --&gt; &lt;?php $counter++; //Update counter ?&gt;   It printed my posts into 2 columns like:  ========= | 1 | 2 | --------- | 3 | 4 | --------- | 5 | 6 | =========  It's fine. But I want to print it like this:  ========= |   1   | --------- | 2 | 3 | --------- | 4 | 5 | --------- | 6 | 7 | =========  What the modification I need to do? I can't pass any custom limit into the WordPress' custom loop &lt;?php while ( have_posts() ) : the_post() ?&gt;. It's for a custom theme. I did it, but the problem is, it's showing like:  ========= |   1   | --------- | 1 | 2 | --------- | 3 | 4 | --------- | 5 | 6 | =========   is my whole bunch of code.
17958
I'd like to use JavaScript to calculate the width of a string. Is this possible without having to use a monospace typeface?  If it's not built-in, my only idea is to create a table of widths for each character, but this is pretty unreasonable especially supporting  and different type sizes (and all browsers for that matter).
103113
Friends, I'm trying to generate a table in which I have all columns equally spaced (same width). In my case, the width for all columns would be the width of the widest column of the table:  \documentclass{article}  \begin{document}  \begin{tabular}{ll} a &amp; b \\ c &amp; Mary had a little lamb \end{tabular}  \end{document}   Any hints? :)
29070
I have a similar problem to what is mentioned in . But to make things a little more difficult, the table has approximately 1000 rows and 64 columns. I thought of splitting up the table but the users insist on viewing all the columns at once. Hence I have come up with one option where the first two to three columns with name, ID are set to a freeze state (like in excel) and rest of the columns scroll under these columns; i.e. the table gets a horizontal scroll and to solve the row issue i have given a pagination. I have recommended that the table will be displayed only if there are 100 rows, if there are more than 100 rows the user will get an export to excel/import from excel option.  Is there a better way to handle this?
37484
I am trying to print a large quantity (several megabytes) of UTF-8 encoded text which consists of Chinese and Latin characters (and maybe a sprinkling of others). I would like to print it in several columns per page, in a very small, condensed font, preferably with control over line spacing. I'd quite like inter-column lines, but I can live without them. The aim is to print to PDF for transfer, as well as to paper.  I have tried enscript and a2ps, but neither of these support Unicode.  I have also tried paps, but this produces bitmapped outputs which cannot be PDF'd effectively, and also look terrible.  Is there a modern way to print UTF-8 text like this without resorting to something like constructing it manually in Python?
77160
I want to have my tables fill the entire width of the page (i.e., \textwidth). So far, the only thing I've managed to come up with is:  \renewcommand{\tabcolsep}{4.4pt}   By manually trying different values, I can eventually get the table to spread out and fill the space. However, this is tedious as I have a lot of tables.  I tried the tabularx package:  \begin{tabularx}{\columnwidth}{ r r r r r r r } \toprule &amp; $z_{6}$ &amp; $z_{8}$ &amp; $z_{9}$ &amp; $z_{11}$ &amp; $z_{13}$ &amp; $z_{14}$ \\ \midrule fileA &amp; 0.00 &amp; 0.00 &amp; 0.00 &amp; 0.08 &amp; 0.79 &amp; 0.08  \\ fileB &amp; 0.01 &amp; 0.00 &amp; 0.13 &amp; 0.00 &amp; 0.84 &amp; 0.00  \\ fileC &amp; 0.00 &amp; 0.39 &amp; 0.02 &amp; 0.49 &amp; 0.00 &amp; 0.00  \\ fileD &amp; 0.75 &amp; 0.08 &amp; 0.00 &amp; 0.00 &amp; 0.00 &amp; 0.00  \\ \bottomrule                              \end{tabularx}   However, this still relies on the \tabcolsep value. (If the value is small, all the columns will still be close; if it's large, the columns will be more spread out.) What I'm looking for is an automatic solution for two things:   the table to take the entire width of the page; and each column to be evenly spaced along the horizontal.   tabularx only does (1). How can I get (2)?
114416
Whenever I use the colortbl package to format tables, a thin white space between the cells sometimes shows up on screen (not in print for as far as I can tell). For example in this table:    Is there an easy way to enlarge each rectangle by a tiny amount so that the white space is not visible anymore?  (My guess is that the white space appears due to rounding in my pdf viewer, evince. I don't know if other pdf viewers have the same issue. Regardless, I would like to have my pdf file look good in common pdf readers)
24624
I have snippets of Html stored in a table. Not entire pages, no  tags or the like, just basic formatting.  I would like to be able to display that Html as text only, no formatting, on a given page (actually just the first 30 - 50 characters but that's the easy bit).  How do I place the "text" within that Html into a string as straight text?  So this piece of code.  &lt;b&gt;Hello World.&lt;/b&gt;&lt;br/&gt;&lt;p&gt;&lt;i&gt;Is there anyone out there?&lt;/i&gt;&lt;p&gt;   Becomes:  Hello World. Is there anyone out there?