What's the difference between tilde(~) and caret(^) in package.json?

After I upgraded to the latest stable node and npm, I tried npm install moment --save. It saves the entry in the package.json with the caret ^ prefix. Previously, it was a tilde ~ prefix. Why...

Why are hexadecimal numbers prefixed with 0x?

Why are hexadecimal numbers prefixed as 0x? I understand the usage of the prefix but I don't understand the significance of why 0x was chosen.

What does the NS prefix mean?

Many classes in Cocoa/Cocoa Touch have the NS prefix. What does it mean?

What is JSONP, and why was it created?

I understand JSON, but not JSONP. Wikipedia's document on JSON is (was) the top search result for JSONP. It says this: > JSONP or "JSON with padding" is a JSON extension wherein a prefix is...

Remove a fixed prefix/suffix from a string in Bash

In my bash script I have a string and its prefix/suffix. I need to remove the prefix/suffix from the original string. For example, let's say I have the following...

What does the @ symbol before a variable name mean in C#?

> Possible Duplicate: > What&#39;s the use/meaning of the @ character in variable names in C#? <!-- End of automatically inserted text --> I understand that the @ symbol can be used before a...

Proper way to make HTML nested list?

The W3 docs have a nested list example prefixed by DEPRECATED EXAMPLE:, but they never corrected it with a non-deprecated example, nor explained exactly what is wrong with the example. So which of...

Is the underscore prefix for property and method names merely a convention?

Is the underscore prefix in JavaScript only a convention, like for example in Python private class methods are? From the 2.7 Python documentation: > “Private” instance variables that > cannot be...

Why would a JavaScript variable start with a dollar sign?

I quite often see JavaScript with variables that start with a dollar sign. When/why would you choose to prefix a variable in this way? (I'm not asking about $(&#39;p.foo&#39;) syntax that you see...

Nginx rewrite non-www-prefixed domain to www-prefixed domain

I see the Nginx HttpRewriteModule documentation has an example to rewrite a www-prefixed domain to a non-www-prefixed domain: if ($host ~* www\.(.*)) { set $host_without_www $1; rewrite ^(.*)$...

Why do table names in SQL Server start with "dbo"?

At least on my local instance, when I create tables, they are all prefixed with "dbo.". Why is that?

What is the meaning of the "at" (@) prefix on npm packages?

In the Angular Component Router documentation I just stumbled over a npm command I have never seen before and I don't understand what is going on: npm install @angular/router --save What is the...

Ukkonen's suffix tree algorithm in plain English

I feel a bit thick at this point. I've spent days trying to fully wrap my head around suffix tree construction, but because I don't have a mathematical background, many of the explanations elude...

How does PHP 'foreach' actually work?

Let me prefix this by saying that I know what foreach is, does and how to use it. This question concerns how it works under the bonnet, and I don't want any answers along the lines of "this is how...

What is CMake equivalent of 'configure --prefix=DIR && make all install '?

I do cmake . &amp;&amp; make all install. This works, but installs to /usr/local. I need to install to a different prefix (for example, to /usr). What is the cmake and make command line to install...

What are the rules about using an underscore in a C++ identifier?

It's common in C++ to name member variables with some kind of prefix to denote the fact that they're member variables, rather than local variables or parameters. If you've come from an MFC...

Are un-prefixed string literals concatenated with prefixed ones?

In commentary on this answer, a dispute arose over whether a conforming implementation of C2011 is required, during translation, to perform string concatenation of un-prefixed string literals with...

What's the rationale for null terminated strings?

As much as I love C and C++, I can't help but scratch my head at the choice of null terminated strings: Length prefixed (i.e. Pascal) strings existed before C Length prefixed strings make several...

AngularJS $resource @ prefixed parameter

I am learning AngularJS and reading its API Angular JS Resource It says "If the parameter value is prefixed with @ then the value of that parameter is extracted from the data object " with code...

How do I manually create a file with a . (dot) prefix in Windows? For example, .htaccess

I want to create a .htaccess file manually and discovered it seems impossible through the Windows UI. I get a "you must type a filename." message. There has to be a way to create files with . as a...

Add a prefix string to beginning of each line

I have a file as below: line1 line2 line3 And I want to get: prefixline1 prefixline2 prefixline3 I could write a Ruby script, but it is better if I do not need to. prefix will contain /. It is a...

Are CSS prefixed keyframes stackable?

Are CSS prefixed keyframes stackable as long as they don't include any prefixed specific attributes in them? Common @-webkit-keyframes myAnimation{ to{ opacity:0; } } @-moz-keyframes...

SQL select join: is it possible to prefix all columns as 'prefix.*'?

I'm wondering if this is possible in SQL. Say you have two tables A and B, and you do a select on table A and join on table B: SELECT a.*, b.* FROM TABLE_A a JOIN TABLE_B b USING (some_id); If...

What does the ng stand for in Angular.js directives

Angular.js uses several directives prefixed with ng like below: ng (base directive) ng-switch ng-repeat ng-view I was wondering if anyone knew what ng stood for because I couldn't find it in the...

cmath vs math.h (And similar c-prefixed vs .h extension headers)

I've seen some information about differences between things like iostream vs iostream.h. From what I gathered from those the difference between them is that the version without the .h extension...

prefixed - what does this means

When i run HTML5 compatibility test in Android native browser then it see the IndexedDB support marked as "Prefixed", while in Chrome and other it is marked as "Yes". I understand Chrome latest...

Maintaining the final state at end of a CSS3 animation

I'm running an animation on some elements that are set to opacity: 0; in the CSS. The animation class is applied onClick, and, using keyframes, it changes the opacity from 0 to 1 (among other...

com.hp.hpl.jena.query.QueryParseException:Unresolved prefixed name

Firstly, I found this relevant question and answer: https://stackoverflow.com/questions/9782441/we-encountered-an-error-while-trying-to-execute-sparql-query-in-eclipse-can-anyo If I add the...

Why are many ports of languages to .net prefixed with 'Iron'?

Was discussing over lunch why several ports of languages to the .net framework are prefixed with 'Iron'. e.g. IronPython IronRuby IronLisp IronScheme IronPHP Anyone out there know? (language...

JQuery variable prefixed with $

var $parent = $(&#39;&lt;p&gt;&#39;).addClass(&#39;exanple-class&#39;).prop(&#39;id&#39;,&#39;id-parent&#39;).appendTo(&#39;body&#39;); I partially understand the statement above, but why declare...