Hi,
in my unit test, the ViewResult.ViewName property is always empty when i use the action name for the view:
return View(model);
or
return View();
Is that by design?
Hi, what is the best programming language for writing a polymorphic virus? Do you know of any SDKs/toolkits I can use for rapid development? Also recommendations for design patterns would be helpful. Should I use a singleton? Thx.
I'm using C# and probably .Net compact framework. How should I design mobile news reader (RSS, Atom...).
What are risks I should be aware before I start?
What libraries are there to help me read and parse data and synchronize it when going from offline mode?
I need to design a page to register as well as login a user.By clicking login button login servlet should be called.And on clicking register button,register servlet will be called.how can i do this?
I have a site collection and user A is having Design permissions in it.I created a subsite inheriting parent permissions and now I need to give just read permissions to user A in my subsite.
I have tried going to users and group of subsite ..created new group having read permissions and added that user into it...but its not working any idea ...how I can do this?
I'm designing a web application.
I was wondering if it was feasible to design a php front end (using some php framework e.g. CakePHP), which stores and retrieves data to display to the user.
Then develop a java backend which listens to the database for changes, and depending on what was changed, performs some actions and updates the database.
Any thoughts on this type of implementation would be appreciated.
Below is my current structure for MySQL database
id | item_name | item_files
------------------------------------------
1 | Item A | file1.zip,file2.zip,file3.zip
2 | Item B | file3.zip
Example I create simple form to fill up Item Name and Multiple upload files then store it to db.
Question :-
How to design the db structure for accept the multiple files?
There have a way which I don't want to use explode, implode to get the file1.zip file2.zip file3.zip
Hi all,
in C++, when you define a function which takes one argument, you have to define the data type of that variable:
void makeProccess(int request)
However, I want to implement a function which takes different data types rather taking statically defined integer type.
void makeProccess(anyType request)
How can I design a proccess like this, any idea?
Thanks.
I have a lot of customized javascript and layout design, and I want to prevent as best I can people just copying and pasting and then using it for themselves. Is there any practical way to do this, or do I basically just have to be happy my php code does not show? I want to at least make it difficult to copy my site.
i have studied design patterns and want to use them to code an open source library (not an application).
but i have never coded a library before and don't know where should i include files, should i have a bootstrap file that loads everything or should every class load their own classes they are dependent on etc.
are there any tutorials for writing libraries in php from start to finnish?
thanks
Can we call send from one thread and recv from another on the same socket?
Can we call multiple sends parallely from different threads on the same socket?
I know that a good design should avoid this, but I am not clear how these system APIs will behave. I am unable to find a good documentation also for the same.
Any pointers in the direction will be helpful.
If I made a homepage with an embedded .swf which had buttons that linked to other html pages on my website using the getUrl() function, would those links be spiderable by google? Or should I also put in text links outside of the .swf (which would ruin the design a bit)?
I know a lot of people will argue I shouldn't have flash as the main content on the homepage (and their comments are appreciated), but bear in mind, that's not my question.
As was pointed out in a recent post scoping does not work as expected inside of Module.
An example from that thread is:
Module[{expr},
expr = 2 z;
f[z_] = expr;
f[7]]
(*2 z$1776*)
But the following works as almost as expected.
Module[{expr},
expr = 2 z;
Set@@{f[z_], expr};
f[7]]
(*14*)
What language design consideration made wolfram choose this functionality?
Hi,
I have an XML will is parsed and then fed to a bunch of Labels.
I am trying to add a live element so that the labels refresh automatically from the XML.
From what I've read this is possible using a tableView and [tableView reloadData] but the design dictates the use of labels. At the moment the labels only get updated on restarting the app, which is not ideal.
Using ViewWillAppear is one option, but want to stick to using lables.
i need to design a report that will print text on specified x,y coordinates
for example, i will input (50,50), (60,60), (70,70) and i will have my program print text at those specific coordinates on the report. in total there will be about 50 different coordinates.
how do i achieve this? should i be using a label control or a textbox? should i be creating the controls dynamically or should i already have controls set at the specified regions?
It seems that Sum not defined for IEnumerable<uint> (and other unsigned integers, for that matter)
var s = new int[] { 1, 2, 3 };
s.Sum(); //works fine
var us = new uint[] { 1, 2, 3 };
us.Sum(); //missing method
I would like to know:
Have I done something fundamentally wrong/misunderstood the situation?
What design decisions might cause the omission of IEnumerable<uint>.Sum()?
MSDN: Enumerable.Sum
I have an android app for which i need to ensure that it has no design/interface issues on both Motorola Droid and HTC touch-screens.
Now my question is that do i have to have both devices available for testing? If not, then is there an alternate?
I have a requirement to implement some kind of dictionary object. Something like MyDict<K,V1, V2). For example if I have a Question as Key(k) then Correct answer is V1 . V2 is user selected answer. Is there a collection that would satisfy this requirement in C#. If I have to design my own type, what interfaces should I implement. ICollection and Ilist ?
Can you please give me some idea about how to design a data structure in C# (3.0) which will give a representation of 3D data structure.
I mean to say something similar to cube. Like stock data to be viewed based on time , location .
Kindly give a simple working example or even a link will do.
It's urgent.
Any example will be appreciated.
Thanks in advance
I would like to design a progress bar, without using an image (eg animated gif...).
Can this be done with just html css and jquery?
trying to be creative here :)
Update:
the progress percentage cannot be determined, so it has to be a loop
Hi,
As a common rule, it is very often considered a bad practice to use const_cast<>() in C++ code as it reveals (most of the time) a flaw in the design.
While I totally agree with this, I however wonder what are the cases were using const_cast<>() is ok and the only solution.
Could you guys please give me some examples you know/you encountered ?
Thank you very much.