Convert Any type in scala to Array[Byte] and back

Scala
I have the following question: I have a variable value in my program which is declared as Any value. I want to convert this value to Byte Array.. ...
5 months ago

output specific columns in SQL

SQL
I want to output only 2 rows - title and sum. Title comes from orbiting_group_types table, while SUM is calculating during sql query. Here is my query...
5 months ago

Unable to post image and text to database. Receiving no errors

SQL
Hey guys I am having issues with my php file which is supposed to allow a user to post a status along with a picture which is uploaded to a server and...
5 months ago

SQL - substring query result

SQL
I have table with the following columns log_id INT PRIMARY KEY emp_name VARCHAR(7) NOT NULL date_log VARCHAR(23) NOT NULL in_am ...
5 months ago

Compare objects and edit array

Swift
I want to create array of unique elements by specific property. Ex: I have array of objects (Person) : struct Person { var name: String? v...
5 months ago

Angular 1.5 components : Component based application architecture

TypeScript
According to the Angular 1.5 documentation components should only control their own View and Data. Instead of changing properties of objects passed ...
5 months ago

Default value to a optional class variable parameter function call in vb.net

Vb.net
I am trying to pass a class variable as an optional parameter to a function. But it requires a default value. What could I set the default value for t...
5 months ago

dhtmlxscheduler with Aurelia and typescript

TypeScript
I'm trying to install dhtmlxscheduler to my Aurelia CLI (typescript) app. I've npm installed it: npm i dhtmlx-scheduler Then I added it to the aure...
5 months ago

How to Check for a Unique User?

Ajax
I'm having any application in which I have email_id as unique and whenever an end user enters his email_id I have fired an SQL query through Ajax whic...
5 months ago

Show browser list when opening a link in android

Android
I want to open some links in external browser. Before opening I want to display the list of browsers in the device. I did this functionality using ...
5 months ago

Call activity from Application

Android
I am trying to use Digits from Twitter. The AuthCallBack is not fired when used from activity and the recent document saying to use the AuthCallBack f...
5 months ago

angular2 bind ngModel from ngFor

AngularJS
So I'm rendering my textarea dynamically using ngFor however I'm not sure how I can pass the ngModel to bind it in my function. <div *ngFor="let i...
5 months ago

Is there any way make Snackbar persist among activity changes?

Android
Although Snackbar is beautiful, it doesn't persist when changing activities. This is a bummer in scenarios where I would like to confirm that a messag...
5 months ago

How to refactor this logic in the template/view to use a single line if statement (AngularJS 1.x)

AngularJS
I am fixing some small issues within our AngularJS application - I've come across the logic below which simply displays one link. In pseudocode style...
5 months ago

Detect whether there is an Internet connection available on Android

Android
Possible Duplicate: How to check internet access on Android? InetAddress never timeouts I need to detect whether the Android device is conn...
5 months ago

remove $$hashKey from array

AngularJS
$scope.appdata = [{name: '', position: '', email: ''}]; This is the array which I created in angular controller. Then I inserted some values in to ...
5 months ago

Check if RecyclerView is scrollable

Android
How to check if a RecyclerView is scrollable, ie, there are items below/above the visible area I have a dropdown in my recycler view which works by u...
5 months ago

What's the best way to make a Count Down Timer?

Android
I am wondering if this is the best way to make a timer of 1 minute on Android: new CountDownTimer(60000, 1000) { public void onTick(lon...
5 months ago

Firebase : Can't resolve google auth and GoogleSignInResult libraries

Android
I just started with Android and I am looking in to using Google Firebase for Google Sign-In. Unfortunately I am unable to import import com.google.a...
5 months ago

unable to resolve Apache HTTP library to send Request and Receive Response

Android
i am trying to upload image using Apache HTTP Library but i will get this kind of error. Caused by: java.lang.NoSuchFieldError: No static field I...
5 months ago