Thứ Tư, 29 tháng 11, 2017

Waching daily Nov 29 2017

Summer days burn me out

Love just brings me down

Cold inside like when she leaves us

Slowly lived the ground

Hey you, come back

I wanna give you a chance

Love me like you used to

So we can learn again

The excuse is getting around, baby

Drink your night away maybe

We will not regret

You will not regret me

Lying down under the sun

Burning love 'cause we are young

No one tells us what's done wrong

'Cause it's just me and you

Yeah, it's just me and you

Yeah, it's just me and you

Hold you on the ground, make your eyes roll out

Kiss me all around baby, do you know the sound

I'm not wasting love

Wasting love

I'm not wasting love

Hold you on the ground, make your eyes roll out

Kiss me all around baby, do you know the sound

I'm not wasting love

Wasting love

I'm not wasting love

It's just me and you

Yeah, it's just me and you

For more infomation >> [House] - Uplink & Alex Skrindo - Me & You (feat. Axol) [NCS Release] - Duration: 3:20.

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

Oddly Satisfying Video You Can't Miss For A Holiday Mood 🎄 - Duration: 10:37.

Oddly Satisfying Video

Oddly Satisfying Video

For more infomation >> Oddly Satisfying Video You Can't Miss For A Holiday Mood 🎄 - Duration: 10:37.

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

{Nightcore} Heathens (MMD) Short.Vers - Duration: 2:00.

All my friends are heathens, take it slow

Wait for them to ask you who you know

Please don't make any sudden moves

You don't know the half of the abuse

All my friends are heathens, take it slow

Wait for them to ask you who you know

Please don't make any sudden moves

You don't know the half of the abuse

Welcome to the room of people

Who have rooms of people that they loved one day

Docked away

Just because we check the guns at the door

Doesn't mean our brains will change from hand grenades

You're lovin' on the psychopath sitting next to you

You're lovin' on the murderer sitting next to you

You'll think, how'd I get here, sitting next to you?

But after all I've said, please don't forget

All my friends are heathens, take it slow

Wait for them to ask you who you know

Please don't make any sudden moves

You don't know the half of the abuse

We don't deal with outsiders very well

They say newcomers have a certain smell

Yeah, I trust issues, not to mention

They say they can smell your intentions

You're lovin' on the freakshow sitting next to you

You'll have some weird people sitting next to you

You'll think "how did I get here, sitting next to you?"

But after all I've said, please don't forget

Watch it

For more infomation >> {Nightcore} Heathens (MMD) Short.Vers - Duration: 2:00.

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

How To Make Chocolate Cake Decorating Compilation - Cake Style - Most Satisfying Cakes Decorating - Duration: 10:12.

How To Make Chocolate Cake Decorating Compilation

For more infomation >> How To Make Chocolate Cake Decorating Compilation - Cake Style - Most Satisfying Cakes Decorating - Duration: 10:12.

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

How to Make Apple Crumble Sundaes | Baked Apples | RECIPES - Duration: 3:19.

For more infomation >> How to Make Apple Crumble Sundaes | Baked Apples | RECIPES - Duration: 3:19.

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

Practical Kotlin #01 - Introduction - Duration: 20:30.

Hello, Hi.

My name is Artur and welcome to my first episode about Kotlin.

Today, I will show you basic parts of this language.

As you may know, Kotlin was created by JetBrains.

This language can be used not only to Android development, but first

we need to know how to use this language to anything.

In this tutorial, I will be using IntelliJ which was created by JetBrains, too, so it works great with Kotlin.

Ok, let's create a project. After opening IntelliJ, you can choose "Create New project".

You can notice Kotlin to the left and click it and there is Kotlin and JVM.

As you can see, Kotlin can compile either to JS code, not only to Java bytecode.

I will not discuss it there but I encourage you to check it.

You can click next and project name...

