Questions

How do I find the stack trace in Visual Studio?

I ask because I couldn't find the stack trace in Visual Studio, while debugging an exception that occurred.

Display JSON as HTML

Any recommendations on how to embed JSON in an HTML page with the JSON formatted in a human readable style? For example, when you view XML in a browser, most browsers display the XML formatted (indent...

19 May at 17:9

How can I get column names from a table in Oracle?

I need to query the database to get the , not to be confused with data in the table. For example, if I have a table named `EVENT_LOG` that contains `eventID`, `eventType`, `eventDesc`, and `eventTime...

23 May at 11:54

Regex Named Groups in Java

It is my understanding that the `java.regex` package does not have support for named groups ([http://www.regular-expressions.info/named.html](http://www.regular-expressions.info/named.html)) so can an...

6 Jan at 05:45

Is there a good Valgrind substitute for Windows?

I was looking into Valgrind to help improve my C coding/debugging when I discovered it is only for Linux - I have no other need or interest in moving my OS to Linux so I was wondering if there is a eq...

Execute a terminal command from a Cocoa app

How can I execute a terminal command (like `grep`) from my Objective-C Cocoa application?

3 Feb at 01:41

Better way to check variable for null or empty string?

Since PHP is a dynamic language what's the best way of checking to see if a provided field is empty? I want to ensure that: 1. null is considered an empty string 2. a white space only string is c...

19 Dec at 16:1

Can I invoke an instance method on a Ruby module without including it?

### Background: I have a module which declares a number of instance methods ``` module UsefulThings def get_file; ... def delete_file; ... def format_text(x); ... end ``` And I want to c...

11 Sep at 16:6

Binary search (bisection) in Python

Is there a library function that performs binary search on a list/tuple and return the position of the item if found and 'False' (-1, None, etc.) if not? I found the functions bisect_left/right in th...

10 Jun at 11:7

Groovy executing shell commands

Groovy adds the `execute` method to `String` to make executing shells fairly easy; ``` println "ls".execute().text ``` but if an error happens, then there is no resulting output. (other than cre...

20 Jan at 20:48

Is HTML considered a programming language?

I guess the question is self-explanatory, but I'm wondering whether HTML qualifies as a programming language (obviously the "L" stands for language). The reason for asking is more pragmatic—I'm put...

21 May at 18:42

Should try...catch go inside or outside a loop?

I have a loop that looks something like this: ``` for (int i = 0; i < max; i++) { String myString = ...; float myNum = Float.parseFloat(myString); myFloats[i] = myNum; } ``` This is the...

21 Dec at 00:29

How do I dump the data of some SQLite3 tables?

How do I dump the data, and only the data, not the schema, of some SQLite3 tables of a database (not all the tables)? The dump should be in SQL format, as it should be easily re-entered into the datab...

27 Jun at 14:22

How to create a SQL Server function to "join" multiple rows from a subquery into a single delimited field?

To illustrate, assume that I have two tables as follows: ``` VehicleID Name 1 Chuck 2 Larry LocationID VehicleID City 1 1 New York 2 1 Seattle 3 ...

2 Apr at 11:34

android:exported needs to be explicitly specified for <activity>. Apps targeting Android 12 and higher are required to specify

After upgrading to android 12, the application is not compiling. It shows > "Manifest merger failed with multiple errors, see logs" Error showing in Merged manifest: > Merging Errors: Error: android:e...

Vue 'export default' vs 'new Vue'

I just installed Vue and have been following some tutorials to create a project using the vue-cli webpack template. When it creates the component, I notice it binds our data inside of the following: ...

11 Feb at 02:59

pull access denied repository does not exist or may require docker login

I am using Laravel 4.2 with docker. I setup it on local. It worked without any problem but when I am trying to setup online using same procedure then I am getting error: ``` pull access denied for <pr...

2 Sep at 17:49

How to unpublish an app in Google Play Developer Console

I've seen other posts asking the same question with answers that all refer to a giant button that says "Unpublish" on it, which is no longer there (at least as of 2016). How do you really unpublish an...

Finding the layers and layer sizes for each Docker image

For research purposes I'm trying to crawl the public Docker registry ( [https://registry.hub.docker.com/](https://registry.hub.docker.com/) ) and find out 1) how many layers an average image has and 2...

24 Apr at 07:6

How can I change default dialog button text color in android 5

I have many alert dialogs in my app. It is a default layout but I am adding positive and negative buttons to the dialog. So the buttons get the default text color of Android 5 (green). I tried to chan...

How to concatenate columns in a Postgres SELECT?

I have two string columns `a` and `b` in a table `foo`. `select a, b from foo` returns values `a` and `b`. However, concatenation of `a` and `b` does not work. I tried : ``` select a || b from foo ...

How to break out of a loop in Bash?

I want to write a Bash script to process text, which might require a while loop. For example, a while loop in C: ``` int done = 0; while(1) { ... if(done) break; } ``` I want to write a Bash ...

18 Sep at 03:53

Using 'async' in a console application in C#

I have this simple code: ``` public static async Task<int> SumTwoOperationsAsync() { var firstTask = GetOperationOneAsync(); var secondTask = GetOperationTwoAsync(); return await firstTask...

17 Jan at 23:40

Use images instead of radio buttons

If I have a radio group with buttons: ![Image 1](https://i.stack.imgur.com/Uow4r.png) ... how can I show only images in the select option instead of the buttons, e.g. ![enter image description here...

7 Sep at 22:31

Use Fieldset Legend with bootstrap

I'm using Bootstrap for my `JSP` page. I want to use `<fieldset>` and `<legend>` for my form. This is my code. ``` <fieldset class="scheduler-border"> <legend class="scheduler-border">Start Time...

26 Dec at 07:52