-- DBMS: snowflake
create or replace TABLE POSTS_ANSWERS (
	"id" NUMBER(38,0),
	"title" VARCHAR(16777216),
	"body" VARCHAR(16777216),
	"accepted_answer_id" VARCHAR(16777216),
	"answer_count" VARCHAR(16777216),
	"comment_count" NUMBER(38,0),
	"community_owned_date" NUMBER(38,0),
	"creation_date" NUMBER(38,0),
	"favorite_count" VARCHAR(16777216),
	"last_activity_date" NUMBER(38,0),
	"last_edit_date" NUMBER(38,0),
	"last_editor_display_name" VARCHAR(16777216),
	"last_editor_user_id" NUMBER(38,0),
	"owner_display_name" VARCHAR(16777216),
	"owner_user_id" NUMBER(38,0),
	"parent_id" NUMBER(38,0),
	"post_type_id" NUMBER(38,0),
	"score" NUMBER(38,0),
	"tags" VARCHAR(16777216),
	"view_count" VARCHAR(16777216)
);

INSERT INTO "STACKOVERFLOW_PLUS"."STACKOVERFLOW"."POSTS_ANSWERS" (view_count, owner_user_id, tags, score, owner_display_name, answer_count, last_activity_date, last_editor_user_id, last_editor_display_name, favorite_count, post_type_id, community_owned_date, accepted_answer_id, comment_count, body, parent_id, id, title, creation_date, last_edit_date) VALUES (NULL, 230513, NULL, 5, NULL, NULL, 1324742605003000, -1.0, NULL, NULL, 2, NULL, NULL, 5, '<p>Using this <a href="https://stackoverflow.com/questions/6644739/customizing-jtable-cellrenderer-with-tables-cell-header-color/6644956#6644956"><code>HeaderRenderer</code></a> as the first <strike>row</strike>  column renderer may produce the effect you want:</p>

<p>Addendum: I''ve updated the example to reflect your sscce with a manual layout. My platform''s <code>getSystemLookAndFeelClassName()</code> is <code>com.apple.laf.AquaLookAndFeel</code>, so I''m not seeing the same result. Two observations: You''ve already <code>setAutoCreateRowSorter(false)</code> to prevent the sorting widget from proliferating, and Nimbus retains it alternating row highlight.</p>

<p><img src="https://i.stack.imgur.com/XwVQe.png" alt="enter image description here"></p>

<pre><code>import java.awt.Component;
import javax.swing.JFrame;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.table.JTableHeader;
import javax.swing.table.TableCellRenderer;

public class MyTableExample3 extends JFrame {

    private JScrollPane scrollPane;
    private JTable table;

    public MyTableExample3() {
        initComponents();
    }

    @SuppressWarnings("unchecked")
    private void initComponents() {
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        table = new javax.swing.JTable() {

            @Override
            public Component prepareRenderer(
                TableCellRenderer renderer, int row, int col) {
                if (col == 0) {
                    return this.getTableHeader().getDefaultRenderer()
                        .getTableCellRendererComponent(this, this.getValueAt(
                            row, col), false, false, row, col);
                } else {
                    return super.prepareRenderer(renderer, row, col);
                }
            }
        };
        table.setAutoCreateRowSorter(false);
        final JTableHeader header = table.getTableHeader();
        header.setDefaultRenderer(new HeaderRenderer(table));

        table.setModel(new javax.swing.table.DefaultTableModel(
            new Object[][]{
                {"Row 1", "Data 2", "Data 3", "Data 4", "Data 5"},
                {"Row 2", "Data 6", "Data 7", "Data 8", "Data 9"},
                {"Row 3", "Data 10", "Data 11", "Data 12", "Data 13"}
            },
            new String[]{
                "", "Col 1", "Col 2", "Col 3", "Col 4"
            }));
        scrollPane = new JScrollPane(table);
        this.add(scrollPane);
        pack();
    }

    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {

            @Override
            public void run() {
                new MyTableExample3().setVisible(true);
            }
        });
    }

    private static class HeaderRenderer implements TableCellRenderer {

        TableCellRenderer renderer;

        public HeaderRenderer(JTable table) {
            renderer = table.getTableHeader().getDefaultRenderer();
        }

        @Override
        public Component getTableCellRendererComponent(
            JTable table, Object value, boolean isSelected,
            boolean hasFocus, int row, int col) {
            return renderer.getTableCellRendererComponent(
                table, value, isSelected, hasFocus, row, col);
        }
    }
}
</code></pre>', 8002445, 8005006, NULL, 1320382370613000, 1495535386917000.0), (NULL, 673730, NULL, 5, NULL, NULL, 1320402813217000, nan, NULL, NULL, 2, NULL, NULL, 5, '<p>A seg fault occurs when the call stack gets too big - i.e. too many levels of recursion.</p>

