Questions

! [rejected] master -> master (fetch first)

Is there a good way to explain how to resolve "`! [rejected] master -> master (fetch first)'`" in Git? When I use this command `$ git push origin master` it display an error message. ``` ! [rejecte...

10 Feb at 10:51

Android: How to handle right to left swipe gestures

I want my app to recognize when a user swipes from right to left on the phone screen. How to do this?

25 Jul at 12:40

How to listen for 'props' changes

In the [VueJs 2.0 docs](https://v2.vuejs.org/v2/guide/instance.html) I can't find any hooks that would listen on `props` changes. Does VueJs have such hooks like `onPropsUpdated()` or similar? As @wo...

Tooltips for Button elements

Is it possible to create a tooltip for an html button. Its the normal HTML button and there is no Title attribute as it is there for some html controls. Any thoughts or comments?

9 Mar at 22:18

URL Encode a string in jQuery for an AJAX request

I'm implementing Google's Instant Search in my application. I'd like to fire off HTTP requests as the user types in the text input. The only problem I'm having is that when the user gets to a space in...

27 Mar at 07:58

Cannot open database "test" requested by the login. The login failed. Login failed for user 'xyz\ASPNET'

I have created a web service which is saving some data into to db. But I am getting this error: > Cannot open database "test" requested by the login. The login failed. Login failed for user 'xyz\ASPN...

Java 8 Iterable.forEach() vs foreach loop

Which of the following is better practice in Java 8? Java 8: ``` joins.forEach(join -> mIrc.join(mSession, join)); ``` Java 7: ``` for (String join : joins) { mIrc.join(mSession, join); } ```...

4 Oct at 01:40

How to Set Opacity (Alpha) for View in Android

I have a button as in the following: ``` <Button android:text="Submit" android:id="@+id/Button01" android:layout_width="fill_parent" android:layout_height="wrap_content"> </Bu...

12 Jun at 06:16

Unlink of file Failed. Should I try again?

Something wrong is going on with one of the files in my local git repository. When I'm trying to change the branch it says: ``` Unlink of file 'templates/media/container.html' failed. Should I try ag...

8 Feb at 14:0

What is std::move(), and when should it be used?

1. What is it? 2. What does it do? 3. When should it be used? Good links are appreciated.

Convert string to integer type in Go?

I'm trying to convert a string returned from `flag.Arg(n)` to an `int`. What is the idiomatic way to do this in Go?

5 Nov at 16:36

How do I view the SQL generated by the Entity Framework?

How do I view the SQL generated by entity framework ? (In my particular case I'm using the mysql provider - if it matters)

6 Oct at 14:55

How do I block or restrict special characters from input fields with jquery?

How do I block special characters from being typed into an input field with jquery?

Java Security: Illegal key size or default parameters?

I had asked a question about this earlier, but it didn't get answered right and led nowhere. So I've clarified few details on the problem and I would really like to hear your ideas on how could I fix...

8 Jun at 16:50

Backup a single table with its data from a database in sql server 2008

I want to get a backup of a single table with its data from a database in SQL Server using a script. How can I do that?

9 Jun at 12:45

How To Accept a File POST

I'm using asp.net mvc 4 webapi beta to build a rest service. I need to be able to accept POSTed images/files from client applications. Is this possible using the webapi? Below is how action I am cu...

3 Jul at 05:57

Variable number of arguments in C++?

How can I write a function that accepts a variable number of arguments? Is this possible, how?

2 Apr at 17:25

Convert UTC/GMT time to local time

We are developing a C# application for a web-service client. This will run on Windows XP PC's. One of the fields returned by the web service is a DateTime field. The server returns a field in GMT for...

6 Jan at 07:53

How to determine if a string is a number with C++?

I've had quite a bit of trouble trying to write a function that checks if a string is a number. For a game I am writing I just need to check if a line from the file I am reading is a number or not (I...

8 Nov at 00:20

Beautiful Soup and extracting a div and its contents by ID

``` soup.find("tagName", { "id" : "articlebody" }) ``` Why does this NOT return the `<div id="articlebody"> ... </div>` tags and stuff in between? It returns nothing. And I know for a fact it exists...

7 Jun at 01:15

How to save/restore a model after training?

After you train a model in Tensorflow: 1. How do you save the trained model? 2. How do you later restore this saved model?

28 May at 11:5

Java: Check if enum contains a given string?

Here's my problem - I'm looking for (if it even exists) the enum equivalent of `ArrayList.contains();`. Here's a sample of my code problem: ``` enum choices {a1, a2, b1, b2}; if(choices.???(a1)}{ /...

22 Jan at 09:22

doGet and doPost in Servlets

I've developed an HTML page that sends information to a Servlet. In the Servlet, I am using the methods `doGet()` and `doPost()`: ``` public void doGet(HttpServletRequest req, HttpServletResponse res...

11 Aug at 17:42

Convert php array to Javascript

How can I convert a PHP array in a format like this ``` Array ( [0] => 001-1234567 [1] => 1234567 [2] => 12345678 [3] => 12345678 [4] => 12345678 [5] => AP1W3242 [6] => AP...

22 Feb at 22:9

How to run JUnit test cases from the command line

I would like to run JUnit test cases from the command line. How can I do this?

11 Jun at 14:51