Questions

Tab character instead of multiple non-breaking spaces ("nbsp")?

Is it possible to insert a tab character in HTML instead of having to type ` ` four times?

17 Feb at 02:21

How do I animate constraint changes?

I'm updating an old app with an `AdBannerView` and when there is no ad, it slides off screen. When there is an ad it slides on the screen. Basic stuff. Old style, I set the frame in an animation block...

How do I get list of all tables in a database using TSQL?

What is the best way to get the names of all of the tables in a specific database on SQL Server?

7 Dec at 02:36

Escape curly brace '{' in String.Format

How do I display a literal curly brace character when using the String.Format method? Example: ``` sb.AppendLine(String.Format("public {0} {1} { get; private set; }", prop.Type, prop.Name)); ``` ...

31 Oct at 11:21

Definition of "downstream" and "upstream"

I've started playing with Git and have come across the terms "upstream" and "downstream". I've seen these before but never understood them fully. What do these terms mean in the context of SCMs ([So...

How to check a not-defined variable in JavaScript

I wanted to check whether the variable is defined or not. For example, the following throws a not-defined error ``` alert( x ); ``` How can I catch this error?

3 Mar at 19:35

Creating a comma separated list from IList<string> or IEnumerable<string>

What is the cleanest way to create a comma-separated list of string values from an `IList<string>` or `IEnumerable<string>`? `String.Join(...)` operates on a `string[]` so can be cumbersome to work w...

28 Apr at 19:15

How to retrieve a module's path?

I want to detect whether module has changed. Now, using inotify is simple, you just need to know the directory you want to get notifications from. How do I retrieve a module's path in python?

10 Jan at 17:19

How to make vim paste from (and copy to) system's clipboard?

Unlike other editors, vim stores copied text in its own clipboard. So, it's very hard for me to copy some text from a webpage and paste it into the current working file. It so happens I have to either...

28 Feb at 17:24

What is Python's equivalent of && (logical-and) in an if-statement?

This doesn't work: ``` if cond1 && cond2: ```

2 Mar at 00:0

How can I deal with this Git warning? "Pulling without specifying how to reconcile divergent branches is discouraged"

After a `git pull origin master`, I get the following message: ``` warning: Pulling without specifying how to reconcile divergent branches is discouraged. You can squelch this message by running one o...

22 Sep at 18:10

How can I exclude directories from grep -R?

I want to traverse all subdirectories, except the "node_modules" directory.

3 Jul at 20:48

How can one change the timestamp of an old commit in Git?

The answers to [How to modify existing, unpushed commits?](https://stackoverflow.com/questions/179123/how-do-i-edit-an-incorrect-commit-message-in-git) describe a way to amend previous commit messages...

Git push error '[remote rejected] master -> master (branch is currently checked out)'

Yesterday, I posted a question on how to clone a [Git](http://en.wikipedia.org/wiki/Git_%28software%29) repository from one of my machines to another, [How can I 'git clone' from another machine?](htt...

23 May at 10:31

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 background,...

In CSS Flexbox, why are there no "justify-items" and "justify-self" properties?

Consider the main axis and cross axis of a flex container: [](https://i.stack.imgur.com/9Oxw7.png) [W3C](https://www.w3.org/TR/css-flexbox-1/#box-model) To align flex items along the main axis there i...

31 Dec at 19:53

How to use Jackson to deserialise an array of objects

The [Jackson data binding documentation](http://jackson.codehaus.org/DataBindingDeepDive) indicates that Jackson supports deserialising "Arrays of all supported types" but I can't figure out the exac...

16 Aug at 07:5

What does T&& (double ampersand) mean in C++11?

I've been looking into some of the new features of C++11 and one I've noticed is the double ampersand in declaring variables, like `T&& var`. For a start, what is this beast called? I wish Google wou...

DateTime vs DateTimeOffset

What is the difference between a `DateTime` and a `DateTimeOffset` and when should one be used? --- Currently, we have a standard way of dealing with .NET `DateTime`s in a TimeZone-aware way: Whene...

Git workflow and rebase vs merge questions

I've been using Git now for a couple of months on a project with one other developer. I have several years of experience with [SVN](http://en.wikipedia.org/wiki/Apache_Subversion), so I guess I bring ...

Differences between dependencyManagement and dependencies in Maven

What is the difference between `dependencyManagement` and `dependencies`? I have seen the docs at Apache Maven web site. It seems that a dependency defined under the `dependencyManagement` can be used...

7 Oct at 12:18

Automatically create requirements.txt

Sometimes I download the python source code from `github` and don't know how to install all the dependencies. If there is no `requirements.txt` file I have to create it by hands. The question is: Give...

Behaviour of increment and decrement operators in Python

How do I use pre-increment/decrement operators (`++`, `--`), just like in C++? Why does `++count` run, but not change the value of the variable?

17 Apr at 02:11

HTTP GET request in JavaScript?

I need to do an [HTTP GET](http://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol#Request_methods) request in JavaScript. What's the best way to do that? I need to do this in a Mac OS X dashcode wi...

28 Sep at 16:19

Recursively counting files in a Linux directory

How can I recursively count files in a Linux directory? I found this: ``` find DIR_NAME -type f ¦ wc -l ``` But when I run this it returns the following error. > find: paths must precede expression: ...

25 Jan at 03:36