it doesn't matter but I will type "Kotlin-01" and SDK Java 1.9, Kotlin Java Runtime...

Everything is ok, so let's click finish.

Oops, not this window, sorry...

Project was generated by IntelliJ.

For now, there is a simple structure. We have there simple Kotlin folder, root folder and above is source folder.

By typing "Alt + Insert" in IntelliJ, we can generate package, just like in Java.

Let's say that package will be pl.simplecoding.kotlin.basics

Ok, simple package was generated.

By typing "Alt + Insert", we can create another file. It would be "val-var".

"Val" will be from values and "var" will be from variables.

There are variables and values in Kotlin but I will say something about it soon.

File in Kotlin has an extension "kt". Ok, in IntelliJ we can type "main".

By clicking "tab", main function will be generated.

What do we have here?

There is main function which is preceded by "fun" keyword and in Kotlin we have to type it.

To this main function args are passed which are array of strings, like in Java.

But there arrays is a generic class which receives, in this case, strings.

Also, you can see that there is no class.

You can just type function and it's okay in Kotlin. You don't have to use classes.

We'll print "Hello, Kotlin".

As you can see there is print function, which is something like "System.out.print" in Java.

Behind the scenes, this function is called but in this case we can just type in this way.

Also, semicolon is not needed in Kotlin. We don't have to use it.

By clicking "K" icon in IntelliJ we can just run this program.

Okay, let's see.

As you can see, there is simple "Hello, Kotlin" in our console displayed.

Ok, let's, declare first variable. To do it, we need to type "var" or "val" at first.

"Var" means variable and it can be changed. Let's type "var mutable = 1".

I don't define type explicitly. if Kotlin is able to recognize what is there, you don't have to type it.

It's optional.

Ok, this variable can be easily changed, so let's type "mutable = 2".

Ok, what if you want to type let's "mutable = "hello"".

It's string. Program will not compile. Kotlin will know that it's not allowed here.

Okay but what about null?

You may think "it shouldn't be a problem". Fortunately, as you can see "mutable = null" will not compile.

Why? Kotlin is null-safety. What does it mean?

It means that if you don't declare explicitly that this variable is nullable, assigning null to it won't be possible. Just like there.

Ok, but how to declare variable as nullable?

it's easy but first I will print everything out to show that it's okay.

Ok, and run it. Let's see.

There is "Hello, Kotlin", 1 and 2, great.

Okay let's create a nullable variable for now.

There will be "var nullable". Variable type can be declared after colon sign.

Let's create "Any?".

It means that this variable is of type "Any", which is something like "Object" in Java.

As you can see right there, root class, super class.

Question mark means that it might be in null, that's all.

Also, if type is declared explicitly, you don't have to initialize variable at first. You can do it later.

Let's declare "nullable = 1.0".

Ok, it's "Any", so string should be okay there but we print it either.

Ok, so let's type "nullable = "nullable""

It's okay for now, there is no problem.

Let's print it out too and another one, let's say "nullable = null".

Wow, there is no problem either. Let's see what print will return to us.

Let's run program again.

You can see there is everything okay 1, 2, 1.0, "nullable" string and null.

As you can see, everything has been printed, null either.

I think that you understand now how variables works in Kotlin.

Let's go to the values.

As I said earlier, value cannot be changed.

It's like "final" declaration in Java.

Let's type "val immutable = 3"

I will print it again.

Ok let's try to change it, let's type "immutable = 5".

We cannot do it. Val cannot be reassigned.

Ok, what about value initialization?

It's like with variables.

If you define type explicity, you can do it later. Otherwise you would do it at first.

It will work but IntelliJ prefer to joined assignment as, let's say, "nullable = 5.0" above.

One more print to see what is with that "immutable".

Ok, 3 has been printed, great.

That's all for now about values and variables.

Let's talk about classes in Kotlin for a moment.

You don't need them but, of course, they exist and you will create a new class there.

Let's create class "PhoneContact".

