Hi,
How to print a webpage in two columns or one column as per the user input/choice.
And when a take a print out I'm getting the website url on the top left side, How can we stop printing this?
Regards
I want to find the greater of two numbers without using < > this relational operator.
I tried this
int a,b;
if(a/b==0)
{
b is greater
}
else
{
a is greater
}
but this not working for negative numbers.
As I am stumbling through Facebook App Dev. I am getting more and more close to a bit sophisticated questions, bu still I am at newbie level.
Can I have custom Tab and inside that tab two different apps ?
ex. (the slideshow and top 5 news(RSS feed))
I need to search on two fields using LIKE function and should match also in reverse order. My table uses InnoDB which dont have Full text search.
For example, I have users table with first_name and last_name column.
I tried this SQL statement but no luck.
SELECT CONCAT(first_name, ' ', last_name) as fullname
FROM users
WHERE fullname LIKE '%doe%';
I am creating a table ,in the table two column is unique, I mean columnA and columnB do not have same value:
such as :
Table X
A B
1 2(RIGHT,unique)
2 2(RIGHT, unique)
1 3(RIGHT, not unique)
2 3(RIGHT, not unique)
1 2 (WRONG, not unique)
How to create such a table?
many thanks!
Hi All,
Is it possible to bind a label content to two values. For eg, I want a single label whose content is displayed as below,
UserName= Firstname, Lastname
where Firstname and Lastname, both are values from database. If I would be using to labels I would bind as Content={Binding Firstname} for one and Content={Binding Lastname}
for another. But I want a single label to display both. Is it possible?
Given a directed graph with weighted edges, what algorithm can be used to give a sub-graph that has minimum weight, but allows movement from any vertex to any other vertex in the graph (under the assumption that paths between any two vertices always exist).
Does such an algorithm exist?
Hi,
Can someone explain this to me. From jconsole ...
from = new Date('01/01/2010')
Fri Jan 01 2010 00:00:00 GMT-0800 (PST)
thru = new Date('06/07/2010')
Mon Jun 07 2010 00:00:00 GMT-0700 (PST)
(thru - from) / (1000 * 24 * 60 * 60)
156.95833333333334
Why don't I get a whole number of days? How do I calculate the difference between two dates?
thanks much.
What is the best way to combine two uints into a ulong in c#, setting the high/low uints.
I know bitshifting can do it, but I don't know the syntax, or there maybe other APIs to help like BitConverter, but I don't see a method that does what I want.
Please help me make an oracle stored procedure ; I have two tables
tblLead:
lead_id Name
1 x
2 y
3 z
tblTransaction:
Tran_id lead_id date status
1 1 04/20/2010 call Later
2 1 05/05/2010 confirmed
I want a result like
lead_id Name status
1 x confirmed
2 y not available !
3 z not available !
I am trying to make an app that will pass data between two servers Connection1 and Conenction2 using sockets.What i would like to do is receive data from Connection1 and pass it to Connection2 and vice-versa.Connection1 and Conenction2 are on different threads. What is the best way to call methods on different threads in order to pass data back and forth between them.Both threads will use the same message object type to communicate in both directions between them.
Thanks
Hi all,
I need a c# lang code to merge two xml files into one, from the specified content.
XML FILE 1 :
<exchange-documents>
<documentlegal>
<bibliographic-data>
<applicants>
<applicant-name>
<name>CENTURY PRODUCTS CO [US]</name>
</applicant-name>
</applicants>
</bibliographic-data>
</documentlegal>
</exchange-documents>
XML FILE 2:
<exchange-documents>
<documentpatent>
<bibliographic-data>
<applicants>
<applicant-name>
<name>CENTURY PRODUCTS CO [US]</name>
</applicant-name>
</applicants>
</bibliographic-data>
</documentpatent>
</exchange-documents>
I need to read the above two xml files and write it into a new xml files with selected elements?
OUTPUT XML:
<documentlegal>
<bibliographic-data>
<applicants>
<applicant-name>
<name>CENTURY PRODUCTS CO [US]</name>
</applicant-name>
</applicants>
</bibliographic-data>
</documentlegal>
<documentpatent>
<bibliographic-data>
<applicants>
<applicant-name>
<name>CENTURY PRODUCTS CO [US]</name>
</applicant-name>
</applicants>
</bibliographic-data>
</documentpatent>
I dont need the exchnage document element.
Can anyone provide me a c# code to achiev the above scenario?
My knowledge of mysql is not very in depth. If I have two tables that for example look like this:
Table1
Date v1 v2 v3
05/01/2010 26 abc 45
05/02/2010 31 def 25
05/03/2010 50 ghi 46
Table2
Date v1 v2 v3
05/01/2010 42 jkl 15
05/02/2010 28 mno 14
05/03/2010 12 pqr 64
How can I join them in a query by their date and have the sum of table1.v1 and table2.v1 and also have the sum of table1.v3 and table2.v3. V2 should be ignored.
I've got two ms access .mdb files that I need to compare/merge. Any good tools out there for this? Any way to easily export both to ascii sql where I can use something like Beyond Compare?
Hey, I'm just wondering if it's possible to have a form in html do two things on submit, have the action go to a url like normal (for a search) but also run a mysql command.
Thanks!
Hi,
I am making an application for 3d ball balancing game on j2me, I need to move my 3d ball on my ball path. I can get both ball and path object as a mesh from m3g file.
How I will know that my ball is in the path or not ?
Is there any notification I can get for interaction of two meshes ?
Thanks in advance...
what is the best way to split an existing Lucene index into two halves i.e. each split should contain half of the total number of documents in the original index
Hi,
I want to create an xml element having two namespace as below:
element name="Root" xmlns:xsi="myXSI" xmlns:xsd="myXSD"
I have checked out with the existing APIs, but it is not getting in this form. I am getting as
Root xmlns:xsd:xsi="myXSI" xmlns:xmlns:xsd="myXSD"
I am using this APIss as below:
xmlTextWriterWriteAttributeNS(xmlWriter, BAD_CAST "xmlns:xsd", BAD_CAST "xsi" , BAD_CAST "myXSD", BAD_CAST "myXSI");
I have two versions of a product and am using separate Hg repositories for each. I have made a change to one (v1.0) and I want to pull just that change into the v2.0 repository. How do I go about this? As far as I can tell, using hg pull -f -r xxxxx \\server\hg\v1.0 will pull in all changes up to the specified revision which isn't what I want.
Is this possible or will I have to add the fix by hand?
Hi
What is the easiest way (an environment?) to have a paragraph with one or with two vertical black lines on its left?
I have no idea where to start from.
hi guys! can you help me with these codes: http://pastie.org/908345, its two sortable lists and I need to get the serialize parameter of those lists to be passed when I click the submit button but I always get "(an empty string)" on "console.log". I'm using jquery-ui for this functionality. thanks!
I have a need of implementing two apps that will exchange data with each other. Both apps will be running on separate PCs which are part of a LAN.
How we can do this in Delphi?
Is there any free component which will make it easy to exchange data between apps across PCs?
I have a table with primary key (ColumnA, ColumnB). I want to make a function or procedure that when passed two integers will insert a row into the table but make sure the largest integer always goes into ColumnA and the smaller one into ColumnB.
So if we have SetKeysWithTheseNumbers(17, 19) would return
|-----------------|
|ColumnA | ColumnB|
|-----------------|
|19 | 17 |
|-----------------|
SetKeysWithTheseNumbers(19, 17) would return the same thing
|-----------------|
|ColumnA | ColumnB|
|-----------------|
|19 | 17 |
|-----------------|
I need to have two level tab navigation.
Basically like this:
Tab1 Tab2 Tab3
TabA TabB TabC
When user clicks for example Tab2 he then can choose again from 2nd level tabs (TabA, TabB etc).
I can make the first level ok but I can't make the 2nd level. How can i put it in the first level tabs.
Hi. I have to select the last two records for every topic.
ex:
table: msg
id | topic_id
------------
1 | 1
2 | 1
3 | 1
4 | 1
5 | 2
6 | 2
7 | 2
8 | 3
9 | 3
10 | 3
I want to obtain these rows:
3 1
4 1
6 2
7 2
9 3
10 3
How can I do this?
thanks