Hi,
I’m using SharpArch with SharpArch.Contrib’s [Transaction] attribute. The Transaction attribute is added to an application service method and if an exception is thrown during that method then any changes to any domain objects are rolledback. From all appearances this works well.
However, I’m writing NUnit tests to confirm that ex...
I would like to know how I can add attributes to the activity entity.
Currently the default activities are
Email, Task, Letter, Fax, Phone call, Appointment, Campaign, Service
I would like to add more to the pick-list. I have already tried going into customizing entities > Activities > Attributes > Activity type code. Once I get to the l...
Hi, I need to animate an attribute of an SVG element, which has no CSS counterpart -
<circle cx="..." /> How can I achieve that?
Or, I can use an alternative, e.g. if I could animate <g/> using CSS's top or similar.
Any experience?
Thanks, Ondra
Note this is not a duplicate of http://stackoverflow.com/questions/911357/how-can-i-anim...
If it matters, this is in ASP.NET MVC2 - how do I do this - how do I apply the "id" parameter to the attribute? This following syntax obviously does not work :)
[AuthorizeProject(ProjectId = id)]
public ActionResult Browse(int id)
{
// Stuff
return View();
}
...
I ahve a combo whose source is an Enum. Now , among the other values(say value1, value2
etc.) there is one item Changes(%) that will be displayed in the combo .
How to define Changes(%) in the enum?
Using C#3.0
Thanks
...
So here's the situation: I have an XML file that is holding a short list of nodes, all of which have two attributes associated with name and a score. This file is already loaded into flash and creates a high-score table, of sorts.
Now, what I want to do is to be able to grab data collected in the application, use that to change some at...
Has anyone extended the Range attribute to be able to have a variable range?
I have a similar need but I can't make this work:
public class YearRangeAttribute : RangeAttribute
{
public YearRangeAttribute()
: base(typeof(DateTime), DateTime.Now.AddYears(-100).Year.ToString(), DateTime.Now.AddYears(-14).Year.ToStr...
We are interested in finding maximum number of attributes a node has in a XML document. My code is below using C#:
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load(@"C:\ABC.xml");
XmlNode root = xmlDoc.DocumentElement;
int nodeAttrCount = 0;
foreach (XmlNode node in root) ...
I was recently told it was bad practice to haved marked a number of methods in our code with the [Obsolete] attribute. These methods were internal to our codebase, rather than being on an API. The methods handled an older encryption function.
I felt it was a quick and safe way to denote to the rest of the team that these methods should ...
I want to be able to set the value of a hidden field to the value of a rel attribute in a link:
$("#currentDir").val($(".jstree-clicked").attr("rel"));
But this doesn't work. This simpler expression works just fine however:
$("#currentDir").val("TEST");
That sets the hidden field with id = currentDir to the value "TEST". But why do...
I’ve created my own plugin architecture based on the common practices but I’m stuck with icons.
First of all my plugins define Clients to be used by the host and each Client is defined with attributes like:
[Client("Heroes of Newerth", "Heroes of Newerth Chat Client", "hon_16.png")]
With this my host application can read the plugin/c...
Hi, first post here.
I am using the jQuery validation plugin, to validate some custom forms, and submitting the forms to a CRM tool. The CRM tool has a wide array of Data variables, that we can post too, but on occasion there are fields which don't match and we need to post these all into the notes field in the CRM tool.
Now the proble...
Hello all,
First off, I'm not really sure how much information is necessary to include because I'm having a really hard time tracing the origin of this problem.
I have a Moose role with a subroutine that (along with a few other things) tries to set the attributes for a class like this:
$genre = Movie::Genre->new({
genreName => 'Dr...
Hello everyone, I would like to ask you some help in clarifying a few issues. But, before anything, some code is inbound first - it's a really simple login example I've constructed.
Container is Tomcat 5.5.27.
Let's assume correct username and pass combination is entered; questions are at the bottom.
LoginPage.jsp (entrypoint - view)...
Hi,
I would like to modify updated_at attribute so that every time record is updated it would only show date and hours while hours and minutes being zeros. Instead of 2010-08-13 11:04:12, there would be 2010-08-13 11:00:00. What is the most rational way to do this in Rails 2.3?
Update
The reason why I want to do what I have asked is ...
Hello!
If I do this:
*{padding:0}
div#myDiv{padding:10px;}
Will that behave like any normal styling in CSS with the last style applied overriding others? i.e. The element with the myDiv ID will have 10px padding? Or do I have to specify !important?
Will this work on all popular browsers?
Thank you!
...
I'm trying to log the contents of the HttpServletRequest attributes collection. I need to do this when the servlet first starts, and again right before the servlet is finished. I'm doing this in an attempt to understand a crufty and ill-maintained servlet. Because I need to have as little impact as possible, servlet filters are not an...
I have a config file as follows :
<section>
<template Count="20">
<data>
some data here
</data>
<data>
some more data here
</data>
</template>
<template Count="25">
<data>
some data here
</data>
<data>
some more data here
</data>
</template>
</section>...
I'm using attribute propagation to construct a syntax tree for a toy language. I've hit a problem at the definition of my if statement, it's hard to tell from the error message but I think the rhs attribute isn't collapsing into the expected attribute. It should collapse to a tuple <double,Statement,optional<Statement>> I think.
The err...
I'm using DataAnnotions in a ASP.NET MVC application for validate my input models. If I want to use resource files for the error messages, then I have to specify these with named parameters, like so:
[Required(
ErrorMessageResourceType = typeof(Validation),
ErrorMessageResourceName = "NameRequired")]
Since I use this in a bunc...