I have a string with the following information.
Obabikon, ON 49°10'N 94°10’W 2278 km N69°W
I have a regex search as follows:
String LongPattern = @"(~)?([0-9\?])+°([0-9\?])*'[EWO]";
return FindPattern(source, LongPattern);
It should be finding the <94°10’W But is it not. This regex is working for the rest of my data with out any problems.
…
So I have a users table where the user.username has many duplicates like:
username and Username and useRnAme
john and John and jOhn
That was a bug and these three records should have been only one.
I'm trying to come up with a SQL query that lists all of these cases ordered by their creation date, so ideally the result should be something like…
I have installed the windows XP on which i have the VMWare as virtual server. I want to install / Host the sharepoint in such scenario in VMWare . Is that possible ?
Our product consists of multiple applications, All using Lucene. 2 of the applications I am involved with have Lucene indexes of about 3 GB and 12GB. Another team is building an application, for which they estimate the LUCENE INDEX size to be close to 1 Terabyte. New documents are added to the indexes every 15 days approx. We do not have any…
Hi,
I just started with VS2010 and the feature I was really looking forward too was the new Intellisense, and the Camel casing matching in particular.
But I must say I'm pretty dissapointed with the way it works and am wondering if this is just a setting, or not.
When I type 'OIE' I get the following results:
OrderItemBackerEntity…
Hi,
In a C++ project, I use the JNI invocation API to launch a JVM. I've done a little wrapper arount the JVM so I can use all the needed parts in a OO fashion. So far that works great.
Now, if the JVM does not start (JNI_CreateJavaVM returns a value < 0) I'd like to raise an exception within my C++ code.But if I throw an…
I have this function called ProperCase that takes a string, then converts the first letter in each word to uppercase. So ProperCase("john smith") will return "John Smith". Here is the code:
public string ProperCase(string input)
{
var retVal = string.Empty;
var words = input.Split(' ');
…
I have a file, let's say file.txt I have done git mv file.txt to file1.txt, then I created a new file called file.txt and worked on it, unfortunatly I didn't add that file to git yet. Anyway the problem is that I did git stash, then git stash apply, but the new file.txt disappeared... anyway to get it back?
Please have a glance at this program:
class CopyCon
{
public:
char *name;
CopyCon()
{
name = new char[20];
name = "Hai";//_tcscpy(name,"Hai");
}
CopyCon(const CopyCon &objCopyCon)
{
name = new char[_tcslen(objCopyCon.name)+1];
_tcscpy(name,objCopyCon.name);
}
~CopyCon()
{
if( name !=…
I have a simple table made up of two columns: col_A and col_B.
The primary key is defined over both.
I need to update some rows and assign to col_A values that may generate duplicates, for example:
UPDATE `table` SET `col_A` = 66 WHERE `col_B` = 70
This statement sometimes yields a duplicate key error.
I don't…
Hi all!
I have a problem selecting a checked radio button with jquery. The radio buttons are generated by a function from a MVC that i'd rather not change and its name is like id[number].
Simply put, I have to check if any of these buttons are checked:
<input type="radio" name="id[1]" value="1"/
<input…
I have a piece of code where I can call destructor multiple times and access member functions even the destructor was called with member variables' values preserved. I was still able to access member functions after I called delete but the member variables were nullified (all to 0). And I can't double delete.…
I would like to know a few practical use-cases (if they are not related/tied to any programming language it will be better).I can associate Sets, Lists and Maps to practical use cases.
For example if you wanted a glossary of a book where terms that you want are listed alphabetically and a location/page…
I am writing C# code that interfaces to a legacy (Feb 2012) C program, using DllImport. It works fine, but I need to call more than 30 different functions, turning my normally impeccable, exquisite code into something of near-elephantine proportions. Surely there must be a way around this? [Warning:…
I am doing a software for a document system. In this system when a user completes a document and want to save it, the document will be uploaded directly to server without the user action.
This system uses COM/ActiveX to facilitate user using native editors.
Ok, my problem is: suppose I have a file say…
I have a string of text (about 5-6 words mostly) that I need to convert.
Currently the text looks like:
THIS IS MY TEXT RIGHT NOW
I want to convert it to:
This Is My Text Right Now
I can loop through my collection of strings, but not sure how to go about performing this text modification.
Is there a way to get GHCi to produce better exception messages when it finds at runtime that a call has produced value that does not match the function's pattern matching?
It currently gives the line numbers of the function which produced the non-exhaustive pattern match which though helpful at times…
Consider tables
Table1
id, name
1 xyz
2 abc
3 pqr
Table2
id title
1 Mg1
2 Mg2
3 SG1
Table3
Tb1_id tb2_id count
1 1 3
1 2 3
1 3 4
2 2 1
3 2 2
3 3 2
I want to do query to give result like
id title
1 …
With everything legal and in line with the ethical questions in software development, is it allowed to use an open source product in my software that I charge a fee for when selling?
Scenario: I've developed an PHP Content Management System (CMS) and use some Linux executables licensed under GPL or…
I'd like for any url that doesn't hit an existing file, to do a lookup on the other possible cases and see if those files exist, and if so, 302 to them.
If that's not possible, then I'm ok with these compromises:
Only check the lowercase version
Only check the first path portion
For example…
hi,
I am reading a "table" in Python in GAE that has 1000 rows and the program stops because the time limit is reached. (So it takes at least 20 seconds.)(
Is that possible that GAE is that slow? Is there a way to fix that?
Is this because I use free service and I do not pay for it?
Thank you.…
0 vote down star
I have used hibernate to fetch the login information from the mysql database. But the problem is that say for example the user name is 'dhiraj' in the database, now the login is successful by entering the user name, but it is also allowing to enter by taking the user name in…
I'm brand new to Ruby testing and Google isn't helping.
Using Test/Unit, how can I print an instance variable, like
test "thing to happen" do
do_stuff
assert_equal "foo", @variable
p @varible
end
link text
click this link , you will redirect to shopping site,
in this site right side , there is a block called TOP SELLER ,
Tell that plugin name ,
Thanks