table

Reloading UITableView behind UISearchDisplayController

Hey all. So I've run into this really strange phenomenon that I can't quite figure out. I have a UITableViewController that manages a UITableView. Pretty simple. I also have a UISearchDisplayController for searching the contents of the table view. The searching functionality will be able to delete items of the content displayed by t...

Intersecting Points and Polygons in R

Hi, I am working with shapefiles in R, one is point.shp the other is a polygon.shp. Now, I would like to intersect the points with the polygon, meaning that all the values from the polygon should be attached to the table of the point.shp. I tried overlay() and spRbind in package sp, but nothing did what I expected them to do. Could a...

jQuery: Look up table value

Basically I'm trying to create to use a table as a look-up table. Normally, I would do this server side, but in this case I just have an html table and the table is going to be inputted by the client. Basically, when filling out a form they give me two values which are in columns A & B. Then the form needs to do a calculation using the...

MySQL: how should I draft this database?

I'm designing a plugin for a high traffic forum. What I am doing is listing related threads using a search API, which has a maximum of 800 searches per day What I'm wanting to do is create a database to store the results, cache them for one day so it will be used instead of the API. Would a table layout such as this be optimal: Tabl...

Latex indentation/centering in tables

Is it possible to set the centering of the individual rows with ctable, ie so that column 1 has left centering for the first 3 rows and then right centering for the last 5 rows? On a more specific note--I´d like male/female and 1..3 in this table to be right aligned instead of left aligned whilst the rest of the variablenames remain le...

select element inside of td

I have the following jquery code to highlight table cells. here is my html <table> <tr> <td class="day"> <span class='hiddenImage'><img src='/images/test.png' /></span> </td> <td class="day"><span class='hiddenImage'><img src='/images/test.png' /></span> </td> </tr> </table> here is ...

MySQL INSERT on large table - can I improve speed performance?

Hi, I have a MyISAM table with 2 fields f1 and f2, both Unsigned integers and cannot be null. The table purposely has no primary key but it has an index on f2. The table currently has 320 million rows. I would like to be able to insert new rows (about 4000 once every week) into this table at a decent speed. However, currently I insert ...

How to select the first <td>s on the left of <table> with jQuery?

Say,how to select the tds of the 1st column with jQuery? ...

Problem with padding a table row

<html> <head> <title>Table Row Padding Issue</title> <style type="text/css"> tr { padding: 20px; } </style> </head> <body> <table> <tbody> <tr> <td> <h2>Lorem Ipsum</h2> ...

jQuery and drop in table

I have the folowing code. When the table is empty in need to append to ti but if there's rows I need to insertBefore the row on which I drop. But the drop is only detected on the TABLE, the trace only show table evne if I drop on a tr $("#mytable TABLE, #mytable TABLE").droppable({ drop: function(event, ui) { v...

html table. colgroup tag not working??

Hi, My problem is simple. I want different styles on each column of a table. I've read that you could do that by using <colgroup> or <col> but i had no luck I have an exemple here and nothing seems to change. am i doing something wrong? will this work on xhtml? Thxs for your help :) BTW: i know i could add a "class" attribute on each...

CakePHP getting data from multiple models

In my CakePHP application I have a model called 'Customer' which describes (unsurprisingly) an individual customer. I then have a 'Sale' model about a sale. (One customer per sale, many sales per customer). Each sale then has a 'car_id' (which maps to the 'Car' model) and an 'engine_id' (maps to 'Engine model'). Currently when I get the ...

jQuery table rows are not showing properly in Firefox

This is the piece of code I have written: <html> <head> <script type="text/javascript" src="jquery-min.js"></script> <script type="text/javascript"> ...

Memory Warnings from images cause app to crash

I'm implementing the lazy table images algorithm similar to how facebook does. I got this from an example given by apple: http://developer.apple.com/iphone/library/samplecode/LazyTableImages/Introduction/Intro.html It works fine up until I start getting memory warnings. My images are stored in a dictionary, that links up a key to an ima...

WPF - ItemsSource equivalent for Table in FlowDocument?

I'm trying to create a Table inside a FlowDocument inside a FlowDocumentPageViewer, as seen in this tutorial. I've never created a table in WPF before, and I was expecting there to be an ItemsSourceproperty to which I could bind, like with a ListBox. I want to customize the template for each row, and I want each row's source to be an i...

performing select count across two tables sql

I have a table relationship which links one person to many relatives. so the tables are 1. Client. 2. Client_relative. I want to display all the rows of the Persons table, while displaying a count of how many relatives each person has. I have this query: SELECT c.clientid, c.fname, c.lname, count(cr.relativeid) as relativecount FROM {c...

LaTex: Is it possible to vertically center multiple columns in a table?

I've found an example here but that only centers one column and I can't really adapt it to my needs. What I'd like is something like this: ...

xhtml tables - proper use

Hi I have a pretty simple question. Is it a good practice to write tables with 2 different headers and repeating sub-headers like in the example 1 or is it better/more semantic to split this code into 2 tables (see example 2) ? Thanks example1: <table> <tr> <th colspan="3">HEADER 1</th> </tr> <tr> <th>sub-header 1</th> <th>sub-...

html table column align right

Hello i have got a table with 3 columns. And i want that the third column is aligned to the right of the upper element und the other 2 columns to the left (left column) (middle column) (right column) is there a way todo this via css or something? greetings ...

How to format html table with inline styles to look like a rendered Excel table?

I'm currently stuck settings border in a html table. (I use inline stiles for a better rendering in e-mail-clients) I have this piece of code: <html> <body> <table style="border: 1px solid black;"> <tr> <td width="350" style="border: 1px solid black ;"> Foo </td...