It will store simple information about contact in our book.

Class can be declared by typing "class" keyword and after that class name.

We want to create something like simple Java POJO.

You would probably create or generate setters, getters, constructors, toString, equals, blah, blah, blah, lots of boilerplate.

In Kotlin, you just need to preceed class by "data" keyword. That's all.

Let's do it. Type "data".

See?

Condition is that we need to declare at least one class' field. How to do it?

Parameter must be preceded by "val" or "var" keyword in constructor.

You know what it means now. We need first name, which will be string and will be a value.

We cannot change it. Another parameter will be last name. Like first name, string and cannot be changed.

Also, we need phone number.

Let's say just number and it will be string.

It is not nullable but it can be changed.

Almost like a NUMBER. Difference is that country can be null.

Let's type question mark at the end. Ok, that's all.

Class doesn't even have a body.

Beautiful, isn't it?

Curly braces are redundant, you don't need them.

Class as that is great.

Ok, let's use this class.

Let's create another file in program.

Kotlin file, let's say it will be "phoneprogram.kt".

As usual, we need declare main function, as earlier.

Let's create first value and it will be "firstContact".

Object will be created almost like in Java.

Difference is that there is no "new" keyword, so we will not type it.

Constructor may be used as the same as in Java.

We will pass values in the same order, so first name will be "Artur".

Last name "Simplecoding" for example.

Some random number "123123"

Country - "Poland", of course.

Let's create more contacts, ok?

So, another contact will be contact without country.

Let's type "contactWithoutCountry" and of course we need to use constructor.

"PhoneContact" and first name will be "Anna", last name "Bella", ok?

And another random number, but now country can be null.

Unfortunately, it doesn't look well, isn't it?

We shouldn't do it in this way, but

In Kotlin, there's something like default values in constructors.

You can just type something like "= null". It means that if we won't

pass a parameter for country, default value will be null.

Now, we can use two different constructor. See?

One with country and another one without country.

There, country is set as a null and we didn't do that explicitly.

Remember that "val" and "var" for object means that reference can or cannot be changed.

But object fields variable can be changed.

For example, first name is a value so another first name assignment will not work.

"Val cannot be reassigned"

But, we have two fields where we're using variable, for example number.

We can easily change it by typing "number = "111111""

It works like setter in Java. Simple assignment.

Another cool thing about classes is that we can pass values in different order.

Let's create another contact in different order.

To do it, you need to just type a field name, country let's say at first,

equal sign and value, for example "Poland".

Another field, let's say, first name.

Will be "Michael" and last name "Scofield".

Have you watched "Prison Break"? I think you have.

Last, number, because I didn't pass it so let's type another random number.

This constructor is valid.

You can do it every time when you have these fields in constructor.

That's all about classes themselves for now.

I will show you some interesting things in Kotlin collections.

But first, let's create another contact which we'll be using in those collections.

Let's say it will be contact from Congo for example.

"val contactFromCongo = PhoneContact("

We will pass random first name, last name.

Number will be random either. Country is important I will show you later why.

Let's type "Congo".

We have created 4 contacts above.

They can be stored in an array or in a list.

In Java, you would use some static method or just create new list and type "add", "add", "add".

Boring... in Kotlin, we can use "listOf()" function

where arguments are list's contacts.

For other collections like maps or arrays, similar functions exist

Let's add all contacts to this list.

It will be first contact, contact without country.

Contact in diff order and contact from Congo.

The important thing is that those collections are immutable.

Contacts cannot be changed.

If you want list to be mutable, you just need to call almost the same function but with "mutable" prefix.

It's almost the same but syntax is similar.

There is another type - mutable list with phone contacts.

In this case, we will stay with immutable version.

It's perfectly okay for now.

As you may know, functional programming is very popular these days.

In Java, stream API is available since version 8.

Kotlin, although can compile to Java 6 bytecode, allows us to use syntax typical for functional programming.

