dynamic

How to generate C++ Dynamic Objects names ?

I'd like to generate a number of objects (in C++) based on the amount/number the user enters. Now I've somewhere heard that it has to be done using pointer tricks, creating a pointer to an array of the Object type required, and then dynamically increasing the size of array ( at runtime ). Isn't there a workaround of directly using name...

How to set dynamic subdomain cross server or in DNS setting

I have www.did5.com point to google appengine server I want to have anyname.did5.com point to www.did5.com/anyname And the url in address bar still anyname.did5.com I can't find the way to do by using dns setting (host records) Can anyone do ? Please help.. ...

AS3 Embed or Import all Classes in an external swf without referencing each Class seperatly.

**I have an ArtLibrary.swf file which has hundreds of MovieClips exported with class names. I want to be able to use these movies in multiple different flash files i'm working on but I don't know how to properly reference them after using and embed command. The following works** [Embed(source="ArtLibrary.swf", symbol="BirdBodyColor_...

SQL Function that returns dynamically pivotted data

Is it at all possible to have a table valued function in MSSQL that takes an attribute and generates an associated SQL statement with Pivot function? CREATE FUNCTION dbo.fnPivot (@EntityTypeID int) RETURNS TABLE AS BEGIN DECLARE @SQL varchar(MAX); DECLARE @COLS varchar(MAX); select @COLS=coalesce(@COLS+',','')+'['+Name+']'f...

Dynamic Binding in C++

Why does the derived class have to declare its methods as virtual for dynamic binding to work even though the methods of the base class are declared virtual? ...

Master Pages ASP.net in C# adding dynamic flavor

Ok I need to do this. I need to have button on master page. Once that button is clicked I generate string that represents URL. test.apx is content page I use and the string will look like something like this: Example: "www.blah.com/test.aspx?user=blax&develop=extreme_all" Now all I need is to reload the page while content is redirecte...

how to concatenate uniqueidentifier in a dynamic query

I have a dynamic query in which I want to concatenate uniqueidentifier, but + and & operators are not supporting this, is there a way I can concatenate uniqueidentifier to a dynamic string. Any sample or any help in this regard will be highly appricated. ...

Mapping a set of properties to another set where multiple source properties may be used in conversion rules?

I have a set of properties defined, the values are all stored as strings. I need to return a new set of properties where the value of each new property may derived in one of 3 ways. A direct copy of a specific source value. A default value. The result of some logic applied to the values of 1 or more source properties. My approach to ...

Dynamic Paths in Helper

hello, Im trying to create a helper method for my admin links. in quite a few views i have the code <% if current_user %> <%= link_to "Edit", edit_model_path(model) %> <%= link_to "New", new_model_path %> <%= link_to "Delete", model, :confirm => "Your a Noob", :method => :delete %> <% end %> that only display these when logged in. ...

parentNode.parentNode.rowindex to delete a row in a dynamic table

Hello, I am creating my rows dynamically when the user clicks on "Ajouter". <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <scri...

Possible to do xsl transform on dynamically generated xml?

Let's say I have an empty XML file like so: <root></root> And I want to add an element to root during an XSL transformation like so: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt; <xsl:output method="xml" encoding="UTF-8" omit-xml-declaration="yes" /> <xsl:template match="@*|node()"> <xsl...

Dynamic Flash banner with XML config file

I am a programmer, not a designer, so I prefer to let the computer do the creative work :-) We would like to implement a dynamic flash banner on our website that gets created on-the-fly from an XML config file. I would like to be able to set as many variables as possible in the XML config file, e.g. pictures fonts text and background...

asp.net mvc application - load/override views, controllers, JS files from plugin assemblies

I'd like to implement ASP.Net MVC application which could have controllers, views and content files (like JS, images, ..) assembled dynamically. I'd have a base web project which would contain some basic controllers, views and other content files, but it should be possible to extend/replace all of these items. The main reason for this...

Dynamic where clause in sqlahcmey

Hello I am trying to make the where clause in sqlalchemy for where condition like a==b and id in(1,2,3,4,5) and (x==y or t==y) i get input as [['a==b'], 'and', [<object of sqlalchemmy binary expression>], 'and', '(', ['x==y'], 'or', ['t==y'], ')'] Now from this list input i want to make the where expression. I tried making all...

regex and $_GET

I'm making a little site for a friend, noobfriendly, so she can add pages easy. I think I'm just gonna include everything in index.php. So she can just drop a page in a folder named /pages/ and it's done. index.php if (preg_match('/[a-zA-Z]/', $_GET['page'])){ $page = 'pages/'.$_GET['page'].'.php'; if ($page) { include $page; } else ...

Dynamic User Menu in Django

Is there a way to have a user menu that'll change according to the permissions assigned to the user group a user belongs to? I'm thinking of something that checks for these permissions at the view level, and also removes menu options a user doesn't have permission to. ...

How to access controls collection of dynamically loaded aspx page?

Let's say I have two webforms, A.aspx and B.aspx, where B.aspx contains some simple web controls such as a textbox and a button. I'm trying to do the following: When A.aspx is requested, I want to dynamically call and load B.aspx into memory and output details of all the controls contained in B.aspx. Here is what I tried in the codebe...

Get user group in a view

I want to display a menu that changes according to the user group of the currently logged in user, with this logic being inside of my view, and then set a variable to check in the template to determine which menu items to show....I'd asked this question before, but my logic was being done in the template. So now I want it in my view......

Using NSMethodSignature on iPhone (with Obj-C 2.0 properties)

Hey guys, I'm running the following code on my phone, where 'object' is a Cat, which is a subclass of Animal. Animal has a property 'color': NSLog(@"Object: %@", object); NSLog(@"Color: %@", [object color]); NSMethodSignature *signature = [[object class] instanceMethodSignatureForSelector:@selector(color)]; NSInvocation *invocation = [...

C++ dynamic memory detail

Hi folks, I'm a c and java programmer, so memory allocation and OOP aren't anything new to me. But, I'm not sure about how exactly to avoid memory leaks with C++ implementation of objects. Namely: string s1("0123456789"); string s2 = s1.substr(0,3); s2 now has a new string object, so it must be freed via: delete &s2; Right? Moreo...