<p>In your case, this means the condition <code>(new - old) &lt; accurate</code> will always evaluate to false - well, maybe not always, but enough times to bloat the call stack.</p>

<p>Testing your code I see that <code>new</code>(probably not a good variable name choice) keeps growing until it exceeds the limits of float. Your algorithm is probably wrong.</p>', 8007808, 8007951, NULL, 1320402813217000, nan), (NULL, 458259, NULL, 5, NULL, NULL, 1320429579230000, 458259.0, NULL, NULL, 2, NULL, NULL, 5, '<p>The memory manager embedded in Delphi XE is a cut-down version of FastMM4.</p>

<p>The memory block allocator itself is identical, but the sharing mechanism are not the same.</p>

<p>By default, the following conditional is set in <code>FastMM4Options.inc</code>:</p>

<pre><code>{Define this to enable backward compatibility for the memory manager sharing
 mechanism used by Delphi 2006 and 2007, as well as older FastMM versions.}
{$define EnableBackwardCompatibleMMSharing}
</code></pre>

<p>It will create an hidden window handle for libraries to retrieve the shared memory manager instance - this how it was working with Delphi 2006 and 2007.</p>

<p>This kind of sharing does not exist any more in the cut-down version of FastMM4 as implemented in <code>GetMem.inc</code> since Delphi 2009 - which only implements a shared memory manager file mapping (which is the new method). One of the libraries may require the old version of the memory manager sharing, fails to find the shared memory manager instance, therefore use its own memory allocator - and fails on handling shared memory (like <code>string</code> instances).</p>

<p>It is the only difference I found out between the two versions, and it may be the reason why sharing is not working as expected in your program. You may have some libraries compiled with Delphi 2006 or 2007, and the sharing method was deprecated by Embarcadero (to save some bytes of code?).</p>', 8013278, 8013730, NULL, 1320429272833000, 1320429579230000.0), (NULL, 1030675, NULL, 5, NULL, NULL, 1320458630340000, nan, NULL, NULL, 2, NULL, NULL, 5, '<p>Try it to see:</p>

<pre><code>perl -E ''@ar = (10,11,12,42);say $ar[1,2,3]''
42
</code></pre>

<p>1,2,3 is a list. In scalar context, it returns its last member.</p>', 8017594, 8017650, NULL, 1320458630340000, nan), (NULL, 445543, NULL, 5, NULL, NULL, 1545326804963000, -1.0, NULL, NULL, 2, NULL, NULL, 5, '<p><strong>Caution - this answer is now obsolete</strong></p>
<p>The documentation for getimagesize explicitly states &quot;Do not use getimagesize() to check that a given file is a valid image.</p>
<h1>In case of Images</h1>
<ul>
<li>Check the extension with a list of allowed ones (ex. &quot;.jpg&quot;, &quot;.jpeg&quot;, &quot;.png&quot;)</li>
<li>Check the uploaded file itself by running <a href="http://php.net/manual/en/function.getimagesize.php" rel="nofollow noreferrer">getimagesize</a> on the file, it will return FALSE if it''s not an image.</li>
</ul>
<h1>Other types of upload</h1>
<ul>
<li>Check the allowed extensions (ex. &quot;.pdf&quot;)</li>
<li>Check that the mime type of the file corresponds to the extension</li>
</ul>
<p>Sample code:</p>
<pre><code>function getRealMimeType($filename) {
    $finfo = new finfo(FILEINFO_MIME, &quot;/usr/share/misc/magic&quot;); 
    if (!$finfo) {
        echo &quot;Opening fileinfo database failed&quot;;
        return &quot;&quot;;
    }
    return $finfo-&gt;file($filename);
}
</code></pre>
<p>See <a href="http://php.net/manual/en/function.finfo-file.php" rel="nofollow noreferrer">finfo_file</a> documentation.</p>', 8028184, 8028360, NULL, 1320596104960000, 1592644375060000.0);