You can create lambdas, pass functions as arguments or even store functions in variables.

But maybe step-by-step.

Let's start with printing first name and last name for each contact where each contact will be string.

First name, space, last name.

For example: "Artur Simplecoding".

We'll use "map" function for that.

Let's type "contacts" and we'll map each contact.

Curly braces notation means that we are passing lambda there.

I hope that you've heard about it.

We will refer to object by "contact" variable.

After arrow, we will type how mapped contact will looks.

It will be string, which will be printed later.

In Java, you would concatenate 2 fields.

We'll type "contact.firstName" + " " + "contact.lastName"

In Kotlin, you can use interpolation.

We can refer to fields or even call functions in string.

There, we will pass first name, space, last name.

It's ok. It will be almost the same.

If you want to refer to a variable you don't have to type these curly braces.

$contact is ok.

Great, this will be our simple user in this string.

For now, we want to display mapped contacts.

We will use "forEach" function to do that.

I think that you know what it does.

It will calls passed lambda for each mapped contact.

We will refer to mapped contact by "mappedContact".

After arrow sign, I will just print it.

Print this map contact so it is "println(mappedContact").

Ok, I think that is readable and easy to understand, so let's run this program.

Each contact has been displayed as we want it.

But what if we want to display contacts only from Poland?

I am not a racist but you know...international calls are not cheap.

In this case, we can filter these contacts by "filter" function.

It will receive lambda either and it will return only those objects for which passed function will return true.

Let's say that we want to each contact where country is Poland, so we will type "Poland" and "equals", but there is a difference.

I didn't use variable name because you can refer to variable by "it" word if it's only variable in this lambda.

There would be our contact. As you can see, there was each field.

We can set "ignoreCase" as a "true", because "Poland" lower case upper case it doesn't matter for us, so this notation is ok.

We will print each contact but we will do almost as above, in map function but we will use "it" word.

It will be "it.firstName" and "it.lastName".

Let's show where our filtered will start so let's type "println("Filtered contacts")"

Let's run program again.

See? In filtered contact are only "Artur Simplecoding" from Poland and "Michale Scofield" from Poland.

Anna Bella's country was null and ...:) is from Congo, so they weren't displayed.

Ok, last functionality which I want to show you.

You can group contacts, by some key, of course. Other collections too.

Let's say that we want to group contacts by country.

To do that, we need to call "groupBy" function.

Now, in lambda, we can pass a field which should be returned as a key.

We will refer to, of course, country.

We can call some function there, but we will just refer to country without changing anything.

We will assign it to "grouppedContacts" value.

As you can see, there is map where key is the string with question mark, like a country.

And list with PhoneContacts for each key.

Now, we want to, of course, print each group.

Each group has a country as a key and value is a whole list

In this lambda is map, so we will refer separately to key and value by

typing these two things after arrow sign and we will print it.

Let's type this key and interpolate this key by "$key" and after arrow, we will print value.

There will be printed whole list.

See? For key "Poland", we have list with contacts: Artur Simplecoding from country Poland and there is Michael Scofield from Poland.

Another key is "null". As I said earlier, there is no problem, Anna Bella is from "null" country.

And contact from Congo is with key "Congo".

Ok, that's all for now. Thank you for your time!

There will be new videos about Kotlin, so stay tuned, subscribe, and check my blog sometimes (www.simplecoding.pl).

Of course, sources are attached to this video.

Bye!

For more infomation >> Practical Kotlin #01 - Introduction - Duration: 20:30.

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

Preferred Partner- Brian Stephenson - Duration: 1:33.

For more infomation >> Preferred Partner- Brian Stephenson - Duration: 1:33.

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

This Is How You Can Tell A Full Moon Is Coming - Duration: 1:55.

The moon has a lot of looks.

And each one happens for a reason.

It takes the moon about 29 and a half days to orbit around the Earth.

