table

Creating angled column headings using iText

Does anyone know how to make angled column headings (e.g. at 45 degrees) in a table inside a PDF file, using the iText library? The best I can do is to use images for the column headings. Each image consists of a column heading rotated by 45 degrees, against a transparent background. For each column heading, I create a PdfPCell containi...

Why is textarea filled with mysterious white spaces?

I have a simple text area in a form like so: <textarea style="width:350px; height:80px;" cols="42" rows="5" name="sitelink"> <?php if($siteLink_val) echo $siteLink_val;?> </textarea> I keep getting extra white space in this text area. When I tab into it my cursor is like in the middle of the textar...

centering only header of LaTeX table

I'd like to center just the header, but not the body of particular columns in a table. For example: \begin{table}[!t] \centering \caption{ \bf{My table}} \begin{tabular}{l|c|} ... \end{tabular} \end{table} will make a left-aligned column, and a center-aligned column. I'd like the headers to all be centered, but the body of the table t...

Hibernate -using Table per subclass - how to link an existing superclass object to a sibclass object

Hi, I have a User hibernate class, Clerk class and Consumer class. All these maps to their own tables in database. The User PK also acts as Clerk's and Consumer's PK. So now my problem is that if a user is initially a Clerk, he has a record in Users table and Clerks table. If that user wants to become a consumer, I want to link that U...

text overflowing tables when generating PDF with dompdf

I am generating some PDFs with dompdf, which contains some text and images in a table. But if the text has a large URL in it, the URL wraps all the way to the end of the line. All the text and URL are wrapped in a div with fixed width and height, yet the URL still overflows. The same HTML rendered in the browser seems to be OK. Any t...

table and div layout

A table <table> <tr> <td> <button>10000000000</button> </td> <td> <button>10000000000</button> </td> </tr> </table> and a div <div> <span ><button>10000000000</button></span> <span ><button>10000000000</button></span> </div> These 2 do the same thing; shows 2 buttons next each other, my Question is how can I keep these 2 but...

itextsharp read table

Hello, I've created a pdf with a table using itextsharp. I found an example at http://itextsharp.sourceforge.net/tutorial/ch05.html. Now I'd like to read data from the table again using itextsharp. I can't find any documentation on how to read this data. Can someone give me an example? ...

How to specify the name of a database to get the name of its tables using sql server 2005 syntax

I need to write a querry in SQL SERVER 2005 to get the name of the tables of a specified database name. So i need the syntax to specify the name of the database using SQL SERVER 2005. Does anyone have any idea ? Thanks in advance for your help. ...

Which Cocoa view should I use for a list of messages?

I'd like to have a view that looks more or less like the message list in Tweetie (see screenshot) (no, it's not going to be a Twitter client, though it's similar ;). I'm not sure what Cocoa views should I use for that... I've mostly written stuff for the iPhone recently, and there's only one such control there (UITableView), but in AppKi...

Duplicate mysql table "structure" using PHP only.

Hello Guys. I have table called "users" and I wanna make an exact copy as "users_2" as regard the structure only not the content. I wanna do this using PHP only as I don't have an access to phpMyadmin or mysql console. Do you have an idea how to do that ? ...

PHP/mysql application creation process

I am trying to figure out how one would start the setup of a small CMS. I have the groundwork built, but the step of creating the database tables in mysql, should this all be done at once in a install.php file? Is there a preferred method for creating many tables at once, even if I don't need to insert data into them at this time? ...

Selecting specific cells

$('table.listings td:contains("You")').each(function(){ $(this).children('td:nth-child(2)').addClass('highlighted'); }); I have multiple table.listings on the page but the one that contains "You" is selected and I want to addClass highlighted to the 2nd cell in each row, but the above code isn't working as I expected. Thanks ...

How to I pass a table from lua into C++?

How would I pass a table of unknown length from lua into a bound C++ function? I want to be able to call the lua function like this: call_C_Func({1,1,2,3,5,8,13,21}) And copy the table contents into an array (preferably STL vector)? ...

Understanding large mysql data relations

I am trying to teach myself how to use SQL, namely mysql. What I am trying to understand is how to deal with many different types of data with in the same table. Say I am building a web application, and I have many different content types (blog item, comment item, files, pages, forms) that I need to store different data fields for each...

Is there any C SQLite API for quoting/escaping the name of a table?

It's impossible to sqlite3_bind_text a table name because sqlite3_prepare_v2 fails to prepare a statement such as: SELECT * FROM ? ; I presume the table name is needed to parse the statement, so the quoting needs to happend before sqlite3_prepare_v2. Is there something like a sqlite3_quote_tablename? Maybe it already exists under a n...

Jquery Sum of colum and sort problem

I have a jquery table sort that make my total sum disapears from the bottom. Is there any way to keep the total alive during click events? ...

Print a table in modx to send info for mail by eForm

Hi to all! my question is, how can i create a table with dynamic fields (i will explain this later), and send them values by mail with eform? In the table, on the left, i want to print all the document childs that are using template XX, and on the top, i want the user to specify how much collums he wants (besides the products/documents ...

JPA : optimize EJB-QL query involving large many-to-many join table

Hi all. I'm using Hibernate Entity Manager 3.4.0.GA with Spring 2.5.6 and MySql 5.1. I have a use case where an entity called Artifact has a reflexive many-to-many relation with itself, and the join table is quite large (1 million lines). As a result, the HQL query performed by one of the methods in my DAO takes a long time. Any advice o...

What's the best way to dedupe a table?

I've seen a couple of solutions for this, but I'm wondering what the best and most efficient way is to de-dupe a table. You can use code (SQL, etc.) to illustrate your point, but I'm just looking for basic algorithms. I assumed there would already be a question about this on SO, but I wasn't able to find one, so if it already exists just...

jquery sum problem

I want to keep my total sum every time I sort my column from my table <thead> <tr class="titlerow"> <th></th> <th></th> <th align="left"> <asp:LinkButton ID="Programs" runat="server" CommandArgument="Asc" CommandName="G1" CssClass="table-sort active" OnClick="Programs_Clic...