Written by: Sherry Bilsing-Graham & Ellen Plummer
Directed by: David Schwimmer
Transcribed by: Eric Aasen
[Scene: Monica and Chandler's, Monica and Chandler are entering carrying groceries and find Phoebe already there standing in front of a huge object that has been gift wrapped.]
Phoebe: Hey! I got you a present!!
Chandler: Oh my goodness! Where did you hide it?
Phoebe: I got it for your wedding and I ordered it weeks ago, and it finally got here!
Chandler: Pheebs you didnt have to get us anything for our wedding you already sang
Monica: (interrupting) I love it! Its huge!! Lets open it! Open it!! (Monica rips open the paper.)
Phoebe: Its a Ms. Pac-Man machine!!
Monica: Oh my God!
Phoebe: I didnt know where to put it so I just left it here for now.
Monica: Oh well, maybe we can put it in the guest bedroom.
Chandler: Oh, okay.
Monica: All right. (He goes to push it and it doesnt move.)
Chandler: I kinda like it here.
Phoebe: Do you really like it?
Monica: Are you kidding?! I practically spent my entire childhood at the arcade! This is likeOh my, this is like my second favorite game!
Phoebe: Oh really? What was your first?
Monica: Well I-I really dont remember the name of it.
Chandler: Well what did it do?

Chandler: A vending machine?
Monica: Dont feel bad for me! I won like every time!
Opening Credits
[Scene: Central Perk, Joey and Rachel are there as Ross enters.]
Ross: Hey! Oh, Im so glad you guys are here. Ive been dying to tell someone what happened in the Paleontology department today.
Joey: (To Rachel) Do you think he saw us or can we still sneak out?
Ross: Professor Neuman, the head of the department, so .
Rachel: They made you head of the department!
Ross: No, I get to teach one of his advanced classes! (Pause) Why didnt I get head of the department? (Goes and gets some coffee.)
Joey: Oh! Hey Rach, listen umm
Rachel: Yeah.
Joey: I got a big date coming up, do you know a good restaurant?
Rachel: Uh, Pauls Café. They got great food and its really romantic.
Joey: Ooh, great! Thanks!
Rachel: Yeah! Oh, and then afterwards you can take her to the Four Seasons for drinks.  Or dancingOh! Take her dancing!
Joey: You sure are naming a lot of ways to postpone sex, Ill tell ya
Rachel: Ooh, I miss dating. Gettin all dressed up and going to a fancy restaurant. Im not gonna be able to do that for so long, and its so much fun! I mean not that sitting at home worrying about giving birth to a sixteen pound baby is not fun.
Joey: Hey, yknow what?
Rachel: Huh?
Joey: Why dont I take you out?
Rachel: What?! Joey, you dont want to go on a date with a pregnant lady.
Joey: Yes I do!  Ill go with ya! Ill go! Ill go with ya.
Joey: Ill be fun.
Rachel: All right?
[Scene: Monica and Chandler's, Monica is watching Phoebe play Ms. Pac-Man.]
Phoebe: No. No! Yes! Ahh. Oh, would you look at that Monica? I just knocked off all of your top scores, how sad.
Monica: Okay, Im next. (Phoebe starts another game.) Dont! Dont start another game! I said Im next! Phoebe!
Phoebe: Oh, Im sorry. I didnt hear you over all the winning.
Monica: Chandler! Phoebes hogging the game!
Chandler: Who cares?

Phoebe: Wait okay, if this game is gonna cause problems between the two of you, then maybe I should just keep it.
Monica: No! No-no! I love it! It is a great present! In fact, why dont you go home and wait for the thank you card?
Chandler: Why do you want to play this game so bad?
Phoebe: Yeah! Its not like it spits out a Clark bar after every game.
Monica: Okay. Phoebe thats it. Come on, get outout of the chair.  (She goes to move Phoebe, but Phoebe goes limp and Monica cant move her.) Oh come Phoebe!
[Scene: Joey and Rachel's, Rachel is getting ready for her date with Joey as there is a knock on the door.]
Rachel: Joey? Could you get that? (There is no answer and she goes and opens the door to Joey.) What are you doing here? I thought you were in your room?
Joey: No, Im picking you up for our date. These are for you. (Hands her some flowers.)
Rachel: Ohh, Lilies. Joey, theyre my favorite. Thank you.
Joey: And, a brownie! (Hands her a bag with the brownie in it.) Well, half a brownie. Actually, its just bag. Its been a long walk from the flower shop and I was startin to feel faint so
Rachel: Oh man! This is so great! I actually feel like Im going on a real date! Although, I have a hint of morning sickness, and Im wearing underwear that goes up to about (She snaps the waistband on her underwear that is just slightly below her breasts) there.
Joey: Hey come on now, this is a real date. Uh, so nice place you got here. Foosball, huh? Pizza box. Oh, a subscription to Playboy, my kind of woman.
Rachel: Yeah, actually thats my roommates.
Joey: I would like to meet him. He sounds like a stand up guy.
Rachel: Ah yes, but hes very protective of me so youd better watch yourself.
Joey: Ah Hey, so this roommate of yours is he good looking?
Rachel: Hm-mmm.
Joey: Oh yeah, it must be tough to keep your hands of him, huh?

Joey: No-no-no-no, hes not! No! Why are you trying to ruin the game? Come on!
[Scene: N.Y.U, Ross is teaching a class.]
Ross: which brings us back, of course, to Greelys theory of dominance. (The bell rings.) Okay, that-thats all for today. Oh, uh does anyone know where the Freeman building is?
Student: Yeah, its the new building on Avenue A.
Ross: What?! That-thats all the way cross town, Im supposed to teach a graduate seminar there in ten minutes.
Student: Ooh, dude. Thats not gonna happen.
(Ross grabs his things and runs to the door only to be blocked by his exiting students.)
Ross: Move it! Move it! Move it!! Hey!!! Im the teacher!!
[Scene: The Freeman Building, Ross is entering his new class completely out of breath.]
Ross: Hello. (He throws his jacket towards the coat rack and misses.) Im sorry Im a little late. Ah(Checks his watch)Whoa! A lot late. Let me start by uh, by introducing myself, I am Professor Geller. (The bell rings.) So to sum up, Im Professor Geller. Good job today.
[Scene: A Restaurant, a waitress is taking Joey and Rachels dinner order.]
Rachel: Now the filet mignon, what comes with that?
Waitress: Theres a side of steamed vegetables.
Rachel: Emmm. Now, instead of the vegetables, is there anyway I can substitute the three-pound lobster?
Joey: Yknow what? Bring her both, and Ill have the same. (The waitress leaves.)
Rachel: Wow! This is shaping up to be a pretty good dateOh, I almost forgot. I didnt pay you the rent check.
Joey: Oh whoa-whoa-whoa, no roommate stuff. Okay? Were on a date.
Rachel: Okay. Wow! So I get to see what Joey Tribbiani is like on a date. So do you have any moves?
Joey: No! No. Umm, just myself and if they dont like me for(Laughs.) Im sorry I couldnt even get through that.
Rachel: I knew it! I knew it. Come on tell me your moves.
Joey: Oh alright. Umm, well, okay, I usually start by having a bottle of wine sent to my table from a fan.
Rachel: Oh my God. And that works?!
Joey: Well it does when you combine it with, "This is so embarrassing, I just want to have a normal life!"

Joey: Oh okay, how about this one. I was gonna wait until the end of the night to kiss you, but youre so beautiful I dont think I can.
Rachel: (looks interested) Oh my God! Wow! That was fantastic, I almost leaned in. I really almost did!
Joey: Alright, so so tell me one of your moves.
Rachel: Alright. So whered you grow up?
Joey: Thats your move?
Rachel: Come on, just answer the question!
Joey: (exasperated) Queens.
Rachel: And so were-were you close to your parents?
Joey: Yeah, with my mom. Yeah, not so much with my dad.
Rachel: Why not?
Joey: I dont know. I guess theres just always been this distance yknowI mean we both try to pretend its not there, but it is.
Rachel: (sympathetic) Oh. (Starts rubbing his wrist with her fingers.) Its gotta be rough.
Joey: Yeah, it is. Its really tough. Yknow sometimes I thinkWow!! Nice move!
Rachel: Huh?
Joey: "Whered you grow up," its so simple!
Rachel: Thank you! And now if youll excuse me, I have to go to the rest room.
Joey: Yeah.
(Rachel gets up and heads for the rest room.)
Rachel: And now youre watching me walk away.
Joey: Yes I am! Again so simple!
[Scene: Monica and Chandler's, Monica is entering to find Chandler playing Ms. Pac-Man.]
Monica: Hey.
Chandler: You are not going to believe what I did today!
Monica: Well it clearly wasnt showering or shaving.
Chandler: I got good. I played this game all day and now I rule at it! They should change the name of it to Ms. Chandler. (Pause) Although I-I hope they dont.
Monica: Wait a minute, you stayed home all day and played Ms. Pac-Man while I went off to work like some kind of chump?!
Chandler: Uh-huh, and I got all the top ten scores, I erased Phoebe off the board! High five! (Holds up his hand to give Monica a high five, only he cant straighten his fingers.)
Monica: What is the matter with your hand?
Chandler: Well Ive been playing it for like eight hours, itll loosen up. Come on, check out the scores.
Monica: Chandler, why would you do that?
Chandler: Because its awesome.
Monica: You think this is clever?
Chandler: Well yknow, they only give you three letters, so after A-S-S it is a bit of a challenge.
Monica: Hey wait a minute, this one isnt dirty.
Chandler: It is when you put it together with that one.
Monica: Ah, well if you dont clear this off, you wont be getting one of those from me. But Bens coming over here tomorrow to play this game, this cant be there.
Chandler: Come on, he wont even know what they mean.
Monica: Chandler!

Monica: All right, look Im just gonna unplug it.
Chandler: No-no-no, if you unplug it, Ill have nothing to show for my day! It would be like I was at work. (She unplugs it.) No! (And plugs it back in.) Hey look at that! Look at that, its still there! This thing must have some kind of primitive ROM (Read Only Memory, its a memory chip.) Chip in it or something!
Monica: Honey you-you got to beat your scores!
Chandler: With the claw?!
Monica: All right fine. Fine, Ill do it. Ive just got to get this off the screen. Carol and Susan are still upset that you taught him pull my finger.
Chandler: (smiles) Pull my finger(Looks at his hand)My hand is messed up.
[Scene: Joey and Rachel's, Joey and Rachel are returning from their date.]
Rachel: I am not gonna answer that!
Joey: Oh come on! Just pick one! Between Monica, Phoebe, Chandler, and Ross if you had to, if you had to, who would you punch?
Rachel: No one! They are my friends, I wouldnt punch any of them.
Joey: Chandler?
Rachel: Yeah, but I dont know why. Look at me, Im having such a wonderful time!
Joey: Me too! Hey Rach, can I just say I think this is the best date I ever had!
Rachel: I know!
Joey: I never laughed so hardDid you see the wine come out of my nose?
Rachel: Joey, I think everyone saw the wine come out of your nose.
Joey: I gotta say, I never knew I could enjoy the non-sex part of the date so much.
Rachel: Well that is because you have never been on a date with me before.
Joey: Huh. Huh.
Rachel: All right, now dont judge me. I normally wait until my date leaves, but you live here. Im ripping into this swan.
Joey: Ah! Okay, well then you dont judge me.  (They both do as they planned.)
Rachel: So tell me, what are Joey Tribbianis end of the night moves?
Joey: Ah, well, if I want the girl to kiss me, first thing I do is make my lips look irresistible.
Rachel: How do you do that?
Joey: Now you cant tell anyone, but uh I put on shiny lip balm.
Rachel: Oh my God!
 Okay all right, so now you go.
Rachel: No, I dont want to tell you.
Joey: Why not?
Rachel: Because its embarrassing.
Joey: More embarrassing than shiny raspberry lip balm?! (Rachel just looks at him.) I didnt say raspberry before did I? All right just-just tell me Rach, just tell me!
Rachel: (laughs) Okay. All right, stand up. (They do so.) Well, when were at the door, I lightly press my lips against his, and then move into his body just for a second, and then I make this sound, "Hmmm." Okay, I know it doesnt sound like anything, but I swear it works.
Joey: (stunned and turned on) Yeah. WhyYeah, that would work for ya
Rachel: All right, I gotta go to bed. Honey, I had such a wonderful time.
Joey: Oh. (She kisses him.) Yeah. (She goes into her room.) Me to. (He then starts to freak out.)
Commercial Break
[Scene: Central Perk, Ross is telling Rachel about his class location predicament.]
Rachel: you were 50 minutes late to the class, what did you crawl there?!
Ross: No, I ran.
Rachel: Well, why didnt you just take a cab?
Ross: Ugh, between the traffic that time of day and all the one-way streets itll take me twice as long. Besides, I teach the class three times a week, who am I? Rockefeller?
Rachel: Well youre not gonna be able to keep doing this.
Ross: Well I have to. Okay? If I dont, theyll take the class away from me. And I already put it in my family newsletter.
Rachel: You what?
Ross: Youve seen it, the Geller Yeller.
Rachel: Right. Wow!
Ross: Besides, I-I think I figured out a much faster route, Im sure I can make it this time. I just I just cant be afraid to get a little bit hit by cars. (He goes to the bathroom as Joey enters.)
Joey: Hey!
Rachel: Hi! Hey, remember how last night we were talking about that movie Cujo?
Joey: Oh yeah, I still cant believe you havent seen Cujo. What is wrong with you?
Rachel: Relax! Its not like its Citizen Kane!
Joey: Have you ever tried to sit through Citizen Kane?
Rachel: Yeah I know its really boring, but its like a big deal. Anyway, I was thinking about renting Cujo sometime.
Joey: Oh yeah? All right, lets do it tonight.
Rachel: Well dont you have that big date tonight?
Joey: Oh right!
Rachel: Hey Joey, can I ask you something?
Joey: Yeah.
Rachel: After our date last night, did you feel a little weird?
Joey: Oh my God! You did too? It totally freaked me out, what was that?!
Rachel: I dont know! (Pause) Im-Im kinda thinking it-it was the lobster
Joey: Oh yeah-yeah, the lobster.

Joey: Yeah me too, all night.
Rachel: Really?! How come we didnt cross paths?
Joey: Yeah well thats because uh I stayed in my room. Yeah, you dont want to look in my hamper.
[Scene: Monica and Chandler's, Monica is trying to erase Chandlers dirty words while he looks on.]
Monica: Okay, I got that. Ill escape over there. Ill come back over here. All right, come on Ms. Pac-Man. Its gotRight(She dies.)
Phoebe: (entering) Hey, you guys. Listen, Im sorry that I was hogging the game before(Sees the top ten list)Oh my God! Your friends have some unfortunate initials!
Monica: Theyre all Chandler.
 He couldnt have gotten this good!
Chandler: I did. (Looks at his still deformed hand) But it came at a price.
Monica: But Ben is coming over tonight and he cant see this.
Chandler: Oh come on, by age seven kids have already seen orgies. (They both look at him.) Was it just me?!
[Scene: N.Y.U, Rosss new class, he is entering out of breath.]
Ross: Yeah!!!! Yes, I made it! Im on time! (Grabs a bottle of water from a student, takes a drink, and splashes some on his face like the marathon runners do.) Okay, why dont we all uh, (Exhales loudly) open our books to page 23. Where (Exhales again) Where you will see a uh a bunch of uh red spots. Okay, (Closes his book.) umm, why dont, why dont you all start to read, while I(Passes out and collapses.)
[Scene: A Restaurant, Joey is on his hot date and theyre not speaking right now.]
Joey's Date: Hey. Are you all right? You seem a little distracted.
Joey: No-no! Im fine. Its just Hey, can I ask you something? Have you ever looked at someone that youve known for a while and then suddenly suddenly see them a different way?
Joey's Date: You mean like from behind?
Joey: Yeah. Yeah, that thats exactly it. Youre right. Yeah.
Joey's Date: Ew, yknow what? One time I saw this guy from behind and he seemed like a totally normal guy and then he turned around and it was Stephan Baldwin!
Joey: (deadpan) Ooh! Yeah. So yeah, so you know exactly what Im talking about.
Joey's Date: Totally! Wow! (Pause) Would you excuse me for a sec?
Joey: Oh yeah, sure. (She gets up, walks towards the bathroom, and Joey watches her go.) Ehhh.
[Scene: Monica and Chandler's, now its Phoebes turn to erase Chandler from the board.]

Phoebe: I know!
Chandler: One more score to go! You can do it! (Touches her shoulder.)
Phoebe: Dont touch me!!
Monica: Dont touch her!!
Chandler: All right! Go left! Go left! Go right!! Go right!!
Phoebe: I cant!! I cant!! (She dies.) Noooooooo!!!!!!!
(At this point a stream of obscenities burst forth from Phoebes mouth just in time for Ben and Ross to enter and hear most of it, and in slow motion Ross tries to shield his innocent son from Phoebes vulgarity.)
Ross: Phoebe!!
Phoebe: Oh hi BenNo!! Dont look at the machine! (Covers the screen.)
[Scene: Joey and Rachel's, Rachel is watching Cujo while Joey returns from his date scaring Rachel.]
Rachel: Oh God! Thank God youre home! Im watching Cujo.
Joey: (incredulous) Alone?!
Rachel: Yes! But what is wrong with this dog?!
Joey: Hey, did you get to the part where theyre trapped in the car and Cujos throwin himself at the windshield?
Rachel: No! No! Seriously, whats wrong with the dog?! Wait a minute, what are you doing home so early? What happened to your date?
Joey: Oh uh, it didnt work out.
Rachel: Oh. Do you want to watch the rest of the movie with me?
Joey: Oh uh, okay. Yeah.
Rachel: Yknow, I never thought Id say this about a movie, but I really hope this dog dies. (Joey brings over a stool at sits on it next to Rachel whos in the big chair.) What are you doing over there? Come sit here, you protect me.
Joey: Oh sure, yeah, why not? (Sits on the arm of the chair.)
Rachel: Okay. (Pushes play.) Okay, thats him! Thats him! Thats Cujo! Thats Cujo!
Joey: All right, I know! I know. Yeah, itll be okay.
 I cant watch! (Drags Joey closer to her and cowers into his chest.) Oh. Seriously, how can you watch this? Arent you scared?
Joey: Terrified. (But for a totally different reason.)
Closing Credits
[Scene: N.Y.U, Rosss new class, this time hes actually about to do a lecture.]
Ross: So is everybody here? I got here a little early myself. Let us begin. Now, the hydrosaurids have been unearthed in two main locations. (He moves to the map and we see why he made it to class on time, hes wearing in-line skates and hasnt taken them off.) Here. (Points to the map, somewhere in the Middle East, then spins on the skates and points to the map.) Here. (China.) Now as for the hydrosaurs
(He tries to move in front of the class, only goes out of control and rolls into the hall, catching himself on the doorway with his pointer. He then pulls himself back into the room with the pointer, only he jams one end of it between the door frame and the door and breaks the pointer in half.)
End


Checklist
Grades
Doubts Space
Essay Check
Practice Speech
Log Out
LearnLily Grammar Checker and Analyser
Enter Your Essay
Submit Text For Review
Characters
:
0
Words
:
0
Sentences
:
0
Paragraphs
:
0
Reading Time
:
0
Show readability score
Top keywords
Grammar Report


Maze Real-Time with Firebase Demo
Maze Real-Time with Firebase Demo
Use buttons (or arrow-keys) to move to the bottom-right.


Pick Color Trends
4/21/2017
Source Fabrics
4/21/2017
Manufacture clothing
4/20/2017
Confirm structural integrity
4/23/2017
Manufacture mandibles
4/26/2017
Test fear factor
4/20/2017
Develop button samples
4/21/2017
Recall malfunctioning giraffes
4/21/2017
task task task task
4/20/2017
Perform user research on new stuffing
4/23/2017
Research Trends
4/20/2017


There Will Be Blood
Demolition
Baptiste Andrieux's Website
Best Movies
There Will Be Blood
The best movie ever
Demolition
One of the best movie ever


Rigidbody2D¶
The Rigidbody2D module.
Rigidbody2D AddForce¶
-
UnityEngineRigidbody2D.
__AddForce__UnityEngineVector2__SystemVoid
(UnityEngine.Rigidbody2D instanceUnityEngine.Vector2 force)¶
outputs: none
flow inputs: unnamed
flow outputs: unnamed
Rigidbody2D AddForceAtPosition¶
-
UnityEngineRigidbody2D.
__AddForceAtPosition__UnityEngineVector2_UnityEngineVector2__SystemVoid
(UnityEngine.Rigidbody2D instanceUnityEngine.Vector2 forceUnityEngine.Vector2 position)¶
outputs: none
flow inputs: unnamed
flow outputs: unnamed
Rigidbody2D AddRelativeForce¶
-
UnityEngineRigidbody2D.
__AddRelativeForce__UnityEngineVector2__SystemVoid
(UnityEngine.Rigidbody2D instanceUnityEngine.Vector2 relativeForce)¶
outputs: none
flow inputs: unnamed
flow outputs: unnamed
Rigidbody2D AddTorque¶
-
UnityEngineRigidbody2D.
__AddTorque__SystemSingle__SystemVoid
(UnityEngine.Rigidbody2D instanceSystem.Single torque)¶
outputs: none
flow inputs: unnamed
flow outputs: unnamed
Rigidbody2D Cast¶
-
UnityEngineRigidbody2D.
__Cast__UnityEngineVector2_UnityEngineContactFilter2D_UnityEngineRaycastHit2DArray__SystemInt32
(UnityEngine.Rigidbody2D instanceUnityEngine.Vector2 directionUnityEngine.ContactFilter2D contactFilterUnityEngine.RaycastHit2D[] results)¶
outputs: unnamed (Int32
)
flow inputs: unnamed
flow outputs: unnamed
Rigidbody2D Distance¶
-
UnityEngineRigidbody2D.
__Distance__UnityEngineCollider2D__UnityEngineColliderDistance2D
(UnityEngine.Rigidbody2D instanceUnityEngine.Collider2D collider)¶
outputs: unnamed (ColliderDistance2D
)
flow: none
op_Equality¶
-
UnityEngineRigidbody2D.
__op_Equality__UnityEngineObject_UnityEngineObject__SystemBoolean
(UnityEngine.Object UnityEngine.Object)¶
outputs: unnamed (Boolean
)
flow: none
Rigidbody2D Equals¶
-
UnityEngineRigidbody2D.
__Equals__SystemObject__SystemBoolean
(UnityEngine.Rigidbody2D instanceSystem.Object other)¶
outputs: unnamed (Boolean
)
flow: none
Rigidbody2D get_angularDrag¶
-
UnityEngineRigidbody2D.
__get_angularDrag__SystemSingle
(UnityEngine.Rigidbody2D instance)¶
outputs: unnamed (Single
)
flow: none
Rigidbody2D get_angularVelocity¶
-
UnityEngineRigidbody2D.
__get_angularVelocity__SystemSingle
(UnityEngine.Rigidbody2D instance)¶
outputs: unnamed (Single
)
flow: none
Rigidbody2D get_attachedColliderCount¶
-
UnityEngineRigidbody2D.
__get_attachedColliderCount__SystemInt32
(UnityEngine.Rigidbody2D instance)¶
outputs: unnamed (Int32
)
flow: none
Rigidbody2D get_bodyType¶
-
UnityEngineRigidbody2D.
__get_bodyType__UnityEngineRigidbodyType2D
(UnityEngine.Rigidbody2D instance)¶
outputs: unnamed (RigidbodyType2D
)
flow: none
Rigidbody2D get_centerOfMass¶
-
UnityEngineRigidbody2D.
__get_centerOfMass__UnityEngineVector2
(UnityEngine.Rigidbody2D instance)¶
outputs: unnamed (Vector2
)
flow: none
Rigidbody2D get_collisionDetectionMode¶
-
UnityEngineRigidbody2D.
__get_collisionDetectionMode__UnityEngineCollisionDetectionMode2D
(UnityEngine.Rigidbody2D instance)¶
outputs: unnamed (CollisionDetectionMode2D
)
flow: none
Rigidbody2D get_constraints¶
-
UnityEngineRigidbody2D.
__get_constraints__UnityEngineRigidbodyConstraints2D
(UnityEngine.Rigidbody2D instance)¶
outputs: unnamed (RigidbodyConstraints2D
)
flow: none
Rigidbody2D get_drag¶
-
UnityEngineRigidbody2D.
__get_drag__SystemSingle
(UnityEngine.Rigidbody2D instance)¶
outputs: unnamed (Single
)
flow: none
Rigidbody2D get_freezeRotation¶
-
UnityEngineRigidbody2D.
__get_freezeRotation__SystemBoolean
(UnityEngine.Rigidbody2D instance)¶
outputs: unnamed (Boolean
)
flow: none
Rigidbody2D get_gameObject¶
-
UnityEngineRigidbody2D.
__get_gameObject__UnityEngineGameObject
(UnityEngine.Rigidbody2D instance)¶
outputs: unnamed (GameObject
)
flow: none
Rigidbody2D get_gravityScale¶
-
UnityEngineRigidbody2D.
__get_gravityScale__SystemSingle
(UnityEngine.Rigidbody2D instance)¶
outputs: unnamed (Single
)
flow: none
Rigidbody2D get_inertia¶
-
UnityEngineRigidbody2D.
__get_inertia__SystemSingle
(UnityEngine.Rigidbody2D instance)¶
outputs: unnamed (Single
)
flow: none
Rigidbody2D get_interpolation¶
-
UnityEngineRigidbody2D.
__get_interpolation__UnityEngineRigidbodyInterpolation2D
(UnityEngine.Rigidbody2D instance)¶
outputs: unnamed (RigidbodyInterpolation2D
)
flow: none
Rigidbody2D get_isKinematic¶
-
UnityEngineRigidbody2D.
__get_isKinematic__SystemBoolean
(UnityEngine.Rigidbody2D instance)¶
outputs: unnamed (Boolean
)
flow: none
Rigidbody2D get_mass¶
-
UnityEngineRigidbody2D.
__get_mass__SystemSingle
(UnityEngine.Rigidbody2D instance)¶
outputs: unnamed (Single
)
flow: none
Rigidbody2D get_name¶
-
UnityEngineRigidbody2D.
__get_name__SystemString
(UnityEngine.Rigidbody2D instance)¶
outputs: unnamed (String
)
flow: none
Rigidbody2D get_position¶
-
UnityEngineRigidbody2D.
__get_position__UnityEngineVector2
(UnityEngine.Rigidbody2D instance)¶
outputs: unnamed (Vector2
)
flow: none
Rigidbody2D get_rotation¶
-
UnityEngineRigidbody2D.
__get_rotation__SystemSingle
(UnityEngine.Rigidbody2D instance)¶
outputs: unnamed (Single
)
flow: none
Rigidbody2D get_simulated¶
-
UnityEngineRigidbody2D.
__get_simulated__SystemBoolean
(UnityEngine.Rigidbody2D instance)¶
outputs: unnamed (Boolean
)
flow: none
Rigidbody2D get_sleepMode¶
-
UnityEngineRigidbody2D.
__get_sleepMode__UnityEngineRigidbodySleepMode2D
(UnityEngine.Rigidbody2D instance)¶
outputs: unnamed (RigidbodySleepMode2D
)
flow: none
Rigidbody2D get_transform¶
-
UnityEngineRigidbody2D.
__get_transform__UnityEngineTransform
(UnityEngine.Rigidbody2D instance)¶
outputs: unnamed (Transform
)
flow: none
Rigidbody2D get_useAutoMass¶
-
UnityEngineRigidbody2D.
__get_useAutoMass__SystemBoolean
(UnityEngine.Rigidbody2D instance)¶
outputs: unnamed (Boolean
)
flow: none
Rigidbody2D get_useFullKinematicContacts¶
-
UnityEngineRigidbody2D.
__get_useFullKinematicContacts__SystemBoolean
(UnityEngine.Rigidbody2D instance)¶
outputs: unnamed (Boolean
)
flow: none
Rigidbody2D get_velocity¶
-
UnityEngineRigidbody2D.
__get_velocity__UnityEngineVector2
(UnityEngine.Rigidbody2D instance)¶
outputs: unnamed (Vector2
)
flow: none
Rigidbody2D get_worldCenterOfMass¶
-
UnityEngineRigidbody2D.
__get_worldCenterOfMass__UnityEngineVector2
(UnityEngine.Rigidbody2D instance)¶
outputs: unnamed (Vector2
)
flow: none
Rigidbody2D GetAttachedColliders¶
-
UnityEngineRigidbody2D.
__GetAttachedColliders__UnityEngineCollider2DArray__SystemInt32
(UnityEngine.Rigidbody2D instance)¶
outputs: results (Collider2D[]
), unnamed (Int32
)
flow: none
Rigidbody2D GetComponent¶
-
UnityEngineRigidbody2D.
__GetComponent__SystemType__UnityEngineComponent
(UnityEngine.Rigidbody2D instanceSystem.Type type)¶
outputs: unnamed (Component
)
flow: none
Rigidbody2D GetComponentInChildren¶
-
UnityEngineRigidbody2D.
__GetComponentInChildren__SystemBoolean__T
(UnityEngine.Rigidbody2D instanceSystem.Boolean includeInactiveSystem.Type type)¶
outputs: T (Object
)
flow: none
Rigidbody2D GetComponentInParent¶
-
UnityEngineRigidbody2D.
__GetComponentInParent__SystemType__UnityEngineComponent
(UnityEngine.Rigidbody2D instanceSystem.Type t)¶
outputs: unnamed (Component
)
flow: none
Rigidbody2D GetComponents¶
-
UnityEngineRigidbody2D.
__GetComponents__ListT__SystemVoid
(UnityEngine.Rigidbody2D instanceSystem.Collections.Generic.List`1[UnityEngine.Object] results)¶
outputs: none
flow inputs: unnamed
flow outputs: unnamed
Rigidbody2D GetComponentsInChildren¶
-
UnityEngineRigidbody2D.
__GetComponentsInChildren__SystemBoolean_ListT__SystemVoid
(UnityEngine.Rigidbody2D instanceSystem.Boolean includeInactiveSystem.Collections.Generic.List`1[UnityEngine.Object] result)¶
outputs: none
flow inputs: unnamed
flow outputs: unnamed
Rigidbody2D GetComponentsInParent¶
-
UnityEngineRigidbody2D.
__GetComponentsInParent__SystemBoolean_ListT__SystemVoid
(UnityEngine.Rigidbody2D instanceSystem.Boolean includeInactiveSystem.Collections.Generic.List`1[UnityEngine.Object] results)¶
outputs: none
flow inputs: unnamed
flow outputs: unnamed
Rigidbody2D GetContacts¶
-
UnityEngineRigidbody2D.
__GetContacts__UnityEngineCollider2DArray__SystemInt32
(UnityEngine.Rigidbody2D instanceUnityEngine.Collider2D[] colliders)¶
outputs: unnamed (Int32
)
flow: none
Rigidbody2D GetHashCode¶
-
UnityEngineRigidbody2D.
__GetHashCode__SystemInt32
(UnityEngine.Rigidbody2D instance)¶
outputs: unnamed (Int32
)
flow: none
Rigidbody2D GetInstanceID¶
-
UnityEngineRigidbody2D.
__GetInstanceID__SystemInt32
(UnityEngine.Rigidbody2D instance)¶
outputs: unnamed (Int32
)
flow: none
Rigidbody2D GetPoint¶
-
UnityEngineRigidbody2D.
__GetPoint__UnityEngineVector2__UnityEngineVector2
(UnityEngine.Rigidbody2D instanceUnityEngine.Vector2 point)¶
outputs: unnamed (Vector2
)
flow: none
Rigidbody2D GetPointVelocity¶
-
UnityEngineRigidbody2D.
__GetPointVelocity__UnityEngineVector2__UnityEngineVector2
(UnityEngine.Rigidbody2D instanceUnityEngine.Vector2 point)¶
outputs: unnamed (Vector2
)
flow: none
Rigidbody2D GetRelativePoint¶
-
UnityEngineRigidbody2D.
__GetRelativePoint__UnityEngineVector2__UnityEngineVector2
(UnityEngine.Rigidbody2D instanceUnityEngine.Vector2 relativePoint)¶
outputs: unnamed (Vector2
)
flow: none
Rigidbody2D GetRelativePointVelocity¶
-
UnityEngineRigidbody2D.
__GetRelativePointVelocity__UnityEngineVector2__UnityEngineVector2
(UnityEngine.Rigidbody2D instanceUnityEngine.Vector2 relativePoint)¶
outputs: unnamed (Vector2
)
flow: none
Rigidbody2D GetRelativeVector¶
-
UnityEngineRigidbody2D.
__GetRelativeVector__UnityEngineVector2__UnityEngineVector2
(UnityEngine.Rigidbody2D instanceUnityEngine.Vector2 relativeVector)¶
outputs: unnamed (Vector2
)
flow: none
Rigidbody2D GetType¶
-
UnityEngineRigidbody2D.
__GetType__SystemType
(UnityEngine.Rigidbody2D instance)¶
outputs: unnamed (Type
)
flow: none
Rigidbody2D GetVector¶
-
UnityEngineRigidbody2D.
__GetVector__UnityEngineVector2__UnityEngineVector2
(UnityEngine.Rigidbody2D instanceUnityEngine.Vector2 vector)¶
outputs: unnamed (Vector2
)
flow: none
op_Implicit¶
-
UnityEngineRigidbody2D.
__op_Implicit__UnityEngineObject__SystemBoolean
(UnityEngine.Object)¶
outputs: unnamed (Boolean
)
flow: none
op_Inequality¶
-
UnityEngineRigidbody2D.
__op_Inequality__UnityEngineObject_UnityEngineObject__SystemBoolean
(UnityEngine.Object UnityEngine.Object)¶
outputs: unnamed (Boolean
)
flow: none
Rigidbody2D IsAwake¶
-
UnityEngineRigidbody2D.
__IsAwake__SystemBoolean
(UnityEngine.Rigidbody2D instance)¶
outputs: unnamed (Boolean
)
flow: none
Rigidbody2D IsSleeping¶
-
UnityEngineRigidbody2D.
__IsSleeping__SystemBoolean
(UnityEngine.Rigidbody2D instance)¶
outputs: unnamed (Boolean
)
flow: none
Rigidbody2D IsTouching¶
-
UnityEngineRigidbody2D.
__IsTouching__UnityEngineCollider2D__SystemBoolean
(UnityEngine.Rigidbody2D instanceUnityEngine.Collider2D collider)¶
outputs: unnamed (Boolean
)
flow: none
Rigidbody2D IsTouchingLayers¶
-
UnityEngineRigidbody2D.
__IsTouchingLayers__SystemBoolean
(UnityEngine.Rigidbody2D instance)¶
outputs: unnamed (Boolean
)
flow: none
Rigidbody2D MovePosition¶
-
UnityEngineRigidbody2D.
__MovePosition__UnityEngineVector2__SystemVoid
(UnityEngine.Rigidbody2D instanceUnityEngine.Vector2 position)¶
outputs: none
flow inputs: unnamed
flow outputs: unnamed
Rigidbody2D MoveRotation¶
-
UnityEngineRigidbody2D.
__MoveRotation__SystemSingle__SystemVoid
(UnityEngine.Rigidbody2D instanceSystem.Single angle)¶
outputs: none
flow inputs: unnamed
flow outputs: unnamed
Rigidbody2D OverlapCollider¶
-
UnityEngineRigidbody2D.
__OverlapCollider__UnityEngineContactFilter2D_UnityEngineCollider2DArray__SystemInt32
(UnityEngine.Rigidbody2D instanceUnityEngine.ContactFilter2D contactFilter)¶
outputs: results (Collider2D[]
), unnamed (Int32
)
flow: none
Rigidbody2D OverlapPoint¶
-
UnityEngineRigidbody2D.

__Sleep__SystemVoid
(UnityEngine.Rigidbody2D instance)¶
outputs: none
flow inputs: unnamed
flow outputs: unnamed
Rigidbody2D ToString¶
-
UnityEngineRigidbody2D.
__ToString__SystemString
(UnityEngine.Rigidbody2D instance)¶
outputs: unnamed (String
)
flow: none
Rigidbody2D WakeUp¶
-
UnityEngineRigidbody2D.
__WakeUp__SystemVoid
(UnityEngine.Rigidbody2D instance)¶
outputs: none
flow inputs: unnamed
flow outputs: unnamed


One of my favorite vacation spots has to be Turtle Bay. The view, the location, the staff; almost everything just hits differently. Personally, I would recommend this to anyone who would like a memorable experience in the coastal region.
Turtle Bay actively participates in the Watamu-Marine-Association, which is aimed at helping the local community. For anyone who would like to visit, there is a vast range of activities in the resort. Click here to learn more about Turtle Bay. About The Website


A report from the course XXX
S01
1- Did you before know about the techniques Git, GitHub, Markdown and/or GitHub Pages?
I know about Git and GitHub because in the first year we did a project and we connected it to GitHub. In the second year,I worked with GitHub desktop application because I found it more easier than using Git bash. However, I have never worked with GitHub pages before.
2- Have you ever created websites before?
I have never created websites before. However, I have worked a little bit with HTML and CSS before. So, I am familiar with some basics of HTML and CSS.
3- Briefly explain your experience and knowledge of web application development.
I have worked with HTML and CSS but a little bit. However, I studied Network Applications course which I learnt to work with backend and create servers and clients using Java.
4- What is your TIL for this course section?
In the first assignment, I learnt to use GitHub pages and to fork. In addition, I became more familiar with Git bash and create tags using git bash.
S02
1. Have you any previous experience of HTML, CSS and/or JavaScript?
I have some experience of HTML and CSS. However, I don't have any experience of JavaScript
2. Explain the role of HTML, CSS and JavaScript in web development.
HTML is used to create basic and simple webpages, CSS is used to style and decorate the HTML webpages and to make HTML webpage look better and nicer, and JavaScript is used to make webpages dynamic. It gives the user the ability to interact with webpages dynamiclly. HTML, CSS, and JavaScript work together as a frontend.
3. Give a brief explanation of how the browser, the HTTP protocol and the web server interacts.
The browser goes to the DNS server, and finds the real address of the server that the website lives on. The browser sends an HTTP request message to the server, asking it to send a copy of the website to the client. This message, and all other data sent between the client and the server, is sent across internet using TCP/IP.
S03
1. Do you have any previous experience of client side JavaScript?
No. I don't have any experience in JavaScript. This is my first time I see JavaScript code and deal with it. However, it looks an intresting and a powerful programming language
2. Can you compare and relate the JavaScript language to any other language you know?
JavaScript looks like Java and C++, which it has functions, variable, loops, and conditions. It's not hard to learn it and use it
3. Describe how you worked with the coding exercise, what grade do you aim for and how did your code turn out to be?
In gerneral, I followed the teacher's instructions and examples in order to write the code and understand it. In addition, I watched some tutorials on Youtube, Udemy, and W3Schools in order to increase my knowledge and to learn faster. I'm aming to get 5 because I did all the instructions of grade 5 that the teacher posted it on Canvas. Higher grade means harder requirements which it requires more effort to get the highest grade. The highest grade means more knowledge and that is why I'm aiming to 5.
4. What is your TIL for this course section?
I learnt in this section of the course many useful and intresting things such as creating functions, loops, variables in JavaScript; adding JavaScript file to HTML webpages, calling JavaScript functions from HTML webpages by using onclick method, creating classes and ids in HTML webpages and using them in CSS file, adding style to elements and changing them from JavaScript, and styling HTML webpages using CSS and making it more dynamically using JavaScript.
S04
Here is the text for this section.
S05
Here is the text for this section.
S06
Here is the text for this section.
S07
Here is the text for this section.
S08
Here is the text for this section.
S09
Here is the text for this section.
S10
Here is the text for this section.


[PART IV. THE EXECUTIVE BUDGET]
Note
Information to be submitted with the variance report to the 2019 legislature (effective July 1, 2018). L 2017, c 169.
[§37-61] Short title. This part may be cited as "The Executive Budget Act". [L 1970, c 185, §1]


Penticton RCMP defend poor rating in Macleans' crime statistics
by Steve ArstadPenticton RCMP say recent statistics ranking Penticton 19th in crime out of 237 Canadian cities in 2018 requires further explanation.
Penticton RCMP media relations officer Const. James Grandy said in a press release issued today, Nov. 20, that the Uniform Crime Reporting Survey results reported by Macleans magazine are based on police-reported incidents and the population.
“It’s not a proportional comparison, as it bases its calculation on a per capita population only, and not taking into consideration that prolific offenders aren’t proportional. With that in mind, a few incidents in a smaller community such as Penticton can dramatically impact the ranking of that community,” Grandy said.
“A single prolific offender in a smaller centre has the ability to increase that town’s crime severity rating, as compared to a larger city,” Grandy said.
He said that in many cases, violent acts that are reported to police involve individuals who are well known to one another and can be considered isolated events, with no danger to the public at large.
"The RCMP in Penticton and throughout the South Okanagan have seen tremendous success in arresting prolific offenders in each of our communities, who are believed to be responsible for the majority of the crimes taking place. Our officers remain committed to these efforts of solving crimes and improving our community’s sense of safety, security and overall well-being,” Grandy said.


L A N S D O W N
The land of Green sunset
Lansdowne is one of the mesmerizing hill stations of the Garhwal district in Uttarakhand state. This unexplored and underrated hill station is a perfect destination with disarming beauty and surprising charm. People visit this hill station to enjoy the peaceful tranquility. Lansdowne Travel guide is the best alternative for the tourists get facts and highlights before visiting this hidden jem. The cool air and amazing vistas provide you with unforgettable experiences. The soothing and salubrious climate of this region attracts a good number of people to visit and spend their holidays here.


WITNESS LIST Transportation Committee May 16, 2006-9:00A utility interim charge On: Behrens, Michael W. (Texas Department of Transportation) Brown, David (Verizon Southwest) Interim Charge 1 On: Myerson, Jeff (CenterPoint Energy and Association of Electric Companies of Texas)


{% include head.html %}
{% include navigation.html %}
{% include header_logo.html %}
{{content}} {% include footer.html %}


Error: /uploads/ folder permissions are not set to 777. Please change them and refresh.
Error: File core/app/autoload.php permissions are not set to 777. Please change them and refresh.
Error: File .htaccess does not exist. Please upload and refresh.
Your installation is complete.
Delete install.php file and change permissions of core/app/autoload.php to 644.
You can view your home page now or go to /admin to login.
There was an error installing Cosmo.


Jenni Konner Signs Overall Deal With Fox 21
The 'Girls' executive producer joins the Disney fold
by Rick PorterDisney Television Studios is adding another high-profile creator to its roster.
Former Girls executive producer Jenni Konner has signed a multi-year overall deal with Fox 21 Television Studios. Under the deal she will develop and produce series projects across platforms.
"From the moment that we sat down with Jenni we wanted to work together," said Fox 21 president Bert Salke. "In addition to being smart, energetic, and a huge connector of people and ideas, Jenni has a signature taste and style that makes her a distinct and much-admired creator. We’re incredibly excited to be a part of that."
Said Konner, "Before we even met I knew that Dana [Walden] and Bert were committed to supporting outstanding, quality television. When we sat down together, I instantly felt a deep creative connection. Fox 21 supports creatives. Full stop. I’m thrilled that the next chapter in my career can be with them."
More to come.


SCALING EFFECT IN CONE PENETRATION TESTING IN SAND by Walid Khaled Eid
Dissertation submitted to the Faculty of the Virginia Polytechnic Institute and State University in partial fulfillment of the requirements for the degree of Doctor of Philosophy in
Civil Engineering APPROVED:
G. W. Clough, Chairman
~* J.M. Duncan—~—~— ——* —~ ROD. Krebs a = . L- T. Kuppuseamy C. W. Smith
March, 1987
Blacksburg, Virginia


Logged in....
This is a basic Instagram clone powered by Satellizer. To continue, please log in with your Instagram account or create a new email account.
Log in Create account


Batch Management
Admin
Cockpit
Tasklist
About
Examples
Models
Instances
Models
Clear
Delete
Model Name
Max Batch Size
Activation Rules
HOURS
MINUTES
SECONDS
Execution Order
Select Execution Order
Parallel
Sequential
Process
Select process
Activity
Select activity
Grouping Attributes
Create or Modify
Blocked Instances
Id
Process
Activity
This is the tab for about
This is the tab for the examples


This package allows users to calculate the number of under-five child deaths caused by consumption of poor quality antimalarials across 39 sub-Saharan nations. The package supports one function, that starts an interactive web tool created using the shiny R package. The web tool runs locally on the user's machine. The web tool allows users to set input parameters (prevalence of poor quality antimalarials, case fatality rate of children who take poor quality antimalarials, and sample size) which are then used to perform an uncertainty analysis following the Latin hypercube sampling scheme. Users can download the output figures as PDFs, and the output data as CSVs. Users can also download their input parameters for reference. This package was designed to accompany the analysis presented in: J. Patrick Renschler, Kelsey Walters, Paul Newton, Ramanan Laxminarayan "Estimated under-five deaths associated with poor-quality antimalarials in sub-Saharan Africa", 2014. Paper submitted.
| Version: | 0.2 |
| Depends: | R (≥ 2.14.1) |
| Imports: | reshape2, RColorBrewer, plyr, shiny |
| Published: | 2014-09-04 |
| Author: | J. Patrick Renschler |
| Maintainer: | J. Patrick Renschler <patrick.renschler at gmail.com> |
| License: | GPL-3 |
| NeedsCompilation: | no |
| Citation: | pqantimalarials citation info |
| Materials: | README NEWS |
| CRAN checks: | pqantimalarials results |
| Reference manual: | pqantimalarials.pdf |
| Package source: | pqantimalarials_0.2.tar.gz |
| Windows binaries: | r-devel: pqantimalarials_0.2.zip, r-release: pqantimalarials_0.2.zip, r-oldrel: pqantimalarials_0.2.zip |
| OS X binaries: | r-release: pqantimalarials_0.2.tgz, r-oldrel: pqantimalarials_0.2.tgz |
| Old sources: | pqantimalarials archive |
Please use the canonical form https://CRAN.R-project.org/package=pqantimalarials to link to this page.


flight performance metabolic females males southern different thermal butterfly range SMR agricultural FMR temperature rate woodland conditions habitat latitude northern {border-style Van px;} #ffffff;} landscape developmental variation climate populations Dyck compared higher latitudinal Biol activity aegeria chamber rates Flight distance relative change core effects phenotypic significant Ecol adult ambient context increased larval population treatment (i.e., development ecotypes effect measured traits Evol Sci butterflies ecological energy females, latitudes life origin px; {font-family min Proc body constraints did ecotype flown font-size showed species Northern average day differences double; dynamics ectotherms edge endurance energetic individuals interaction intraspecific latitude, origin. patterns results temperature: wood Ecology Females Fig. However, Pararge Supplementary border-color border-width change. cold differ dispersal evolution evolutionary experiment independent individual insect kept like metabolism north pace populations: responses resting scale selection solid; speckled study type variable warmer work {font-style {font-weight . ± . ml Next, Oecologia Press, SMR, affects behaviour bold climatic closed cooler courier; difference differentiation distribution duration ecotype. em; emergence environmental expanding experimental experiments females. flew genetic habitats host level local longer male males, model needs new pattern perching performance. plastic predicted pt;} rearing reciprocal relevant reproductive sexes significance solar stronger temperature. temperatures time transplant types


This helper function takes a PBMDesign object and set of k-mer
sequences of interest, and returns a mapping between probes and
k-mer sequences.
Since no probe filtering or trimming is performed as part of this
function, pbmTrimProbes
and pbmFilterProbes
should
be called before passing the PBMDesign object to this function.
mapKmers(pd, kmers)
| pd | a PBMDesign object containing probe sequence information. |
|---|---|
| kmers | character vector of K-mers (of equal length) to which probes should be mapped. |
A table of k-mer sequences and probes, with each row
corresponding to an occurrence of a k-mer sequence on a probe.
The table inclues all columns of the input pd
design
as well as columns indicating the orientation (orient
) and
position (pos
) of the k-mer in the probe.


---
layout: default
title: Intro to Rust
---
class: middle, center
![ferris](/img/ferris.gif)
# A Very Brief Intro to Rust
???
* This is Ferris, our unofficial mascot!
---
class: middle, left
## Overview
* What is Rust? What is Cargo? How to set them up?
* Syntax + Concepts mostly the same as other languages
* Syntax + Concepts particular to Rust
* Further learning
---
class: middle, left
## What is Rust?
Rust is a systems programming language that runs blazingly fast, prevents
segfaults, and guarantees thread safety.
--
**Rust is a systems programming language that empowers everyone to build
reliable and efficient software.**
???
* What does any of this mean?
* Ask class to define "systems programming", what do they think of when they hear it
* efficient = as fast as C
* reliable = won't crash because of mismanaged memory
* Memory safety also covers buffer over/underflows
---
class: middle, left
## What is Cargo?
* Package manager
* Build tool
* Test runner
* Documentation generator
???
* A lot of these things are convenience wrappers around other tools like rustc
and rustdoc.
---
class: middle, left
## Installing Rust
Rust includes Cargo by default.
You can install Rust by visiting https://rustup.rs.
---
class: middle, left
## Setting up a Project
We're going to be making a *binary* project; the other option is a *library*.
`cargo new` will create a skeleton project setup for you.
1. `cd` to a directory where you like to store code
2. `cargo new rustbridge`
3. `cd rustbridge`
If you use version control (Git for example), now would be a good time to commit.
???
If you are writing a library, it means you intend for your
code to be used in someone else's application as a crate or module.
If you are writing a binary, it means that you'd like
to write code that compiles into a binary that someone can run. If you
want to do this, you need to use a `main.rs`. Inside the `main.rs` you
should have a `main` function.
---
class: middle, left
## Files created
- `Cargo.toml`: metadata about your project and its dependencies
- `.gitignore`: ignores compiled files built by Rust when adding them to Git
- `src/main.rs`: where your Rust code goes
---
class: middle, left
## `Cargo.toml`
```toml
[package]
name = "rustbridge"
version = "0.1.0"
authors = ["Your Name "]
edition = "2018"
[dependencies]
```
???
* Cargo got your name from your env, probably from git.
* If it's not there, or if it's wrong, go ahead and fix it.
---
class: middle, left
## `src/main.rs`
```rust
fn main() {
println!("Hello, world!");
}
```
???
* `fn` starts a function definition
* `main` is the name of the function
* `main` fn is special - entry point of your binary
* curly braces around the body
* `println!` is a macro (don't worry) that prints to the screen
* End lines with semicolons (mostly, we'll talk later)
---
class: middle, left
## Run it!
* `cargo run`
* Should print "Hello, world!"
* Now you have more files:
* `target` directory: all the built stuff (won't be added to Git)
* `Cargo.lock`: locks your dependencies (we don't have any yet)
* Try printing out something else!
* Try printing out two things!
???
* Locking dependencies means writing down all of the versions into an autogenerated file so that other people that work on your project get the exact same versions
---
class: middle, left
## Offline Documentation
* Several books are installed, `rustup doc -h` to list them
* Search: look for search box or 🔍 symbol at top of pages
* Material and search are usable offline
---
class: middle, left
## API Documentation
https://doc.rust-lang.org/
or
`rustup doc`
Click on "Standard Library API Reference"
or
`rustup doc --std`
`rustup doc --std --path` to show local path
---
class: middle, left
## Syntax + Concepts mostly the same as other languages
---
class: middle, left
## Comments
* Double slash at the beginning of a line (`//`)
* Try commenting out one of your lines printing!
* There are other kinds of comments but this is the most common
---
class: middle, left
## Variables
```rust
let name = "Ashley";
let age = 30;
println!("Hi, {}! You are {} years old.", name, age);
```
* Try making more variables and printing them all out in one `println!`
???
* `let`, variable name, single equals, value, semicolon.
* Crab pincers in println, then values that should fit in there
---
class: middle, left
## Experiment
What happens if you run this:
```rust
let apples = 100;
apples += 50;
println!("I have {} apples", apples);
```
???
* Have someone read the error message
* Point out that the compiler caught this for us before the program ran
---
class: middle, left
## Mutability
Variables are *immutable* by default in Rust.
```rust
let mut apples = 100;
apples += 50;
println!("I have {} apples", apples);
```
???
* Rust has functional influences
* Changing a value where you didn't expect to is a common source of bugs.
---
class: middle, left
## Types
Rust is strongly, statically typed. Common fundamental types are:
- `u32`: unsigned 32-bit integer
- `i32`: signed 32-bit integer
- `f64`: floating point number
- `String` and/or `&str`: more on these later
- `bool`: a boolean
???
* Strongly typed means that type safety is enforced more strongly. The compiler checks whether all types are correctly specified most of the time
* Statically typed means that types are known at compile time. You can't have a variable whose type we don't know
---
class: middle, left
## Type inference
* Every value has a type that the compiler has to know about.
* Most of the time, the compiler can figure it out.
* Sometimes it can't, and you'll get an error and need to add an annotation.
* We could have written `let age: i32 = 30;`
* A place we **must** specify types is function definitions.
???
* Types come after the name
* The compiler is your friend! It checks whether you have any missing type annotations that it can't figure out and tells you how to fix them
---
class: middle, left
## Functions
```rust
fn add_fifty(n: i32) -> i32 {
n + 50
}
fn main() {
println!("Lots: {}", add_fifty(100));
}
```
???
* Argument/parameter, named with type specified
* `->` plus return type, if returning a value
* No semicolon on the last line when returning that value
* No `return` keyword unless doing an early return
* Function call always uses parens, even if no arguments
---
class: middle, left
## Conditionals: `if`
```rust
fn main() {
let height: u32 = 167;
if height < 150 {
println!("You're too small to go on the rollercoaster.");
} else if height > 150 && height <= 200 {
println!("You may go on the rollercoaster!");
} else {
println!("You're too tall to go on the rollercoaster.");
}
}
```
???
* No parens! This is not optional
* Shorthand for numeric type annotation
* Age can't be negative, compiler will make sure we don't have negative ages
---
class: middle, left
## Conditionals: `match`
Kinda like a switch. But better.
```rust
fn main() {
let height: u32 = 167;
match height {
0..=149 => println!("You're too small to go on the rollercoaster."),
150..=200 => println!("You may go on the rollercoaster!"),
_ => println!("You're too tall to go on the rollercoaster."),
}
}
```
???
* Underscore is catch-all
* Pattern, rocket, code to run
* Commas at the end of the code to run
* If the code is more than one line, surround with curly braces
* Trailing comma on the last one is the style
* What if we take out the line with the underscore? This is advantage to `match` over `if`/`else if`/`else`
---
class: middle, left
## Arrays
Kinda like arrays in other languages, but worse.
```rust
let mut color = [255, 0, 255];
color[0] = 100;
println!("The color is {:?}", color);
```
???
* Arrays are a fixed size known at compile time
* Square brackets, commas
* Indexing to a particular location
* Need debug formatting in println since Rust doesn't know how you want to display arrays to your users
* For day-to-day usage, you probably won't need arrays. Not many people use them
---
class: middle, left
## Vectors
Most of the time, you probably want a vector rather than array.
```rust
let mut prices = vec![30, 100, 2];
prices[0] = 25;
prices.push(40);
println!("All the prices are: {:?}", prices);
```
???
* `vec!` shorthand macro, the rest is like an array
* Vecs can change in size at runtime
* So we can call the `push` method
---
class: middle, left
## Quick but Useful Tangent #1: `println!` formatting
* `{}` is called `Display` formatting; only on primitive types by default
* `{:?}` is called `Debug` formatting; more types have this by default
* Display is for end users, Debug is for... debugging
* Rust doesn't want to make assumptions
* My favorite: `{:#?}` = pretty debug
* [`fmt` docs](https://doc.rust-lang.org/stable/std/fmt/index.html)
---
class: middle, left
## Quick but Useful Tangent #2: `panic!`
* Panic stops your program with a message.
```rust
fn main() {
panic!("aaaaa!");
}
```
--
What happens in the last example if we try to access an element out of bounds of the array?
```rust
let color = [255, 0, 255];
let index = 9;
println!("The 10th element is {:?}", color[index]);
```
???
* It's a `panic!` behind the scenes!
* This has to do with safety-- don't continue with bad data!
---
class: middle, left
## Looping (and ranges)
* `for` loops are most common:
```rust
for i in 0..10 {
println!("Number {}", i);
}
```
```rust
let names = vec!["Carol", "Jake", "Marylou", "Bruce"];
for name in names.iter() {
println!("Hi {}!", name);
}
```
* Again, no parens
* `loop` creates an infinite loop
* `while` loops run while their condition is true
* `break` exits the current loop
???
* `for` loop means you never go past the end of the array
* What is iter? It's a shared type for stuff that can get iterated over, many other types can be transformed into it
---
class: middle, left
## Iterators
```rust
for i in (0..10).filter(|x| x % 2 == 0) {
println!("i = {}", i);
}
for i in (0..10).map(|x| x * x ) {
println!("i = {}", i);
}
let sum = (0..10).fold(0, |acc, x| acc + x);
println!("sum = {}", sum);
```
* See the [Iterator docs](https://doc.rust-lang.org/stable/std/iter/trait.Iterator.html) for lots more fun stuff.
* The `|x| x % 2 == 0` in the examples is a closure, they can be used in other situations too.
???
* A closure is also known as a lambda, or anonymous function. It's basically a function that's not bound to a variable.
---
class: middle, left
## Enums
* Nice to use with `match`
```rust
enum TrafficLight {
Red,
Yellow,
Green,
}
let light = TrafficLight::Green;
match light {
TrafficLight::Red => println!("STOP!"),
TrafficLight::Yellow => println!("Slow down!"),
TrafficLight::Green => println!("Go go go!"),
}
```
???
* Double colon is namespacing
* Show warnings!
---
class: middle, left
## Enums
* Better than in other languages: can hold values!
```rust
enum GameType {
SinglePlayer,
MultiPlayer(u32),
}
let game = GameType::MultiPlayer(4);
match game {
GameType::SinglePlayer => println!("How about solitaire?"),
GameType::MultiPlayer(2) => println!("How about checkers?"),
GameType::MultiPlayer(4) => println!("How about bridge?"),
GameType::MultiPlayer(num) => println!("How about {}-player tag?", num),
}
```
???
* Values are specific to each variant
* Have to define the type of the values in the variant
* Destructure = patterns that bind to parts
* Destructure to get values out
---
class: middle, left
## Tests
```rust
#[derive(PartialEq, Debug)] // necessary to compare enum values
enum TrafficLight {
Red,
Yellow,
Green,
}
#[test]
fn new_person_setup() {
let light = TrafficLight::Yellow;
assert!(light == TrafficLight::Yellow);
assert_eq!(light, TrafficLight::Yellow);
assert_ne!(light, TrafficLight::Red);
}
```
- Run with `cargo test`
???
- Tests are just normal functions that perform assertions, small checks that check (mostly) for if something is equal to something else
- Order doesn't matter in the arguments to assert_eq/assert_ne
- Try writing a test that will fail and see what the failure message looks like
---
class: middle, left
## Ignoring tests
```rust
#[test]
#[ignore]
fn not_implemented_yet() {
assert_eq!(true, false);
}
```
To run ignored tests anyway: `cargo test -- --ignored`
???
- Test still has to compile, but doesn't have to pass
---
class: middle, left
## Rustlings break!
- [github.com/rust-lang/rustlings](https://github.com/rust-lang/rustlings)
- Instructions in the Readme, ask if there's anything unclear
???
---
class: middle, left
## Syntax + Concepts particular to Rust
---
class: middle, left
## Option
**Rust doesn't have `nil`/`null`** so to express that a value might be something or nothing, Rust has the `Option` type.
Option is an enum provided by the standard library:
```rust
enum Option {
Some(T),
None
}
```
???
* T is a generic type parameter, means Some can hold any type
* No more undefined method on nil!!!!
---
class: middle, left
## Using Option
```rust
let mut instructors = vec!["Carol"];
let a = instructors.pop();
println!("a is {:?}", a);
let b = instructors.pop();
println!("b is {:?}", b);
```
**Is this code safe?**
???
* When we pop off the last element of a vec, there might not be one!
---
class: middle, left
## Using Option
```rust
let a = Some("Carol");
let name = a.expect("No name present");
println!("Name is {} bytes long", name.len());
```
???
* Can't call `len` on an `Option` directly since it could be `None`!
* expect panics if it gets a None, good for prototyping or when you're REALLY REALLY SURE you have Some
* Set an error message in expect that is useful to you for debugging
* Try changing `a` to this and see what happens
`let a: Option<&str> = None;`
* Mention but gloss over type annotation
---
class: middle, left
## Using Option
```rust
let b: Option<&str> = Some("Carol");
match b {
Some(name) => println!("Other name is {} bytes long", name.len()),
None => println!("No name!"),
}
```
???
* Match is useful for handling both cases
* Option is just another enum!
---
class: middle, left
## Result
* Another enum in the standard library
* For when something could succeed or fail
* Rust doesn't have exceptions; using `Result` is how you handle errors.
```rust
enum Result {
Ok(T),
Err(E),
}
```
???
---
class: middle, left
## Using Result
```rust
let numstr = "6";
let num = numstr.parse::();
println!("num = {:?}", num);
let numstr = "florp";
let num = numstr.parse::();
println!("num = {:?}", num);
```
???
* Turbofish! Because we could parse into many different types.
---
class: middle, left
## Using Result
```rust
let numstr = "6";
let num = numstr.parse::();
let num = num.expect("should have a number");
println!("num + 5 = {}", num + 5);
```
---
class: middle, left
## Using Result
```rust
let numstr = "florp";
let num = numstr.parse::();
let answer = match num {
Ok(n) => n + 5,
Err(_) => 0,
};
println!("Answer is {}", answer);
```
???
* Yes, this might feel annoying to be forced to think about failure cases all the time
* But it will save debugging time later, trust me
* There are lots of methods on Option and Result to help with common ways of handling them
---
class: middle, left
## `?` operator to propagate errors up
* Can only be used in methods/functions that return `Result`!!!!
```rust
fn add_five_to_string(s: String) ->
Result {
let answer = s.parse::()? + 5;
Ok(answer)
}
```
???
* Typical to have lots of functions that return `Result` then have a `match` at the outer layer
* Coming someday: ability to use `?` on `Option` and other types, in fns that don't return `Result`
---
class: middle, left
## Strings: WARNING
* Strings in Rust feel complicated
* We're sorry
???
Working with strings in Rust is more complicated than working with strings in other languages.
Strings are actually complicated in all languages, it's just that most hide the complexity from you and make choices for you. Rust makes you be explicit with the choices.
---
class: middle, left
## Two string types
### `String`
* Allocated
* Growable (you can append stuff to them)
* Can create with either:
* `something.to_string()`
* `String::from("string content")`
### `&str`
* Pronounced "string slice"
* View into string data stored somewhere else
* Hardcoded strings are `&str`s
???
* `String` is kinda like `Vec`
---
class: middle, left
## A common problem
```rust
fn fizz(num: u32) -> String {
if num % 3 == 0 {
"Fizz"
} else {
num.to_string()
}
}
```
???
* "Fizz" here isn't a String, it's a &str
* Have to make Fizz a String to fix this
---
class: middle, left
## String Slices
```rust
let s = String::from("Call me Ishmael blah blah...");
let part = &s[0..4];
println!("part is '{}'", part);
```
???
* Vec : &[T] :: String : &str
* With string slices, indices are bytes, not chars, long story
---
class: middle, left
## Ownership
* The *owner* of something is who is responsible for cleaning it up.
* When owners go out of scope, Rust automatically calls the cleanup code.
```rust
fn main() {
let v = vec![1, 2, 3];
println!("v is valid here! {:?}", v);
}
// v is not valid here anymore!
```
???
* Point to where s is valid and where s goes out of scope
---
class: middle, left
## Transferring Ownership
* When you pass an argument to a function, ownership is transferred to the function.
* We say that something is *moved*.
```rust
fn main() {
let v = vec![1, 2, 3];
print_vec(v);
print_vec(v);
}
fn print_vec(v: Vec) {
println!("v is {:?}", v);
}
```
???
* Explain error message
* Yes this is weird and annoying!
* Don't worry we'll fix it!
---
class: middle, left
## References
* Let you borrow a resource you don't own
* A reference is only valid as long as the owner is valid. Rust ensures you aren't using an invalid reference *at compile time*.
```rust
fn main() {
let v = vec![1, 2, 3];
print_vec(&v);
print_vec(&v);
}
fn print_vec(v: &Vec) {
println!("v is {:?}", v);
}
```
???
- So unless you *want* your function to take ownership of an argument, you *probably* will have most of your functions take references as arguments.
---
class: middle, left
## Mutable References
* Like variables, references are immutable by default, but you can make them mutable with `mut`.
* You may have many immutable references in a scope
* You may only have one mutable reference and no immutable references in a scope
```rust
fn main() {
let mut v = vec![1, 2, 3];
change_vec(&mut v);
change_vec(&mut v);
println!("v is {:?}", v);
}
fn change_vec(v: &mut Vec) {
v[0] *= 5;
}
```
???
* This is how you would make a function that's allowed to change its arguments.
---
class: middle, left
## Not allowed to have mutable and immutable references in the same scope.
```rust
fn main() {
let mut v = vec![1, 2, 3];
let f = &v[0];
v.clear();
println!("What would f be? {}", f);
}
```
???
* This won't compile-- look at the error.
* Where is the immutable reference?
* Where is the mutable reference?
* Other languages will let you do this and give you invalid data.
* Security vulnerabilities!
---
class: middle, left
## Further learning
### Syntax + Concepts we didn't cover but that are things
.pull-left[
* Lifetimes
* Tuples
* Structs
* Methods
* `if let`
]
.pull-right[
* FFI
* Traits
* Generics
* Macros
* Threads
* Composition over inheritance
]
---
class: middle, left
## Resources
* [The Rust Programming Language Book](https://doc.rust-lang.org/stable/book/)
* [Rust by Example](http://rustbyexample.com/)
* [Rust learning](https://github.com/ctjhoa/rust-learning/)
* [into_rust() screencasts](http://intorust.com/)
---
class: middle, left
## Just One More Thing: Crates
![cratesio](/img/cratesio.png)
???
* Like rubygems.org, npmjs.com
* Easy to add crates (libraries) to your project
* Rust's stdlib is small and stable
* Crates can change more rapidly and more radically independently of Rust
* We're going to be using some crates for our project!


|
QuantLib: a free/open-source library for quantitative finance
Fully annotated sources - version 1.30
|
#include <ql/methods/finitedifferences/operators/fdmornsteinuhlenbeckop.hpp>
Public Member Functions | |
| FdmOrnsteinUhlenbeckOp (const ext::shared_ptr< FdmMesher > &mesher, ext::shared_ptr< OrnsteinUhlenbeckProcess > p, ext::shared_ptr< YieldTermStructure > rTS, Size direction=0) | |
| Size | size () const override |
| void | setTime (Time t1, Time t2) override |
| Time \(t1 <= t2\) is required. More... | |
| Array | apply (const Array &r) const override |
| Array | apply_mixed (const Array &r) const override |
| Array | apply_direction (Size direction, const Array &r) const override |
| Array | solve_splitting (Size direction, const Array &r, Real s) const override |
| Array | preconditioner (const Array &r, Real s) const override |
| std::vector< SparseMatrix > | toMatrixDecomp () const override |
| Public Member Functions inherited from FdmLinearOpComposite | |
| virtual Size | size () const =0 |
| virtual void | setTime (Time t1, Time t2)=0 |
| Time \(t1 <= t2\) is required. More... | |
| virtual Array | apply_mixed (const Array &r) const =0 |
| virtual Array | apply_direction (Size direction, const Array &r) const =0 |
| virtual Array | solve_splitting (Size direction, const Array &r, Real s) const =0 |
| virtual Array | preconditioner (const Array &r, Real s) const =0 |
| virtual std::vector< SparseMatrix > | toMatrixDecomp () const |
| SparseMatrix | toMatrix () const override |
| Public Member Functions inherited from FdmLinearOp | |
| virtual | ~FdmLinearOp ()=default |
| virtual array_type | apply (const array_type &r) const =0 |
| virtual SparseMatrix | toMatrix () const =0 |
Private Attributes | |
| const ext::shared_ptr< FdmMesher > | mesher_ |
| const ext::shared_ptr< OrnsteinUhlenbeckProcess > | process_ |
| const ext::shared_ptr< YieldTermStructure > | rTS_ |
| const Size | direction_ |
| TripleBandLinearOp | m_ |
| TripleBandLinearOp | mapX_ |
Additional Inherited Members | |
| Public Types inherited from FdmLinearOp | |
| typedef Array | array_type |
Definition at line 39 of file fdmornsteinuhlenbeckop.hpp.
| FdmOrnsteinUhlenbeckOp | ( | const ext::shared_ptr< FdmMesher > & | mesher, |
| ext::shared_ptr< OrnsteinUhlenbeckProcess > | p, | ||
| ext::shared_ptr< YieldTermStructure > | rTS, | ||
| Size | direction = 0 |
||
| ) |
|
overridevirtual |
Implements FdmLinearOpComposite.
Definition at line 56 of file fdmornsteinuhlenbeckop.cpp.
Time \(t1 <= t2\) is required.
Implements FdmLinearOpComposite.
Definition at line 60 of file fdmornsteinuhlenbeckop.cpp.
Implements FdmLinearOp.
Definition at line 66 of file fdmornsteinuhlenbeckop.cpp.
Implements FdmLinearOpComposite.
Definition at line 70 of file fdmornsteinuhlenbeckop.cpp.
Implements FdmLinearOpComposite.
Definition at line 74 of file fdmornsteinuhlenbeckop.cpp.
Implements FdmLinearOpComposite.
Definition at line 83 of file fdmornsteinuhlenbeckop.cpp.
Implements FdmLinearOpComposite.
Definition at line 92 of file fdmornsteinuhlenbeckop.cpp.
|
overridevirtual |
Reimplemented from FdmLinearOpComposite.
Definition at line 96 of file fdmornsteinuhlenbeckop.cpp.
|
private |
Definition at line 59 of file fdmornsteinuhlenbeckop.hpp.
|
private |
Definition at line 60 of file fdmornsteinuhlenbeckop.hpp.
|
private |
Definition at line 61 of file fdmornsteinuhlenbeckop.hpp.
|
private |
Definition at line 62 of file fdmornsteinuhlenbeckop.hpp.
|
private |
Definition at line 64 of file fdmornsteinuhlenbeckop.hpp.
|
private |
Definition at line 64 of file fdmornsteinuhlenbeckop.hpp.


I'm A Celebrity: Fans beg for Jane McDonald to meet Adele on the bridge
They think the star should surprise her when she's booted out!
by Nancy BrownAfter Adele Roberts revealed that her luxury item was a photograph of Jane McDonald, I'm A Celebrity fans have begged bosses to fly the cruise ship singer out to Australia.
They predict Adele will be the first to leave the camp – and they want Jane to meet her at the end of the bridge when she goes.
Jane has said that she was "absolutely thrilled" to discover she was Adele's luxury item, so it appears she's up for the trip.
Read more: I'm A Celebrity viewers complain that there are too many ads in the show
Speaking on This Morning, Jane said she'd never met Adele but added: "I want to now."
Now viewers are even talking about starting a petition to get Jane into the jungle.
And, not content with her entering the jungle, fans want Jane to surprise Adele on the bridge when she leaves the show.
Last night, viewers saw Adele clash with fellow campmate Roman Kemp over her love of the star.
After he called it "random", Adele hit back.
Read more: Meghan Markle is voted 2019's "most powerful dresser"
"Why though? I don’t understand," she said. "If I had brought in a picture of Ru-Paul would you have the same reaction?"
 It’s like you’re saying: 'Why would I like Jane McDonald?'"
Viewers, too, were perplexed at Adele's luxury item. One called the photograph of Jane "ridiculous".
Head to our Facebook page @EntertainmentDailyFix and let us know what you think of our story.


Bind parameters
FQL supports the usage of bind parameters, thus allowing to separate the query text from literal values used in the query. It is good practice to separate the query text from the literal values because it allows to reuse same query in different scenarios.
Using bind parameters, the meaning of an existing query cannot be changed. Bind parameters can be used everywhere in a query where literals can be used.
The syntax for bind parameters is @name
where @
signifies that this is a bind parameter and name is the actual parameter name. Parameter names must start with any of the letters a to z (upper or lower case) or a digit (0 to 9), and can be followed by any letter, digit or the underscore symbol.
The bind parameter values need to be passed along with the query when it is executed, but not as part of the query text itself.
Bind parameters that are declared in the query must also be passed a parameter value, or the query will fail. Specifying parameters that are not declared in the query will result in an error too.
Bind variables represent a value like a string, and must not be put in quotes in the FQL code:
If you need to do string processing in the query, you need to use string functions to do so:
Bind parameters can be used for square bracket notation for sub-attribute access. They can also be chained:


Large $18
Medium $15
Small $12
Hawaiian smoked ham, sweet maple bacon, pineapple, cheddar and mozzarella cheese, and our famous homemade pizza sauce.
Our signature spicy buffalo sausage, onions, green peppers, black olives, fresh tomato, and fresh mozzarella.
Savory Steak, onions, mushrooms, roasted green and red peppers, fresh garlic, black olives, and mozzarella and Parmesan cheese.
Chunky salsa sauce, lean ground beef, onions and mozzarella cheese baked in the oven and then loaded with fresh sour cream, lettuce, tomatoes, and cheddar cheese.
Lots of meat: Ham, Bacon, Pepperoni, and Mozzarella, with another layer of Pepperoni, Spicy Sausage, Onion and Fresh Garlic. Angioplasty not included.
Sausage, bacon, onions, sauerkraut with tons of fresh cheese.
Lots of Mozzarella, Cheddar, Parmesan, Provolone, Gouda, and Feta cheeses. Delish.
Fresh organic and locally grown vegetables: green peppers, onions, tomatoes, carrots, eggplant, mushrooms, black and green olives, and basil leaf swimming with our delicious fresh garden garlic tomato sauce and made with choice of mozzarella or soy cheese.


>
Our Analysis sows that there is no clear relationship between cloudiness and latitude. City stations determine the cloudiness in subjective terms, which leads to concentration of data arount 0%, 20%, 40%,75% and 100% The University of Wyoming has studied cloudiness observations using less subjective methods and produced maps of cloudiness for different months of the year.


mongoose-data-seed
Seed mongodb with data using mongoose models
Install
npm install --save mongoose-data-seed
md-seed init
md-seed init
will ask you to choose a folder for your seeders.
md-seed init
will create the seeders
folder, generate md-seed-config.js
and update your package.json
.
Use
Generate seeder file
md-seed g users
Run all seeders
md-seed run
Or run specific seeders
md-seed run users posts comments
Options
Drop the database before seeding
md-seed run --dropdb
Seeder Example
import { Seeder } from 'mongoose-data-seed';
import { User } from '../server/models';
const data = [
{
email<EMAIL_ADDRESS>password: '123123',
passwordConfirmation: '123123',
isAdmin: true
},
{
email<EMAIL_ADDRESS>password: '123123',
passwordConfirmation: '123123',
isAdmin: false
}
];
class UsersSeeder extends Seeder {
async shouldRun() {
return User.countDocuments()
.exec()
.then(count => count === 0);
}
async run() {
return User.create(data);
}
}
export default UsersSeeder;
md-seed-config.js
md-seed
expecting to get 3 values from md-seed-config.js
seedersList
- A key/value list of all your seeders,md-seed
will run your seeders as they ordered in the list.connect
- Connect to mongodb implementation (should return promise).dropdb
- Drop/Clear the database implementation (should return promise).
Example
import mongoose from 'mongoose';
import Users from './seeders/users.seeder';
import Posts from './seeders/posts.seeder';
import Comments from './seeders/comments.seeder';
const mongoURL = process.env.MONGO_URL || 'mongodb://localhost:27017/dbname';
/**
* Seeders List
* order is important
* @type {Object}
*/
export const seedersList = {
Users,
Posts,
Comments,
};
/**
* Connect to mongodb implementation
* @return {Promise}
*/
export const connect = async () => await mongoose.connect(mongoURL, { useNewUrlParser: true });
/**
* Drop/Clear the database implementation
* @return {Promise}
*/
export const dropdb = async () => mongoose.connection.db.dropDatabase();
Configurations
mongoose-data-seed
configurations will get loaded from the mdSeed
field in your package.json
file.
| Field | Default Value | Description |
|---|---|---|
seedersFolder |
'./seeders' |
Path for your seeders-folder, seeders will be generated into this folder. |
customSeederTemplate |
undefined |
Path to a custom template file to generate your seeders from. |
Examples
License
MIT


Creative Studios
Design and development for websites, print and flash banners, flyers, social media covers, analytics and user experience tracking.
DownloadAirlanda Museum
Design and development for websites, print and flash banners, flyers, social media covers, analytics and user experience tracking.


ANALYZE collects statistics about the contents of tables in the database, and stores the results in the pg_statistic system catalog. Subsequently, the query planner uses these statistics to help determine the most efficient execution plans for queries.
With no parameter, ANALYZE examines every table in the current database. With a parameter, ANALYZE examines only that table. It is further possible to give a list of column names, in which case only the statistics for those columns are collected.
Enables display of progress messages.
The name (possibly schema-qualified) of a specific table to analyze. If omitted, all regular tables (but not foreign tables) in the current database are analyzed.
The name of a specific column to analyze. Defaults to all columns.
When VERBOSE is specified, ANALYZE emits progress messages to indicate which table is currently being processed. Various statistics about the tables are printed as well.
Foreign tables are analyzed only when explicitly selected. Not all foreign data wrappers support ANALYZE. If the table's wrapper does not support ANALYZE, the command prints a warning and does nothing.
In the default PostgreSQL configuration, the autovacuum daemon (see Section 23.1.6) takes care of automatic analyzing of tables when they are first loaded with data, and as they change throughout regular operation. When autovacuum is disabled, it is a good idea to run ANALYZE periodically, or just after making major changes in the contents of a table. Accurate statistics will help the planner to choose the most appropriate query plan, and thereby improve the speed of query processing. A common strategy for read-mostly databases is to run VACUUM and ANALYZE once a day during a low-usage time of day. (This will not be sufficient if there is heavy update activity.)
ANALYZE requires only a read lock on the target table, so it can run in parallel with other activity on the table.
The statistics collected by ANALYZE usually include a list of some of the most common values in each column and a histogram showing the approximate data distribution in each column. One or both of these can be omitted if ANALYZE deems them uninteresting (for example, in a unique-key column, there are no common values) or if the column data type does not support the appropriate operators. There is more information about the statistics in Chapter 23.
For large tables, ANALYZE takes a random sample of the table contents, rather than examining every row. This allows even very large tables to be analyzed in a small amount of time. Note, however, that the statistics are only approximate, and will change slightly each time ANALYZE is run, even if the actual table contents did not change. This might result in small changes in the planner's estimated costs shown by EXPLAIN. In rare situations, this non-determinism will cause the planner's choices of query plans to change after ANALYZE is run. To avoid this, raise the amount of statistics collected by ANALYZE, as described below.
The extent of analysis can be controlled by adjusting the default_statistics_target configuration variable, or on a column-by-column basis by setting the per-column statistics target with ALTER TABLE ... ALTER COLUMN ... SET STATISTICS (see ALTER TABLE). The target value sets the maximum number of entries in the most-common-value list and the maximum number of bins in the histogram. The default target value is 100, but this can be adjusted up or down to trade off accuracy of planner estimates against the time taken for ANALYZE and the amount of space occupied in pg_statistic. In particular, setting the statistics target to zero disables collection of statistics for that column. It might be useful to do that for columns that are never used as part of the WHERE, GROUP BY, or ORDER BY clauses of queries, since the planner will have no use for statistics on such columns.
The largest statistics target among the columns being analyzed determines the number of table rows sampled to prepare the statistics. Increasing the target causes a proportional increase in the time and space needed to do ANALYZE.
One of the values estimated by ANALYZE is the number of distinct values that appear in each column. Because only a subset of the rows are examined, this estimate can sometimes be quite inaccurate, even with the largest possible statistics target. If this inaccuracy leads to bad query plans, a more accurate value can be determined manually and then installed with ALTER TABLE ... ALTER COLUMN ... SET (n_distinct = ...) (see ALTER TABLE).
If the table being analyzed has one or more children, ANALYZE will gather statistics twice: once on the rows of the parent table only, and a second time on the rows of the parent table with all of its children. This second set of statistics is needed when planning queries that traverse the entire inheritance tree. The autovacuum daemon, however, will only consider inserts or updates on the parent table itself when deciding whether to trigger an automatic analyze for that table. If that table is rarely inserted into or updated, the inheritance statistics will not be up to date unless you run ANALYZE manually.
If the table being analyzed is completely empty, ANALYZE will not record new statistics for that table. Any existing statistics will be retained.


Contents
/usr/lib/xulrunner-27.0.1
Xulrunner is a runtime environment for XUL applications, and forms the major part of the Mozilla codebase. In particular, it provides the Gecko engine together with pkgconfig files so that other applications can find and use it.
This package is known to build and work properly using an LFS-7.5 platform.
Download (HTTP): http:///ftp.mozilla.org/pub/mozilla.org/firefox/releases/27.0.1/source/firefox-27.0.1.source.tar.bz2
Download (FTP): ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/27.0.1/source/firefox-27.0.1.source.tar.bz2
Download MD5 sum: c8feb2c55294aa679e8755ac24844933
Download size: 124 MB
Estimated disk space required: 3.5 GB (93 MB installed)
Estimated build time: 34 SBU
alsa-lib-<IP_ADDRESS>, GTK+-2.24.22, Zip-3.0 and UnZip-6.0
libevent-2.0.21, libvpx-1.3.0, NSPR-4.10.3, NSS-3.15.4, SQLite-<IP_ADDRESS> and yasm-1.2.0
If you don't install recommended dependencies, then internal copies of those packages will be used. They might be tested to work, but they can be out of date or contain security holes.
cURL-7.35.0, dbus-glib-0.102, Doxygen-1.8.6, gst-plugins-good-0.10.31 and gst-ffmpeg-0.10.13, Hunspell, libnotify-0.7.6, startup-notification-0.12, Wget-1.15 and Wireless Tools-29
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/xulrunner
The configuration of Xulrunner is
accomplished by creating a mozconfig
file containing the desired configuration options. A default
mozconfig
is created below. To see
the entire list of available configuration options (and an
abbreviated description of each one), issue ./configure --help. You should
review the entire file and comment or uncomment options as
necessary.
cat > mozconfig << "EOF" # If you have a multicore machine, firefox will now use all the cores by # default. Exceptionally, you can reduce the number of cores, e.g. to 1, # by uncommenting the next line and setting a valid number of CPU cores. #mk_add_options MOZ_MAKE_FLAGS="-j1" # If you have installed DBus-Glib comment out this line: ac_add_options --disable-dbus # If you have installed wireless-tools comment out this line: ac_add_options --disable-necko-wifi # If you have installed libnotify comment out this line: ac_add_options --disable-libnotify # GStreamer is necessary for H.264 video playback in HTML5 Video Player; # to be enabled, also remember to set "media.gstreamer.enabled" to "true" # in about:config. If you have installed GStreamer comment out this line: ac_add_options --disable-gstreamer # Uncomment these lines if you have installed optional dependencies: #ac_add_options --enable-system-hunspell #ac_add_options --enable-startup-notification # Uncomment this line if you compiled Cairo with --enable-tee switch and want # to use it instead of the bundled one: #ac_add_options --enable-system-cairo # If you have not installed Yasm then uncomment this line: #ac_add_options --disable-webm # Comment out following options if you have not installed # recommended dependencies: ac_add_options --enable-system-sqlite ac_add_options --with-system-libevent ac_add_options --with-system-libvpx ac_add_options --with-system-nspr ac_add_options --with-system-nss # It is recommended not to touch anything below this line ac_add_options --prefix=/usr ac_add_options --enable-application=xulrunner ac_add_options --disable-crashreporter ac_add_options --disable-installer ac_add_options --disable-updater ac_add_options --disable-debug ac_add_options --disable-tests ac_add_options --disable-mochitest ac_add_options --enable-optimize ac_add_options --enable-strip ac_add_options --enable-install-strip ac_add_options --enable-system-ffi ac_add_options --enable-system-pixman ac_add_options --enable-shared-js ac_add_options --with-pthreads ac_add_options --with-system-bz2 ac_add_options --with-system-jpeg ac_add_options --with-system-png ac_add_options --with-system-zlib mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/xulrunner-build-dir EOF
Xulrunner's build uses large amount of memory. On some systems, the RAM/Swap combination needs 6 GB available.
Build Xulrunner by issuing the following commands:
If you are compiling Xulrunner
in chroot, prepend SHELL=/bin/bash
to
the first make command below.
make -f client.mk
This package does not come with a test suite.
Install, as the root
user:
make -C xulrunner-build-dir install && mkdir -pv /usr/lib/mozilla/plugins && rm -rf /usr/lib/xulrunner-27.0.1/plugins && ln -sv ../mozilla/plugins /usr/lib/xulrunner-27.0.1 && chmod -v 755 /usr/lib/xulrunner-devel-27.0.1/sdk/bin/xpcshell && for library in libmozalloc.so libmozjs.so libxul.so; do ln -sfv ../../../xulrunner-27.0.1/$library \ /usr/lib/xulrunner-devel-27.0.1/sdk/lib/$library ln -sfv xulrunner-27.0.1/$library /usr/lib/$library done ln -sfv ../xulrunner-devel-27.0.1/sdk/bin/run-mozilla.sh \ /usr/lib/xulrunner-27.0.1 ln -sfv ../xulrunner-devel-27.0.1/sdk/bin/xpcshell \ /usr/lib/xulrunner-27.0.1
make -f client.mk
...: Mozilla products are packaged to allow the use
of a configuration file which can be used to pass the configuration
settings to the configure command. make uses the client.mk
file to get initial configuration and
setup parameters.
ln -sfv ../mozilla/plugins
...: Some packages will install browser plugins
into /usr/lib/mozilla/plugins
.
Creating this symlink Xulrunner
keeps additional plugins in a common directory.
for library in libmozalloc.so
libmozjs.so libxul.so ... : The libraries shipped
with this package are installed into /usr/lib/xulrunner-27.0.1
which means they will
not be found at runtime. These commands make relative symbolic
links to the shared libraries from /usr/lib
. They will also replace duplicate
libraries that are installed in /usr/lib/xulrunner-devel-27.0.1/sdk/lib
with
symlinks in order to save some space.
ln -sfv
../xulrunner-devel-27.0.1/sdk/bin/ ... The
run-mozilla.sh
and xpcshell
files have been moved in this version,
but the code which installs Firefox (when linked to xulrunner) was not
updated. These symlinks allowFirefox to install when built against
Xulrunner.
/usr/lib/xulrunner-27.0.1
Last updated on 2014-02-26 13:47:01 -0800


Close (X)
Select this senseBox
You have to select a senseBox!
Close (X)
This senseBox is already selected.