combine

Combining two queries in Yahoo YQL

Hey there! I want to get the weather information for a specific location. Right now, I need to calls to get them: The first one translated my current position (lat/lon) to a WOEID, the second call retrieves the Weather information by using that WOEID. Can I combine those 2 queries? The first one is: select * from yahoo.maps.find...

How to add 2 temporary tables together.

If I am creating temporary tables, that have 2 columns. id and score. I want to to add them together. The way I want to add them is if they each contain the same id then I do not want to duplicate the id but instead add the scores together. if I have 2 temp tables called t1 and t2 and t1 had: id 3 score 4 id 6 score 7 and t2 had: ...

Combine subselect

Hello, I have to rewrite a query written for mysql5 to mysql4.0 which doesn't support sub select I have a query like this : select a, c, (select count(*) from A) as e from (select b, sum(e) as a from B where h = "foo" group by b) TABLEB, (select sum(d),...

How to Optimize Combres Settings (Compression, Minification)

Can anybody tell me the most optimal Combres settings? I've got the following but it appears as though my CSS and my JS are not being minified. <?xml version="1.0" encoding="utf-8" ?> <combres xmlns='urn:combres'> <filters> <filter type="Combres.Filters.FixUrlsInCssFilter, Combres" /> <filter type="Combres.Filters.D...

jquery combine event functions

instead of example: $(".myfield").blur(function() { // validate }) $(".myfield").keyup(function() { // validate }) is there a way to combine these two? ...

Should I combine javascript into one file, or break it into a few files based on change frequency to minimize invalidating the browser cache?

I'm combining my javascript into MD5-digest-versioned files. I have a lot of js libraries that don't change very often. Then I have a set of in-house libraries that change somewhat frequently, and another set of application-specific files that changes constantly. I'm wondering if it's worth the effort to combine javascript into three sep...

Combining values from 2 XML objects in PHP

Hi! ...well, actually I have an object which looks like this: object(AleParserXMLElement)#39 (4) { ["name:private"]=> string(6) "rowset" ["data:private"]=> object(SimpleXMLElement)#42 (2) { ["@attributes"]=> array(3) { ["name"]=> string(6) "skills" ["key"]=> string(6) "typeID" ["columns"]=> ...

Combine Files PLEASE HELP

Hello, i have several hundred XML files, which are 2kb each, so they are small, but i need to combine all of them into one because i need to cross referance the info in them with a database that i have each file contains a specific case number along with other non important stuff is there anyway i can combine all those files into ONE x...

combining css and js files + css images

I'm playing with this combine.php file and it looks nice, but I'm wondering if there is a work around for my problem. I now have fewer script and link tags for my resources that look and work like they're supposed to <script type="text/javascript" src="http://path/to/server/javascript/libjs/jqueryui/1.8/development-bundle/ui/minified/j...

How to Combine and sort columns? MySQL, CF8, MS Access 2003

I want to produce an alphabetized list of names produced by adding together two columns of names, columnA, and columnB. I have tried this: <cfquery name="listAuthors" datasource="hhLibrary"> SELECT title, (a1_Fname + a2_Fname) AS ColumnA, (a1_Lname + a2_Lname) AS ColumnB FROM books WHERE ColumnB LIKE '#firstletter#%' ORDER BY ColumnB <...

Is there QPath::Combine in QT4?

I need a similar to .NET method for safely combining path parts without worrying for platform specifics of the path separator. Is there such class and method in QT4? Something like: QPath::Combine ...

Dynamic image/animation combining.

Hi, I'm working on a solution for my new project (in C#). I'm trying to make a dynamic image/animation combiner (maybe later even work with video's, but that's not required atm). So basically my program is reading a xml file with all kinds of instructions the user needs to do. In the xml file it is possible that for 1 instruction mult...

Javascript - To combine or not combine, that is the question.

Ok, so I know that it's obvious to combine all of a pages Javascript into a single external file for efficiency purposes, but that's not quite the question here. Say I have Default.htm with a search field that has a little Javascript magic attached to it. Then I have Contact.htm with a contact form that has some Javascript magic attach...

Plotting several jpeg images in a single display

I need to plot and display several jpeg images in a single combined display (or canvas?). For example, suppose I have images {a,b,c,d}.jpg, each of different size, and I would like to plot them on one page in a 2x2 grid. It would be also nice to be able to set a title for each subplot. I've been thoroughly looking for a solution, but co...

What is the most 'pythonic' way to logically combine a list of booleans?

I have a list of booleans I'd like to logically combine using and/or. The expanded operations would be: vals = [True, False, True, True, True, False] # And-ing them together result = True for item in vals: result = result and item # Or-ing them together result = False for item in vals: result = result or item Are there nift...

Combining 2 Images overlayed

Hi There, I've got a things to do with android, so, I have 2 images, 1. image from camera 2. another image from somewhere so what I want to achieve is how to combine those image into 1 image, but it's overlapping (just like watermarking the image), the 2nd image should be scaled first into the size of the 1st image(camera) - so they ha...

Is there an easy way to blend two System.Drawing.Color values?

Is there an easy way to blend two System.Drawing.Color values? Or do I have to write my own method to take in two colors and combine them? If I do how might one go about that? ...

Calculating voting power indexes in R

Dear Coding Experts I have a project in which i need to be able to calculate different voting power indexes in R. As a first attempt at this I wrote a small function to calculate the banzhaf index. It takes two arguments, a dataframe that has two columns which must be labelled member and vote, and how many votes are needed for a majorit...

mysql: show two separate fields become one field

dear all..i have a table it looks like: Name version DDX 01 DTX 05 could i combine two separate fields become one field? and it will show like: Model DDX01 DTX05 thanks before.. ...

Needed - Visual Studio Custom Build Actions To Minify JS and CSS

I've been using Combres in my applications to compress, combine and minify my javascript and css at run time. This works extremely well and satisfies YSlow perfectly. Now I'm rethinking the whole process for performance reasons, and I'm more so thinking about doing all of this at build time instead of run time. I'm hoping that I can ge...