Hand Carved Stone Owl Object?

OK I’m intrigued.I would have described it as a sculpture or maybe even a paperweight. But object works too. Even the item description is vague “… hand-crafted elements made of natural materials…”

Maybe Chapters should stick to selling bound paper documents that contain printed words? At least until they can figure out what the owl shaped thing is.

image

Object Equality in JavaScript

Equality는 대부분 처음의 하나로 JavaScript의 혼란스러운 측면이 있다.

Equality는 Javascript에서 가장 처음으로 혼란스러운 측면 중 하나이다.

==비해 ===은 강력한 타입 명령이다. 모두 주제를 복잡하게 제공한다.

오늘날 우리는 다른 면을 살펴 볼것이다. 어떻게 객체의 비교를 하는가

만약 두개의 객체가 같은 속성과 그들의 속성이 같은 값이면, 그들은 확실히 같은 수도 있을 것이다. 다은 경우를 보자

var jangoFett = {
    occupation: "Bounty Hunter",
    genetics: "superb"
};

var bobaFett = {
    occupation: "Bounty Hunter",
    genetics: "superb"
};

// Outputs: false
console.log(bobaFett === jangoFett);

bobaFettjangoFett는 속성들은 같지만 객체 자신들은 확실 같지 않다. 아마도 그것이 ===를 사용해서 일까?

다음을 보자

// Outputs: false
console.log(bobaFett == jangoFett);

이유는 내부 Javascript가 testing equility의 접근을 두개를 다르게 보기 때문입니다. stirngs와 numbers와 같은 기초적인 것은 그들의 값으로 비교를 하지만 반면에 배열,date, plain objects는 그들의 참조를 비교합니다. 참조의 비교는 기복적으로 객체 같은 메모리의 위치에 참조를 제공한다면 보는 거을 체크 합니다. 다은에 예제입니다.

var jangoFett = {
    occupation: "Bounty Hunter",
    genetics: "superb"
};

var bobaFett = {
    occupation: "Bounty Hunter",
    genetics: "superb"
};

var callMeJango = jangoFett;

// Outputs: false
console.log(bobaFett === jangoFett);

// Outputs: true
console.log(callMeJango === jangoFett);

한편, jangoFettbobaFett는 같은 속성들과 함께 두개애의 객체는 참조한다. 그러나 그들은 각기 다른 인스턴스이다. 한편 jangoFettcallMeJango는 둘다같은 인스턴스를 참조한다.

이 때문에, 흥미로운 비교 종류에 대한 새로운 아이디어가 필요하다. 당신은 두개가 같은 인스턴스에 존재하는지 체크를 원하나요? 그때는 JavaScript의 내부 비고문 연산자를 사용할 수 있습니다. 또한 당신이 두개의 객체 같은 값인지를 체크를 원하나요? 만약 그렇다면 그때는 더 많은 일이 필요할 것입니다.

여기는 “값이 같은” 객체의 체크를 가장 기본적으로 접근합니다.

function isEquivalent(a, b) {
    // Create arrays of property names
    var aProps = Object.getOwnPropertyNames(a);
    var bProps = Object.getOwnPropertyNames(b);

    // If number of properties is different,
    // objects are not equivalent
    if (aProps.length != bProps.length) {
        return false;
    }

    for (var i = 0; i < aProps.length; i++) {
        var propName = aProps[i];

        // If values of same property are not equal,
        // objects are not equivalent
        if (a[propName] !== b[propName]) {
            return false;
        }
    }

    // If we made it this far, objects
    // are considered equivalent
    return true;
}

// Outputs: true
console.log(isEquivalent(bobaFett, jangoFett));

본다면, 같은 값은 객체의 “값이 같음”을 객체의 모든 속성을 반복하며 그것들을 비교합니다. 그리고 단순히 실행을 위한 일은 우리의 예제를 위한 일입니다. 거기에는 많은 경우가 조절할 수 없습니다. 예를 들어

  • 속성값중에 객체 자신이라면
  • 속성값이 NaN이라면
  • a 속성은 undefined이고 b는 속성이 없을때

robust는 체크 객체들의 메소드는 “값 같음” 그것은 여러가지 엣지 케이스를 테스트한 라이브러리에서 답변이 온다. 두개 Underscore와 Lo-Dash는 _.isEqual의 이름으로 실행 합니다. 깊은 객체의 비교는 잘 된거 당신은 아래와 같은 소스 코들를 사용할 수 있다.

