I have a table that looks like this:
|StreetName NR| NR |
|Teststreet 34| 34 |
How can i delete only the number in Streetname when it is the same in NR??
Hi there
In a given binding is it possible to specify the path on the source object? Seems like this could a void a lot of trivial converters..
Imagine this..:
class foo
{
bool A
int B
}
<ComboBox ItemsSource="ListOfFoos" SelectedItem="{Binding number, SourcePath=B}" />
You need to use division and remainder by 10. Consider this example:
163 divided by 10 is 16 remainder 3
16 divided by 10 is 1 remainder 6
1 divided by 10 is 0 remainder 1
You'll notice the remainder is always the last digit of the number that's being divided. Now figure out a way to do this in C...
How do i do it in c Help :(
I'm trying to access the number in the below element, but I'm having trouble getting the value out of it.
echo $object->0; //returns Parse error: syntax error, unexpected T_LNUMBER, expecting T_STRING or T_VARIABLE or '{' or '$'
SimpleXMLElement Object (
[0:public] => 15810
)
Any ideas on how I can get that value?
I am building an iphone app and would like to keep track of how many times it has been opened so that I can prompt the user to do certain actions after it has been opened X number of times. I have thought about storing a variable in Core Data which I update every time it is opened, but this seems like a waste since it is a singleton data, not multiple instances of an object. What is the best way to store data like this and access it without slowing down the app opening time?
I am trying to pass a string to an asmx service. Actually, the parameter is a number with leading zeros, but the asmx gets the string with leading zeros removed.
How to avoid the truncation of leading zeros.
TIA.
How do I calculate number of years since product was made (rounded to 1 decimal point) for products that were made less than five years ago? Thank you.
SQL query which select the record from three tables and there is no relation between these tables. Actually I want to make it a VIEW.
suppose there are three tales Table1, Table2, Table3
I want to show records of Table1 first with some filter criteria
and then the records from Table2
and in last from Table3 as when we execute the view it show like the records like a Table.
There can be any number of rows but the records must be in this sequence.
hi,
i have to pages:
domain.com/
domain.com/post.php?id=43
Inside the second page i have added Disqus comments... but i need to know the number of comments in that post in the first page (post list). Is it feasible?
What I am confused on is about the isNumPalindrome() function. It returns a boolean value of either true or false. How am I suppose to use that so I can display if it's a palindrome or not. For ex. if (isNumPalindrome == true) cout << "Your number is a palindrome"; else cout << "your number is not a palindrome.";
#include "stdafx.h"
int _tmain(int argc, _TCHAR* argv[])
{
return 0;
}
#include <iostream>
#include <cmath>
using namespace std;
int askNumber();
bool isNumPalindrome();
int num, pwr;
int main()
{
askNumber();
return 0;
}
bool isNumPalindrome()
{
int pwr = 0;
if (num < 10)
return true;
else
{
while (num / static_cast<int>(pow(10.0, pwr)) >=10)
pwr++;
while (num >=10)
{
int tenTopwr = static_cast<int>(pow(10.0, pwr));
if ((num / tenTopwr) != (num% 10))
return false;
else
{
num = num % tenTopwr;
num = num / 10;
pwr = pwr-2;
}
}
return true;
}
}
int askNumber()
{
cout << "Enter an integer in order to determine if it is a palindrome: " ;
cin >> num;
cout << endl;
if(isNumPalindrome(num))
{
cout << "It is a palindrome." ;
cout << endl;
}
else
{
cout << "It is not a palindrome." ;
cout << endl;
}
return num;
}
I am using the ScintillaNET component and I am attempting to capture clicks in the margin, as this will determine how I respond. Unfortunately, the margins capture the mouse events (and don't provide a way, from what I can see, to get the click information - number of clicks, mouse button clicked, etc).
If this is indeed the case (I am not able to get that info directly), what is another way of capturing what the mouse is doing before the MarginClick event is fired?
Thanks for any help!
Hi, I'm currently creating a subscription membership for my website.
I'm storing the date their subscription started in my database using time() (not extra parameters)
If not, how can i find the number of days between the current time() and the time() stored in the database?
Thanks!
In other languages you have a number of possibilities usually for memory reclamation:
Mark objects and then remove them
Explicit retain and release
Count references to objects
Internal heap disposition
How does Ruby work?
I simply want to include a row number against the returned results of my query.
I found the following post that describes what I am trying to achieve but gives me an exception
http://vaultofthoughts.net/LINQRowNumberColumn.aspx
"An expression tree may not contain an assignment operator"
In MS SQL I would just use the ROWNUMBER() function, I'm simply looking for the equivalent in LINQ.
I am generating an excel file through C# code. the cell Data type I'm giving as "" . Once I give Number instead of String The generated Excel could not open.
How can I change the Datatype of the cell which I generated through the Code?
Thanks in Advance.
Given a protein structure from the PDB, I would like to generate NS spheres of radius Rs which cover totally the protein surface. Given RS there, NS is the maximum number of spheres so they do not overlap. I would need the coordinates of the center of each sphere.
Does anybody know if this has been implemented in some method / program? Or how to do it with scripting.
Thanks
I have plenty of RAM, however, after starting and finishing a large number of processes, it seems that most of the applications' virtual memory has been paged to disk, and switching to any of the older processes requires a very long time to load the memory back into RAM.
Is there a way, either via Windows API or via kernel call, to get Windows to unpage all (or as much as possible) memory? Maybe by stepping through the list of running processes and get the memory manager to unpage each process's memory?
I have a function, for example
function test(p1:int=7,p2:Boolean=true,p3:uint=0xffff00,p4:Number=55.5)
{
//instructions
}
How to change only p4, for example, and parameters p1,p3,p3 was still default?
Next time I want to change for example only p2, and parameters p1,p3,p4 was still default?
etc.
I have a table with anniversary dates. I want a query that returns me rows of anniversaries coming up in the next 10 days. For instance:
birthdate
---------
1965-10-10
1982-05-25
SELECT birthdate FROM Anniversaries WHERE mystical_magical_mumbo_jumbo <= 10
+------------+
| birthdate |
+------------+
| 1982-05-25 |
+------------+
1 row in set (0.01 sec)
I'd like to keep the query in the form x <= 10, because I'll use that number 10 in other parts of the query, and if I set it to a variable, I can change it once everywhere by changing the variable, and not have to re-write the query.
I was reading that memcpy takes the number of bytes from a source location and adds it to a destination location. Does this mean that memcpy could possibly change datatype entirely ??
memcpy(DoubleOne, CharTwo, strlen(CharTwo));
considering that both values are empty still.
If a variable will always be a number, is there a performace loss by putting it in inverted commas?
for example
"SELECT prod.product_name FROM prod WHERE prod.id = '$id'";
I've built a custom logging utility which displays a Log Message and the DateTime. I would like to add the line number in the source code which called the function.
Is there a way to determine which line of the HTML source a particular javascript function was fired?
BBTHMNN(h) = Balanced Binary Tree Have Minimum Number Of Nodes
BBTHMNN(h) = BBTHMNN(h-1) + BBTHMNN(h-2) + 1
Name of the balanced binary tree which satisfying the above formula. I have searched all over the internet but I couldn't found the name of the tree