>> [MUSCIC PLAYING]
>> DAVID MALAN: Hello world, this is CS50LIVE.
So you may recall from week zero that desk lamps have somehow
become a thing this year in CS50.
And this is actually just the result of my fairly
spontaneously, before that first class, having gotten into the car,
driven to a local store called Target to pick up really any lamps I could find.
Because what I wanted to do was have some light bulbs
with which to represent zeros and ones.
Whereby if the light bulb was on, it would represent a one in lecture.
And if the light bulb was off it would represent a zero.
Now the funny thing is, at the end of that lecture,
I didn't really need the desk lamps anymore.
So I asked students to volunteer if they might like to take them home.
You've never seen so much interesting in anything
in CS50, let alone in desk lamps, so they very quickly were given away.
So we completely ran out of stock, despite some requests
ever since then for more.
So I decided to get back into the car the other day
and drive again to that store, Target, to pick up some more.
>> We're here on our way to Target to pick up this week batch of desk lamps.
I like to work on the end so no one scratches my car.
>> [MUSIC PLAYING]
>> This was CS50.
I'm happy to say that desk lamps are now back in stock.
But I did want to share a particular tweet with you that caught our eye back
when we first gave out some of those desk lamps in week zero.
This is posted by one of your classmates, Andrew Hill, who wrote,
"davidjmalan, where's my lamp?" "
Now the funny thing is this tweet caught the eye
of a colleague of mine, Shelley Westover, who
you may recall from such films as this.
In any case, Shelley replied to Andrew's tweet as follows, "Andrew!
Are you taking CS50 this Fall?
Interested in doing some part-time editing for the course?"
Shelley, of course, is CS50's full time team behind the camera.
She had actually been a teaching assistant for a course
that Andrew at the time had previously taken at Harvard Extension School.
Now the funny thing is, we decided to humor Andrew with this request
and we dropped one of those desk lamps in the mail.
And to be honest, you know what would be better?
Andrew, would you mind?
Could you join me here on the internet?
Andrew, would you like to say, hello world?
ANDREW HILL: Yes, David.
Hello, world.
>> DAVID J. MALAN: So everyone, here is Andrew Hill.
These are some of the desk lamps we picked up at Target the other day.
And it is no understatement to say that these desk lamps change lives.
And so in fact, now that we do have more of the things,
we thought we'd invite you, the audience, particularly those in CS50X
to participate in a little challenge of sorts.
If you might like to receive the next CS50 desk lamp,
go ahead and visit wheresmylamp.com.
Which, believe or not, we actually bought last night
at Andrew's suggestion.
And we placed there a form that's going to ask you for your name,
your email, and the URL of the video in which you
try to convince us that you should be the next Andrew Hill,
at least for the desk lamp part.
So thank you so much Andrew.
>> ANDREW HILL: Thank you, David.
>> DAVID J. MALAN: We are so pleased to have you here with us.
ANDREW HILL: Proud to be.
DAVID J. MALAN: Now in the news today you
may have noticed that Facebook, our old friend, has turned 10 years old.
In fact this screen shot here was posted, no surprise,
to Facebook itself by one of Facebook's founders Eduardo Severin.
Who, if you saw the movie The Social Network,
was played by actor Andrew Garfield.
Now we thought this would be an opportune moment
to point out that Facebook has one of these things called an API.
An application programming interface.
And what an API allows you to do is query service, like Facebook,
get back some data-- often in a format known as JSON or JavaScript Object
Notation-- and then integrate that data into your own application.
Now it turns out, as a side effect of Facebook having an API,
you can actually poke around individual users JSON data
and see what their unique identifier is.
>> Those unique identifiers are assigned to users when they first sign up
and it turns out-- and this is very common when you use databases
for websites-- those integers are assigned in increasing order from one
on up.
So in fact, even in a browser right now, if you go to graph.facebook.com/zuck,
where zuck is Mark Zuckerberg's username.
You'll see this JSON data come back indicating
that this is indeed Mark Zuckerberg.
And his unique ID is apparently 4, not 1.
So the funny thing is it turns out that Mark's unique ID is indeed four
because he actually created a few test accounts before setting up
his own Facebook account.
Now I'll admit the curiosity got the best of me--
and you're welcome to go here too-- if you go to graph.facebook.com/dmalan
you'll see that I, on the other hand, was a bit of a late comer.
At least relatively speaking, early on, and I was user number 6,454.
Try it with your own user name at the end of the URL like that.
>> Now also in the news this week has been this little nugget.
It turns out that password is no longer the most popular password.
In fact it's been overtaken by this gem here,
123456, which is, funny enough, even more secure
than one of our favorite passwords as in this film here.
[VIDEO PLAYBACK]
KING ROLAND: The combination is one.
DARK HELMET: One.
COLONEL SANDURZ: One!
KING ROLAND: Two.
DARK HELMET: Two.
COLONEL SANDURZ: Two.
KING ROLAND: Three.
DARK HELMET: Three.
COLONEL SANDURZ: Three.
KING ROLAND: Four.
DARK HELMET: Four.
COLONEL SANDURZ: Four.
KING ROLAND: Five.
DARK HELMET: Five.
COLONEL SANDURZ: Five.
DARK HELMET: So the combination is one, two, three, four, five?
That's the stupidest combination I ever heard in my life.
That's the kind of thing an idiot would have on his luggage!
>> COLONEL SANDURZ: Thank you, your Highness.
>> [END VIDEO PLAYBACK]
DAVID J. MALAN: Now in third place is the ever so slightly more secure
12345678, which is apparently the result of people taking a little literally
the typical requirement the passwords need to be at least 8 characters long.
And yet, even that password is more secure than what apparently the US
government used for 20 years to protect our nuclear missiles.
Now in fourth place is qwerty, which is the result
of typing the characters along the top of a typical US keyboard.
In fifth place is abc123.
And adorably, in ninth place, is iloveyou.
Aw.
>> Now you may have noticed that the start of CS50's lecture videos
there's often some aerial photography such as that picture
here for Memorial Hall which is the building in which Sanders theater where
CS50's lectures are actually held.
We take these photos and these videos using literally a flying drone.
Such as that picture here.
And we attach to the bottom of this thing
a tiny little camera that actually is even smaller than you might think.
And using a remote control, and believe it or not a pair of goggles,
we're able to fly up, down, left, right, forward, back with the camera
attached and actually film in fairly high resolution
and then prepend those video clips to the start of lectures.
>> Now it's been a beautiful, albeit super cold,
week here in Cambridge, Massachusetts.
It's been snowing and one of the more common requests
that we've gotten over Facebook is to take
some additional tours of Harvard campus.
So we asked CS50's own Milo if he wouldn't mind taking us for a tour.
>> Now we've been keeping an eye, as usual, on Facebook, Reddit and Twitter.
And one of the posts in particular on Facebook caught our eye recently.
That from your classmate, Brenda Anderson,
who's actually been amazing on various discussion forums fielding questions
from her fellow classmates.
Brenda hails from New Zealand.
And what was nice was that she took it upon herself
to put together an amalgam of the problem set one and problem set four.
Taking the idea for Mario, mashing it together with the ideas of Break Out,
and ultimately produced using Stanford's portable library, her own version,
her own graphical version, of Mario.
Let's take a look.
[VIDEO PLAYBACK]
BRENDA ANDERSON: So I recreated Mario using the pset4 SPL library.
To use the number of steps, press the Build button, press Go,
and Mario jumps to the top.
>> [END VIDEO PLAYBACK]
>> DAVID MALAN: Now another post that caught
our eye was posted here by Susan from LA.
She writes, "Hello.
I'm posting this for my son, who is 12 and too young for his own Facebook
account.
He has been stuck trying to figure out a little code and Mario.
He can't figure out how to make the zero to 23
without writing, or hard coding, zero, one, two, et cetera.
Is this the only way?
By the way has watched videos of classes, watched the walkthroughs,
and read how stuff works and is still stuck.
Thanks, Susan."
>> So what was touching about this post was not only
Susan reaching out on behalf of her son, but just how many of her son's
classmates reached out with some helpful tips.
For instance we'd like to acknowledge, in particular, Paul from the United
Kingdom, picture here, who chimed in with some helpful advice.
Mark, also from the United Kingdom, who simply offered some counsel.
And Chris, pictured here, apparently in his car.
Now Susan, at the end of the day, responded
as follows, "Paul, thank you so much!
It works now and he is smiling.
I am sorry I am no help at all with this,
I really appreciate everyone's time and advice."
Thank you as well from CS50.
>> Now pictured here is Brad Williams, apparently in avatar form.
And Brad actually posted this to Facebook,
something he mocked up in Photoshop as helpful suggestion for something
we might integrate into CS50 live episode.
In particular, he suggested that on the next CS50 someone
should replace the green screen with tie dye.
So as much as we appreciate all the effort we're sure
went into this Photoshop mock-up, this is an academic courses at Harvard.
It's a computer science course, no less, particularly rigorous
at Harvard University.
It simply wouldn't be appropriate for us to mess
with things like the green screen for non-serious purposes.
But thank you, nonetheless, for the suggestion.
And, in fact, I also have to apologize to Kevin
from Missouri, who similarly tweeted this suggestion, "Put
davidjmalan in front of the Matrix code.
He is the One."
So here too, love the movie-- the first one.
The second and third, not so much-- but here
too, not really appropriate for this beautiful studio
here at Harvard University.
But thank you for the suggestion.
>> Now frankly, if we're going to go anywhere with this green screen
is not going to be in the Matrix.
I think it's probably more likely to be on a sunny beach somewhere sipping
frozen drinks.
Now, thank you to all, though, for the suggestion.
>> Now even more popular this year then desk lamps has been Google Glass.
In fact, you've never seen so many students
in CS50 coming up to chat after a lecture,
really to see demonstrations of Google Glass.
But that's been great, particularly since Google Glass allows you--
it turns out-- to develop software for it.
In fact, one of CS50's own Teaching Fellows,
Christopher Bartholomew has his own pair of Google Glass.
And it turns out he himself has done some software development for it.
He kindly agreed to go on a stroll with me recently to tell us
and show us a bit more of Google Glass.
[VIDEO PLAYBACK]
CHRISTOPHER BARTHOLOMEW: Hey, did you want to talk?
DAVID J. MALAN: Hey, yeah.
You want to go for a walk?
CHRISTOPHER BARTHOLOMEW: Yeah, sure.
I want to bring my coat.
You're wearing your glass finally.
>> DAVID J. MALAN: Yeah this is the first time
I've had these on since class ended.
>> CHRISTOPHER BARTHOLOMEW: Are you enjoying them or?
>> DAVID J. MALAN: It's OK.
I haven't found much of a use case personally, yet.
But it did turn out great for CS50's lectures.
We ended up--
>> CHRISTOPHER BARTHOLOMEW: Definitely.
>> DAVID J. MALAN: --putting them on students any time
they came up on stage.
Then we would have some shots.
>> CHRISTOPHER BARTHOLOMEW: I mean I must have counted at least--
probably at least 100 times I've handed out my glass to strangers
in all different cases and showed them how it works.
Look both ways.
>> DAVID J. MALAN: Oh, yeah.
I rarely do that.
CHRISTOPHER BARTHOLOMEW: Go over here.
To show people what you're actually seeing
is a very important aspect of just the technology.
I mean that's what-- to be able to connect with somebody very easily,
no matter where you are.
DAVID J. MALAN: What about the privacy concerns?
Given that the whole time I could of been recording what you're saying.
>> CHRISTOPHER BARTHOLOMEW: Sure, so.
DAVID J. MALAN: Ironically.
CHRISTOPHER BARTHOLOMEW: I get this question a lot, you know.
I don't know.
I think in some sense or another I don't know
why I would be recording people for any other reasoning besides if I
was at a concert or something.
For me, it's just it's an immoral thing to do.
If you want to step on someone's privacy, you can do that.
But otherwise.
I have a great video when I was at the World Series game.
I turned it on and I was like, Big Papi's going to hit a home run here.
And he did.
And you could just see everybody's experience from the actual fan, right?
And that was really fun.
And my hands are up like yeah it happened.
>> DAVID J. MALAN: I will admit it can definitely be used for evil.
But as soon as you have facial recognition built
in to this sort of thing, it would be amazing to be
able to be walking down the street, someone waves hi to you.
You don't really remember where you know them from and boom,
it's Alice or Bob from such and such.
And have those little visual cues would actually be pretty powerful.
>> CHRISTOPHER BARTHOLOMEW: That too.
I mean I think I was called my peanut butter problem.
Where I would want something to decide what peanut butter I would like more.
I'd love to have Glass look at both of them and I go,
find me the best peanut butter here.
And it would go back and based upon my own settings.
My own wants or likes or whether it's healthy or whether the peanuts are--
DAVID J. MALAN: How much thought have you given this use case?
CHRISTOPHER BARTHOLOMEW: A lot.
DAVID J. MALAN: Why is it peanut butter?
CHRISTOPHER BARTHOLOMEW: Just weird situations like that.
DAVID J. MALAN: Yes, a weird situation indeed.
CHRISTOPHER BARTHOLOMEW: I don't want to have
to sit there and Google all these different things.
I just want it to figure out for me, when it sees it, it acts upon my wants
and it delivers.
DAVID J. MALAN: Do you want to do a couple demos?
Maybe weather and--
CHRISTOPHER BARTHOLOMEW: Yeah.
I mean, so.
>> DAVID J. MALAN: Google searches?
>> CHRISTOPHER BARTHOLOMEW: Sure.
So the first thing that you can do here is
if you just swipe back a couple times, you can see weather.
Another one, if you just lean up your head--
There's two ways to activate the OK Glass option.
One of which is just by tapping and then when you see OK Glass,
you can literally say OK Glass and that will give you a list of menu options
that are available to you.
>> DAVID J. MALAN: So do you have people that walk by you occasionally
and be like OK Glass?
CHRISTOPHER BARTHOLOMEW: I'll have friends who-- I'll kind of look up
and they know I'm about to do something--
and they'll just be like OK Glass, google pictures of whatever
and then insert whatever in there.
And then all of a sudden my glass screen gets planted with pictures.
When I was doing the Google Foundry, when we were testing it for first time,
everyone went up to this fruit stand to take pictures of.
And then it was crazy because everybody's things
would start going off because it's not person dependent.
If everybody said OK Glass at once, you could set off other people's.
This chain reaction would occur with that.
But otherwise there's a lot of different--
I mean it really comes down to all the applications that are available.
So as long as people and developers are making more apps,
there will be more things that you can do with Glass
but it's taking some time.
DAVID J. MALAN: Almost there.
CHRISTOPHER BARTHOLOMEW: We need more developers.
Come on, David, you got to churn them out.
DAVID J. MALAN: All right.
So I'm not sure I can stay outside much longer.
Shall we head back?
>> CHRISTOPHER BARTHOLOMEW: Yeah, that's completely fine.
DAVID J. MALAN: It was 15 degrees, you said?
CHRISTOPHER BARTHOLOMEW: Yeah.
>> DAVID J. MALAN: And now 60 seconds of peanut butter.
>> [MUSIC -- BUCKWHEAT BOYZ, "PEANUT BUTTER JELLY TIME"]
[END VIDEO PLAYBACK]
DAVID J. MALAN: 60 seconds of peanut butter.
So we also had occasion to go for a stroll with CS50's own Jason Hirschhorn
into our studio recently.
And Jason, too, we presented with a pair of Google Glass
so that we could take a more technical look
at exactly how the technology works.
Jason Hirschhorn.
>> [VIDEO PLAYBACK]
We're here today with Jason, one of CS50's Teaching Fellows.
Whom you may know from CS50's weekly sections.
Jason, hello.
JASON HIRSCHHORN: David, great to be here.
I love teaching CS50 sections.
I've done it for two years now.
And it's so much fun both to teach students here
and to allow the videos to be shared throughout the world.
DAVID J. MALAN: Well that's great.
And I see you came wearing your Disneyland name tag with Jason on it.
But you are, to my knowledge, the only CS50 Teaching
Fellow who's been fired from Disneyland, no?
JASON HIRSCHHORN: Well to be fired you have to hired.
So I wasn't really tired.
And I worked there for a week on the Indiana Jones Adventure
and then it just didn't work out, unfortunately.
>> DAVID J. MALAN: Really?
>> JASON HIRSCHHORN: But thankfully you still took me back in CS50.
>> DAVID J. MALAN: No, we did.
We were happy to have you back.
In fact, as some of you know who've watch the sections online,
two years ago Jason came to us in CS50 wearing
a pumpkin suit for one of his sections, roughly around Halloween,
if you recall.
In fact, for those of you who haven't seen this,
let me grab our pair of Google Glass here from lectures
and see if we can't dig this up online.
OK glass, google video of Jason dressed as pumpkin.
There it is.
JASON HIRSCHHORN: Oh boy.
So you might be asking yourself what's with the giant pumpkin?
Well of course, tonight is Halloween.
>> DAVID J. MALAN: So the next year you came back and were a little deflated.
Your suit, in fact, had lost a bit of wind.
What happened there?
>> JASON HIRSCHHORN: Well first I don't if I
like that these videos can be pulled out right away,
but-- the second time I had to suit, I forgot
the fan that is necessary to keep it inflated.
So I had to stuff some pillows and other clothes inside.
But I certainly took a lot of flack for that from my students.
From--
>> DAVID J. MALAN: Well in the online, anonymous, feedback form
that you have in your section.
>> JASON HIRSCHHORN: Right.
People are allowed to give me anonymous feedback because it
helps me improve my teaching, but they've also
used it to critique my outfits.
Particularly the deflated costume, so.
>> DAVID J. MALAN: Well, good.
Well as interesting as this is, why don't we
take a chance to actually play with Glass?
Besides the pair here that we've been using in lectures this year,
we also-- in recognition for all of your efforts
this year-- got you your own pair of glass here.
>> JASON HIRSCHHORN: Oh my goodness.
>> DAVID J. MALAN: To wear just for today.
>> JASON HIRSCHHORN: Okay.
DAVID J. MALAN: But for those unfamiliar with how Glass itself works.
So notice here, we have a battery pack which is what powers the whole device.
Over here we have just the on off switch.
In the front of the device, we have effectively the CPU
and all the other brains behind the device.
In the front, we have the front facing camera
and this is what students were using to actually
capture the perspective of them on stage.
>> And then lastly, the piece of glass itself
which works as follows, inside of here is not only the camera
but a data projector of sorts that sends the image of this way.
The prism then reflects it this way into your eye
and so that's why you see the overlay of a rectangular screen
right above your eye.
If you'd like to try that out.
>> JASON HIRSCHHORN: Fantastic.
>> DAVID J. MALAN: So once you put it on, by default,
once you tap it you should see the main menu which
shows the current time and then a secret phrase.
So if you want to go ahead and utter that phrase and then
Google something like whatever comes to mind first.
>> JASON HIRSCHHORN: OK.
Let's try this now.
OK glass.
Google pictures of puppies.
DAVID J. MALAN: And the funny thing is because we're sitting so close,
my Glass heard that too.
There it is.
First thing that came to mind.
So we can do more powerful things too.
So to go back, go ahead and just swipe downward on your temple.
On the bridge of the lenses here.
All right, so you should be back at the main menu.
>> JASON HIRSCHHORN: I am.
>> DAVID J. MALAN: All right and this time I'll do it myself,
but speak loud enough so both of our glasses pick this up.
OK glass record a video.
And I see you.
JASON HIRSCHHORN: Voila I see you too.
DAVID J. MALAN: All right and go ahead and hit the button quick
so we can extend this beyond just 10 seconds.
So what's also neat with glass is, besides all these built
in applications, you actually develop your own applications
using the GDK, glass development kit.
Which is more time than we have today to dive into but certainly check that out.
JASON HIRSCHHORN: I'd love to be interested in it.
I mean, totally interested that.
I love to learn more about that.
>> DAVID J. MALAN: So you'd love to be interested in learning more
about Google Glass.
>> JASON HIRSCHHORN: And I also love that I have a video of you
to remember this moment for.
>> DAVID J. MALAN: No, this is the great footage
that I'm going to hang on to for sure.
Well that's it then with Jason Hirschhorn here and Google Glass.
Thank you so much for joining us.
>> JASON HIRSCHHORN: Thanks, David.
>> DAVID J. MALAN: Great to have you aboard.
Google.
Photos of Jason Hirschhorn dressed as a pumpkin.
JASON HIRSCHHORN: Oh boy.
I don't know if I want people to see that.
>> DAVID J. MALAN: Now it's photos of Jason Hirschhorn dressed as a boy.
OK.
Stand by.
Listening for music.
Photos of Jason Hirschhorn dressed as a pumpkin.
[END VIDEO PLAYBACK]
That's it for CS50LIVE.
Thanks so much to this week's team.
And remember, if you yourself might like a CS50 desk lamp,
let us know in video why.
We can't wait to see the submissions.
This was CS50.
>> [MUSIC PLAYING]