I have a GUI C++ application (Visual Studio 2008) that needs to be converted to a console one.
I don't have any experience in C programming. Mostly I use .NET. Where do I start?
i want to create a view in a one-to-many relatiom.
here is my relations:
(a -* b) and
(a -* c).
i want to create a view to have this data :
a1 - (all b's related to a1 + all c's relted to a1)
i don't wnat sth like (a1 ,b1,c1 - a1,b1,c2 ,...)
how can i create this view ?
I want to insert one DefaultStyledDocument into another DefaultStyledDocument. How do I do this? I know of this method:
AbstractDocument.insertString(int offs,
String str,
AttributeSet a)
What I really want is something like this:
DefaultStyledDocument.insertDocument(int offs,
AbstractDocument doc)
Is there a way of doing this?
Sometimes normal FTP doesn't quite cut it... When you need to do secure FTP via SSIS packages, what ONE product would you recommend?
Before answering, please see if someone has already suggested the same thing and, if so, vote it up.
NOTE: Ideally, it needs to handle both SSH and SSL FTP connections, but I'd consider two separate components if it makes the most sense....
hi how can i use more than one 'between' clause in mysql query ? like if i want to select students having height between 20 and 25 and weight between 50 and 70..
thanks in advance
tismon
hi there
when i build my web site it was handling only one interface but now i need to handle many interface
i can detect which site to communicate and isolate it from other sites but i stuck with this :
all the sites have the same views ...
is there are a way so i can rander from the same controller different views .. something like
application
application
controller
model
site_1_view
site_2_view
is this possible ??!!
I have multiple master pages in my asp.net mvc web application... Each of the pages add,edit,view and delete functionalities.... What it does is i have to create multiple views for handling add,edit,view and delete functionalities (ie) the user has to navigate to another view to edit/view the details of a record... How to Handle Multiple Form Actions (ie) add,edit,view and delete functionalities on One View?
I have a category system that is related many-to-many with posts. How can I select a list of those categories that are related to one or more posts?
$q = Doctrine_Query::create()
->from('Category c')
->where('<DONT KNOW WHAT TO WRITE>')
->select('c.name');
Does WPF support multiple binding expressions in one statement?
Something along the lines of the following:
<TextBlock Text="{Binding Path=OrderID} shipped on {Binding Path=OrderDate}"/>
I'm guessing that it does but I think I just don't have the correct syntax.
Hi ,
I have column which consists of path for example \Abc\F\E\record_123 , now i need to update the path in database where only one change i need to do is tht
\Abc\F\E\record_123 = \Abc\F\G\record_123 - i want to update E to G .
how to do that with update query in database .
Can anyone help me its urgent.
Thanks
Smartdev
I realize there's the W3C validator, which works great for one page. There's also the perl install they provide, but it seems to not work on a Mac or it's buggy.
Given that
1) I have an entire set of local files
How do I
a) Validate the entire set
b) do it behind a firewall
c) do it simply without installing anything on my computer? (i.e., is there a web service?)
Or is this just futile?
In ruby, how do I test that one array not only has the elements of another array, but contain them in that particular order?
correct_combination = [1, 2, 3, 4, 5]
[1, 5, 8, 2, 3, 4, 5].function_name(correct_combination) # => false
[8, 10, 1, 2, 3, 4, 5, 9].function_name(correct_combination) # => true
I tried using include, but that is used to test whether [1,2,3].include?(2) is true or not.
I find myself doing this a lot:
script/generate migration my_new_migration
.. then select & copy the generated filename, then paste it into vi to actually write the migration.
Is there any way to do this in one step? i.e. when the script/generate migration runs, it creates the file the automatically opens that file in an editor?
(I'm working in an SSH terminal window on linux..)
We have project with a server witch have about 3000 requests at day from client.
30-40 on-line users. And smth about 30-40Gb data increase per year.
And system should be on-line 24x7.
Where can we locate the SQL server better?
On one computer with JavaEE container or on standalone computer?
What pros and cons on this ways?
Hi I am trying to merge one single revision using CL in SVN using this command:
svn merge -r 5454 URL
but I am getting the following error
svn: Second revision required
My revision is not the latest revision but buried about 90 revisions from the latest update. Any thoughts on what I am doing wrong?
Hello All,
I dont know how to copy table data from
one server - database - table
TO
other sever - database - table.
If it is with in the same server and different databases, i have used the following
SELECT * INTO DB1..TBL1 FROM DB2..TBL1 (to copy with table structure and data)
INSERT INTO DB1..TBL1(F1, F2) SELECT F1, F2 FROM DB2..TBL1 (copy only data)
Now my question is copy the data from SERVER1 -- DB1-- TBL1 to SERVER2 -- DB2 --TBL2
Thanks in advance!
Hi,
I have a css class like:
.foo {
background-color: red;
}
then I have a class specified for a list:
.list1 li {
background-color: tan;
}
is it possible to set one style class to just point to another? Something like:
.list1 li {
.foo;
}
not sure how to articulate that - I just want the .list li style to be whatever I define for the .foo class.
Thanks
I have 3 options to increment value of an integer by 1 in a C# application
i++
i+=1
i=i+1
The result of all three operations would be same but I would like to know which one would be the best to use if I need to use this statement in an application where the performance is critical.
Hi All,
I want to programatically copy List of One Sharepoint (2007) to another Sharepoint(2010).
Using Sharepoint web services.(C#)
How should i proceeed?
Regards,
Jene
what is the best way to make my php code working on one domain
and sure i will encode the whole code by ioncube
i want function like
function domain(){
}
if($this_domain <> domain()){
exit('no');
}
or
$allowed_hosts = array('foo.example.com', 'bar.example.com');
if (!isset($_SERVER['HTTP_HOST']) || !in_array($_SERVER['HTTP_HOST'], $allowed_hosts)) {
header($_SERVER['SERVER_PROTOCOL'].' 400 Bad Request');
exit;
}
now i want know the best way to do that
may be will user strpos
hi,
i have a blog application were Post belongsTo Category and Category hasMany Post
Post can have a Category or not - in latter case NULL value is present in Post.category_id field.
Now i would like to have following category count with single SQL query
category|post_count
--------------
PHP | 2
JavaScript | 4
SomeOtherCat | 1
NULL | 3
The clue here is that i also want to count posts without category (NULL row above). Is it posibble with one SQL query?
Using hibernate with annotations, i want a one-many relationship to be sorted by the 'created' field on the 'many' table.
So far i've got this, which always ends up in a random order:
// The notes
@OneToMany
@JoinColumn(name="task_id")
Set<TaskNote> notes;
public Set<TaskNote> getNotes() {return notes;}
public void setNotes(Set<TaskNote> notes) {this.notes = notes;}
Hi,
How can i copy multiple char* variables into one char* at single instance operation.
say i have
char* text1 = "Hello";
char* text2 = "World";
i want to copy text1, text2 and '2' and "12345" into char* text3 in single function call.
Hello,
I am trying to use md5 code to calculate checksums of file. Now the given function prints out the (previously calculated) checksum on screen, but I want to store it in a variable, to be able to compare it later on.
I guess the main problem is that I want to store the content of an array in one variable.
How can I manage that?
Probably this is a very stupid question, but maybe somone can help.
Below is the function to print out the value. I want to modify it to store the result in one variable.
static void MDPrint (mdContext)
MD5_CTX *mdContext;
{
int i;
for (i = 0; i < 16; i++)
{
printf ("%02x", mdContext->digest[i]);
} // end of for
} // end of function
For reasons of completeness the used struct:
/* typedef a 32 bit type */
typedef unsigned long int UINT4;
/* Data structure for MD5 (Message Digest) computation */
typedef struct {
UINT4 i[2]; /* number of _bits_ handled mod 2^64 */
UINT4 buf[4]; /* scratch buffer */
unsigned char in[64]; /* input buffer */
unsigned char digest[16]; /* actual digest after MD5Final call */
} MD5_CTX;
and the used function to calculate the checksum:
static int MDFile (filename)
char *filename;
{
FILE *inFile = fopen (filename, "rb");
MD5_CTX mdContext;
int bytes;
unsigned char data[1024];
if (inFile == NULL) {
printf ("%s can't be opened.\n", filename);
return -1;
} // end of if
MD5Init (&mdContext);
while ((bytes = fread (data, 1, 1024, inFile)) != 0)
MD5Update (&mdContext, data, bytes);
MD5Final (&mdContext);
MDPrint (&mdContext);
printf (" %s\n", filename);
fclose (inFile);
return 0;
}