column

transforming 1d (1column) into 5d(5column) matrix through copy paste or other

Ex. I want to take the column with 12345..... and order 5 columns across as seen. next 5 numbers in column will be next row. However my code creates a 4 row gap in between each successive row. I dont know what additional logic (possibly if then statement) I can embed into do loop to may make it cleaner. I am new to this, so showing as mu...

What does the length attribute do when set on the @Column JPA annontation?

What exactly does setting the length on a column do in JPA? @Column(name = "middle_name", nullable = false, length = 32) public String getMiddleName() { return this.middleName; } I understand that you can use the annotations to generate the database schema (DDL) based on the entity objects, but does length do any sort of check or ...

Best naming for a column in a SQL Server table

Which of the following three options would you choose for a column name in a SQL Server table, and why? YearToDateWages YTDWages YtdWages Follow up: SSN Ssn SocialSecurityNumber ...

Simple 2 column CSS layout with nested divs

Hello, I have good familiarity with CSS but for some reason I am unable to achieve the result I want in this case. Here is the link to my test site http://danberinger.com/test.html Keep in mind that I want a 2 column layout and that the background wrapper color (gray) is not showing. Instead the body background color image is being...

How do I maintain rows when sorting a matrix in MATLAB?

I have a 2-by-3 matrix, and I want to sort it according to the first column. Here's an example: data will change to --> new data 11 33 10 22 22 44 11 33 10 22 22 44 I have this code for sorting a matrix A but it doesn't work well: sort(A,1,'ascend'); ...

DataTable with dynamic columns

I am completely new to JSF, and just attempting a proof of concept to decide whether it will be useful for a project. My POC simply consists of a single page, with a table, containing some data. The number of columns (as well as the number of rows) is dynamic, loaded from a database before the page is rendered. With the following, I ge...

HTML Table: How to resize data cells when already specified "colspan"?

I have tabular data to display, which has a meaning to both rows and columns. Columns are time blocks, rows are days. A particular datacell is confined to a single day, but can be in multiple time block. To show this, I am using the colspan tag. <div id = "GuideTable"> <table> <tr> <td colspan = 3> </td></tr></tabl...

Is there a way to tell JPA/Hibernate to transform column names from camcel case to _'s?

Is there a generic way to tell JPA/Hibernate to transform all column names of the form: emailAddress to the form: email_address ? I'd rather not have to use a @Column annotation for hundreds of columns. I hope someone thought of this ;) ...

Force max length for string in PostgreSQL

Hey guys, I am using heroku for a RoR application and am trying to manually set the length of a string column and am having trouble. I tried making a migration along the lines of change_column :posts, :content, :string, :length => 10000 I assumed this would work but no such luck, anyone have some pointers? Thanks! ...

Modify site column(type text) to allow more than 255 characters

Hi friends I have created custom site column with type text and I included in one of content types. But it is allowing me for 255 characters only. In which way I can extend it, say 1024 characters. I did this before by mentioning somewhere in web.config file but I forgot how i did. Can anyone please tell me how can I achieve this. Than...

jqGrid - how do I resize not just the TD but also TD inner DIV when TH (column) is resized?

I need to catch the event where the columns are resized. How do I do that? ...

How to implement wordwrap on jqGrid which works on IE7, IE8 and FF

How to implement wordwrap on jqGrid which works on IE7, IE8 and FF, while also having column-resize work (grid aligns correctly). Tried to innerwrap content on each td with a div of specific width (based on initial TH width), but colresize will not work on the divs I've inserted. jqGrid calculates the widths of the resized TH and adjace...

Resize Columnvector in .Oct file

Does anyone know the correct syntax to resize a ColumnVector in a compiled .Oct function written for Octave? The ColumnVector will typically be 10 to 50 elements in length and will be passed to a feval call in a loop. After evaluation, in the next loop iteration, the ColumnVector will need to be resized, filled with new data and again pa...

Formatting text in an html table column?

So, I have a table like below. Imagine there are multiple columns, I thought by formatting the <col/> tag I would be able to change the formatting of every <td> in that column. I want to give data in the first column a text-align:center, but it doesn't seem to work. Is there a way to get this to work other than adding a class to every <t...

Change column height as other column gets longer

Hi, I have tried a few things to solve this problem but I can't seem to get it working. The problem is that I have 2 columns as the main part of my website, right and left. On some pages, there is a lot of text in the left column, therefore it is very long, the problem is that the right column doesn't elongate with the left column. Bo...

Hibernate Discriminator sort

I am trying to sort the records when queried on discriminator column. I am doing a HQL/ Criteria query for retrieving all the records. Here is my class: abstract class A { ... } @DiscriminatorValue("B") class B extends A { } @DiscriminatorValue("C") class C extends A { } When I return the records, I want it sorted on the discrimin...

How to create a perfect 3 columns layout using CSS , with cross-browser support ?

Hello, How to create a perfect 3 columns layout using CSS , with cross-browser support ? I have 3 divs like <div class="clm1">Some content</div> <div class="clm2">Some content</div> <div class="clm3">Some content</div> tried googling but all were made or css3 . I need a perfect 3 column in basic css. Please help update Perfect in ...

How to specify the column width and text alignment of an HTML table using CSS?

Is it possible to specify the width of a table column in percentages using css? Also is it possible to specify the text alignment of a specific column? For example I have a table that has 3 columns. I would like to say col1.width = 20% col2.width = 40% col3.width = 40% col1.text-align = left; col2.text-align = right; col3.text-align ...

mysql - combining columns and tables

Hi, I'm not much of a SQL man so I'm seeking help for this one. I have a site where I have a database for all accounts and whatnot, and another for storing actions that the user has done on the site. Each user has their own table but I want to combine the data of each user group ( all users that are "linked together" ) and order that da...

Two Button Columns on a GridView Control

I have a grid view will two different button columns. I want to perform a different action depending on what button the user presses. How in the SelectedIndexChanged event do I determine what colmun was pressed. This is the code I use to generate the columns. grdAttachments.Columns.Clear(); ButtonField bfSelect ...