expression

php regular expression assistance bold a filename

I am not very good, with regular expression in php I am trying to get a reg_expression to find all file names such as /file-name-here.php and make it bold. This expression works in Flash but not in php it also doesn't accept the '-' i'm not sure why i can't get it to work with preg_replace /(https?://)?(www\.)?([a-zA-Z0-9_%]*)\b\.[a-z...

Where to find Helpful Silverlight Tutorial (interactive)

I want to be able to create an interactive type program where a user can pin point plots on a graph, so if a user clicks anywhere on the map a dot of some sort will be plotted. I just need a helpful tutorial on silverlight to help me do this sort of thing. I have tried looking up google but I am not finding exactly what I want. ****I a...

Wrong assembly-references for Silverlight Sketchflow project in Blend 3

Hello, In my installation of Blend 3, the SketchStyles are missing when a new project is created. I found out that this is because the following automatic references in the project are wrong: Microsoft.Expression.Interactions Microsoft.Expression.Prototyping.Interactivity Microsoft.Expression.Prototyping.RunTime Microsoft.Expression.P...

when searching by year tag parameter it's finds the nearest and not strict

{exp:weblog:entries weblog="news" limit="5" paginate="top" year=segment_1 month=segment_2 } this code sometimes looks like it's working, and sometimes finds other blog entries. what could be the problem? is there any more info i would need to give you? ...

ANTLR expressions rewrite intermediate tree

For expressions like 3+4 I would like to use the value 7 in an intermediate representation tree. I cannot work out how to get the returns value into a rewrite rule. expression returns [int v]: etc. How do I get expression.v into WR? At the moment I get (+ 3 4), I want (7) |^( WRITE c=expression) -> ^(WRINT ^(INTC ^($c)) the next s...

Why is this logical expression in python False?

My question is, why are these expressions False? Python 2.6.4 (r264:75706, Dec 7 2009, 18:45:15) [GCC 4.4.1] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> num = raw_input("Choose a number: ") Choose a number: 5 >>> print num 5 >>> print ( num < 18 ) False >>> print ( num == 5 ) False Because i...

Working with expression AST:s

Hi, Is there any best practice when working with AST:s? I have a parsed expression AST. ConstantExpression, BinaryExpression etc. I want to populate a GUI-dialog with information from the AST, and it's here where I get kinda confused because my code gets pretty messy. Example: expression = "Var1 > 10 AND Var2 < 20" I want to popula...

Access Expression problem: it's too complex, so how do I turn it in to a function?

Access 2007 is telling me that my new expression is to complex. It used to work when we had 10 service levels, but now we have 19! Great! I've asked this question in SuperUser and someone suggested I try it over here. Suggestions are I turn it in to a function - but I'm not sure where to begin and what the function would look like. My e...

Generating Thumbnail from a Video file after it gets uploaded using Expression Encoder in C#

HI All, I have site where the user upload the Videos. I want to generate a thumbnail from the video after it gets uploaded and store it in the hard disk. I want to do this using expression encoder in C#. Can any1 pls help me out. Thank you. ...

LINQ to SQL: Reusable expression for property?

Pardon me for being unable to phrase the title more exact. Basically, I have three LINQ objects linked to tables. One is Product, the other is Company and the last is a mapping table Mapping to store what Company sells which products and by which ID this Company refers to this Product. I am now retrieving a list of products as follows:...

Expression Encoder, Automatically start a live encoding session?

I configured my setting for live stream then save it to "test.xel" file. Can i open "test.xel" file from command - line? Can stream automatically start when "test.xel" file opens? Regards and thank you already now! ...

Print expression as is without evaluating it

i want to print the expression Xmin and Ymin as is without calculating the final value . i,e with the values of I and J as 1,2,3,4,5 example when I=1 Xmin= Xmin ((1 - 1)*10 + (1 - 1)*1) is there a way to do it .. I tried the following code, but no luck: int a, g; a = 10; g = 1; for (int J=1; J<=5; J++) { for (int I = 1; I <= ...

MVVM Light + Blend designer view error: Cannot find resource named 'Locator'.

The application runs fine but i could not see my design in the designer view. It says Cannot find resource named 'Locator'. Obviously, i did not change anything in the code, i just did the data binding using the data binding dialog... anyone facing the same problem? ...

DataGridView/Column/Expression property help. Error when I save to database.

I have a datagridview with columns: [Rent] [Electric] [deposit] [amount paid]. I also have 2 other columns called [total due] and [balance due] (in that order across the grid). In the properties panel, in the expression property of the [amount paid] column, I entered this expression : [Rent]+[Electric]+[deposit]. This calculates these 3...

Return nested alias for linq expression

I have the following Linq Expression var tooDeep = shoppers .Where(x => x.Cart.CartSuppliers.First().Name == "Supplier1") .ToList(); I need to turn the name part into the following string. x.Cart.CartSuppliers.Name As part of this I turned the Expression into a string and then split on the . and removed the First() argumen...

VC++ Debugger expression

In debug | Immediate window, why do i get this error: szTemp is a local variable at {,,Util.dll}MySock.Write("%s",szTemp) CXX0017: Error: symbol "szTemp" not found int SomeFunction( ..) { char* szTemp = new char[1024]; . . ---> Breakpoint.. Trying to run the expression here.. . . } ...

using an expression inside XContainer()

I have two xml files but one file will contain an extra field. Ideally I would like to add an if statement withing the XElement but I dont think its possible. Obviously this is horribly wrong, its just an example to give you some idea what I would like to do: XElement xml = XElement.Load(pfileLocation); xml.Add(new XElement("...

InvalidOperationException (Lambda parameter not in scope) when trying to Compile a Lambda Expression

Hello, I'm writing an Expression Parser to make my API more refactor friendly and less error prone. basicaly, I want the user to write code like that: repository.Get(entity => entity.Id == 10); instead of: repository.Get<Entity>("Id", 10); Extracting the member name from the left side of the binary expression was straight forward....

Using module include in OCaml

In OCaml 3.11, I want to "extend" an existing module using the include directive, like so: module MyString = struct include String let trim s = ... end No problem. But now I want to expose this module's type explicitly (i.e. in a .mli file). I want something like this: module MyString : sig include String val trim : string ...

Convert a string to Linq.Expressions or use a string as Selector?

Well I have a string now that has the expression value to be evaluated..it has say value "expr=>expr.FieldName"... so I want to use this string as Linq.Expression or any other way to query...like Select(str). Please help me out. ...