Questions tagged [anonymous]

DO NOT USE! Please use a more specific tag such as [anonymous-function] or [anonymous-class].

The term anonymous has come to represent different aspects of development with the rise of the functional programming style and the use of anonymous on-demand applications.

In an effort to disambiguate this tag, it has been split into the following subcategories:

Category Description
Anonymous Classes An anonymous class is a local class without a name. An anonymous class is defined and instantiated in a single succinct expression using the new operator.
Anonymous Functions Anonymous functions use a block of code as a value, defining it as an inline function without a name.
Anonymous Methods An anonymous method is a procedure or function that does not have a name associated with it.
Anonymous Types Anonymous types are data types which dynamically add a set of properties into a single object without having to first explicitly define a type
Anonymous Users Anonymous users are individuals or systems that make use of a product or service, without formally registering account details and are instead associated with some token or identifier.

Former Tag Definition

For new questions, see [anonymous-class] and [anonymous-function].

Typically, a programming language construct like a function or class has a name associated with it -- a symbol that can be used to refer to the construct in some context. An anonymous function or class is one that, in contrast to normal practice, has no name. For example, in Java, you can create an anonymous class using a special syntax that defines a class and constructs an instance of it at the same time:

Runnable r = new Runnable() {
    public void run() {
        System.out.println("Running");
    }
};

The variable r holds a reference to an instance of a class which has no name in Java, but which implements the Runnable interface and can be used anywhere a Runnable instance is needed.

702 questions
0
votes
1 answer

Anonymous authentication show a popup?

If you go to this website using Firefox, you will see a popup window like this: If you go the website using google chrome you won't see any popup.
El Sa7eR
  • 881
  • 3
  • 10
  • 17
0
votes
2 answers

Asp.net semi-authenticated user?

We've got an asp.net mvc website that is currently in a private beta state. As such we are sending out invite codes that must be supplied as part of the registration process for registration to succeed. We'd like to reduce the bar of entry such that…
spender
  • 117,338
  • 33
  • 229
  • 351
0
votes
2 answers

How to write this anonymous method in one line?

I always bump into these when I do method overloading. How can I write the 2nd method in one line? View.setText(text) returns void, but I want to return the TextView after it executes setText(). Note: I know I can 'write it in two statments'.…
wtsang02
  • 18,603
  • 10
  • 49
  • 67
0
votes
2 answers

How to send an anonymous email through Wordpress?

I have a client who has a crimestoppers' website. They want to provide visitors a means to submit anonymous crime tips, which would then be forwarded to a pre-established email address at the local police department. What is the best / easiest way…
Cynthia
  • 5,273
  • 13
  • 42
  • 71
0
votes
1 answer

Why Anonymous access option disabled in SharePoint site?

I have set up the SharePoint 2010 with windows7 by following the steps given here. I am trying to give the antonymous access to the default site (80 port). followed here. as i went to step 8, i found the Anonymous Access option for the site is…
Red Swan
  • 15,157
  • 43
  • 156
  • 238
0
votes
4 answers

Variable type needed or not

I have been reading about the LINQ feature of c# and come across the following bit of code: List myFruitList = new List() { "apple", "plum", "cherry", "grape", "banana", "pear", "mango" , "persimmon", "lemon", "lime",…
Victor Mukherjee
  • 10,487
  • 16
  • 54
  • 97
0
votes
1 answer

Anonymous type and LINQ and casting

I'm pretty stuck on this anonymous type from LINQ business. It's a consequence of working through an answer to a previous question, but sadly I just havent the brain power to get this to work at all. I'm returning a limited list of events that are…
Richard Griffiths
  • 758
  • 1
  • 11
  • 23
0
votes
2 answers

Javascript shows only last markers

The following code grabs some JSON data from /home.json URL which contain 5 microposts by 6 users. However, only the last 4 markers are shown (not even the 5th !!). I have spend 2 days to find the bug but unfortunately I can't really get why this…
vasilakisfil
  • 2,279
  • 4
  • 24
  • 31
0
votes
2 answers

Anonymous class override vs passing an interface, for designing callbacks in Java

I'm aware of 3 different ways to do callback type functionality in Java, but I don't fully understand the pros/cons of each. Java APIs are rich with methods similar in nature to this: Button b = new Button(); b.setClickListener(
kylefinn
  • 2,398
  • 1
  • 14
  • 12
0
votes
4 answers

Dispose Timer inside of anonymous method

I have a block of code that will be called relatively often. Prior to it being called I need a 2000ms delay to take place. The first thing that has come to mind is creating/disposing of a timer every time the method is called. To accomplish this…
tronious
  • 1,547
  • 2
  • 28
  • 45
0
votes
1 answer

OpenLDAP - Named user connection fails

I am trying to setup a basic ldap server/client scenario. I downloaded openldap for windows and installed it. I am starting the server successfully with the command, slapd -d 1 I tried to use various clients (commandline, LDAP Browser,…
Abhay Chaware
  • 333
  • 4
  • 14
0
votes
1 answer

HIding behind a proxy did not seem to work?

I often visit various sites and like to do so anonymously from behind a proxy. However, it seems as if some websites are still able to detect my real IP address. I know this because they use the IP address to attempt to geolocate me for…
michael
  • 14,844
  • 28
  • 89
  • 177
0
votes
1 answer

dynamic onclick, anonymous function with parameter

so my javascript is a bit rusty.. i am trying to do this: var images = document.getElementsByTagName("img"); for (var i = images.length - 1; i >= 0; i--) { var image = images[i]; if (image.className ==…
Sonic Soul
  • 23,855
  • 37
  • 130
  • 196
0
votes
1 answer

Easier way to override compareTo method on a given instance

Some external function to me gives me a java.io.File instance, but I would like to change default behavior for compareTo for that instance on-the-fly. Whats the best approach? The only thing I can think of is wrapping this File instance into a…
Whimusical
  • 6,401
  • 11
  • 62
  • 105
0
votes
1 answer

Can't access wcf wsdl anonymously using https url

What I would like to do is have a wcf service be anonymous accessible using a https url. I have created a WCF in a .net 4.0. Deployed the wcf on a server that is set up to use HTTPS. The server's IIS is set to allow anonymous calls. I can access…