Questions

How to hide reference counts in VS2013?

Visual Studio 2013 introduced a new feature where it shows you how many times each of your methods are used. ![](https://i.imgur.com/2XpPlYH.png) I don't find it very useful, and it messes up the sp...

7 May at 19:28

Standard Android Button with a different color

I'd like to change the color of a standard Android button slightly in order to better match a client's branding. The best way I've found to do this so far is to change the `Button`'s drawable to the ...

30 Oct at 11:13

Placeholder in UITextView

My application uses an `UITextView`. Now I want the `UITextView` to have a placeholder similar to the one you can set for an `UITextField`. How to do this?

How do I create a unique constraint that also allows nulls?

I want to have a unique constraint on a column which I am going to populate with GUIDs. However, my data contains null values for this columns. How do I create the constraint that allows multiple null...

20 Oct at 11:40

What is the difference between __init__ and __call__?

I want to know the difference between `__init__` and `__call__` methods. For example: ``` class test: def __init__(self): self.a = 10 def __call__(self): b = 20 ```

How to get the last character of a string?

How to get the last character of the string: ``` "linto.yahoo.com." ``` The last character of this string is `"."` How can I find this?

10 Jan at 12:27

What is git tag, How to create tags & How to checkout git remote tag(s)

when I checkout remote git tag use command like this: ``` git checkout -b local_branch_name origin/remote_tag_name ``` I got error like this: > error: pathspec `origin/remote_tag_name` did not match ...

28 Jun at 16:12

How to replace a string in multiple files in linux command line

I need to replace a string in a lot of files in a folder, with only `ssh` access to the server. How can I do this?

14 Jun at 14:38

Set up git to pull and push all branches

I'd like to push and pull all the branches by default, including the newly created ones. Is there a setting that I can define for it? Otherwise, when I add a new branch, locally and I want to pull i...

16 Dec at 13:18

Binary Data in JSON String. Something better than Base64

The [JSON format](http://www.json.org/) natively doesn't support binary data. The binary data has to be escaped so that it can be placed into a string element (i.e. zero or more Unicode chars in doubl...

3 May at 11:41

How to get the list of properties of a class?

How do I get a list of all the properties of a class?

16 Jun at 08:37

How can I represent an infinite number in Python?

How can I represent an infinite number in python? No matter which number you enter in the program, no number should be greater than this representation of infinity.

21 Feb at 17:52

Run Command Prompt Commands

Is there any way to run command prompt commands from within a C# application? If so how would I do the following: ``` copy /b Image1.jpg + Archive.rar Image2.jpg ``` This basically embeds an RAR f...

15 Feb at 21:14

Remove final character from string

How do I remove the last character from a string? ``` "abcdefghij" → "abcdefghi" ```

25 Apr at 00:0

What is "origin" in Git?

When I run: ``` git push origin branchname ``` What exactly is `origin` and why do I have to type it before the branch name?

23 Apr at 20:15

How to download a file from server using SSH?

I need to download a file from server to my desktop. (UBUNTU 10.04) I don't have a web access to the server, just ssh. If it helps, my OS is Mac OS X and iTerm 2 as a terminal.

5 Nov at 12:28

Difference between Python's Generators and Iterators

What is the difference between iterators and generators? Some examples for when you would use each case would be helpful.

5 Feb at 20:14

Regex to replace multiple spaces with a single space

Given a string like: What kind of jQuery or JavaScript magic can be used to keep spaces to only one space max? Goal:

3 May at 16:14

How do I know the script file name in a Bash script?

How can I determine the name of the Bash script file inside the script itself? Like if my script is in file `runme.sh`, then how would I make it to display "You are running runme.sh" message without ...

21 Dec at 23:57

Is it safe to expose Firebase apiKey to the public?

The [Firebase Web-App guide](https://firebase.google.com/docs/web/setup#add_firebase_to_your_app) states I should put the given `apiKey` in my Html to initialize Firebase: ``` // TODO: Replace with yo...

12 Apr at 19:35

Remove last item from array

I have the following array. ``` var arr = [1,0,2]; ``` I would like to remove the last element i.e. 2. I used `arr.slice(-1);` but it doesn't remove the value.

15 Aug at 10:1

Is there a foreach loop in Go?

Is there a `foreach` construct in the Go language? Can I iterate over a slice or array using a `for`?

27 Mar at 09:10

How to process POST data in Node.js?

How do you extract form data (`form[method="post"]`) and file uploads sent from the HTTP `POST` method in [Node.js](http://en.wikipedia.org/wiki/Node.js)? I've read the documentation, googled and fou...

3 Jan at 22:4

Converting a String to DateTime

How do you convert a string such as `2009-05-08 14:40:52,531` into a `DateTime`?

7 Dec at 17:45

jQuery checkbox checked state changed event

I want an event to fire client side when a checkbox is checked / unchecked: ``` $('.checkbox').click(function() { if ($(this).is(':checked')) { // Do stuff } }); ``` Basically I want it to ...

30 Jun at 12:42