Questions tagged [bind]

This tag means different things in different contexts: consider using less ambiguous tags instead. Common meanings include: the bind function in socket programming; binding to naming contexts; the bind method in jQuery; BIND the DNS server (named), . For boost::bind in C++, use [boost-bind]. Do not use this tag just to say that you're binding something to something else.

  • In and , bind() is a system call that associates an IP address and port number with a socket.
  • In , Function.prototype.bind() is a method to attach a function to a fixed this value.
  • In , bind is a method to attach a handler to an event. This method was deprecated in jquery v3.0
  • In , 'bind' is a connect/authenticate step.
  • in , 'bind' is the process of associating an object with a name in a context.
  • in , 'bind' is the process of associating a remote object with a name in an RMI Registry.
  • In , 'bind' is the process of associating an exported object with a name in a COSNaming context.
  • In bind or binding refers to specifying the target of an inject request.
  • In , questions about the library's boost::bind function should use the tag instead and questions about the function std::bind should use the tag .
  • BIND, the Berkeley Internet Name Domain is the most commonly used DNS server software on the Internet. Questions about BIND are often off-topic for StackOverflow and may belong on SuperUser.com or unix.stackexchange.com.
  • In , "bind" often refers to the >>= operator. Questions about it should use the tag .

Do not use this tag just to indicate that you're binding something to something else — use tags that are related to the topic of your question.

4006 questions
11
votes
1 answer

jquery bind keyup to body in firefox

i m binding keyup function in jquery to body which works in every browser except firefox the code: - $('body').bind('keyup', function(e) { //alert ( e.which ); alert('testing'); }); how do i do it for firefox. it does not responds at…
Pradyut Bhattacharya
  • 5,440
  • 13
  • 53
  • 83
11
votes
1 answer

VueJS - How can I bind multiple class from object that created by v-for?

I wanted to make it like this:
  • text-aaa
  • text-bbb
  • text-ccc
Here's the code. https://jsfiddle.net/qwvwsgb9/ I can bind value calculated by…
yukinari
  • 175
  • 2
  • 2
  • 6
11
votes
3 answers

Can't use ServerSocket on Android

I'm trying to listen on a port using ServerSocket on an Android device. I want to be able to connect to this port over WiFi using a computer on the same network. I get no exception when binding it to a port, however when I check netstat it…
shuwo
  • 453
  • 2
  • 6
  • 10
11
votes
6 answers

Correct way to start docker daemon listening to specific port

I´m new to docker and want to start it in daemon mode listening to a specific IP-adress and port. In the documentation it is said that this can be done by writing sudo /usr/bin/docker daemon -H 0.0.0.0:5555. It then says that I can list running…
EllisTheEllice
  • 905
  • 3
  • 14
  • 33
11
votes
2 answers

Why does Butterknife @Bind fail in release build (after proguard)

I've been building an Android app using Butterknife and recently upgraded to 7.0.1. I replaced all the @InjectView and ButterKnife.inject usage with the new @Bind feature and have no problems with debug builds but the app crashes on startup for…
Karl Nosworthy
  • 1,991
  • 1
  • 17
  • 16
11
votes
2 answers

How to avoid bind(this) on every function?

I'm implementing a web map client built on top of OpenLayers3 which should be able to connect to multiple WMS servers, ask for WMS Capabilities and show layers advertised by servers. var MyMapClient = function(params) { this.wms_sources_ =…
Peter Kovac
  • 2,257
  • 1
  • 19
  • 18
11
votes
6 answers

jQuery off() is not unbinding events when using bind

function bubble(content, triggerElm){ this.element = $('
').html(content); this.element.css(.....) // here is positioned based on triggerElm } bubble.prototype.show = function(){ $(document).on('click',…
Elfy
  • 1,733
  • 6
  • 19
  • 39
11
votes
2 answers

Currying for templates in C++ metaprogramming

This is more of a conceptual question. I'm trying to find the easiest way of converting a two-arg template (the arguments being types) into a one-arg template. I.e., binding one of the types. This would be the meta-programming equivalent of bind in…
haelix
  • 4,245
  • 4
  • 34
  • 56
11
votes
5 answers

XAML: How do I append a percent symbol to a bound label value?

I have a label bound to the value of a slider. Content="{Binding Path=Value, ElementName=Slider}" How do I append a percentage symbol? The value of the slider is already formatted correctly, so when the value is '50', all I need is '50%'. I know…
Brad
  • 1,187
  • 3
  • 23
  • 44
11
votes
9 answers

jQuery: textbox keyup firing twice

I'm having a textbox and assigned the following function (it's the only function assigned): txt.bind("keyup",function(event){ if(event.keyCode==13) { var nu = $("#debug").html(); nu+="
enter"; …
Fuxi
  • 7,611
  • 25
  • 93
  • 139
11
votes
3 answers

jQuery: Binding and Unbinding Live Click Events

So there are two constraints to my question: I must use an external function call in my click event, and I must use a live click event, rather binding a typical click event. So my problem is that I'm trying to unbind a click event after it…
Matt
  • 23,363
  • 39
  • 111
  • 152
11
votes
3 answers

Fixed point combinators in C++

I'm interested in actual examples of using fixed point combinators (such as the y-combinator in C++. Have you ever used a fixed point combinator with egg or bind in real live code? I found this example in egg a little dense: void egg_example() { …
1800 INFORMATION
  • 131,367
  • 29
  • 160
  • 239
11
votes
1 answer

How do I use std::bind() to call the base class's version of a virtual function?

I am trying to use std::bind() to create a function that will call the base class version of a virtual function rather than calling the derived class's version. struct Base { virtual void foo() { cout << "Base\n"; } }; struct Derived : public…
OldPeculier
  • 11,049
  • 13
  • 50
  • 76
11
votes
2 answers

What does it mean to pass `undefined` to bind()?

I was reading some documentation about the bind() function in javascript. One of the examples starts off like this: function list() { return Array.prototype.slice.call(arguments); } var list1 = list(1, 2, 3); // [1, 2, 3] // Create a function…
BeeBand
  • 10,953
  • 19
  • 61
  • 83
11
votes
3 answers

Binding to a specific IP address and port to receive UDP data

I am trying to receive UDP data that is broadcast to network address 192.168.103.255 port 3000 by PlayCap (http://www.signal11.us/oss/playcap/). I'm having problems binding to this address and port. Here's my Java code: public static void…
ajlitzau13
  • 303
  • 1
  • 4
  • 11