Hello,
how can I generate a xsd schema for a c# type (in code). There must be certainly a way, because xsd schema is generated for datacontracts in wcf.
[MetadataType(typeof(Deal_Validation))]
public partial class Deal
{
}
public class Deal_Validation
{
[Required]
public string Title { get; set; }
public double? EstValue { set; get; }
}
How to validate EstValue (check if it is of type double?)
Thanks
When I type some Class, e.g. Console, then press ctrl+space and intellisense show hint "Class System.Console Represents standart input, output and error streams...."
How programmatically get this text. Can't find in google, may be I'm stupid noob.
Thanks.
In Eclipse, the Java Method Override Indicator is the little upwards arrow next to a method in the Type Hierarchy view.
A solid arrow means a method overrides an existing method lower in the hierarchy.
What does the hollow arrow mean?
Do annotations effect either arrow?
Does the original data type of the username string in a call to FormsAuthentication.SetAuthCookie(...) make any difference with regards to security or code maintainability?
As I understand it, the cookie is encrypted and used to identify a user on each request. I'm curious whether it should affect the design of the primary key on my Users table in…
So, I am just starting Java and, even though I have looked in some question about it here at stackoverflow.com and elsewhere, haven't been able to find a straightforward answer to why isn't possible to overload a function just by changing the return type. Why is it so? Will that provably change in a future version of Java?
By the way, just for…
Does anyone knows if it is possible to define/declare on your own custom attribute a restriction to the field type it may apply on?
There are a flags that do restrict the usage of the attribute:
[AttributeUsage(
AttributeTargets.Property,
AllowMultiple = false)]
Im looking for something like:
UseOnlyOnType = typeof(string)
Any…
I am currently working on a Wordpress site I have created some custom Post Types all work fine create the post etc.
What I need however is custom taxonomies with some of the custom Post Types, I have set this up and when adding different tags to the taxonomy it works however, when creating a post for a custom post type in the taxonomy…
If i try nltxt = nllen.toString(); with nllen being int nllen = nl.getLength(); i get the error Cannot invoke toString() on the primitive type int.
I want to convert the int to string so i can display the number of entries with Log...
Why doesnt it work?
I'd like to write a templated function which changes its behavior depending on template class types passed in. To do this, I'd like to determine the type passed in. For example, something like this:
template <class T>
void foo() {
if (T == int) { // Sadly, this sort of comparison doesn't work
printf("Template parameter was…
Hello - I have an image that is currently stored in variable of type "File"..
File img = ...;
What is the easiest way to display this image onto the screen so I can verify it is working correct?
Thanks!
Hi,
I am looking for a free/cheap SQLite editor that can handle BLOB type for Mac OS X. Basically, I just need to create a database that contains images, then load it to an iPhone app bundle. No need for fancy queries. Could someone recommend the best editor available out there for this purpose?
Thanks a lot
is there a way to go from a MetaTable to an instance of an entity type so it can be queried with LINQ? What I want to do is this:
MetaTable table = GridDataSource.GetTable ();
var entity = table.GetInstanceOfEntity();
var test = (from t in entity select t).ToList();
where table.GetInstanceOfEntity() is something that I'm not sure…
I have a lot of classes and want to create some kind of 'directory'.
So that I can create menus automatically.
Clicking a menu-item would then create an instance of the class and shows the window.
What I want for this is an array of System.Type where I can stuff in all the classes without instantiating them.
Though from my test…
i have an input tag...
<input type="file" name="upload">
for browsing it makes the button vith value "browse"(in mozilla)
the question is: how can i change the name of that button? i want it to have the name "select" instead of "browse".
Thanks
Not real information:
$ ssh-keygen -t rsa -C "tekkub@gmail.com"
Generating public/private rsa key pair.
Enter file in which to save the key (/c/Users/Tekkub/.ssh/id_rsa):
ssh.txt
I entered a file name here. Not sure if i should have,
Enter passphrase (empty for no passphrase):
I am stuck here. I type and it doesnt work
Hi,
What is the correct jQuery syntax to only select certain file types?
e.g.
$("#fragment-1 a[SELECT ONLY ANCHOR TAGS WITH FILE TYPE OF MP3]").hide();
Thanks.
By default certain programs format their output according to the type of the stream they write to. For example, the output of ls and ls > file looks differently. I'd like to know how this is achieved by a program. Additionally, is there a way by which we can trick such programs as if the output stream is a terminal where it…
im making an image button like this:
<input type="image" src="red.jpeg" width="150px">
but it is displaying the original image size which is much larger, if i put:
<img src="red.jpeg" width="150px">
it displays the image 150px wide as i want,
what do you guys think is the problem with this? I have tried…