Thứ Hai, 20 tháng 8, 2018

Youtube daily Aug 20 2018

NATALIE: Hello

My name is Natalie

and I'm one of the engineers that works on Google Web Designer.

And in this video we're going to take a look at the CSS panel

and how it works and what you can do with it.

So when you edit an element's appearance

or position and layout in Google Web Designer

those changes end up as CSS

which the tool automatically generates for you.

So for example when I draw a simple div

if we go to Code view we can see the element here in the HTML

and the CSS style rule that was automatically

applied to it via the CSS class name.

And then if in Design view we for example give it a background color

then we can see that in Code view

this color change was set as the background-color CSS property

on this element's class.

So as you make changes and edit your elements

Google web designer will automatically

make a lot of decisions for you under the hood

regarding what CSS to create and where to put it

and this can be really powerful

but sometimes you want a little bit more control than that.

Of course you can always go into Code view

but as your file gets larger

hunting for the right rules can be pretty difficult.

So this is where the CSS panel comes in

The CSS panel is a CSS inspector and editor tool

and if you've ever used a tool

like Google Chrome's Developer tools the Styles panel

this is very similar same idea.

And any given point the CSS panel is showing you

all the style rules that apply to the element

in an order of precedence maximum to lowest precedence.

The one at the top is special.

This actually refers to the inline style declaration

so the style attributes on the element.

And the rest are just style rules.

And so whether you want to edit these style rules directly

or whether you want to have more fine-grained control

over the hierarchy of your CSS rules

the CSS panel can be very helpful.

So let me delete this element

and let's walk through a use case.

Let's say I'd like to create a button

and what's more

it'll be one of potentially multiple buttons

that I'd like to create in my document

and I'd like them all to be

within the same visual language

so let's say I have some style guide that I'm following

and it presents a specification for all the buttons

let's say they all have to have rounded corners

and a shadow and so on.

And so I'd like to mirror that

and create a hierarchy of styles

and I can do all of this with the CSS panel

without ever having to go into Code view.

So I have a div drawn here in the shape of a button

and I'd like to create a generic button class which will hold all the

styles that should apply to all the buttons on my page.

So I'm going to click this Add rule button.

Let me call it the baseButton

And let's give it some common button properties.

I might have a box-shadow

say I want it to be translucent black.

And let's say I'd like it to have rounded corners.

and you can see that the CSS panel automatically suggests

standard CSS properties for me

and I can use the up and down keys to swipe through them.

In this case I want border-radius.

I can hit tab to accept and then let's say 20 pixels.

The cursor should always be a pointer.

and let's give it some kind of background color

just so we have something to look at

so just a generic gray button.

So now let me define a couple of more specific buttons

let's say I'd like to have an OK button

and a delete button and they should inherit this baseButton style

but also have more specific styles on top of it.

So I'm going to select both of these new divs.

Click the Add rule button again.

and this time I would like to rather than creating a new style

I want to apply our existing baseButton class.

I'm just going to type that selector in

and all the styles for that declaration will get automatically pulled in.

And now I can just style each button one at a time

with just the styles that should apply

to that particular button on top of this base style.

So once again Add rule.

Let's call this one the okButton.

And the only thing that I want to be different about this button

is that I want the background to be green.

And then for the delete button same idea

but the background should be let's say maroon.

Much like in Chrome's developer tools you can debug your CSS

by using these blue check boxes to temporarily turn off

certain properties as though they were never defined.

This can be helpful when you have a complex system

of CSS rules and you want to see

what your element looks like without certain

style in play so if I uncheck this background green

we can see this element as though only the base style

and the other position properties applied

and if I'd like to take a look at all my buttons

say without the border-radius

I can toggle that on and off.

So to recap we've seen how we can use a CSS panel

not only to directly edit styles

but how to create an extensible system of style classes

all without ever having to go into Code view.

That's it for this tutorial.

Thanks for watching!

For more infomation >> CSS Panel Overview - Google Web Designer - Duration: 5:57.

-------------------------------------------

Google's Sara Hooker explains how AI uses features - Duration: 3:20.

Hi everyone my name is Sarah Hooker and I'm an engineer and researcher at Google.

And today I'm going to tell you about three words that maybe you haven't heard

of before and that is feature model and response so these are actually the core

ingredients for what I do everyday which is research in AI.

So I grew up in Africa, in fact I grew up in this country here, Mozambique, which is by the Indian Ocean.

Mozambique has a very warm climate and it's actually the perfect climate for mosquitos.

Mosquito is Spanish for flying but this isn't any type of fly

this is a fly that sucks human blood and so mosquito will come up to you land on

your skin and it will not only take your blood, but it may infect you with malaria.

Malaria looks like a few things. You feel dizzy, you have chills, you may have

a high fever and you also have nausea. So as a kid, I actually have malaria three

times mainly because I wasn't a good about taking my malaria medicine and

each time I had malaria my parents would take me to the doctor and so every

single time I would see a doctor and the question would be do I have malaria

One question I had was how does a doctor know what the answers to the question

means for whether I have malaria or not and I learned over time that the doctor

doesn't know at first. The doctor learns over time from their own experience and

so when a doctor starts out after medical school, maybe they've never seen

a patient with malaria before. So then are they good at deciding what questions to ask survive a diagnosis?

But as they see more and more patients over time,

People like me, they get better and better at figuring out what questions lead them to

