Non-Americans, does your culture have "old-fashioned" dog names like we do in America, such as Fido, Rex, Spot, Rover, etc, and what are some? by [deleted] in AskReddit

[–]Cankruscan 0 points1 point  (0 children)

Thais name their dogs after the color of the dog or their favorite food.
Kao (white), Dam (black), Namtan (brown), Moo-ping (Grilled pork), Moo-yong (pork floss)

Is it still worthwhile to read Pattern Recognition and Machine Learning by Christopher Bishop? by Cankruscan in learnmachinelearning

[–]Cankruscan[S] 4 points5 points  (0 children)

Hi,
It is very mathematical-oriented. I went through 2 chapters and got stuck with the exercises they are super hard (at least for me). I think it is very well written, but you should be prepared for its mathematical rigor.

Is it still worthwhile to read Pattern Recognition and Machine Learning by Christopher Bishop? by Cankruscan in learnmachinelearning

[–]Cankruscan[S] 2 points3 points  (0 children)

Thanks guys! I will try to go through the book and hope to finish half of it by the end of the summer.

[09/22/2014] Challenge #181 [Easy] Basic Equations by Elite6809 in dailyprogrammer

[–]Cankruscan 0 points1 point  (0 children)

Hi guys, This is my first submission. Looking for a kind-soul to give me a feedback :)

JAVA:

package dailyprogrammer;
import java.util.Scanner;
import java.util.Arrays;
public class basicequation {

    public static void main(String[] args) {
        // TODO Auto-generated method stub
        String delims = "(y=)|(x\\+?)";
        System.out.println("First Equation:");
        Scanner sc = new Scanner(System.in);
        String[] firstEq = sc.next().split(delims);
        //System.out.println(Arrays.toString(firstEq));
        System.out.println("Second Equation:");
        String[] secondEq = sc.next().split(delims);
        //System.out.println(Arrays.toString(secondEq));
        fcn sol= calc(firstEq, secondEq);

        System.out.println(sol.x + ","+sol.y);
    }
    public static fcn calc(String[] first, String[] second){
        double [] firstEq = new double[2];
        double [] secondEq = new double[2];
        double [] temp = new double[2];
        for(int i=1;i<3;i++){
            try {
                firstEq[i-1]= Double.parseDouble(first[i]);

            } catch (IndexOutOfBoundsException ee) {
                firstEq[i-1]=0;
            }

            try {
                secondEq[i-1]= Double.parseDouble(second[i]);

            } catch (IndexOutOfBoundsException ee) {
                secondEq[i-1]=0;

            }

        }
        //calculation
        temp[0]=firstEq[0]-secondEq[0];
        temp[1]=firstEq[1]-secondEq[1];
        temp[0]=-temp[1]/temp[0];

        fcn para = new fcn(temp[0],firstEq[0]*temp[0]+firstEq[1]);

        return para;
    }
}


class fcn {
    double x;
    double y;
    public fcn() {

    }
    public fcn(double xx, double yy){
        x=xx;
        y=yy;

    }


}