What are named pipes?

Both on Windows and POSIX systems, named-pipes provide a way for inter-process communication to occur among processes running on the same machine. What named pipes give you is a way to send your data without having the performance penalty of involving the network stack. Just like you have a server listening to a IP address/port … Read more

How to open an existing project in Eclipse?

Maybe you have closed the project and configured the project explorer view to filter closed projects. In that case, have a look at Filters in the Project Explorer view. Make sure that closed projects are disabled in the “Filters” view.

When looking at the differences between X-Auth-Token vs Authorization headers, which is preferred?

Authorization is the primary header used by clients to authenticate against peers in HTTP as foreseen in RFC 7235. It is often linked to the Basic authentication scheme as per RFC 7617, but that is not a given. The Basic scheme allows clients to provide a username-password-pair separated by a colon (:) coded in Base64. It cannot be stressed enough that this is a transport … Read more

How should I initialize jQuery?

The first example runs the function when the DOM tree is built. The second example runs the function right away. If you look closely, in the second example, there are two parentheses after the function declaration ( in this particular case, you pass in the global jQuery object as an argument to avoid conflict ), thereby immediately … Read more

Getting attribute using XPath

How could I get the value of lang (where lang=eng in book title), for the first element? Use: This means: Select the lang attribute of the title element that is a child of the first book child of the top element of the XML document. To get just the string value of this attribute use the standard XPath function string():

git replace local version with remote version

This is the safest solution: Now you can do whatever you want without fear of conflicts. For instance: If you want to include the remote changes in the master branch you can do: This will make you branch “master” to point to “origin/master”.

optional arguments in initializer of python class

You can set default parameters: If you don’t explicitly call the class with j and k, your instance will use the defaults you defined in the init parameters. So when you create an instance of this object, you can use all four parameters as normal: OpticalTransition(‘sodium’, 5, 100, 27) Or you can omit the parameters with defaults with OpticalTransition(‘sodium’, 5), … Read more