Check if a variable is between two numbers with Java
I have a problem with this code: ``` if (90 >>= angle =<< 180) ``` The error explanation is: > The left-hand side of an assignment must be a variable. I understand what this means but how do I tu...
- Modified
- 13 Feb at 19:23
Start an Activity with a parameter
I'm very new on Android development. I want to create and start an activity to show information about a game. I show that information I need a gameId. How can I pass this game ID to the activity? Th...
- Modified
- 12 Oct at 10:19
Regular expression for a hexadecimal number?
How do I create a regular expression that detects hexadecimal numbers in a text? For example, ‘0x0f4’, ‘0acdadecf822eeff32aca5830e438cb54aa722e3’, and ‘8BADF00D’.
- Modified
- 15 Aug at 14:7
Angular 4: How to include Bootstrap?
I'm a backend developer and I'm just playing around with Angular4. So I did this installation tutorial: [https://www.youtube.com/watch?v=cdlbFEsAGXo](https://www.youtube.com/watch?v=cdlbFEsAGXo). Giv...
- Modified
- 22 Aug at 18:33
Get visible items in RecyclerView
I need to know which elements are currently displayed in my RecyclerView. There is no equivalent to the [OnScrollListener.onScroll(...)](http://developer.android.com/reference/android/widget/AbsListVi...
- Modified
- 28 Jul at 06:0
ERROR 1115 (42000): Unknown character set: 'utf8mb4'
I have a MySQL dump, which I tried to restore with: ``` mysql -u"username" -p"password" --host="127.0.0.1" mysql_db < mysql_db ``` However, this threw an error: ``` ERROR 1115 (42000) at line 3231...
- Modified
- 17 Aug at 14:2
How to provide shadow to Button
![enter image description here](https://i.stack.imgur.com/vrHCF.png) As you can see in image, I want shadow behind a `Button`. I have created `Button` with rounded corners. But problem is I can't gen...
- Modified
- 28 Jan at 10:3
How to make a query with group_concat in sql server
I know that in sql server we cannot use `Group_concat` function but here is one issue i have in which i need to `Group_Concat` my query.I google it found some logic but not able to correct it.My sql q...
- Modified
- 13 Feb at 12:52
List names of all tables in a SQL Server 2012 schema
I have a schema in SQL Server 2012. Is there a command that I can run in SQL to get the names of all the tables in that schema that were populated by user? I know a similar query for MySQL `SHOW TAB...
- Modified
- 21 Jan at 19:51
java.lang.ClassCastException: java.util.LinkedHashMap cannot be cast to com.testing.models.Account
I'm getting below error: ``` java.lang.ClassCastException: java.util.LinkedHashMap cannot be cast to com.testing.models.Account ``` with below code ``` final int expectedId = 1; Test newTest = cr...
- Modified
- 3 Mar at 03:20
Laravel Eloquent where field is X or null
I have a table like this: ``` table - field1: tinyint - field2: varchar (nullable) - datefield: timestamp (nullable) ``` Now I want to get all entries where field1 is 1, field2 is null and where da...
How to scroll the window using JQuery $.scrollTo() function
I'm trying to scroll down 100px every time the user gets near the top of the document. I have the function executing when the user gets close to the top of the document, but the .scrollTo function is...
- Modified
- 7 May at 04:13
How do you perform a left outer join using linq extension methods
Assuming I have a left outer join as such: ``` from f in Foo join b in Bar on f.Foo_Id equals b.Foo_Id into g from result in g.DefaultIfEmpty() select new { Foo = f, Bar = result } ``` How would I ...
TypeError: string indices must be integers, not str // working with dict
I am trying to define a procedure, `involved(courses, person)`, that takes as input a courses structure and a person and returns a Dictionary that describes all the courses the person is involved in. ...
- Modified
- 21 Sep at 10:3
Space between Column's children in Flutter
I have a `Column` widget with two `TextField` widgets as children and I want to have some space between both of them. I already tried `mainAxisAlignment: MainAxisAlignment.spaceAround`, but the resul...
- Modified
- 3 Jan at 03:57
Make XmlHttpRequest POST using JSON
How can I make an AJAX POST request sending JSON data using vanilla JS. I understand the content-type is url form encoded and it doesn't support nested JSONs. Is there any way I can make such a POST...
- Modified
- 15 Sep at 20:7
How do I generate random numbers in Dart?
How do I generate random numbers using Dart?
php execute a background process
I need to execute a directory copy upon a user action, but the directories are quite large, so I would like to be able to perform such an action without the user being aware of the time it takes for t...
- Modified
- 7 Sep at 14:44
How is OAuth 2 different from OAuth 1?
In very simple terms, can someone explain the difference between OAuth 2 and OAuth 1? Is OAuth 1 obsolete now? Should we be implementing OAuth 2? I don't see many implementations of OAuth 2; most are...
- Modified
- 13 Apr at 02:51
how to save canvas as png image?
I have a canvas element with a drawing in it, and I want to create a button that when clicked on, it will save the image as a png file. So it should open up the save, open, close dialog box... I do it...
- Modified
- 7 Jun at 06:49
How to create Toast in Flutter
Can I create something similar to [Toasts](https://developer.android.com/guide/topics/ui/notifiers/toasts.html) in Flutter? [](https://i.stack.imgur.com/a2ahK.jpg) Just a tiny notification window that...
- Modified
- 26 Dec at 09:44
First Heroku deploy failed `error code=H10`
I deployed my app to Heroku. It's a node.js + express + socket.io app and this is the `package.json` file ``` { "name": "game_test", "author": "Ilya", "description": "A test app for our board g...
Date only from TextBoxFor()
I'm having trouble displaying the only date part of a DateTime into a textbox using TextBoxFor<,>(expression, htmlAttributes). The model is based on Linq2SQL, field is a DateTime on SQL and in the En...
- Modified
- 1 Mar at 15:58
How can I debug "ImagePullBackOff"?
All of a sudden, I cannot deploy some images which could be deployed before. I got the following pod status: ``` [root@webdev2 origin]# oc get pods NAME READY STATUS ...
- Modified
- 25 Oct at 12:44
Test if object implements interface
What is the simplest way of testing if an object implements a given interface in C#? (Answer to this question [in Java](https://stackoverflow.com/questions/766106/test-if-object-implements-interface)...
- Modified
- 23 May at 12:3