Questions

Parsing RFC-3339 / ISO-8601 date-time string in Go

I tried parsing the date string `"2014-09-12T11:45:26.371Z"` in Go. This time format is defined as: - [RFC-3339 date-time](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6)- [ISO-8601 date-ti...

23 Feb at 10:2

How can I view the Git history in Visual Studio Code?

I can execute various Git commands from Visual Studio Code, however I couldn't find a way to visualize the history.

Bootstrap 3 Flush footer to bottom. not fixed

I am using Bootstrap 3 for a site I am designing. I want to have a footer like this sample. [Sample](http://wrapbootstrap.com/preview/WB0B348C6) Please note that I don't want it FIXED so bootstrap n...

24 Jan at 04:37

Add to Array jQuery

I know how to initliaize one but how do add I items to an Array? I heard it was `push()` maybe? I can't find it...

2 May at 19:58

How to remove indentation from an unordered list item?

I want to remove all indentation from `ul`. I tried setting `margin`, `padding`, `text-indent` to `0`, but no avail. Seems that setting `text-indent` to a negative number does the trick - but is that ...

30 Jul at 20:58

Having links relative to root?

Is there a way to have all links on a page be relative to the root directory? For example, on `www.example.com/fruits/apples/apple.html` I could have a link saying: ``` <a href="fruits/index.html">B...

31 Dec at 21:46

Check if String contains only letters

The idea is to have a String read and to verify that it does not contain any numeric characters. So something like "smith23" would not be acceptable.

8 Nov at 18:30

Editor does not contain a main type

Just going through the sample Scala code on Scala website, but encountered an annoying error when trying to run it. Here's the code: [http://www.scala-lang.org/node/45](http://www.scala-lang.org/node...

12 Mar at 09:24

remove objects from array by object property

``` var listToDelete = ['abc', 'efg']; var arrayOfObjects = [{id:'abc',name:'oh'}, // delete me {id:'efg',name:'em'}, // delete me {id:'hij',name:'ge'}] //...

10 May at 23:46

Converting string to number in javascript/jQuery

Been trying to convert the following to number: ``` <button class="btn btn-large btn-info" data-votevalue="1"> <strong>1</strong> </button> ``` ``` var votevalue = parseInt($(this).data('voteva...

8 Nov at 08:34

How can I read large text files line by line, without loading them into memory?

I want to read a large file (>5GB), line by line, without loading its entire contents into memory. I cannot use `readlines()` since it creates a very large list in memory.

28 Aug at 20:25

List of ANSI color escape sequences

On most terminals it is possible to colorize output using the `\033` ANSI escape sequence. I'm looking for a list of all supported colors and options (like bright and blinking). As there are probabl...

22 May at 20:16

How to find MySQL process list and to kill those processes?

The MySQL database hangs, due to some queries. How can I find the processes and kill them?

13 May at 12:12

The openssl extension is required for SSL/TLS protection

``` composer create-project flarum/flarum . --stability=beta ``` I try to run this command, but it gave me this error. ``` [RuntimeException] ...

25 Oct at 07:58

Angular 2 - Setting selected value on dropdown list

I have run into an issue in pre-selecting values on a dropdown list in Angular 2. I set an array of colours in the component which I bind successfully to the dropdown list. The issue I'm experienc...

18 Nov at 12:30

INSTALL_FAILED_USER_RESTRICTED : android studio using redmi 4 device

[](https://i.stack.imgur.com/TsZ3Z.jpg) Got this freaky error ``` Installation failed with message Failed to finalize session : INSTALL_FAILED_USER_RESTRICTED: Install canceled by user. It is possible...

17 Aug at 14:18

How to add jQuery code into HTML Page

``` $(".icon-bg").click(function () { $(".btn").toggleClass("active"); $(".icon-bg").toggleClass("active"); $(".container").toggleClass("active"); $(".box-upload").toggleClass("active"...

31 Aug at 14:48

WPF: Setting the Width (and Height) as a Percentage Value

Say I want a `TextBlock` to have its `Width` equal to it's Parent container's `Width` (ie, stretch from side to side) or a percentage of it's Parent Container `Width`, how can I accomplish this in `X...

16 Apr at 14:48

Copy a table from one database to another in Postgres

I am trying to copy an entire table from one database to another in Postgres. Any suggestions?

11 Oct at 19:44

Fetch API with Cookie

I am trying out the new Fetch API but is having trouble with Cookies. Specifically, after a successful login, there is a Cookie header in future requests, but Fetch seems to ignore that headers, and a...

1 Jan at 17:21

How do I start a process from C#?

How do I start a process, such as launching a URL when the user clicks a button?

Bootstrap Datepicker - Months and Years Only

I am using bootstrap datepicker and my code is like following, Demo of the code on [jsfiddle](http://jsfiddle.net/Kz2sW/) ``` <div class="input-append date" id="datepicker" data-date="02-2012" ...

9 Mar at 08:10

Get string between two strings in a string

I have a string like: ``` "super example of string key : text I want to keep - end of my string" ``` I want to just keep the string which is between `"key : "` and `" - "`. How can I do that? Must ...

18 Feb at 13:25

equivalent to push() or pop() for arrays?

I am trying to add, remove and reference items from an array I create in my main java file, but I am having trouble figuring out the correct syntax. In actionscript they have push() and pop() for add...

13 Nov at 23:37

Using jq to parse and display multiple fields in a json serially

I have this Json ``` { "users": [ { "first": "Stevie", "last": "Wonder" }, { "first": "Michael", "last": "Jackson" }...

27 Mar at 10:29