Questions

How to get multiple select box values using jQuery?

How to get multiple select box values using jQuery?

14 Feb at 14:33

What is the maximum possible length of a query string?

Is it browser dependent? Also, do different web stacks have different limits on how much data they can get from the request?

5 Feb at 05:49

DateTime.ToString("MM/dd/yyyy HH:mm:ss.fff") resulted in something like "09/14/2013 07.20.31.371"

I have a WP8 app, which will send the current time to a web service. I get the datetime string by calling ``` DateTime.ToString("MM/dd/yyyy HH:mm:ss.fff") ``` For most users it works great and gi...

2 Feb at 11:43

Standard Android Button with a different color

I'd like to change the color of a standard Android button slightly in order to better match a client's branding. The best way I've found to do this so far is to change the `Button`'s drawable to the ...

30 Oct at 11:13

Calling a parent window function from an iframe

I want to call a parent window JavaScript function from an iframe. ``` <script> function abc() { alert("sss"); } </script> <iframe id="myFrame"> <a onclick="abc();" href="#...

25 Jun at 18:49

How do I escape special characters in MySQL?

For example: ``` select * from tablename where fields like "%string "hi" %"; ``` Error: > You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for ...

18 Mar at 17:35

onActivityResult is not being called in Fragment

The activity hosting this fragment has its `onActivityResult` called when the camera activity returns. My fragment starts an activity for a result with the intent sent for the camera to take a pictur...

Merging two arrays in .NET

Is there a built in function in .NET 2.0 that will take two arrays and merge them into one array? The arrays are both of the same type. I'm getting these arrays from a widely used function within my ...

30 Apr at 06:34

Error:java: javacTask: source release 8 requires target release 1.8

Using IntelliJ IDE can't compile any projects. Screenshots of settings below: Used JDK: [](https://i.stack.imgur.com/cpggk.png) Project SDK and Language level: [](https://i.stack.imgur.com/0gEQl.p...

24 Apr at 08:16

How to perform debounce?

How do you perform debounce in React.js? I want to debounce the handleOnChange. I tried with `debounce(this.handleOnChange, 200)` but it doesn't work. ``` function debounce(fn, delay) { var timer...

7 Jul at 14:30

What's the difference between identifying and non-identifying relationships?

I haven't been able to fully grasp the differences. Can you describe both concepts and use real world examples?

rejected master -> master (non-fast-forward)

I'm trying to push my project (all files in a new repository). I follow the steps but when I push with `git push -u origin master` I get this error: ``` ! [rejected] master -> master (non-fast...

18 Jun at 10:15

How does String substring work in Swift

I've been updating some of my old code and answers with Swift 3 but when I got to Swift Strings and Indexing with substrings things got confusing. Specifically I was trying the following: ``` let s...

15 Nov at 02:16

Fastest way to copy a file in Node.js

The project that I am working on (Node.js) implies lots of operations with the file system (copying, reading, writing, etc.). Which methods are the fastest?

27 Oct at 19:47

Extract public/private key from PKCS12 file for later use in SSH-PK-Authentication

I want to extract the public and private key from my `PKCS#12` file for later use in SSH-Public-Key-Authentication. Right now, I'm generating keys via ssh-keygen which I put into `.ssh/authorized_ke...

23 Apr at 15:40

Getting attribute using XPath

Given an XML structure like so: ``` <?xml version="1.0" encoding="ISO-8859-1"?> <bookstore> <book> <title lang="eng">Harry Potter</title> <price>29.99</price> </book> <book> <title lang="eng...

21 May at 03:49

Uninstall / remove a Homebrew package including all its dependencies

I have a formula that I wish to uninstall/remove along with all its dependencies, skipping packages whom other packages depend upon (a.k.a. [Cascading package removal](https://en.wikipedia.org/wiki/P...

25 Apr at 05:5

Undo a particular commit in Git that's been pushed to remote repos

What is the simplest way to undo a particular commit that is: - - Because if it is not the latest commit, ``` git reset HEAD ``` doesn't work. And because it has been pushed to a remote, ``` g...

Video auto play is not working in Safari and Chrome desktop browser

I spent quite a lot of time trying to figure out why video embedded like here: ``` <video height="256" loop autoplay muted controls id="vid"> <source type="video/mp4" src="video_file.mp4"></...

How to input a regex in string.replace?

I need some help on declaring a regex. My inputs are like the following: ``` this is a paragraph with<[1> in between</[1> and then there are cases ... where the<[99> number ranges from 1-100</[99>. a...

9 Aug at 12:4

How to check if a variable is a dictionary in Python?

How would you check if a variable is a dictionary in Python? For example, I'd like it to loop through the values in the dictionary until it finds a dictionary. Then, loop through the one it finds: ```...

17 Dec at 12:27

How can I add a custom HTTP header to ajax request with js or jQuery?

Does anyone know how to add or create a custom HTTP header using JavaScript or jQuery?

Docker for Windows error: "Hardware assisted virtualization and data execution protection must be enabled in the BIOS"

I've installed Docker and I'm getting this error when I run the GUI: > Hardware assisted virtualization and data execution protection must be enabled in the BIOS Seems like a bug since Docker work...

25 Sep at 08:45

Split Div Into 2 Columns Using CSS

I have been attempting to split a div into two columns using CSS, but I have not managed to get it working yet. My basic structure is as follows: ``` <div id="content"> <div id="left"> <div i...

9 May at 19:12

Unity Scripts edited in Visual studio don't provide autocomplete

When I want to edit C# Unity scripts, they open in Visual Studio. It is supposed to provide auto complete for all Unity related code, but it doesn't work. Here you can see the missing functionality: !...

12 Aug at 23:25