Why can't I inherit static classes?
I have several classes that do not really need any state. From the organizational point of view, I would like to put them into hierarchy. But it seems I can't declare inheritance for static classes. ...
- Modified
- 21 Apr at 19:26
How to get the CPU Usage in C#?
I want to get the overall total CPU usage for an application in C#. I've found many ways to dig into the properties of processes, but I only want the CPU usage of the processes, and the total CPU like...
How do I pre-populate a jQuery Datepicker textbox with today's date?
I have a very simple jQuery Datepicker calendar: ``` $(document).ready(function(){ $("#date_pretty").datepicker({ }); }); ``` and of course in the HTML... ``` <input type="text" size="10"...
- Modified
- 13 Dec at 17:23
How to make HTTP requests in PHP and not wait on the response
Is there a way in PHP to make HTTP calls and not wait for a response? I don't care about the response, I just want to do something like `file_get_contents()`, but not wait for the request to finish be...
- Modified
- 30 Jan at 19:2
'Conda' is not recognized as internal or external command
I installed Anaconda3 4.4.0 (32 bit) on my Windows 7 Professional machine and imported NumPy and Pandas on Jupyter notebook so I assume Python was installed correctly. But when I type `conda list` and...
- Modified
- 13 Jun at 14:21
Repository size limits for GitHub.com
Lately I have been using GitHub and I am wondering what is the repository size limit for files hosted on github.com?
- Modified
- 3 Aug at 18:28
VSCode -- how to set working directory for debugging a Python program
How do I run a Python program under debug and set the working directory for the run?
- Modified
- 9 Jun at 15:16
How to install JQ on Mac on the command line?
I need to know the most efficient way of installing JQ on Mac (El Capitan). The code is downloaded to my Mac but I would like to know how I can install and operate it via the command line.
- Modified
- 21 Jun at 06:17
How to get a variable type in Typescript?
I have a variable. ``` abc:number|string; ``` How can I check its type? I want to do something like below: ``` if (abc.type === "number") { // do something } ```
- Modified
- 22 Feb at 05:33
Plotting a 2D heatmap
Using Matplotlib, I want to plot a 2D heat map. My data is an n-by-n Numpy array, each with a value between 0 and 1. So for the (i, j) element of this array, I want to plot a square at the (i, j) coor...
- Modified
- 16 Oct at 16:7
How to pass arguments to Shell Script through docker run
I am new to the docker world. I have to invoke a shell script that takes command line arguments through a docker container. Ex: My shell script looks like: ``` #!bin/bash echo $1 ``` Dockerfile loo...
- Modified
- 22 Sep at 21:53
Navigation drawer: How do I set the selected item at startup?
My code works perfectly: every time an item in Navigation Drawer is clicked the item is selected. Of course I want to start the app with a default fragment (home), but Navigation Drawer doesn't have ...
- Modified
- 22 Apr at 17:27
When should I use Async Controllers in ASP.NET MVC?
I have some concerns using async actions in ASP.NET MVC. When does it improve performance of my apps, and when does it ? 1. Is it good to use async action everywhere in ASP.NET MVC? 2. Regarding awa...
- Modified
- 12 Nov at 21:56
Difference between MongoDB and Mongoose
I wanted to use the mongodb database, but I noticed that there are two different databases with either their own website and installation methods: mongodb and mongoose. So I came up asking myself this...
Ripple effect on Android Lollipop CardView
I'm trying to get a CardView to display the ripple effect when touched by setting the android:backgound attribute in the activity XML file as described [here](http://developer.android.com/training/mat...
- Modified
- 12 Jul at 14:2
momentJS date string add 5 days
i have a start date string "20.03.2014" and i want to add 5 days to this with moment.js but i don't get the new date "25.03.2014" in the alert window. here my javascript Code: ``` startdate = "20.03...
- Modified
- 31 Jul at 20:59
Dictionary: Get list of values for list of keys
Is there a built-in/quick way to use a list of keys to a dictionary to get a list of corresponding items? For instance I have: ``` >>> mydict = {'one': 1, 'two': 2, 'three': 3} >>> mykeys = ['three'...
- Modified
- 17 Dec at 16:5
How to create a dictionary of two pandas DataFrame columns
What is the most efficient way to organise the following pandas Dataframe: data = ``` Position Letter 1 a 2 b 3 c 4 d 5 e ``` into a dictionary...
- Modified
- 4 Dec at 19:54
How to stop an unstoppable zombie job on Jenkins without restarting the server?
Our Jenkins server has a job that has been running for three days, but is not doing anything. Clicking the little X in the corner does nothing, and the console output log doesn't show anything either....
- Modified
- 22 Jan at 10:37
cannot convert data (type interface {}) to type string: need type assertion
I am pretty new to go and I was playing with this [notify](https://github.com/bitly/go-notify/blob/master/notify.go) package. At first I had code that looked like this: ``` func doit(w http.Response...
- Modified
- 23 May at 12:26
How do I raise the same Exception with a custom message in Python?
I have this `try` block in my code: ``` try: do_something_that_might_raise_an_exception() except ValueError as err: errmsg = 'My custom error message.' raise ValueError(errmsg) ``` Stri...
Why are my CSS3 media queries not working on mobile devices?
In the styles.css, I am using media queries, both of which use a variation of: ``` /*--[ Normal CSS styles ]----------------------------------*/ @media only screen and (max-width: 767px) { /*--...
- Modified
- 8 Feb at 17:22
Undefined symbols for architecture i386: _OBJC_CLASS_$_SKPSMTPMessage", referenced from: error
I have imported framework for sending email from application in background i.e. `SKPSMTPMessage` Framework. Can somebody suggest why below error is shown ``` Undefined symbols for architecture i386: ...
- Modified
- 23 May at 12:34