Center-align a HTML table

Center-align a HTML table

On a page I'm working on at the moment, I can't seem to be able to center a table with an image in the first row and two columns of text below it (the two columns shouldn't be more than the image's width)Here's the page : http://www.puzzles

mysql keyword search

mysql keyword search

I have a table with names of movies, and I want to be able to search for a movie in that table. But I want to be able to search for part of the title, and still return a result. For example, if there is a record with the name "The quantum o

JAXB Marshalling Objects with java.lang.Object field

JAXB Marshalling Objects with java.lang.Object field

I'm trying to marshal an object that has an Object as one of its [email protected] class TaskInstance implements Serializable { ... private Object dataObject; ...}The dataObject can be one of many different unknown types, s

Reordering events with Reactive Extensions

Reordering events with Reactive Extensions

I'm trying to reorder events arriving unordered on different threads.Is it possible to create a reactive extension query that matches these marble diagrams:s1 1 2 3 4s2 1 3 2 4result 1 2 3

What are static variables?

What are static variables?

What are static variables designed for? What's the difference between static int and int? 1:The static keyword has four separate uses, only two of which are closely related:static at global and namespace scope (applied to both variables

On what basis mapreduce framework decides whether to launch a combiner or not

On what basis mapreduce framework decides whether to launch a combiner or not

As per definition "The Combiner may be called 0, 1, or many times on each key between the mapper and reducer."I want to know that on what basis mapreduce framework decides how many times cobiner will be launched. 1:Simply the number of s

NSNotificationCenter: Why bother calling removeObserver?

NSNotificationCenter: Why bother calling removeObserver?

The gods have parachuted many habits into my isolated jungle village, such as:- (void) dealloc { [[NSNotificationCenter defaultCenter] removeObserver:self]; [super dealloc];}Their ways are strange to me, yet I still seek to understand the

What are the arguments IN FAVOR of PHP closing tags for PHP only files?

What are the arguments IN FAVOR of PHP closing tags for PHP only files?

The Zend Framework coding standard mentions the following:For files that contain only PHP code, the closing tag ("?>") is never permitted. It is not required by PHP, and omitting it prevents the accidental injection of trailing whitespace i

Dynamodb scan in sorted order

Dynamodb scan in sorted order

Hi I have a dynamodb table. I want the service to return me all the items in this table and the order is by sorting on one attribute.Do I need to create a global secondary index for this? If that is the case, what should be the hash key, wh

How to use multiple arguments in an if statement with Liquid

How to use multiple arguments in an if statement with Liquid

I want to use an if statement in Liquid with multiple conditionals. Something like:{% if (include.featured == "true" and product.featured == "true") or (include.featured == "false" and product.featured == "false") %}Multiple conditionals do

What is difference between different string compare methods [duplicate]

What is difference between different string compare methods [duplicate]

Possible Duplicate: Differences in string compare methods in C# In .NET there are many string comparison methods, I just want to confirm which one is the best to use considering performance.string.Equals()string.Compare()string.CompareTo(

Pass a variable from content script to popup

Pass a variable from content script to popup

I'm messing around (trying to learn) how to make a chrome extension. Right now I'm just making super simple one where it counts instances of a certain word on a page. I have this part working.What I want to do is send this information to th

Managed C++ wrappers for legacy C++ libraries

Managed C++ wrappers for legacy C++ libraries

We're looking at writing a .Net-callable wrapper for some legacy C++ libraries using managed C++.It all looks pretty easy. Is there anything we need to watch out for? 1:I found it generally quite easy to wrap some existing C++ libraries

adjust corners and crop the image openCV

adjust corners and crop the image openCV

I am using open CV,in IOS. I already detected the boundary of the paper sheet in an Image as show in image and , Now I have to drag these boundary line on touch for adjusting the crop frame. how we can adjust boundary line and how we can c

XSLT to sort nodes by name?

XSLT to sort nodes by name?

I'm unsure how the xsl:sort directive works. I need to sort elements by their tag name (for diffing), and I can't seem to come up with how to make this work. My first though was to modify the identity transform and just modify it to include

Plot Overlay MATLAB

Plot Overlay MATLAB

How do you take one plot and place it in the corner (or anywhere for that matter) of another plot in MATLAB? I have logarithmic data that has a large white space in the upper right-hand side of the plot. In the white space I would like to

Best Practices for mapping one object to another [closed]

Best Practices for mapping one object to another [closed]

My question is, what is the best way I can map one object to another in the most maintainable manner. I cannot change the way the Dto object that we are getting is setup to be more normalized so I need to create a way to map this to our imp

Can a C++ class determine whether it's on the stack or heap?

Can a C++ class determine whether it's on the stack or heap?

I have class Foo {....}Is there a way for Foo to be able to separate out:function blah() { Foo foo; // on the stack}andfunction blah() { Foo foo* = new Foo(); // on the heap}I want Foo to be able to do different things depending on whethe

usort(): Array was modified by the user comparison function

usort(): Array was modified by the user comparison function

I have a web application that runs fine on our Linux servers but when running on Mac OS with the Zend Community Edition Server using PHP 5.3 we get the error: usort(): Array was modified by the user comparison functionevery time a page loa

MySQL select top X records for each individual in table

MySQL select top X records for each individual in table

Is there a better way to get multiple "top X" results from a MySQL table? I'm able to accomplish this easily with a union when the number of different foo is small:(SELECT foo,score FROM tablebar WHERE (foo = 'abc') ORDER BY score DESC LIMI

How to represent a localized string type in Core Data?

How to represent a localized string type in Core Data?

I'm new to Core Data, and am struggling with some of it conceptually (relative to, say, SQL, which I understand). I'm trying to build a model which for the sake of simplicity looks like:"Category" entity, which has a name, and a relationshi

Create ejabberd user from PHP

Create ejabberd user from PHP

I need to create an ejabberd user from a PHP script. I also need to be able to add the new user to a predefined shared roster.Should I just call ejabberdctl using exec() or is there a better way? 1:ejabberdctl is by far the easiest in t

How to create a virtual file?

How to create a virtual file?

I'd like to simulate a file without writing it on disk. I have a file at the end of my executable and I would like to give its path to a dll. Of course since it doesn't have a real path, I have to fake it.I first tried using named pipes und

Is there a way to filter a queryset in the django admin?

Is there a way to filter a queryset in the django admin?

I'm trying to define an action for a model Bar -- but I only want the list of Bar objects related to a user Foo.Before I start mucking around in the admin code and passing in a custom queryset (or writing a custom view that hijacks the admi

Extending Array to check if it is sorted in Swift?

Extending Array to check if it is sorted in Swift?

I want to extend Array class so that it can know whether it is sorted (ascending) or not. I want to add a computed property called isSorted. How can I state the elements of the Array to be comparable?My current implementation in Playgrounde