And during this time, the sun illuminates the moon from varying angles which creates

a shadow effect that we see here on Earth.

At the start of each lunar cycle, the moon is between the earth and the sun.

This is called a "New Moon".

The side of the moon visible from Earth is not illuminated and therefore we can't see

it.

As the angle between the Moon and the Sun increases, so does the amount of moon we're

able to see.

After the new moon, it enters the waxing crescent phase where we can see 1 to 49% of the moon.

When it reaches 50% illumination, it becomes a first quarter moon, which is kinda confusing

but we'll roll with it.

Next is the waxing Gibbous phase, which means we can see about half to almost all of the

moon.

And finally… we get to see the big cheese.

We get one glorious night of full moon and then the illumination starts to fade.

After a full moon, we see the waning phase which is the opposite of waxing.

The moon follows the same illumination pattern just flipped with the final phase being the

waning crescent.

Then it starts all over again with the new moon!

The way you see the moon depends on where you are on the globe.

If you're in the Northern Hemisphere, a waxing moon will be illuminated on the right

side while a waning moon will be illuminated on the left.

It's the opposite in the Southern Hemisphere.

So now you know, the next time you see a waxing moon, a full moon is right around corner.

You can catch new episodes of Space Crafts every Wednesday In this episode, we'll explain

what happens when the sun explodes and the potential fallout for Earth.

Thanks for watching and make sure to subscribe!

For more infomation >> This Is How You Can Tell A Full Moon Is Coming - Duration: 1:55.

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

Destroy Target Artifact - 1st Booster Giveaway - +1 Amonket/+1 Hour of Devestation - Day 1 - Duration: 9:14.

thanks for tuning into destory target artifact it's the first video first

giveaway and I know we said we're gonna give away a booster pack for every booster

pack we open but there was a miscalculation so this video we're giving away one of

each of these hour of devastation of amonket these are the two we're giving away and

so because of that miscalculation I have to I have to open this extra pack of

each of these see if we get some invocations but giving that away there's

a there's the next video also so finish watching this one we're giving away one

of each of these two don't know which one's gonna be which and then after that

the third video we got planned there is a larger package that we're giving away

so you just have to watch let's see what we get on this our devastation I'm brand

new to collecting but I saw somebody else wear the gloves and I thought is a

great way in case anything extra good comes up put it right in the sleeve from

wearing gloves so the commons up first I'll try to get through this because

it's going to be a long video

so let's see we've got to come up with a clue to put in the video at least it's

thinking one for every booster pack but Unsommon

so we go to the uncommons bloodwater entity drift of the Eternals sand

strangler Kefnets last word and Al and so this is just a rare nothing

fantastic in there at all see what we get it one of these you know this is

common I love this cartouche artwork or looking all the cards that are cartouches

Oh

I feel like I should be saying all the names but you know this videos gotta be

quick luxa River shrine time to reflect so I might give away I'm not

gonna say if I see any of the foil ones or any of the invocations by I

accidentally slip and show some of the cards Scaled behemoth grim Strider

honored Hydra so no mythic I have only started collecting and I got one mythic

I got out of maybe 15 booster packs so let's just say that clue one clue two

are gonna be what was the fourth card to the first pack and the seventh card of

the second pack you have to include that in the comments or message below blue of blades

unquenchable thirst dutiful servants Rhonas stalwart grisly survivor

survivors encampment

Wall of forgotten pharaohs defiant khenra

scrounger of souls

djerus renunciation it's instant this is cool

I'll see what is this so this one barely has a rare in it again scavenger grounds

looking for those invocation thanks for sitting around and watching looking for

clues because we are giving away these two packs right here this last one had a

cool card I haven't really seen any other maybe on a couple of videos I've

seen but nothing too noteworthy this is the last one so you know the first two

Clues like the same again third clue is

just write what your favorite card in your deck is the one to pick you play