// Outputs: true
console.log(_.isEqual(bobaFett, jangoFett));

나는 Javascript의 drip을 희망하고 객체를 어떻게 비교하는지 알아 보았다.

LOM Materials

Moisture resistant High performance LOM Paper

Item: MRP5014

Description: 14” wide x 2400 linear feet x 0.0045” thick moisture resistant high performance paper.

Item: MHP8528

Description: 28” wide x 2400 linear feet x 0.0085” thick standard high performance paper. (Similar to LPH080 paper with moisture resistance).

10 images

As the objects style is quite basic i simple made a line drawing of it and repeated it 10 times. From looking at the object its happy face and colours stand out. I decided to change the facial expression on the obejct each time to see if the mood of the object changed. I havnt yet coloured my images as i was stuck on how to! but i have been looking up how colours effect moods so thinking of adding that to it…

Well, it’s been a bit slow dev recently. I’ve actually been doing a lot of work, just not progressing much hahaha. I spent over a day trying to implement pathfinding… I thought I had it working, but I didn’t.

When the two obejcts (to find a path from one to the other) are too far apart, the method gets overwhelmed and slows the game insanely. Sometimes to a halt. I don’t really understand why exactly, though.

I thought maybe using a List was the problem, but the dungeon generation uses lists and should be just as intensive, and it executes pretty much immediately.

I still can’t really figure out the problem T_T So it will continue to be slow-moving for now while I review my code and study pathfinding some more.

Blog Post #3 9/17/2014

I really enjoyed the sculpting part of class. It was interesting to see different people’s take on the American family. I also enjoyed the different sculptures of success. There were a lot of different interpretations of what success is. I especially liked the sculpture where the girl was on top of the block smiling while her friends hugged her. To me, that is what true success is. To me, the goal of life is to be completely happy and to share that happiness with the ones you love. I also thought the obejct exercise was interesting. I could have called any of the objects anything I wanted, but, for some reason, I struggled with it. I kept trying to come up with words that would somehow relate to the object I was looking at. We have all of these preconceived ideas about what things are, and it can be hard to step outside of the box and look at things with a new perspective.

The object exercise reminds me of the reading assignments, specifically the Flexibility and Originality part of Everyday Creativity. In the book, the author says, “flexibility is the ability to abandon old ways of thinking and to initiate thinking in different directions… [It] is especially important when logical approaches fail to produce satisfactory results” (Goff 27). In the exercise, we had to abandon what we already knew about the objects and come up with a completely new word for each object. The point was not to be logical, but to be original. I liked what the author said about originality in the book as well. Goff says, “The original thinker must be able to withstand the ridicule and skepticism that will be directed toward her/his ideas and herself/himself” (31). When shouting out words for the objects, I was nervous of what people would think. Then I realized that it doesn’t matter. Everyone has their own way of thinking, so not everyone will understand my ideas.

Below is a picture I took during The Arctic Monkeys’ performance at Lollapalooza (a music festival in Chicago). The Arctic Monkeys are my all-time favorite band. The sound wave that you see in the picture is the cover art for their newest album “AM.” After Lollapalooza, I was inspired to get that same sound wave tattooed on my wrist. To me, it represents my love for music. Music is an essential part of my life. Without it, I wouldn’t feel complete. Music is something that can completely change my mood. It helps me concentrate, puts me at ease, or even pumps me up at the gym when I need it. It’s really what keeps me sane.

image

4

After finish all the things which preparing for take photos, I have to say thanks to those who help me and contribuation. Especially Zara, Feng, ,and my photographic director who is also my flamate. When I trying to put my magnet float within the acrilic roll, but it not work as the way I want it to . When I told Zara, they come school help me figure out a new way. My flamate Lucas, he like photography usually, so we discuss how to shot this obejct well . Because my computer is Dell, his one is Apple Mac, so after I back home to do work of arduino, I have to use his laptop.   

Resized obejcts #Simkea

If objects appear to be larger in the screenshots or on the gallery than within your game, they may need to be resized again, as they don’t seem to retain size when uploaded/downloaded. (ie. Posters, wall decor, plants, clutter)

Text
Photo
Quote
Link
Chat
Audio
Video