Questions

Parse RSS with jQuery

I want to use jQuery to parse RSS feeds. Can this be done with the base jQuery library out of the box or will I need to use a plugin?

12 Jul at 04:34

How do I abort the execution of a Python script?

I have a simple Python script that I want to stop executing if a condition is met. For example: ``` done = True if done: # quit/stop/exit else: # do other stuff ``` Essentially, I am looki...

2 Feb at 13:31

How to SetBasePath in ConfigurationBuilder in Core 2.0

How can I set the base path in ConfigurationBuilder in Core 2.0. I have googled and found [this](https://stackoverflow.com/questions/33169589/specify-the-application-base-path-in-configurationbuilde...

Restart container within pod

I have a pod `test-1495806908-xn5jn` with 2 containers. I'd like to restart one of them called `container-test`. Is it possible to restart a single container within a pod and how? If not, how do I res...

5 Aug at 15:54

How to read request body in an asp.net core webapi controller?

I'm trying to read the request body in the `OnActionExecuting` method, but I always get `null` for the body. ``` var request = context.HttpContext.Request; var stream = new StreamReader(request.Body);...

24 Sep at 07:27

how to specify new environment location for conda create

the default location for packages is .conda folder in my home directory. however, on the server I am using, there is a very strict limit of how much space I can use, which basically avoids me from put...

20 Jun at 16:0

Set default host and port for ng serve in config file

I want to know if i can set a host and a port in a config file so I don't have to type ``` ng serve --host foo.bar --port 80 ``` instead of just ``` ng serve ```

13 Jun at 13:6

How to run shell script on host from docker container?

How to control host from docker container? For example, how to execute copied to host bash script?

23 Aug at 06:44

Predefined type 'System.Object' is not defined or imported .net 4.6

I'm using MVC 5 and .net 4.6 to create a web API that my mobile app can connect too. Whenever I build the project I get hundreds of errors telling me that I need to add references that are already th...

23 May at 12:32

Making an API call in Python with an API that requires a bearer token

Looking for some help with integrating a JSON API call into a Python program. I am looking to integrate the following API into a Python .py program to allow it to be called and the response to be pri...

Is it possible to use vh minus pixels in a CSS calc()?

I have following CSS rule in a Less file: ``` .container { min-height: calc(100vh - 150px); } ``` Which doesn't work at all. I want to make container full window height and minus header, footer f...

2 Feb at 11:41

Why is a round-trip conversion via a string not safe for a double?

Recently I have had to serialize a double into text, and then get it back. The value seems to not be equivalent: ``` double d1 = 0.84551240822557006; string s = d1.ToString("R"); double d2 = double.P...

23 Feb at 12:4

How do I create a pylintrc file

I am running linux. Can I do something like `pylint --generate-rcfile > .pylintrc` and then make changes to the resulting `.pylintrc` file to override the default settings? And if so should it be in m...

13 Jun at 21:27

Setting unique Constraint with fluent API?

I'm trying to build an EF Entity with Code First, and an `EntityTypeConfiguration` using fluent API. creating primary keys is easy but not so with a Unique Constraint. I was seeing old posts that sugg...

HTTP Error 403.14 - Forbidden - The Web server is configured to not list the contents of this directory

I just created a new empty website in Visual Studio 2012 and clicked on run (i.e view in browser) and I get this error: > The Web server is configured to not list the contents of this directory. I we...

3 Jan at 19:25

What is `params.require(:person).permit(:name, :age)` doing in Rails 4?

All the examples of strong parameters in Rails 4 docs use ``` params.require(:person).permit(:name, :age) ``` Could someone please deconstruct and explain what is occurring with `require` and `per...

11 Nov at 08:16

How to get JSON response from http.Get

I'm trying read JSON data from web, but that code returns empty result. I'm not sure what I'm doing wrong here. ``` package main import "os" import "fmt" import "net/http" import "io/ioutil" import ...

11 Aug at 14:36

Where is the Java SDK folder in my computer? Ubuntu 12.04

I know it's installed because when I type: ``` $java -version ``` I get: ``` OpenJDK Runtime Environment (IcedTea6 1.12.5) (6b27-1.12.5-0ubuntu0.12.04.1) OpenJDK 64-Bit Server VM (build 20.0-b12, ...

5 Jun at 04:0

Most efficient way to concatenate strings in JavaScript?

In JavaScript, I have a loop that has many iterations, and in each iteration, I am creating a huge string with many `+=` operators. Is there a more efficient way to create a string? I was thinking abo...

Any way to modify Jasmine spies based on arguments?

I have a function I'd like to test which calls an external API method twice, using different parameters. I'd like to mock this external API out with a Jasmine spy, and return different things based on...

24 Apr at 17:22

Unable to create/open lock file: /data/mongod.lock errno:13 Permission denied

How to I get mongo to use a mounted drive on ec2? I really do not understand. I attached a volume on ec2 formatted the drive as root and start as root and yet as root I cant access? I am running on...

5 Mar at 17:1

JSON.Net Self referencing loop detected

I have a mssql database for my website within 4 tables. When I use this: ``` public static string GetAllEventsForJSON() { using (CyberDBDataContext db = new CyberDBDataContext()) { r...

13 May at 15:17

AngularJS: ng-show / ng-hide not working with `{{ }}` interpolation

I am trying to show / hide some HTML using the `ng-show` and `ng-hide` functions provided by [AngularJS](http://docs.angularjs.org/api). According to the documentation, the respective usage for these...

26 May at 23:29

Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved

``` org.apache.maven.plugin.PluginResolutionException: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor f...

"TypeError: (Integer) is not JSON serializable" when serializing JSON in Python?

I am trying to send a simple dictionary to a json file from python, but I keep getting the "TypeError: 1425 is not JSON serializable" message. ``` import json alerts = {'upper':[1425],'lower':[576],'...

13 Aug at 21:20