combine

Adding publicly but inheriting private

I want to add a class directly into a new class by avoiding public inheritance. For example I have a class like class size { private: int width; int height; public: void set_width(int w) { width = w; } int get_width() { return width; } void set_height(int h) { height = h; } int get_height() { return height; } ...

Combining data from different tables to form a news feed.

Let's say I have 2 tables, Message and Product. Whenever a user post a new products or messages, users who subscribe to that particular user will have their feed updated.It is similar to Facebook feed. The problem is how to combine the records from 2 different tables, Message and Product, to make a news feed, the feed has to be sorted b...

Combine elements of my List

Hi, I got following class: public class Action { public Player player { get; private set; } public string type { get; private set; } public decimal amount { get; private set; } } Which is used in a List: public List<Action> Action Depending on type I display some custom text. But if type = "folds" I just display 1 Fo...

cakePHP: how to combine two or more application views on one cakePHP layout page?

Using cakePHP my goal is to combine the index view of two or more controllers in one layout page. Example: I have controllers for: news, events, links. I want to show the last five entries from each table in one layout page. Also, when one of the links from the views is selected it should take the user to the respective view for that re...

Combining multiple sql databases into one database

Hello guys, Here's my problem: I have a website that uses two different nonidentical sql server databases: one that is used to store information about the website users, the other stores information about my online retail store. But my hosting plan would only let me deploy a single database. Hence I want to combine my two databases, to ...

Combining the following mulitple SQL queries into 1 with MS Access & ASP

I want to combine Select top 2 scouting.* From scouting Where scouting.astroLoc Like 'D01%' AND scouting.ownerGuild = 'SWARM' Order By scouting.jumpGate Desc with Select top 2 scouting.* From scouting Where scouting.astroLoc Like 'D02%' scouting.ownerGuild = 'SWARM' Order By scouting.jumpGate Desc with Select top 2 scouting.* Fr...

Combine two small queries (that group by different values) into one query

Please take a look at the following table (called response). It shows what response a respondent has given to a question and answer. questionid answerid respondentid 1 10 1 1 11 2 1 11 4 1 12 3 1 12 5 2 20 1 2 ...

Combine pairs to groups [PHP / Arrays]

I have pairs of items in an PHP array. Example: <?php $elements = array( 'tiger'=>'lion', 'car'=>'bike', 'lion'=>'zoo', 'truck'=>'plane' ); ?> Now I want to combine these items so that all items which are connected in any way go to one group. Continuation of the example above: <?php $groups = array( 0=>array('tiger', 'lion', 'zo...

Can sIFR js files be combined into 1 js file?

In the new sifr 3, the author has implemented the ability to combine the css files into 1 file. There are 4 .js files total and I was wondering if there were any ideas how to combine these files for a faster loading time on the client side and also I was wondering if there was any way to just include the sIFR css styles in an already exi...

Combine MP3 files in ASP.NET response?

EDIT: Oh..... I lied! The commandline fails if the two source files have different bitrates (does samplerate matter?). Also, the source code below succeeds when the two sources are the same bitrate. So, this looks like a bitrate challenge now. Hrm.... Original question: result.mp3 (from the commandline, below) is playable in WMP11....

MP3 created from two others won't play in WMP11?

test1.mp3 and test2.mp3 have the same bitrate and sample rate, and I'm trying to merge them in an HTTP response. The resulting file is test.mp3. test.mp3 plays fine in WMP12 and VLC. In WMP11, I hear only the audio which came from test1.mp3. At the moment you expect to hear the beginning of test2.mp3's audio, the player stops playing...

combining Yenc files into 1 file.

Hay guys, I'm writing a PHP application to take a NZB file, grab the Yenc files from that, download them, then combine them, then decode them back into binary state. I've managed the first part, but I'm having trouble combining the Yenc files back into 1 Yenc file. any ideas? Thanks ...

Combine Multiple Query Results in MySQL (by column)

I have 4 different queries and each of them return individual unique set of Results. I need to combine the Query Results with using a single query. my sample queries are: 1. select cls.* from (calls as cls inner join calls_users as clsusr on cls.id=clsusr.call_id) inner join users as usr on usr.id=cls.assigned_user_id where cls.assigne...

php variable in html no other way then: <?php echo $var; ?>

hi i work a lot in mixed html and php and most time i just want solid html with a fet php variables in it so my code look like this <tr><td> <input type="hidden" name="type" value="<?php echo $var; ?>" ></td></tr> wich is quite crap isnt there little code something like: <tr><td> <input type="hidden" name="type" value="$$var" ></td><...

jQuery: $("#" + $(this).attr('id') + "_div")

I'm trying to modify a name-related element. I'm taking values from a drop-down and displaying them in a div. Their ids are: selected_terms selected_terms_div I have a number of these pairs and I was hoping to write generalized code instead of hard-coding it (I figure it'll be useful later). This code isn't working: $("#" + $(this).at...

Please help with an OpenGL ES (iPhone) multi-texturing (2D) code!

I have a texture from this PNG: And another from this PNG: They both have the same blend function: glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA); I want to see them on one single polygon first. I just couldn't find a simple example of this. Draw them to different polygons works perfect, but I just cannot "merge" them into one text...

Combine Separate Git Repository Branches

I have two separate git repositories. One is mine, and has "Branch A", the other was developed by someone else and has "Branch B". They both have the same master branch. How do I import his branch inside my git repository? So I want the result to be: $ git branch Branch A Branch B master ...

Program to help sort files

Hey there I'm going through a lot of computers and a lot of data here and there. I'm moving it all to a server so everybody has access to it. There i have a folder for each computer. But a lot of the data is the same. Is there any program to help me combine the data that is the same ? It hell trying to do this manually. Basically i wa...

iPhone Tabbar Controller with UIPageController

I have an iPhone tabbar application with "n" number tabs. I'd like to have a UIpagecontrol in place so I could swipe between tabs. Could anyone tell me how I could do this? Examples are very helpful. Much appreciated. ...

How can I add new root element to a C# XmlDocument ?

I have, outside of my control, an XmlDocument which has a structure like the following: <parent1> ...minor amount of data... </parent1> I have another XmlDocument, also outside of my control, which has the following structure: <parent2> ..very large amount of data... </parent2> I need an XmlDocument in the format: <parent1> ...min...