Getting age automatically when given Date of Birth

HTML
I wanted to get the age of a person from his date of birth. I have a HTML code where I'm using a datepicker for dob, when I give the date-of-birth it ...
6 months ago

AFNetworking doesn't build with cocoapods on xcode8

iOS
I'm on cocoapods 1.1.1, and trying to install this file with pod install: source 'https://github.com/CocoaPods/Specs.git' platform :ios, '9.0' target...
6 months ago

Using UItableView In UICollectionView

iOS
I have Used Two TableViews in UICollectionView.My UicollectionViewCell Is Of Size 1000*630.When i swipe left on new cell,I want to show Different Tabl...
6 months ago

How to create a variable with info that persists across runtimes

Java
I am building a database and I want to be able to store a user input filepath and have it available as a variable even after the application is closed...
6 months ago

Two thread call join in java

Java
Example i have 2 thread: t1 and t2 and my code is t1.start(); t2.start(); t1.join(); t2.join(); I already known the concept of join method. But in...
6 months ago

How to modify the attributes of a single cell on a tableview

Java
This is the first time I've had to work with JavaFX (and hopefully the last) so I don't exactly understand how everything works. I'll try to sum where...
6 months ago

porting web app to Tomcat: javax.naming.NameNotFoundException:

Java
New user of Tomcat (8.5.9) on Linux CentOS 7 with Java SE 8. I must be making a simple mistake. This should be a textbook example how to configure a J...
6 months ago

How to remove blank lines from a text file in java

Java
I am trying to duplicate the original into a new file. In the new file I want the exact same things as the original BUT no blank lines. Note: I looke...
6 months ago

Add hypen to file if there in a blank space in a certain position

Java
If the substring position (6,7) is a blank space, I want that blank space to be replaced with a hyphen (used while loop because there are many in this...
6 months ago

How to give file path as input to Java program in Eclipse

Java
I have a Java program that prompts user for input file path and name, the program will read from that file: Scanner inScanner = new Scanner(System.in...
6 months ago

using a JavaScript if else function with an input field to show answers

Javascript
I am a few weeks into learning JavaScript and am trying to practically apply my knowledge, any help would be greatly appreciated. Right mow any answer...
6 months ago

Importing a typescript file without using any of the exports

Javascript
I'm pretty new to TypeScript and I have a main.tc where I import items.tc, which contains and exports some item classes, and also adds the class types...
6 months ago

Event Listener / .getElementById Issue with Brave Browser

Javascript
I started using Brave today and noticed some of my web apps / websites are not working. Specifically, some buttons are not getting handled. So, to t...
6 months ago

Passing Variables To/From Function

Javascript
I am attempting to create a code that generates faces and displays them as part of an audited Coursera.com course. There are variables generated outsi...
6 months ago

Parameter index out of range (1 > number of parameters, which is 0) in MySQL

MySQL
Im using Spring mvc, Hibernate and Mysql, in my DAOImplement i call sql file outsite. This is my DAO: public List<RenterDto> searchByNamePerso...
6 months ago

Send StatusCode 400 when "No Records Found"

PHP
how to set the StatusCode to 400 in slim v2 when the MySql response is unsuccessful? $app->get('/gg/:user/:pass', 'gg'); function gg($user, $pass...
6 months ago

How to prevent Simple HTML DOM plaintext from concatenating words together for sequential <div> elements

PHP
I'm parsing a web page which contains the following excerpt: &lt;div&gt;foo&lt;/div&gt;&lt;div&gt;bar&lt;/div&gt; With the following code: $html =...
6 months ago

Using Numpy to generate random combinations of two arrays without repetition

Python
Given two arrays, for example [0,0,0] and [1,1,1], it is already clear (see here) how to generate all the combinations, i.e., [[0,0,0],[0,0,1],[0,1,0]...
6 months ago

Python: Find largest array index along a specific dimension which is greater than a threshold

Python
Lets say I have a 4-D numpy array (ex: np.rand((x,y,z,t))) of data with dimensions corresponding to X,Y,Z, and time. For each X and Y point, and at e...
6 months ago

python sklearn: what is the difference between accuracy_score and learning_curve score?

Python
I'm using Python sklearn (version 0.17) to select the ideal model on a data set. To do this, I followed these steps: Split the data set using cross_...
6 months ago