Questions tagged [dynamic]

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

Programs that perform some common tasks based on program inputs in contrast with programs that predetermine the task beforehand. Dynamic is often used to mean:

  • The dynamic keyword
  • using JavaScript to manipulate web pages in the browser.
  • have features that allow the of a variable to be bound at run-time.
  • Program generated content, especially content in contrast with web pages created by a person and stored on disk, ready to serve.
27209 questions
6
votes
2 answers

Let browsers cache my dynamic PHP stylesheet

I want to create a stylesheet in a PHP file (styles.php), such that the stylesheet becomes dynamic, depending on the user who requests is. For each individual user the stylesheet is constant, and should therefore be cached on his client browser. I…
myrddin 81
  • 61
  • 1
  • 2
6
votes
2 answers

Accessing value of dynamically created controls c# asp.net

I'm trying to access the value of a selected radioButton. I have a list of radio button's seperated by sub headers (hence why i havent used a radioList) I don't know how to access the selected value as i'm not sure what name it's given with it being…
Andrew
  • 9,967
  • 10
  • 64
  • 103
6
votes
1 answer

What is the practical difference between dynamic and T in C#

I read about Type dynamic in C# 2010. (the corresponding msdn entry) I am confused about the practical difference between T and dynamic while developing generic functions. My current tests didn't show new ways to use dynamica way, that isn't…
Dennis Alexander
  • 861
  • 1
  • 11
  • 26
6
votes
3 answers

How to center and scale SVG files inside another SVG file

I'm developing a program that generates svg files based on choices the user makes. One of these choises is to include another svg file centered on a specific point in the first one. The second file has an unknown aspect ratio and size, but it should…
Niko
  • 61
  • 1
  • 3
6
votes
2 answers

C++ default constructor, initializing pointer with new object

I have the following problem: In myClass I want to default initialize a pointer to yourClass, with a new yourClass adress. Unfortunately, if I want to delete the pointer at any point I get a (core dump). class myClass { protected: …
Alex
  • 175
  • 1
  • 3
  • 9
6
votes
2 answers

ActionScript 3: dynamic text help: scoring for game

I am very new to action script 3, and I am trying to make a very basic game right now. However, no matter how many pages I look at I can't find a working way to get my game to keep score :/. What I am trying to do is make it so that every 10…
jackbtroop62
  • 63
  • 1
  • 5
6
votes
1 answer

dynamic operator resolution

I have a generic method that calls operators by casting one of the operands to dynamic. There are two different calls: //array is T[][] //T is MyClass array[row][column] != default(T) as dynamic This works and calls static bool operator !=(MyClass…
Tamschi
  • 1,089
  • 7
  • 23
6
votes
4 answers

PHP Automatically Generate new pages

I'm making a social network type site, where users can upload their items to be rated. However, I'm trying to improve the way the site is laid out, so want to automatically generate pages once the user inserts a new item. The add.php page has the…
Bic1245
  • 127
  • 1
  • 2
  • 12
6
votes
1 answer

How to draw a smaller ShapeDrawable inside another shapeDrawable programmatically

Im trying to draw a smaller circle within another circle. It seems pretty simple but Im having trouble with this and couldnt find an answer. The code im using is: ShapeDrawable biggerCircle= new ShapeDrawable( new OvalShape()); …
Alan
  • 1,509
  • 1
  • 16
  • 21
6
votes
1 answer

how to get all columns from a linq result with a join

I've got some different typed lists, which I would like to join and get a dynamic result. Let's say list1 is the base list. List 2 and 3 are list with extra information. Sometime I want the info and in other runs I don't need (one of) them. If I…
user369122
  • 792
  • 3
  • 13
  • 33
6
votes
2 answers

How to make a table with rows that can be copied (adding a new row after that one, containing the same) with Javascript?

I am trying to make a table containing several rows, each with a button in the last cell that creates a copy of the row. All the other cells contains an input (text). The content (value) of the inputs that are added must be the same as the one…
Levi
  • 661
  • 7
  • 26
6
votes
1 answer

Use layout editor effectively on layouts with non-static fragments

With all the Android development tools greatness, especially as of version 21, the graphical layout editor is a powerful tool to have visual control over a layout with fragments for every configuration and locale. I'm aware that a typical Activity's…
6
votes
6 answers

Dynamic Byte Array in C# by Socket Programming [List does not work]

I'm sending to a device a request as byte array and I want to receive the anwser device gives. ... Socket deviceSocket = new Socket(server); List coming = new List(); ... deviceSocket.Receive(coming) Here the program gives error: Error…
Cmptrb
  • 255
  • 5
  • 8
  • 16
6
votes
4 answers

Dynamically add nested property to ExpandoObject

I'm getting a JSON object (may contain multiple levels of JSON arrays and such) which I want to translate into an ExpandoObject. I figured out how to add simple properties to an ExpandoObject at runtime as it implements IDictionary, but how do I add…
Alex
  • 75,813
  • 86
  • 255
  • 348
6
votes
1 answer

Exception while dynamically creating assemblies using DefineDynamicAssembly on non-current AppDomain

I want to dynamically create assemblies in the integration tests for the purpose of testing some assembly manipulation classes. If I use the following code to create the testing assemblies: var domain = AppDomain.CurrentDomain; var builder =…
famousgarkin
  • 13,687
  • 5
  • 58
  • 74