Thứ Năm, 7 tháng 2, 2019

Auto news on Youtube Feb 7 2019

So far our UI is generated on the fly, with five items and fixed layout.

Let's introduce the data model to drive the UI.

Create a new Dart file called ThreadSummary.

Our data model will be a class ThreadSummary, which contains a list of strings as senders,

one subject, and one snippet.

We also have a list of strings representing the attachments.

Finally the URL of the avatar for the last sender.

Give it a constructor.

Go back to the main file.

Let's introduce a new variable in the State to hold all the threads.

Import the threadsummary.

Now we can specify the item count as threads length.

In the item builder, we can replace all the hard-coded strings

with fields in the ThreadSummary object.

First of all, we should get the thread summary from the thread summaries list.

Now we have the thread object.

We can use it to populate all the fields.

Extract the code to build the attachment button into a new method so we can reuse it.

"build attachment button" Let's pass in the attachment name.

And display it in the Text widget.

Remove the whole list and generate the attachment buttons from the data model.

Run the application.

We got no error, but still we need to add some fake data to display something.

Because we specified the avatar URL,

let's change the CircleAvatar to use that URL as well

Let's give it a try.

OK! We have our UI driven by our data model.

For more infomation >> Flutter for the Impatient - 11 - Build Gmail with Flutter (2) Data Model Driven UI - Duration: 3:57.

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

Building a tiny house on wheels - out of recycled material / Arrival of The trailer 001 - Duration: 5:47.

So, life is interesting!

I just received a message from Mika, his the owner of this property.

Hope you can hear something,

cause I have this microphone that

has been in the washing machine at least four times...

So I received this message from Mika, that the trailer is on the way

and I came here fast to shovel the snow,

but there was a tractor already before me.

I hope everything goes well,

now we just wait...

... That's it, oh my God!

Oh my God, they are going to a wrong place!

Oh my!

Perfect timing,

they came!

Oh my...

Oh my...

Hello!

There it is!

Oops!

This is quite long, this thing you have here.

"Well, it has to be long, when the trailer is so long"

"Is it coming there?"

Yeah. You can drive straight,

and then turn around, and then you drive backwards there.

"I'll take my hat, and go and have a look."

Okay.

Exciting!

Oh, amazing!

Hehe, I cannot even park my

own little car backwards.

I can't imagine what it's like to drive such a big trailer.

Now it is easy to estimate,

that when the house is onboard,

that how can we get it out of here, because it gets one meter wider.

"You should probably drive it straight there and then adjust."

At this point it must be said, that the original plan

to have the trailer in our yard was

absurd and ridiculous!

We will try again.

This reminds me of my rabbit going back and forward this morning.

Here it seems to be just fine…

Except this is not the place for the trailer.

The place is there, where Mika is standing.

What are we going to do now?

"Probably plan B."

Plan B? Do we have a plan B?

"Always."

"Then there is no other option,

if it really does not turn,

we leave it there, and make more space

and then take ... (?)"

"Or if you have a shorter tractor?"

"Are the brakes of the trailer working?"

"Yes, yes."

Here it's easy to see, that I don't understand anything about such things,

because I could not know even guess in advance

how this kind of a trailer will turn or not turn.

Again, another try. We will see if it will fit this time.

It's not like it is impossible,

but it kind of is.

They said one last try.

Annoying how close it is.

It would have needed just a bit more space.

"The car must now turn from this way"

Okay.

It does not fit.

Well yep. I'm already indoors, as I got quite cold when standing

1,5 hours in a freezing weather wearing my spring jacket.

So the truck came from here,

and then here,

that went good.

These lovely black drawings are the buildings.

Our aim was to drive backwards the trailer from here to here.

But the thing we did not consider,

that the trailer was pulled by a truck ten meters long.

So it got stuck here, and just didn't bend enough.

At this moment, the trailer is transversely like this.

Here we have a big pile of snow,

and in that snow, there is four cars

that are fully covered.

When I left the scene, situation was

that there were two people,

who didn't want their face on this video

- still, thank you!

So the two men started to shovel the snow, to remove the cars here.

Before I got home, Mika had already send me a sms saying

that he had arranged someone to come with another truck in couple of days

– and when this area becomes empty,

we will re-attach the trailer and move it to its place.

As you might have guessed, in such a project - nothing goes as planned,

but I hope for the best,

and go to rest, so I would get rid of this fever soon.

For more infomation >> Building a tiny house on wheels - out of recycled material / Arrival of The trailer 001 - Duration: 5:47.

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

Trump Threatens To Build A "Human Wall" On The Southern Border - Duration: 3:22.

On Tuesday, long before he gave his State of the Union address, Donald Trump was on

twitter as usual, telling us about the next evolution of the border wall.

Now, if you'll remember, it originally started out, this whole thing was going to be a concrete

wall all the way across the border, ocean to Gulf, and then it was now it's going to

be see-through at some parts, and then it was, no, it's going to be steel slats and

now it's back to being a wall, but now actually it's evolved.

This is going to be according to Donald Trump's latest tweet, a moving wall, you know, it

can go forward, backwards, side to side, whatever needs to do, but I'm not talking about like

an automated thing when you walk into the grocery store and the doors open.

Donald Trump has now suggested that we're going to build a human wall, a wall on the

southern border built out of humans.

Now, I don't mean something like the catacombs where he just takes, you know, people skeletons

and builds a wall.

That would be creepy, but I wouldn't put it past him, but this is what Trump said in a

tweet.

He said, tremendous numbers of people are coming up through Mexico in the hopes of flooding

our southern border.

We have sent additional military.

We will build a human wall if necessary, and human wall is capitalized.

If we had a real wall, this would be a nonevent, so his human wall is going to be made up of

members of the military.

Now, just a couple of days ago, the Pentagon announced they were going to send roughly

3,750 additional US troops down to our southern border bringing the grand total to 4,350 American

troops just sitting along our southern border with nothing better to do and that's going

to be the human wall.

Those are the people who, I guess I don't know, maybe they're all going to line up on

the border, link arms and do a big, giant, horrible racist game of Red Rover, but this

is one of the dumbest things and one of the biggest wastes of our military that I think

I've seen in my entire, so I can't say lifetime because we can't forget about Iraq and Afghanistan,

but at least during the Trump administration, because here's what's happening.

He is using members of the military as political props as he did prior to the midterms.

He's doing it again.

These men and women did not sign up for this.

They wanted to protect the United States, not go sit down there on the border playing

babysitter for caravans that don't even actually exist.

We're having fewer people come through our border these days, and yet Donald Trump insists

that it is still a crisis and he is willing to waste millions of dollars, vital military

personnel just as a show of power, a show of strength, and more importantly, a show

of arrogance that he refuses to give up on his border wall.

Because God forbid he makes Ann Coulter unhappy because let's not forget that that's what

this is about.

He was ready to cave on the border wall and not shut down the government back in December

until Ann Coulter started being mean to him.

So I hope that these 4,000, $350 military members down there on our southern border

understand why they're there.

They're not there because there's a crisis.

They're there because Donald Trump doesn't want to piss off and coulter.

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

Đăng nhận xét