Hi,
I've got something like this (in Open Office Calc):
Streetname. Number
Streetname. Number a
etc.
Now I want to delete everything in front of the number.
So I need to do a search and replace I guess.
^.*?([0-9])
this one matches Streetname. Number .. but what should I put in the replace field?
If I do the search and replace, i...
In C++03, an expression is either an rvalue or an lvalue.
In C++0x, an expression can be an:
rvalue
lvalue
xvalue
glvalue
prvalue
Two categories have become five categories.
What are these new categories of expressions?
How do these new categories relate to the existing rvalue and lvalue categories?
Are the rvalue and lvalu...
Does anyone know of a library to handle events and recurring events likes the temporal expression libraries that exist for ruby like Runt (http://runt.rubyforge.org/) or TExp (http://texp.rubyforge.org/). Those libraries are perfect for what I need, but I need something in the >.NET Framework.
Thanks!
...
We know that int is a value type and so the following makes sense:
int x = 3;
int y = x;
y = 5;
Console.WriteLine(x); //says 3.
Now, here is a bit of code where we want to for lack of a better term "link" the two variables point to the same memory location.
int x = 3;
var y = MagicUtilClass.linkVariable(() => x);
y.Value = 5;
Consol...
Can someone help me simplify this expression for a Civil Engineering application? I had a quick answer here to some logical operations earlier, so I thought I would give it a try...
d=(g-h)*0.5/2*h + (g-l)*0.5/2*l + (L - (g-h)*0.5/2 - (g-l)*0.5/2) * g
where d=2.67; h=0.04; l=0.03; and L=28.4
I can't simplify the equation to isolate '...
I need to select from a CTE (common table expression) in DB2 v8 and insert the result into a table.
The relevant documentation for v8 is hard to understand at first glance, but for v9 there's a clear example (http://publib.boulder.ibm.com/infocenter/dzichelp/v2r2/index.jsp?topic=/com.ibm.db29.doc.apsg/db2z_createcte.htm):
INSERT INTO vi...
Ok my when I tab into and out of my Fax number field I get a validation error. Is it because of the way the expression is written?
^(1\s*[-\/\.]?)?(\((\d{3})\)|(\d{3}))?\s*[-\/\.]?\s*(\d{3})?\s*[-\/\.]?\s*(\d{4})?$
...
I think the best way to ask this question is to provide an example.
I have a string:
string line = "12345";
string pattern = "[0-9]{4}";
MatchCollection collection = Regex.Matches(line, pattern);
This will return ONE match in the collection: "1234". BUT, is there a way to get it to return "1234" AND "2345"? So I want the regular e...
I've seen this code for finding a Minor of a matrix:
RegMatrix RegMatrix::Minor(const int row, const int col)const{
//printf("minor(row=%i, col=%i), rows=%i, cols=%i\n", row, col, rows, cols);
assert((row >= 0) && (row < numRow) && (col >= 0) && (col < numCol));
RegMatrix result(numRow-1,numCol-1);
// copy the content of the matr...
Hey,
Basically I've wrote my own parser and I'm parsing a string into and expression and then compiling and storing to be reused later on.
For (an odd) example the type of string I'm parsing is this:-
if #name == 'max' and #legs > 5 and #ears > 5 then shoot()
The hash parts in the string are telling my parser to look at the properti...
Hi,
I have a small custom object defined as:
public class TimeSeriesDefinition
{
public int classID;
public DateTime startTime;
public DateTime endTime;
}
I'm passing a List classIDs, a List startTimes, and a List endTimes into an RIA Domain Service function. As a matter of organization, I was grouping these values into...
FullSimplify fails to recognize that:
a*Conjugate[b] + b*Conjugate[a] = 2 Re[a*b]
I have some very complex equations that could be simplified greatly if Mathematica could recognize this simple identity
(and that a*Conjugate[b] - b*Conjugate[a] = 2 Im[a*b]).
See, Mathematica will not finish solving my equations when written i...
Hello,
We would like to do a replace in our string like this:
- Every time a \n (new line) or \t (tab) or \r (carriage return) appears, it should be replaced by the string "\n" or "\t" or "\r".
For example, this string:
"Hello, how
are you?
Fine thanks."
Should be replaced by:
"Hello, how\n\tare you?\nFine thanks."
Could you help ...
I'm writing some code to help facilitate C# method patterns in expression trees. In the case of the using block, there are three ways to use it::
using(var something=IDisposible_value) //1
using(something = IDisposible_value) //2
using(something) //3
Right now my code looks like this:
public static Expression Gene...
I'm pretty sure this is something super easy, but how do i access a resource that is in a separate project using the expression syntax?
I thought it would be like so:
<%$ Resources:SomeNamespace.Resources.Web, PleaseSelectAnImage %>
where SomeNamespace.Resources is the project that the resources are located in.
i normally just do <%=...
Hi, there!
I need to bind an ASP.NET control something like so:
<asp:label ID="lblName" Text=<%# GetName()) %>
and in CodeBehind file I have this method:
protected string GetName()
{
...
}
Is this right, or how I can do something like this?
...
I am using AutoMapper where it has:
.ForMember( dest => dest.id, opt => opt.MapFrom(src => src.id))
Using the far right expression src => src.id, if I have a string variable with the property's name, how would I choose the property by it?
I tried this:
src => propertyName
Then had to laugh when the value was "id".
...