with or your most coveted card in your collection brute strength cartouche of

solidarity and for the fourth clue another cartouche of knowledge right

next to a cartouche of solidarity I like the artwork on these so tell me what

your favorite artwork on a card is there's a really broad this is this is

really the first video that we're giving anything away it's gonna be two those 2

right there's the same exact ones are getting shipped to somebody that

includes all four of the clues see what we get this one's in amonket

Weaver of currents so that's cool I know that there's no I don't know but

I think there's foil versions of everything I think this is pretty good

this is the first planeswalker I even picked out of a pack and it seems pretty

good so that's a second what is it mythic rare card I've got the

other ones axis of solidarity so

excuse me axis of mortality yeah that's gonna be the fifth thing you need

to include in there is axis immortality the message or comment this

is this is pretty good so

all right it's gonna be up for ten days before I pick the winner and send out

these two simple little packs here hopefully you'll enjoy you'll watch the next

videos cuz we still got more to give away not just these booster packs you're

gonna have to watch you're gonna have to see so you can get some good stuff

thanks for tuning in

For more infomation >> Destroy Target Artifact - 1st Booster Giveaway - +1 Amonket/+1 Hour of Devestation - Day 1 - Duration: 9:14.

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

Cloud Infrastructure Security: What You Need To Know - Duration: 2:25.

♪ [music] ♪

My name is Ankur Shah. I'm a VP of Product at Redlock.

We are a partner of Veristor. And today I'm pleased to talk about Cloud

infrastructure security and Cloud migration. So as we know Cloud provides a

lot of agility and flexibility that allows businesses to move at light speed in

meeting customer demands. With Cloud also there's a risk associated,

and really the risk are twofold. One is the development teams are moving

applications to the Cloud really rapidly and the security teams are

on the sidelines. They do not have the visibility and the control into what's

happening in the Cloud environment. The second challenge with the Cloud is

that Cloud itself increases your attack factor. Malicious users now have a

bigger surface area to hack into your application and get data out of it.

In the Cloud environment, a few things that we recommend, security

practitioners do, one is that they got to have continuous configuration and

compliance monitoring in their environment. They want to ensure that

workloads are configured appropriately, so that malicious user cannot get at

the sensitive data. The second thing that they want to ensure is that they have some

sort of a user behavior analytics in place in order to find account compromises,

insider threat, any compromises to access keys as well.

Number three, they need to have tools in place to do network intrusion detection to

demo not just what could go wrong, but what is really happening

in their environment. And last but not the least,

they have to have visibility at the host level itself to really roundup all aspects

of security in the Cloud environment. Not only that, they also need a partner to

help operationalize this kind of tool in a large complex organization.

Partners such as Veristor, who can help with the Cloud migration and also

operationalizing this kind of security tools in customer environment.

♪ [music] ♪

For more infomation >> Cloud Infrastructure Security: What You Need To Know - Duration: 2:25.

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

Prone Hip Internal & External Rotation - Duration: 1:25.

Hey it's Nick Ortego here. I'm going to show you how to do an exercise

for your hips, a hip mobility exercise. It warms up the hips. It gets blood flowing

into the muscles around that area. It gets synovial fluid flowing into the

joints to help to lubricate the joints. Basically going to be on your stomach,

prone position, and then bend both knees and then cross your legs over so the

lower legs are crossing over. We're doing the internal and external rotation at

the hips here. It looks like that. From back just like this.

I'll cross one in front of the other and then switch sides so I'm always

switching sides because the movement is slightly different. It's slightly

different when the leg goes in front and behind. Do that for a few minutes.

Give that a try just to warm up your hips, get your hips more mobile. Got

any benefit from that? Then give me a comment below. If you'd like to get more

content that's not available on the blog or the regular YouTube channel, then

click the link that's connected to this video, you'll have a chance to sign up for

the Run Better Now VIP club. Thank you.

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

Đăng nhận xét