dynamic

Creating a dynamic linq query

I have the following query: from p in dataContext.Repository<IPerson>() join spp1 in dataContext.Repository<ISportsPerPerson>() on p.Id equals spp1.PersonId join s1 in dataContext.Repository<ISports>() on spp1.SportsId equals s1.Id join spp2 in dataContext.Repository<ISportsPerPerson>() on p.Id equals spp2.PersonId j...

Navigating to pages within a dynamically loaded XAP

I have dynamically loaded a silverlight application (XAP) with multiple pages, to be hosted inside a master application. I'm able to run the application and load and display the initial page of the dynamically loaded application (which itself uses the business app template). However, when that application then tries to navigate to one of...

How to execute unknown functions from dynamic load libraries?

It's easy to load functions from dynamic libraries when you know this function in design time. just do something like this: int (*fn)(int); l0 = dlopen("./libfoo.so", RTLD_LAZY); if (!l0) { fprintf(stderr, "l0 %s\n", dlerror()); return 1; } fn = (int (*)(int))dlsym(l0, "foo"); if ((error = dlerror(...

How can I make js that needs manual input dynamic?

I don't really know how to ask this, so I wrote up the script here: http://jsbin.com/acaxi/edit It's pretty straight forward, I'm trying to create sliding panels. I know there's alot of scripts that does that good, to be honest there are too many. If anyone thinks there is a plugin you could recommend instead of my script then please d...

Javascript - formular - nested dynamic appendchild functions

Hi I have a form which changes the inputfields depending on a radio-button. for text there appears a textbox for textarea there appear additional 2 fields for cols And rows for select, checkbox and radio there appear additional fields with appendchild have a look here: http://joomla.byethost16.com/php.php Now what i want is to let t...

Dynamically add items to Tkinter Canvas

I'm attempting to learn Tkinter with the goal of being able to create a 'real-time' scope to plot data. As a test, I'm trying to draw a polygon on the canvas every time the 'draw' button is pressed. The triangle position is randomized. I have two problems: There is a triangle on the canvas as soon as the program starts, why and how do ...

ivy resolve dynamic dependency

I am using Ivy to resolve my dependencies. We have a big share space where all the libraries we use live and are retrieved from as needed. Very occasionally we need to add some additional files to an existing library version. For example we recently started to use the charting components in a UI library. We hadn't previously needed t...

How to invoke static method in C#4.0 with dynamic type?

In C#4.0, we have dynamic type, but how to invoke static method of dynamic type object? Below code will generate exception at run time. The dynamic object is from C# class, but it could be object from other languages through DLR. The point is not how to invoke static method, but how to invoke static method of dynamic object which could ...

LINQ dynamic query

How to dynamically generate LINQ query: int[] IDArray = {55, 36}; public IQueryable<ContactListView> FindAllContacts(int loggedUserID, int[] IDArray) { var result = ( from contact in db.Contacts //Start of dynamic part... where contact.UserID == loggedUserID ...

Dynamically generating high performance functions in clojure

I'm trying to use Clojure to dynamically generate functions that can be applied to large volumes of data - i.e. a requirement is that the functions be compiled to bytecode in order to execute fast, but their specification is not known until run time. e.g. suppose I specify functions with a simple DSL like: (def my-spec [:add [:multiply...

Most common applications of the C# 4.0 dynamic type

Now that people have been using C# 4.0 for a while I thought I'd see how people were most often using the type 'dynamic' and why has this helped them solve their problem better than they may have done previously? ...

C# - Referencing a type in a dynamically generated assembly

I'm trying to figure out if it's possible when you are dynamically generating assemblies, to reference a type in a previously dynamically generated assembly. For example: using System; using System.CodeDom.Compiler; using System.Reflection; using Microsoft.CSharp; CodeDomProvider provider = new CSharpCodeProvider(); CompilerParameters...

dynamic naming of UIButtons within a loop - objective-c, iphone sdk

Dear Members, Scholars. As it may seem obvious I am not armed with Objective C knowledge. Levering on other more simple computer languages I am trying to set a dynamic name for a list of buttons generated by a simple loop (as the following code suggest). Simply putting it, I would like to have several UIButtons generated dynamically (wi...

How to create dynamic textfield based on radio button's input

I am trying to get a form's textfield to dynamically appear based on a radio checkbox selection. For example, on my form...there is a radio button that ask "Do you want to enter your age?" with an option to check YES or NO. If the user check YES, a textfield dynamically appear after this so the the user can enter his or her age. If user...

can i changed for loop index variable inside the loop in Matlab???

hi every one. i need to change my loop variable inside the iterationa as ihave to acces array elements in the loop which is changing w.r.t size inside the loop. ashort piece of code is that: que=[]; que=[2,3,4]; global len; len=size(que,2) x=4; for i=1:len if x<=10 que(x)= 5; len=size(que,2) x=x+1; end end que a...

can anyone please suggest some simple and short js for vertical multiple text scroll???

I have a js running in my site that is for text scrolling.What is does is that it scrolls a text vertically upwards then holds for a second or two and then shows next text.Here you can have an idea of what i need and im using http://www.dynamicdrive.com/dynamicindex2/crosstick.htm What i need now is a simple and shorter dynamic js for t...

Javascript: Make a static code, dynamic - List of inputs

I have this code, that checks some ids and enable others, the javascript is pretty clear about what it does, but since it corresponds to some specific id ranges, I cant do just a look until it finishes, but I'm looking a way to do this dynamic and save 40 lines of code (or more), since its not the best way. function loopGroup1() { v...

Programmatically loading Entity classes with JPA 2.0?

With Hibernate you can load your Entity classes as: sessionFactory = new AnnotationConfiguration() .addPackage("test.animals") .addAnnotatedClass(Flight.class) .addAnnotatedClass(Sky.class) .addAnnotatedClass(Person.class) .addAnnotatedCl...

how to detect if a property exists on a dynamic object in C# ?

In javascript you can detect if a property is defined by using the undefined keyword: if( data.myProperty == undefined ) ... How would you do this in C# using the dynamic keyword with an ExpandeObject and without throwing an exception ? ...

Java: Using Dynamically loaded classes

Hi I'm new to java. I'm trying to use some dynamically loaded classes in my application. The application doesn't know classes , Just it try to load a class by name that its name came from input. It doesn't know class (So I can't use casting) but just needs to call some methods of that class (every class should have that methods). I thoug...