In my Standard MBean, I'd like to set the Description field that shows up in JConsole under the MBeanAttributeInfo heading. Right now it has a default value of "Attribute exposed for management". I can't seem to figure out how I set that when I define the attribute method in the MBean. I'm using a Java 6 JVM. Thanks.
...
My generic method needs to serialize the object passed to it, however just insisting that it implements ISerializable doesn't seem to work. For example, I have a struct returned from a web service (marked with SerializableAttribute) that serializes to xml just fine, but, as expected, the C# compiler complains.
Is there a way I can check...
There exist other ways of linking to JS, apart from this (the usual)..
<script src="myscript.js" type="text/javascript"></script>
...that utilize other quote types:
<script src="myscript.js" type="text/javascript"></script>
Are these widely supported in modern browsers, and older browsers in use, such as IE6? Basica...
Further to my last question, I'd like to know if current browsers can read attribute values without any quotes, even if the value contains slashes, like:
<script src=/path/to/script.js type=text/javascript></script>
Will it work without causing a DOM parsing error and corrupting the entire document?
...
I am trying to make my own user control and have almost finished it, just trying to add some polish. I would like the option in the designer to "Dock in parent container". Does anyone know how to do this I can't find an example. I think it has something to do with a Docking Attribute.
...
Scenario:
I have a base class "MyBase".
I have a custom attribute "MyAttrib"
With that I do this:
[MyAttrib(1234)]
class MyClass : MyBase()
{
MyClass()
{
}
}
Question:
Can I in any way force classes inherting from MyBase to have the attribute MyAttrib?
...
I've got a LINQ 2 SQL generated class I'd like to expose through a webservice.
There are some internal properties I don't want to be available.
Normally I'd throw [XmlIgnore] in there but because the properties are in the generated half I can't do that.
I've been looking at using MetadataType following this post which looks like it sho...
I don't really understand attributes. I've read all kinds of books & posts on them, but I just don't get it.
Since I don't understand them, I also don't understand how to effectively use them.
1) Can you give me a good definition of what an attribute is & what it's used for?
2) Can you give me a good code example in C# of how to make ...
if($(currentTab+' form.dataform').attr('name') !== undefined)
var $selectedTab = $(currentTab+' form.dataform').attr('name');
else
var selectedTab = '0';
alert($(selectedTab)); Gives me an object. I need string. How?
...
Does the [Authorize] attribute used with ASP.NET MVC controllers only function with sites that have implemented a MembershipProvider?
...
Are there any good way to use the Conditional-attribute in the context of testing?
My thoughts were that if you can do this:
[Conditional("Debug")]
public void DebugMethod()
{
//...
}
Maybe you could have some use for: (?)
[Conditional("Test")]
public void TestableMethod()
{
//...
}
...
I find myself writing this code a lot:
private int _operationalPlan;
public int OperationalPlan
{
get
{
return _operationalPlan;
}
set
{
_operationalPlan = value;
RaisePropertyChanged();
}
}
private void RaisePropertyChanged()
{
...
Hi
I've been using Django for over a year, but I think I've missed out on some very fundamental thing. I have a rather large queryset (1000+ objects) and I'd like to change a single attribute for each of the objects in that queryset. Is this really the way to go? I'm sure there is something simpler?
for obj in qs:
obj.my_attr = True ...
Hi,
I have an interface, an abstract implementation of interface with generics and a concrete implementation.
eg.
interface IProperty
[Class(Table = "Properties", Lazy = false)]
abstract AbstractGenericProperty<T> : IProperty
[Subclass(ExtendsType = typeof(AbstractGenericProperty<string>), DiscriminatorValue = "string", Lazy = false...
The trusty old preprocessor directive in C# appear to work great when I write:
#if DEBUG
...
(Some code)
...
#endif
However, attributes enclosed in the conditional block appear to continue to get processed and I get errors indicating such. For instance, surrounding an [AssemblyVersion(...)] within the conditional block appears to have...
I am having 4 radiobuttons in my web page like below:
<label for="theme-grey"><input type="radio" id="theme-grey" name="theme" value="grey" />Grey</label>
<label for="theme-grey"><input type="radio" id="theme-grey" name="theme" value="pink" />Pink</label>
<label for="theme-grey"><input type="radio" id="theme-grey" name="theme" value="gr...
A little known built-in Perl feature is attributes. However, the official documentation is doing a rather bad job introducing newbies to the concept. At the same time, frameworks like Catalyst use attributes extensively which seems to make many things easier there. Since using something without knowing the implications sucks a bit, I'd l...
Hi all!
This is embarrassing, but here goes. Here's the page that I'm working on: www.mchenry.edu/administration/BoardSchedule.asp
I'm using jQuery ver. 1.3.1 and I'm putting tiger stripes on the table. All is well. However, I want to insert a FileInfo class after all .pdf file extensions in the document, so users know they are selecti...
I have an form input element and I want to change it's title attribute. This has got to be easy as pie but for some reason I cannot find how to do this. How is this done and where and how should I be searching on how to do this?
...
Hi,
how do I select special attributes like 'user:name' or 'city:id' using jQuery?
<div user:name="Ropstah"></div>
<span city:id="4"></div>
Javascript
//this works:
alert($('div').attr("user:name")); // alerts 'Ropstah'
//this doesn't work:
alert($('div[user:name]').attr("user:name")); //error
alert($('div[user\\:name]').attr("...