Category: blog

  • Nice amazon echo voice command in summer seasons.

    So summer comes again this year. Murderous heatwaves, intense sunlight.
    We all know we can’t escape from the harsh weather though, the follwing voice command may help you forget them for a seconds. Try it and stay safe.

    Alexa, play ocean sounds.

    Alexa, play windy sounds.

  • Functions of curve lines

    This is the topic keeps staying in my mind. If there were some app that gives the functions of the lines drew on the touch screen, that would be neat.
    I want to use that kind of app.
    The functions of curve lines

  • Images on rural places

    Shoot some pictures near my rent house. Rural scenary is good for your eyes.

  • Registered on a Coursera course.

    Having an interest on Machine Learning, I registerd one of courses. Luckily I have some time for learning it now not like the previous time I registered on an Udacity’s Machine Learning course paying nearly 500 bucks. The lesson videos are not too long and clear to understand. Started to feel that it’s a good deal to me. Looks like many universities selling their contents on this platform. They started new subscription bussiness.

    Coursera

  • Learning language by watching dramas.

    I like Netflix. It offers many classic dramas and animes with multiple subtitles and audios. Seinfeld and Friends is my favorite. These’re fun and easy to follow. Best learning resource to learn english for me. Besides English, I am also trying to learn German (or have to confess struggling. it’s difficult to pronaunce words correctly) by watching classic dramas. Pastewka and Faust. I bought these dvds. As the subtitle didn’t comes along with, had to find transcript on web and did it after long hours research. This web site is really helpful.

    opensubtitles.org

  • About a copy of array in Vanila Javascript

    As you may know, we can’t make a copy of array in Vanila JS with the code below. (Not a library based js. That is Vanila JS.)

    var drinks = ["cola","orange juice", "tea", "beer"];

    var copyOfDrinks = drinks;

    drinks.push("milk");

    console.log(copyOfDrinks);

    We see “copyOfDrinks” show the contents of “drinks” because the variable is a reference of the original array. Simple “for loop” will do the job in this case.

    var drinks = ["milk","whisky"];

    var copyOfDrinks = [];

    for(let i = 0; i < drinks.length; i++){

    copyOfDrinks[i] = drinks[i]

    }

    drinks.push("lemon juice");

    console.log(copyOfDrinks);


    In modern JS (ES6,7), they created a syntax for doing this.


    var copy = [...drinks];

    Reference:
    Spread_syntax