I want to strip away all letters in a string, which are not numeric. Preferably a solution made with Regular Expressions or something. And in C#.
How to do that?
I have the following piece of code:
root="//valueExpression[matches(self::*,'pattern')]/.."
But I can only use XPath 1.0 and I get an exception for the function matches(). Can you please help me with a solution using only functions from XPath 1.0 ?
Is it possible to get information about post field order in ASP.NET? I need to know whether some field was the last one or not.
I know I can do it through Request.InputStream, but I’m looking for a more high level solution without manually stream parsing.
Generally I’m doing testing of http post sent by my application and there is no practical usage for this in ASP.NET.
hello friend,
I am using the easy eclipse on fedora Linux system. I have to configure the ucdetector with easy eclipse. which version of ucdetector is suitable with this.Please tell me the solution.
Thanks in advance..................
Hi,
I need to store a certain amount of data in the "char *" in C++, because I want to avoid std::string to run out of memory, when exceeding max_size(). But the data comes in data blocks from the network so I need to use reallocation every time I get the data block. Is there any elegant solution for char * reallocation and concatenation in C++?
On Unix, is there any way that one process can change another's environment variables (assuming they're all being run by the same user)? A general solution would be best, but if not, what about the specific case where one is a child of the other?
Edit: How about via gdb?
Hi,
In my MediaPlayer application for streaming Video i am using the following code
File temp = File.createTempFile("mediaplayertmp", "dat");
while running it throws exceptions like
Parent directory of file in not
writable:/sdcard/
mediaplayertmp43912.dat
I dont how to handle this problem,and i want to know that when we execute that code means where the file will be created.any one knows the solution means please help with some code.
How would I write a SQLite query to select all records from a specific month?
My dates are stored as Unix timestamps. PHP code is allowed in your solution if it's required. SQLite2-compatible queries only, please. :)
This doesn't need to be a real time solution, but are there some log files or system messages that could be read to identify periods of time where someone was connected via RDP to a Windows 7 machine?
I'm building a watchdog script for a computer which will be deployed in a remote place and would like to add this metric to a daily status update.
Hello: Does anyone have a solution to convert an acts_as_tree model to json that includes all its nodes? I trued using :include=:children, but that only goes down to one single level. Any idea how to iterate the whole tree?
hello all,
Please provide me a solution for GetByLatest it is giving me an error
How to use this "GetByLatest"
IList<IRss> news = new Trytable().GetByLatest().Cast<IRss>().ToList();
please help me
Thanks
Ritz
I want to resize a image with DPI 300 or greater..
I want it's DPI to remain intact...
I have used GD library function to resize image cropped but it brings down DPI to 90!!!!!!
please give a solution as my requirement involves no downsizing of DPI
Hi,
Being quite new with PHP, I cannot find any solution why this does not work. The query is OK and the resource is returned. But I dunno why fetch_assoc does not print values. Thanks
$query=sprintf("SELECT ID,NAME FROM USERS WHERE PASS='%s' AND NAME='%s'",mysql_real_escape_string($p),mysql_real_escape_string($n));
$result=mysql_query($query);
if ($result)
{
while ($row = mysql_fetch_assoc($result)) {
echo $row['ID'];
echo $row['NAME'];
}
}
}
How to capture screen image with mouse pointer on it in Java? In know that i can capture screen with Robot class, but it captures screen without mouse pointer on it, so this is not an solution for me.
How can you suppress the 'Terminated' message that comes up after you kill a process in a bash script?
I tried set +bm, but that doesn't work.
I know another solution involves calling 'exec 2 /dev/null', but is that reliable? How do I reset it back so that I can continue to see stderr?
Thanks
Hi
I would like to know about any Test Automation Solution adopted in Middle ware Testing. Is it similar to automation solutions provided for functional tests? I would like to know in what ways it is similar / different than Functional test automation.
What are the tools which can be used to accomplish test automation in Middleware testing?
Is it possible to add visual studio macro's to a solution, so they would be checked in by svn ?
If not, how do you deploy your utilities/scripts with your developer team ?
In Visual Studio 2008 I know its possible to have one solution with two (or more) projects.
Is it possible OR How is it possible for the projects to share common class files?
For example - Project 1 has a log file handling class. Can Project 2 reference it?
My hope is to increase code re-use and avoid two copies of the same thing that need to be maintained.
The target is Winforms C# (3.5)
I want to Change default path which is Program Files in windows application When Creating setup. I tried but i couldn't do that please tell me solution.
I have tried javascript window.print() It prints the full page content including the print button on the page.
thanks in advance for any solution and help
By default, parent_id = 0. I want to select all records with parent_id = 0 and only the last ones with parent_id 0.
I tried this, but it didn't work:
SELECT * FROM `articles`
IF `parent_id` > 0 THEN
GROUP BY `parent_id`
HAVING COUNT(`parent_id`) >= 1
END;
ORDER BY `time` DESC
What could be the solution?
Hi,
I want to display a small animated gif image in gridview image column. I tried it but my image is displayed without animation.
Can you have some solution for this??
Thanks.
I have two page one is login and second is attendance..
In attendance page there is two button In and Out visible any one of them at a time..
while i am pressing back button it navigates to previous button instead of previous page. plz give me solution for this..
Hi
i tried to implement a servlet with servlet (in tomcat 6) which act as as a proxy (for browser), it takes the parsed url, use apache httpclient to get the result & push it back to the client (browser), with http it works well, doesnt work with https , seems the problem concerns unsupported CONNECT method in servlet-api & servlet even doesn't see the request
is there any solution/workaround for this?
thanx in advanced