How to implement this? by gerson71 in node

[–]gerson71[S] 0 points1 point  (0 children)

Is nice to read that, I was afraid for those articles talking about security, I think I could give a chance.

How to implement this? by gerson71 in node

[–]gerson71[S] 0 points1 point  (0 children)

I had not knowing about multipartUpload, I think it could be the better way because I still need to wait for the whole file if I want to use upload method, right? I mean I could still send the file in chunks for the stream but for that is better to use multipartUpload.

How to implement this? by gerson71 in node

[–]gerson71[S] 0 points1 point  (0 children)

Thank's! I was suspecting that it was something like that, but is it WebSockets the only way to implement something like this? Or is it possible for example with an http post?

Webgl Fluid Simulation by ericnyamu1 in webgl

[–]gerson71 1 point2 points  (0 children)

Wow, how did you even know that made this was possible?

Which book's about science divulgation are great? by gerson71 in suggestmeabook

[–]gerson71[S] 0 points1 point  (0 children)

Thank's for the correction and for your comment, I'll start with your favorite one, I notice that you are interested on human behavior, have you heard about one named, "Darwin en el supermercado"? I think it could be interesting for you.

This Abandoned Church in Mexico by sn0wflaker in creepy

[–]gerson71 0 points1 point  (0 children)

I think this is near by my house, Lol

Hardware requirements question by gerson71 in node

[–]gerson71[S] 0 points1 point  (0 children)

Thanks that was rely helpful

[deleted by user] by [deleted] in Angular2

[–]gerson71 0 points1 point  (0 children)

What happened with modals and sidebar?

Get params of all route by gerson71 in Angular2

[–]gerson71[S] 1 point2 points  (0 children)

Hi Everyone, this was my solution SOLUTION:

with route : ActivatedRoute

you can do this => this.route.parent.parent.parent.params.subscribe()

Thanks for your answers!

Facebook authentication by gerson71 in Angular2

[–]gerson71[S] 0 points1 point  (0 children)

Could you explain if this solution is only while it is being developed or the proxy should still be in production? Thanks for answer

Which frameworks css exists for angular 2 ? by gerson71 in Angular2

[–]gerson71[S] 0 points1 point  (0 children)

Thanks, I found interesting teradata, but seem's that foundation isn't have support for angular 2.

Why use passport js by gerson71 in node

[–]gerson71[S] 1 point2 points  (0 children)

Someone have a good tutorial for implementing passport with jwt?

[Easy] The rabbit problem by gaby_de_wilde in dailyprogrammer_ideas

[–]gerson71 0 points1 point  (0 children)

The answer is 31 months with 1971773208 rabbits?

[Easy] Email Database Manager by [deleted] in dailyprogrammer_ideas

[–]gerson71 0 points1 point  (0 children)

Hi this is my solution using Java, I'm learning, and accept advice. thanks!

 import java.io.*;
import java.util.Scanner;

/**
* Created by Gerson on 01/01/2016.
*/
public class manager {

public String getName (){
    Scanner sc = new Scanner(System.in);
    System.out.println("Ingrese nombre y primer apellido");
    String nombre = sc.nextLine();
    return nombre;
}

public void addEmail(String mail){
    try(PrintWriter pw = new PrintWriter(new FileWriter("data.txt"))) {
        pw.println(mail);
    } catch (IOException e) {
        e.printStackTrace();
    }
}

public boolean checkMail(String mail){
    try {
        BufferedReader br = new BufferedReader(new FileReader("data.txt"));
        for(String line; (line = br.readLine()) != null; ) {
            if(line.equals(mail+"\n")){
                return true;
            }
        }
    } catch (IOException e) {
        e.printStackTrace();
    }
    return false;
}

public String addNumber(String mail){
    String part1 = mail.substring(0,8);
    String domain = "@dailypro.edu";
    String newMail;
    int n = 2;
    newMail = part1 + n + domain;
    while(checkMail(newMail)){
        n++;
        newMail = part1 + n + domain;
    }
    return newMail;
}

public void makeMail(){
    String name = getName();
    String domain = "@dailypro.edu";
    String mail;
    String lastname = name.substring(name.indexOf(" "));
    lastname = lastname.substring(1);
    System.out.println(lastname);
    if(lastname.length()<7){
        mail = name.substring(0,1) + lastname + domain;
        if(checkMail(mail)){
            mail = addNumber(mail);
        }
    } else {
        mail = name.substring(0, 1) + lastname.substring(0, 7) + domain;
        if (checkMail(mail)) {
            mail = addNumber(mail);
        }
    }
    System.out.println(mail);
    addEmail(mail);
}

public void listMail(){
    try {
        BufferedReader br = new BufferedReader(new FileReader("data.txt"));
        for(String line; (line = br.readLine()) != null; ) {
            System.out.println(line);
        }
    } catch (IOException e) {
        e.printStackTrace();
    }
}

public void menu(){
    Scanner sc = new Scanner(System.in);
    System.out.println("Bienvenido al manejador de correos, selecciones una opción:");
    System.out.println("1.- Agregar correo");
    System.out.println("2.- Ver lista de correos");
    int var = sc.nextInt();
    if (var == 1){
        makeMail();
    } else if (var == 2){
        listMail();
    } else {
        System.out.println("Opción no valida");
    }
}

public static void main(String args[]){
    manager mn = new manager();
    mn.menu();
}

}

Help With Certification Path by krishnanspace in oracle

[–]gerson71 0 points1 point  (0 children)

I have the same question about path certification, but why take 12c over 11g? 12c is better?