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...
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..
...
**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_...
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...
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?
...
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...
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.
...
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 ...
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.
...
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">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<scri...
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">
<xsl:output method="xml" encoding="UTF-8" omit-xml-declaration="yes" />
<xsl:template match="@*|node()">
<xsl...
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...
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...
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...
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 ...
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.
...
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...
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......
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 = [...
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...