Questions

How to choose between Hudson and Jenkins?

It took me an hour or so to work out Hudson has only branched recently (Jan/2011) I have no idea how rapid the change of each branch is now, but more importantly, what is the direction each branch is ...

Writing/outputting HTML strings unescaped

I've got safe/sanitized HTML saved in a DB table. How can I have this HTML content written out in a Razor view? It always escapes characters like `<` and ampersands to `&amp;`.

1 May at 16:30

What does "nonlocal" do in Python 3?

What does `nonlocal` do in Python 3.x? --- `nonlocal`[Is it possible to modify variable in python that is in outer, but not global, scope?](https://stackoverflow.com/questions/8447947) [officially ...

When should I use a List vs a LinkedList

When is it better to use a [List](https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.list-1) vs a [LinkedList](https://learn.microsoft.com/en-us/dotnet/api/system.collections.gene...

Does Go have "if x in" construct similar to Python?

How can I check if `x` is in an array iterating over the entire array, using Go? Does the language have a construct for this? Like in Python: ``` if "x" in array: # do something ```

28 May at 17:38

How can I set NODE_ENV=production on Windows?

In Ubuntu it's quite simple; I can run the application using: ``` $ NODE_ENV=production node myapp/app.js ``` However, this doesn't work on Windows. Is there a configuration file where I can set th...

8 Mar at 04:38

How do multiple clients connect simultaneously to one port, say 80, on a server?

I understand the basics of how ports work. However, what I don't get is how multiple clients can simultaneously connect to say port 80. I know each client has a unique (for their machine) port. Does t...

Android TextView Justify Text

How do you get the text of a `TextView` to be Justified (with text flush on the left- and right- hand sides)? I found a possible solution [here](http://www.mail-archive.com/android-developers@google...

19 Jun at 16:8

How to generate a random string of a fixed length in Go?

I want a random string of characters only (uppercase or lowercase), no numbers, in Go. What is the fastest and simplest way to do this?

13 Jul at 21:38

PHPUnit assert that an exception was thrown?

Does anyone know whether there is an `assert` or something like that which can test whether an exception was thrown in the code being tested?

8 Nov at 15:41

What is the purpose of backbone.js?

I tried to understand the utility of backbone.js from its site [http://documentcloud.github.com/backbone](http://documentcloud.github.com/backbone), but I still couldn't figure out much. Can anybody ...

9 Jun at 15:19

Paste text on Android Emulator

Is there an easy way to copy/paste (desktop's) clipboard content to `EditView` on Android Emulator?

6 Jul at 10:45

Determine if Python is running inside virtualenv

Is it possible to determine if the current script is running inside a virtualenv environment?

20 Dec at 22:28

What is the difference between decodeURIComponent and decodeURI?

What is the difference between the JavaScript functions `decodeURIComponent` and `decodeURI`?

24 Sep at 14:36

How can I build XML in C#?

How can I generate valid XML in C#?

27 Oct at 23:55

kubectl apply vs kubectl create?

What I understood by the documentation is that: - ``` kubectl create ``` - ``` kubectl replace ``` - ``` kubectl apply ``` [Reference](https://kubernetes.io/docs/user-guide/kubectl-overview/) 1. Why...

19 Jan at 07:59

How to select all instances of a variable and edit variable name in Sublime

If I select a (not just any string) in my code, all other instances of that variable get a stroke (white outline) around them: ![enter image description here](https://i.stack.imgur.com/Ja85n.png) I...

Command to remove all npm modules globally

Is there a command to remove all global npm modules? If not, what do you suggest?

17 Sep at 17:1

Replace all spaces in a string with '+'

I have a string that contains multiple spaces. I want to replace these with a plus symbol. I thought I could use ``` var str = 'a b c'; var replaced = str.replace(' ', '+'); ``` but it only replac...

9 Aug at 03:46

Generating an MD5 checksum of a file

Is there any simple way of generating (and checking) MD5 checksums of a list of files in Python? (I have a small program I'm working on, and I'd like to confirm the checksums of the files).

13 Apr at 02:52

How to pass in password to pg_dump?

I'm trying to create a cronjob to back up my database every night before something catastrophic happens. It looks like this command should meet my needs: ``` 0 3 * * * pg_dump dbname | gzip > ~/backu...

24 May at 17:10

Storing WPF Image Resources

For a WPF application which will need 10 - 20 small icons and images for illustrative purposes, is storing these in the assembly as embedded resources the right way to go? If so, how do I specify in X...

3 Nov at 13:48

What is the meaning of the term "thread-safe"?

Does it mean that two threads can't change the underlying data simultaneously? Or does it mean that the given code segment will run with predictable results when multiple threads are executing that co...

Is Fortran easier to optimize than C for heavy calculations?

From time to time I read that Fortran is or can be faster then C for heavy calculations. Is that really true? I must admit that I hardly know Fortran, but the Fortran code I have seen so far did not s...

28 Jan at 08:40

What is the largest TCP/IP network port number allowable for IPv4?

What is the highest port number one can use?

17 May at 18:3