dynamic

Show me the way to use new "dynamic" keyword in C# 4.0

Here is new C# future in version 4.0 known as dynamic. Show me the way i can use it in my code and how this future can help me? ...

SSRS Report , Dynamic selection of fields

Hi, I want to create a report where my report's fields should change according to my input parameter values. eg. if i select '2 months'. there should be 2 fields in result, having month wise calculation. if select '3 weeks'. there should be 3 fileds each for each weeks calculation instead of the 2 months field. How do I achieve...

Dynamically assigning projects property name to variable within a class

Hi There... I have created a class to dynamically put together SQL function statements within a project. I have found this class to be pretty useful and would like to incorporate into future projects namespace connectionClass { public class connClass { NpgsqlConnection conn = new NpgsqlConnection(projectName.Properties...

Make GDB print control flow of functions as they are called

How do I make gdb print functions of interest as they are called, indented according to how deep in the stack they are? I want to be able to say something like (made up): (gdb) trace Foo* Bar* printf And have gdb print all functions which begin with Foo or Bar, as they are called. Kind of like gnu cflow, except using the debugging sy...

Howto dynamicly import a .js file in a .js file?

Duplicate question - see: How do you dynamically load a javascript file? (Think C’s #include) Is there a javascript equivalent of @import? Because using the following way of including another javascript file from within a javascript file doesn't seem very nice and clean. document.write("<script type='text/javascript' src='something....

Declaring Dynamic Memory Statements C++

Hi if I am creating something on the stack using new I declare it like: object *myObject = new object(contr, params); Is there a way to declare this such as: object *myObject; myObject = new object(constr, params); Is this correct? ...

Dynamic Scoping - Why?

I've learned that static scoping is the only sane way to do things, and that dynamic scoping is the tool of the devil, and results only from poor implementations of interpreters/compilers. Then I saw this snippet from a Common Lisp vs. Scheme article: Both Lexically and Dynamically Lexical scope only, per the standard. scoped spec...

c++ array declaration in a header

Hi, I was wondering if it is possible to declare an array (size not known at this time), as a private member of a class and later set the size in the constructor of the class. For example: class Test { int a[]; public: Test(int size); }; Test::Test(int size) { a[size]; // this is wrong, but what can i do here? } Is this possible o...

new dynamic tools analysis for C-code

Could somebody tell me wich new dynamic tools analysis for C-code are there like valdgrind? ...

Static memory allocation in Vista results in crash?

I'm using Microsoft Visual C++ 2008 Express, and have a pretty annoying problem. It doesn't seem to happen in XP but in Vista I can't find a way around it. Whenever I declare variables non-dynamically, if their combined size exceeds about 30mb, the program will crash immediately at start-up. I know that Vista limits non-Win32 apps to 32m...

Loading css rules dynamically in Webkit (Safari/Chrome)

Hi all, I currently have issues in Webkit(Safari and Chrome) were I try to load dynamically (innerHTML) some html into a div, the html contains css rules (...), after the html gets rendered the style definitions are not loaded (so visually I can tell the styles are not there and also if I search with javascript for them no styles are fo...

Use XSL to generate dynamic XSL that is executed within the same script?

Hello all, I want to dynamically create variables with dynamic names for later use in my transform, but to do this I'd need to dynamically generate XSL and then run it in the same script. This is just a rough pseudo code example of what I'm looking for. <xsl:for-each select="//constants/constant" > <xsl:variable > ...

Django FormWizard with dynamic forms

I want to implement a simple 2 part FormWizard. Form 1 will by dynamically generated something like this: class BuyAppleForm(forms.Form): creditcard = forms.ChoiceField(widget = forms.RadioSelect) type = forms.ChoiceField(widget = forms.RadioSelect) def __init__(self,*args, **kwargs): user = kwargs['user'] del k...

Alternative to DLL's as objects (dynamically replaceable objects)

I have an application that uses many different .NET managed DLL's as objects (each DLL implements a common interface). Each DLL also has a version number in the file name. Suppose I create the object "Shape~01.dll." The application will use that DLL but it can't be replaced while the application is running. So, if I want to "upgrade"...

Can you send dynamic data to a processing applet?

I have an ajax page which pulls data from a database. I'd like to add a processing applet to visualize the data but i can't figure out how to update the visualization as the data changes. The idea is to be able to push new data into the visualization. I'm not tied to the processing technology, anything will work. Processing just seems t...

Is there a general "backend" library for Java reflection

I'm currently working with a specialized, interpreted, programming language implemented in Java. As a very small part of the language, I'd like to add the ability to make calls into Java. Before I dive into all of the nitty-gritty of reflection, I was wondering if anyone knew of a general library for doing the "backend" part of invoking...

Dynamically add a usercontrol in VB.net

I have made a custom UserControl i Vb.net (windows application). How can I add this dynamically to a form? ...

How do I upload a file from a dynamically created FileUpload control with ASP.NET?

In my code attached below, I'm trying to upload a file via ASP.NET. I am dynamically creating the FileUpload control so that means it's not in my ViewState which (I think) means I can't use the control for uploading files unless I use the old fashioned multipat/form-data way which I don't want to do. I need to be able to allow the user...

Is there a way to access a cache or session from a static method?

How would you access the cache from a jQuery ajax call? I'm using jquery to do some data verification and quick data access. I have a static web-method that jquery is calling via json to return a value. I don't want to call to the database everytime so I'd like to cache the data I'm hitting, but I can't determine how to call the asp.ne...

Event handling in Dynamic asp.net user Control

Hi all, I Have a page, where I want to dynamically add asp.net user controls. The scenario is that we want that on specific event of a control, It disposes itself and loads another control in the page. I am not able to have solution how to do this? any one have decent Idea, Please help.. Thanks Singh Ajay ...