Dynamic is a widely used term that, in general, describes a decision made by the program at run-time rather than at compile time.

727
votes
21answers
472k views

Deserialize JSON into C# dynamic object?

Is there a way to deserialize JSON content into a C# 4 dynamic type? It would be nice to skip creating a bunch of classes in order to use the DataContractJsonSerializer.
2632
votes
19answers
604k views

What is the difference between call and apply?

What is the difference between using call and apply to invoke a function?var func=function(){alert('hello!');};func.apply();vsfunc.call();Are there performance differences between the ...
28
votes
3answers
33k views

Using JFreeChart to display recent changes in a time series

How can I use JFreeChart to display just the most recent data in a continually updated time series?Addenda: A complete, working example that incorporates the accepted answer is shown here. See also ...
23
votes
4answers
4k views

How do I correctly set up, access, and free a multidimensional array in C?

I have seen dozens of questions about “what’s wrong with my code” regarding multidimensional arrays in C. For some reason people can’t seem to wrap their head around what is happening here, so I ...
128
votes
7answers
147k views

Using braces with dynamic variable names in PHP

I'm trying to use dynamic variable names (I'm not sure what they're actually called) But pretty much like this:for($i=0; $i<=2; $i++) {$("file" . $i)=file($filelist[$i]);}var_dump($...
51
votes
3answers
101k views

How To have Dynamic SQL in MySQL Stored Procedure

How do you build and use dynamic sql in a MySQL stored procedure?
19
votes
1answer
31k views

How can I update a JFreeChart's appearance after it's been made visible?

How can I use JFreeChart to dynamically update a chart's appearance after it's been made visible?
123
votes
5answers
146k views

Compiling dynamic HTML strings from database

The SituationNested within our Angular app is a directive called Page, backed by a controller, which contains a div with an ng-bind-html-unsafe attribute. This is assigned to a $scope var called '...
66
votes
7answers
89k views

Dynamic variable names in Bash

I am confused about a bash script.I have the following code:function grep_search() {magic_way_to_define_magic_variable_$1=`ls | tail -1`echo $magic_variable_$1}I want to be able to ...
13
votes
3answers
76k views

MySQL pivot table query with dynamic columns

I'm using the following tables for storing product data:mysql> SELECT * FROM product;+---------------+---------------+--------+| id | name | description | stock |+---------------+-------...
302
votes
3answers
127k views

What's the difference between eval, exec, and compile in Python?

I've been looking at dynamic evaluation of Python code, and come across the eval() and compile() functions, and the exec statement.Can someone please explain the difference between eval and exec, ...
112
votes
5answers
195k views

Android - Dynamically Add Views into View

I have a layout for a view - <LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="fill_parent"android:layout_height="fill_parent"...
67
votes
5answers
46k views

How to call methods dynamically based on their name?

How can I call a method dynamically when its name is contained in a string variable? For example:class MyClassdef foo; enddef bar; endendobj=MyClass.newstr=get_data_from_user # e.g. `...
81
votes
3answers
17k views

Extension method and dynamic object

I am going to summarize my problem into the following code snippet.List<int> list=new List<int>() { 5, 56, 2, 4, 63, 2 };Console.WriteLine(list.First());Above code is working fine....
54
votes
9answers
125k views

How do I work with dynamic multi-dimensional arrays in C?

Does someone know how I can use dynamically allocated multi-dimensional arrays using C? Is that possible?

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,