the correct diagnosis and that's why a model is exactly like a doctor!

because a model also learns from experience—from looking at patterns and data.

This is what's really cool is that we have at the beginning introduced

three terms the feature the model and the response. The feature in this case is

attributes of the patient someone like me so it might be my temperature but

it's also the temperature of other patients and the model learns to

associate certain temperatures with a certain response just like a doctor

learns from seeing many different patients over time, what is malaria and what is not.

The amazing thing about this and what I think is incredibly cool

is that a doctor is limited by the time that they have in the day.

They can only see so many patients because they have to go home and sleep.

But a model can take data from all over the world and all different types of cases and learn

to often be more accurate than a human at diagnosing malaria and this is what I

think AI has real potential and is really exciting to help doctors solve

cases like healthcare diagnoses in parts of the world that I grew up in.

For more infomation >> Google's Sara Hooker explains how AI uses features - Duration: 3:20.

-------------------------------------------

Jeff Dean Explains how OK Google Learns from Examples - Duration: 2:01.

Hi! My name is Jeff Dean and I do artificial intelligence research here at Google. Today I'm going to tell

you about some of the things that happen under the covers when you use Google

services and talk to your phone.

OK Google, show me pictures of cheetahs.

[OK Google] These pictures should match.

So there we go, now I actually have a bunch of pictures of cheetahs.

So how did the computer do that? We were talking about the

Eiffel Tower and understanding web pages and that's more about words but here

we're actually showing you images of something you asked for.

You asked about cheetahs so let's talk about what happens here we're using a technique

called machine learning and machine learning enables computers to

learn from examples we actually use that in many many places in Google products

so the speech recognition system that I talked about first where I was saying

what is 2+2 where we were learning the from the recording to go from that to

what is 2+2 that's one kind of machine learning model for here we actually want

to go from images to what kinds of things are in those images and here we

use a different machine learning model that's trained on data where we have a

bunch of images and people have said that's a picture of a cheetah.

There's another picture. That's a picture of an aircraft. There's another picture.

That's a picture of car. There's another picture of a cheetah.

And so for millions and millions of examples of many many different kinds of pictures we can

actually learn what are these pictures of even for a completely new picture

this picture looks a lot like all the cheetah examples I've seen so I think

it's the cheetah and so that's the concept of machine learning learning

from many many examples which you often do in your own education

For more infomation >> Jeff Dean Explains how OK Google Learns from Examples - Duration: 2:01.

-------------------------------------------

JEMBATAN DI MOSCOW RUSIA//RUSUH KETEMU ASEN MENGER DI MOSCOW //MAKAN MAKANAN KHAS RUSIA// IVAN JATUH - Duration: 29:34.

For more infomation >> JEMBATAN DI MOSCOW RUSIA//RUSUH KETEMU ASEN MENGER DI MOSCOW //MAKAN MAKANAN KHAS RUSIA// IVAN JATUH - Duration: 29:34.

-------------------------------------------

South Carolina Woman Killed By 8-Foot Alligator | NBC Nightly News - Duration: 1:36.

For more infomation >> South Carolina Woman Killed By 8-Foot Alligator | NBC Nightly News - Duration: 1:36.

-------------------------------------------

La Desconfianza Nos Separa 😎💵💃 | Caso Cerrado | Telemundo - Duration: 13:18.

For more infomation >> La Desconfianza Nos Separa 😎💵💃 | Caso Cerrado | Telemundo - Duration: 13:18.

-------------------------------------------

Manhunt In Nashville For 'Cold-Blooded' Murderers | NBC Nightly News - Duration: 1:53.

For more infomation >> Manhunt In Nashville For 'Cold-Blooded' Murderers | NBC Nightly News - Duration: 1:53.

-------------------------------------------

Nuevos detalles del triple homicidio de madre e hijas | Al Rojo Vivo | Telemundo - Duration: 0:58.

For more infomation >> Nuevos detalles del triple homicidio de madre e hijas | Al Rojo Vivo | Telemundo - Duration: 0:58.

-------------------------------------------

Decenas de heridos en concierto de los Backstreet Boys | Al Rojo Vivo | Telemundo - Duration: 0:43.

For more infomation >> Decenas de heridos en concierto de los Backstreet Boys | Al Rojo Vivo | Telemundo - Duration: 0:43.

-------------------------------------------

War of words over BARC's policy - Duration: 2:52.

For more infomation >> War of words over BARC's policy - Duration: 2:52.

-------------------------------------------

Pope Francis Admits Catholic Church Leaders Failed To Address Priest Sex Abuse | NBC Nightly News - Duration: 2:31.

For more infomation >> Pope Francis Admits Catholic Church Leaders Failed To Address Priest Sex Abuse | NBC Nightly News - Duration: 2:31.

-------------------------------------------

Famosos Al Rojo Vivo: Resumen de farándula de hoy | Al Rojo Vivo | Telemundo - Duration: 6:52.

For more infomation >> Famosos Al Rojo Vivo: Resumen de farándula de hoy | Al Rojo Vivo | Telemundo - Duration: 6:52.

-------------------------------------------

Underbeat | Florianópolis - Patamar Hostel (SC) [VR 360º] - Duration: 3:51.

Underbeat

Patamar Hostel

Florianópolis (SC)

Không có nhận xét nào:

Đăng nhận xét