Custom delegates to get the data displayed on tableview cells

iOS
I have a button on ViewController A and tableview with custom cells on ViewController B. I want to display the data selected on cells of ViewControlle...
4 months ago

Unable to change button image when pressed inside a UITableViewCell in iOS application

iOS
I have a UITableViewController that contains a table, whose cells I wish to add a button to. This is a customized button that will act as a checkbox,...
4 months ago

Java Weird loopy behaviour

Java
Can someone explain why this code is an infinite loop on Java 7,8? public static void main(String[] args) { for (int i = Integer.MAX_VALUE - 100...
4 months ago

Understanding TimeUnit

Java
I took a look into TimeUnit and toMillis() method. public long toMillis(long paramLong) { throw new AbstractMethodError(); } toMillis() meth...
4 months ago

Create a string arraylist from another string arraylist by splitting strings

Java
I need to create a String ArrayList from another String ArrayList by splitting the strings from the first one into the second one. The data comes from...
4 months ago

moment.js format current datetime in multiple timezones

Javascript
I need pacific time US & Canada in my javascript code. I am using below line of code for that moment(new Date()).zone("-07:00").format('hh:mm A')...
4 months ago

Javascript XML error alert

Javascript
I have XML stored in the variable 'ad' and 'addd': Variable ad: <?xml version="1.0" encoding="UTF-8"?> <name> <data> <Id>003&...
4 months ago

react map es6 arrow function doesn't work

Javascript
I have below code and it render nothing, I wonder where is my mistake, I did not see any error in the console. var App = React.createClass({ getIn...
4 months ago

What is the most efficient way to compare 45 Million rows of Text File to about 200k rows text file and produce non matches from the smaller file?

Python
I have a 45 million row txt file that contains hashes. What would be the most efficient way to compare the file to another file, and provide only item...
4 months ago

Finding variance of a subset of data from a scatterplot

R
I have a scatterplot of x versus y. I have drawn an abline down the middle of the plot. I want to calculate the variance of the points on the left o...
4 months ago

Modifying plot title and Y axis label when plotting acf & ccf

R
I have the following cross correlation function (ccf) with an acf class which I am trying to plot: > data.ccf<-structure(list(acf = structure(c...
4 months ago

pass index from function to function in react

React JSX
I have a list of item, and upon on click of the delete button the item will get removed. I know the steps to do it but I'm stuck on how can I pass the...
4 months ago

Assign number to alphabet in array

Ruby
What I want to do is use an array.each to turn each letter into its corresponding letter in the alphabet plus nine. I know it's possible to put it aga...
4 months ago

Auto increment counter if field length is greater than n

SQL
I have been asked to include a field ComNo, and if field length of Comments is greater than 5 characters, the rest of characters in Comment should app...
4 months ago

Calling function from a class

Swift
I am trying to become confident using functions. I am practicing with the code below. class Arithmetics { var operand1: Double var operand2: Double ...
4 months ago

How to perform differently from different segues?

Swift
I have a AController with 2 segues connected to BController. In AController I wrote this: override func prepare(for segue: UIStoryboardSegue, sender...
4 months ago

Using UNUserNotificationCenter to support iOS 10 rich notifications, but the notification never shows up. It only sounds the alert

Swift
Not sure, what's missing, but I'm stuck with a weird problem!!! Notification sounds, but isn't displayed. I have registered the app to only display ...
4 months ago

delay sending mail with Exchange Web Services (EWS) Managed API

Vb.net
My issue is I cannot seem to put a delay on sending the item (have tried 2 minutes through to 2 days, no luck). The mail itself sends immediately and...
4 months ago

Load Image Into ImageView Android

Android
I am trying to load an image from my local server into an image view using glide. The url i am using works fine. When i look for it in the browser the...
4 months ago

How do I suppress warnings when compiling an android library with gradle?

Android
In my application I have a library developed by a 3rd party that unfortunately contains quite a few lint and javac warnings. I'd like to ignore both t...
4 months ago