Questions

How to use CSS to surround a number with a circle?

I would like to surround a number in a circle like in this image: ![Number in Circle Image](https://i.stack.imgur.com/GvOrl.png) Is this possible and how is it achieved?

14 Dec at 12:40

Are there any reasons to use private properties in C#?

I just realized that the C# can also be used with a access modifier: ``` private string Password { get; set; } ``` Although this is technically interesting, I can't imagine when I would use it si...

22 Jul at 15:41

What happens if a finally block throws an exception?

If a finally block throws an exception, what happens? Specifically, what happens if the exception is thrown midway through a finally block. Do the rest of statements (after) in this block get inv...

18 Jan at 09:0

How can I select from list of values in SQL Server

I have very simple problem that I can't solve. I need to do something like this: ``` select distinct * from (1, 1, 1, 2, 5, 1, 6). ``` Anybody can help?? The data comes as a text file from one ...

13 Dec at 17:6

How do you test to see if a double is equal to NaN?

I have a double in Java and I want to check if it is `NaN`. What is the best way to do this?

24 Dec at 08:14

Generating PDF files with JavaScript

I’m trying to convert XML data into PDF files from a web page and I was hoping I could do this entirely within JavaScript. I need to be able to draw text, images and simple shapes. I would love to be ...

13 Sep at 19:23

How to compare objects by multiple fields

Assume you have some objects which have several fields they can be compared by: ``` public class Person { private String firstName; private String lastName; private String age; /* C...

2 Nov at 12:24

How do I get a div to float to the bottom of its container?

I have floated images and inset boxes at the top of a container using `float:right` (or `left`) many times. Now, I need to float a `div` to the bottom right corner of another `div` with the normal tex...

12 Nov at 07:20

Is there an alternative to string.Replace that is case-insensitive?

I need to search a string and replace all occurrences of `%FirstName%` and `%PolicyAmount%` with a value pulled from a database. The problem is the capitalization of FirstName varies. That prevents me...

9 Aug at 03:53

JPA and Hibernate - Criteria vs. JPQL or HQL

What are the pros and cons of using [Criteria](http://docs.jboss.org/hibernate/orm/4.1/manual/en-US/html/ch17.html) or [HQL](http://docs.jboss.org/hibernate/orm/4.1/manual/en-US/html/ch16.html)? The C...

What is the difference between procedural programming and functional programming?

I've read the Wikipedia articles for both [procedural programming](http://en.wikipedia.org/wiki/Procedural_programming) and [functional programming](http://en.wikipedia.org/wiki/Functional_programming...

Downgrade npm to an older version

I tried updating `npm` to see if it would solve some dependency problems we were having, and now I want to downgrade to the version the rest of the development team is using. How can I install an olde...

12 Aug at 14:9

How to add bootstrap to an angular-cli project

We want to use bootstrap 4 (4.0.0-alpha.2) in our app generated with angular-cli 1.0.0-beta.5 (w/ node v6.1.0). After getting bootstrap and its dependencies with npm, our first approach consisted in ...

Extend Express Request object using Typescript

I’m trying to add a property to express request object from a middleware using typescript. However I can’t figure out how to add extra properties to the object. I’d prefer to not use bracket notation ...

29 Dec at 13:58

How to get the value of an input field using ReactJS?

I have the following React component: ``` export default class MyComponent extends React.Component { onSubmit(e) { e.preventDefault(); var title = this.title; console.log...

15 Oct at 10:1

What is the Kotlin double-bang (!!) operator?

I'm converting Java to Kotlin with Android Studio. I get double bang after the instance variable. What is the double bang and more importantly where is this documented? ``` mMap!!.addMarker(MarkerOpt...

20 Jan at 16:20

Android M Permissions: onRequestPermissionsResult() not being called

I'm updating our app to use the new M runtime permissions system. It's all working except for onRequestPermissionsResult(). I need to check a permission on a button press, and if it's successful, send...

MongoDB - admin user not authorized

I am trying to add authorization to my MongoDB. I am doing all this on Linux with MongoDB 2.6.1. My mongod.conf file is in the old compatibility format (this is how it came with the installation). ...

29 May at 22:0

Provide an image for WhatsApp link sharing

How can we include an image in our website to display in WhatsApp when we share a link like this? [](https://i.stack.imgur.com/ERx58.jpg)

How does a public key verify a signature?

I am trying to get a better grapple on how public/private keys work. I understand that a sender may add a digital signature to a document using his/her private key to essentially obtain a hash of the ...

How to run test cases in a specified file?

My package test cases are scattered across multiple files, if I run `go test <package_name>` it runs all test cases in the package. It is unnecessary to run all of them though. Is there a way to spec...

5 Jun at 09:14

How do I call an Angular.js filter with multiple arguments?

As from the [documentation](http://docs.angularjs.org/api/ng.$filter), we can call a filter such as [date](http://docs.angularjs.org/api/ng.filter:date) like this: ``` {{ myDateInScope | date: 'yyyy-...

23 Dec at 18:37

Print array elements on separate lines in Bash?

How do I print the array element of a Bash array on separate lines? This one works, but surely there is a better way: ``` $ my_array=(one two three) $ for i in ${my_array[@]}; do echo $i; done one tw...

14 Sep at 03:30

Convert Newtonsoft.Json.Linq.JArray to a list of specific object type

I have the following variable of type `{Newtonsoft.Json.Linq.JArray}`. ``` properties["Value"] {[ { "Name": "Username", "Selected": true }, { "Name": "Password", "Selected": tr...

7 Nov at 13:21

Difference between Git and GitHub

I have recently added a new project to Git using Eclipse, but do not see the project appear in my GitHub account. Why do they have the same account information and different repositories? Isn't Git ...

18 Jan at 09:3