Part of clickndrag View In Hierarchy
Click'n'Drag main screen class. A Display instance serves as the root Plane in clickndrag. Additional attributes: Display.display The Pygame display Surface Display.dragged_plane The currently dragged plane Display.key_sensitive_plane The Plane to be notified of Pygame keyboard events. Initially None. Display.mouse_buttons A dict mapping Pygame mouse button numbers to description strings.
| Method | __init__ | Calling pygame.display.set_mode(). |
| Method | key_sensitive | Register the Plane given as sensitive to Pygame keyboard events. |
| Method | process | Process a pygame event list. |
| Method | render | Call base class render(), then blit to the Pygame display if something has changed. |
Inherited from Plane:
| Method | sub | Remove the Plane given from its current parent and add it as a subplane of this Plane. |
| Method | remove | Remove subplane by name or Plane instance. |
| Method | remove_all | Convenience method to call Plane.remove() for all subplanes. |
| Method | __getattr__ | Access subplanes as attributes. |
| Method | get_plane_at | Return the (sub)plane and the succeeding parent coordinates at the given coordinates. |
| Method | update | Update hook. |
| Method | clicked | Called when there is a MOUSEDOWN event on this plane. |
| Method | dropped_upon | If a plane is dropped on top of this one, call dropped_upon_callback() and conditionally grab it. |
| Method | destroy | Remove this Plane from the parent plane, remove all subplanes and delete all pygame Surfaces. |
| Method | sync | Save the Plane given as master Plane and the position offset to that Plane for position synchronisation in Plane.update(). |
| Method | unsync | Remove the position synchronisation to the sync master Plane. |
| Method | __repr__ | Readable string representation. |
Calling pygame.display.set_mode(). If fullscreen is True, the display will use the full screen.
Register the Plane given as sensitive to Pygame keyboard events. Display will call plane.keydown(KEYDOWN_event) when a key is pressed and the Plane has a parent. plane.activate() will be called when the plane is registered. plane.deactivate() will be called on the old plane.
Call base class render(), then blit to the Pygame display if something has changed. If force is True, blit to Pygame display regardless.


Ballerina 0.975.0 is an iteration for Ballerina 0.970.0, which was released previously. This release has significant improvements to the standard library and IDE support. Apart from that, there are also some improvements made to the language syntax. Introduction of new BALO format has improvements on compilation time as well.
Previously [x .. y]
syntax was used to represents an integer range in a foreach
statement. This syntax is now x ... y
in Ballerina 0.975.0.
Old syntax (0.970.1)
foreach val in [1 .. 5] {
io:println(val);
}
New syntax
foreach val in 1 ... 5 {
io:println(val);
}
The record type definition syntax now requires a record
keyword. The syntax used previously also works on Ballerina 0.975.0, but this will not be supported in future releases.
Old syntax (0.970.1)
type Person {
string name,
int age,
};
New syntax
type Person record {
string name,
int age,
};
The next
statement is renamed to continue
.
Old syntax (0.970.1)
while (i < 5) {
i = i + 1;
if (i == 2) {
next;
}
}
New syntax
while (i < 5) {
i = i + 1;
if (i == 2) {
continue;
}
}
base16
and base64
based literal values are the two types of literal values supported for blob. The base16
type has a base 16 based character sequence and the base64
type has a base 64 based character sequence or padded character sequence.
New syntax
blob a = base16 `aaabcfccad afcd34 1a4bdf abcd8912df`;
blob b = base64 `aaabcfccad afcd3 4bdf abcd ferf =`;
Now variables cannot be shadowed and are required to have unique names. The only exception is in XML namespaces that already have variable shadowing support.
Old syntax (0.970.1)
string name;
type User object {
private {
string name;
}
function setName(string name) {
self.name = name;
}
};
function print(string name) {
}
New syntax
string name;
type User object {
private {
string userName;
}
function setName(string n) {
self.userName = n;
}
};
function print(string n) {
}
@http:WebSocketServiceConfig {
path: "/error/ws"
}
service<http:WebSocketService> errorService bind { port: 9090 } {
onError(endpoint ep, error err) {
io:println(string `error occurred: {{err.message}}`);
}
}
response = clientEP->post("/test", xml `<color>Red</color>`);
response = clientEP->post("/test", { name: "apple", color: "red" });
_ = caller -> respond("Hello World!");
@http:ServiceConfig {
basePath:"/page",
host:"abc.com"
}
http:CircuitBreakerClient cbClient = check <http:CircuitBreakerClient>clientEP.getCallerActions();
if (counter == 2) {
cbClient.forceOpen();
}
Bug fixing was conducted as part of multiple release iterations based on the previous Ballerina 0.970.1 release. Please refer to the following GitHub milestones for bug fixes.
You can download the Ballerina distributions, try samples, and read the documentation at https://ballerina.io. You can also visit the Quick Tour to get started. We encourage you to report issues, improvements, and suggestions at the Ballerina Github Repository.


hilary_mason_data hilary_mason_data-2010 knowledge-graph by maker-knowledge-mining
1 hilary mason data-2010-11-10-Machine Learning: A Love Story
Introduction: Machine Learning: A Love Story Posted: November 10, 2010 | Author: hilary | Filed under: academics , blog , Presentations | Tags: conferences , machinelearning , presentations , video | 27 Comments » The video from my keynote at Strange Loop 2010 is up! You can watch the video here: Machine Learning: A Love Story The original abstract: Machine learning has come a long way in recent years — from a long-marginalized field so old it still has the word “machine” in the name, to the last, best hope for making sense of our massive flows of data. The art of ‘data science’ is asking the right questions; the answers are generally trivial or impossible. This talk will focus more on questions than on answers. I’ll give a brief history of the field with a focus on the fundamental math and algorithmic tools that we use to address these kinds of problems, then walk through several descriptive and predictive scenarios. Finally, I’ll show one example syst
2 hilary mason data-2010-09-04-Twitter Succeeds Because it Fails
Introduction: Twitter Succeeds Because it Fails Posted: September 4, 2010 | Author: hilary | Filed under: blog | Tags: failure , twitter | 9 Comments » How can twitter be so popular and successful if it’s down all the time ? We base statements like this on the assumption that quality of a web application maps linearly to the application’s stability. This is obviously true for most sites most of the time, but things get interesting at the edge where rare, unpredictable failure actually enables more complex human interactions around the service. Unlike e-mail, twitter etiquette doesn’t demand that you read or reply to every message from every person you follow (or who follows you). Combine that lightweight social touch with occasional technical issues and human communication patterns, and we start to see some interesting behavior. Twitter’s lack of reliability as a platform allows us to use the technical failings to mask our own social imperfections . How often have
3 hilary mason data-2010-08-23-New York Times: Reinventing E-mail, One Message at a Time
Introduction: New York Times: Reinventing E-mail, One Message at a Time Posted: August 23, 2010 | Author: Hilary Mason | Filed under: Media | Tags: code , email , hacking , newyorktimes | Leave a comment Âť Nick Bilton did a writeup of my homegrown e-mail scripts in the New York Times!
4 hilary mason data-2010-08-15-Should you attend Hadoop World? Yes.
Introduction: Should you attend Hadoop World? Yes. Posted: August 15, 2010 | Author: hilary | Filed under: blog | Tags: conferences , hadoop , hadoopworld , questions | 2 Comments » I received this e-mail via my contact form : I just discovered you via a Google search because I’m highly considering attending this year’s upcoming Hadoop World in NYC. I appreciate your page that you wrote up after attending last year’s event. I’m wondering if you feel that Hadoop has enough momentum and support to be a “here to stay” technology worth investing one’s time and education into, or is it possible it might fade and be deprecated by something else as the need for big data analysis continues to grow? … I’ve had a few similar conversation with people lately, and I thought posting my response might help others making similar decisions. The e-mail is referencing my post from last year’s hadoop world NYC . Thanks for reaching out. There are several questions in your messa
5 hilary mason data-2010-07-26-A quick twitter bot, @bc l
Introduction: A quick twitter bot, @bc_l Posted: July 26, 2010 | Author: hilary | Filed under: blog , projects | Tags: bc , bot , command line , hack , script , twitter , unix | 5 Comments » Several months ago, on a whim inspired by an off-hand comment from Chris , I created a bot to bring the wonders of the Unix bc language to twitter. bc is a command-line calculator that’s fast and has the capacity to do some fairly complex math. Try it out on the command line: echo '100 / 10' | bc -l …Or by sending a direct message to bc_l (if you follow bc_l it will follow you back within a few hours). I released the code under GPL, and it’s available on github: http://github.com/hmason/tweetbc . John Cook mentions the bot and makes some great observations in his post three surprises with bc .
6 hilary mason data-2010-06-24-Conference: Web2 Expo SF
Introduction: Conference: Web2 Expo SF Posted: June 24, 2010 | Author: hilary | Filed under: academics , blog , Presentations | Tags: bitly , conference , data , presentation , realtime , web2expo | 6 Comments » I gave a talk called A Data-driven Look at the Realtime Web Ecosystem at the Web2Expo SF conference in May in San Francisco. I attempted to highlight some of the interesting facets of the bit.ly data set, and it appeared to be well-received (showing up on TechCrunch , ZDNet , and a few other places). I attended the full conference, and it was great. The attendees were extremely international and I met a ton of fascinating people. I’m still getting a couple of e-mail requests per week for my slides and materials, so they’re posted below for posterity. The slides: A Data-driven Look at the Realtime Web View more presentations from Hilary Mason . And the video: As always, I welcome your questions or comments.
7 hilary mason data-2010-05-27-E-mail automation, questions and answers
Introduction: E-mail automation, questions and answers Posted: May 27, 2010 | Author: hilary | Filed under: blog , projects | Tags: email , ignitenyc | 66 Comments » Welcome! I’ve gotten several hundred e-mails about my e-mail management code. I do want to share it as soon as possible. Here are the answers to the most common questions. Why separate scripts? My philosophy is based on the unix command-line tool model; Each script should be simple and useful alone, but when combined together they become extremely powerful. Why don’t we have the code yet?! I had no idea the talk would be shared beyond the couple hundred people in the audience or that it would be so popular! I started my position at bit.ly the same day I gave that IgniteNYC presentation, and I also have some other awesome projects that are competing for time. I have to admit that the trained classifiers are all based on my personal data and were also trained mostly through tweaking in ipython.
8 hilary mason data-2010-04-18-Stop talking, start coding
Introduction: Stop talking, start coding Posted: April 18, 2010 | Author: hilary | Filed under: blog | 65 Comments » I read Out of the Loop in Silicon Valley in the NYTimes today, which explores how and why women are under-repesented in tech startups. From the number of retweets I saw and the clicks through bit.ly links (12,579 at the time of this posting), it’s been getting a lot of attention. There are some very strong, compelling themes in this article. Computer science and engineering to have an “image problem”; the way we teach math to elementary school students is horrible and turns way too many away. I don’t want to nitpick the article, but there are a few statements that reinforce the very damaging stereotypes that the article sets out to dispel. “When women take on the challenges of an engineering or computer science education in college, some studies suggest that they struggle against a distinct set of personal, psycho-social issues… Even women who soldier
9 hilary mason data-2010-03-14-Art and Technology: Seven on Seven
Introduction: Art and Technology: Seven on Seven Posted: March 14, 2010 | Author: hilary | Filed under: blog , Presentations | Tags: art , hack , museum | 1 Comment » I’m honored and excited to be participating in Rhizome’s new conference Seven on Seven , where technologists and artists are paired up to create a completely new project in 24-hours. The formal description: Seven on Seven will pair seven leading artists with seven game-changing technologists in teams of two, and challenge them to develop something new –be it an application, social media, artwork, product, or whatever they imagine– over the course of a single day. The seven teams will unveil their ideas at a one-day event at the New Museum on April 17th. I really love this idea because the time constraints and the inherent discomfort of the situation (working in an unfamiliar space with an unfamiliar person) makes it likely that we’ll be able to accomplish something creative and unexpected. Or
10 hilary mason data-2010-02-16-Conference: Search and Social Media 2010
Introduction: Conference: Search and Social Media 2010 Posted: February 16, 2010 | Author: hilary | Filed under: academics , blog , Presentations | Tags: algorithms , conference , research , search | 2 Comments » I recently attended the Third Annual Workshop on Search and Social Media , an academic workshop with very strong industry participation. The workshop was packed, and had some of the most informative and interesting panel discussions I’ve seen (not counting the one I spoke on!). Daniel Tunkelang did a great job of writing up the specific presentations on his site and on the ACM blog , so I won’t attempt to re-create the presentations line by line at this late date. Rather, I’d like to highlight a few open problems and research questions that came out of the discussions that I hope to see developed in the next year. Social search consists of a set of problems including (but hardly limited to) search of social content like status updat
11 hilary mason data-2010-01-03-SMS to e-mail gateway: The SMS doorbell
Introduction: SMS to e-mail gateway: The SMS doorbell Posted: January 3, 2010 | Author: hilary | Filed under: blog , projects | Tags: code , nycresistor , python , textmarks | 5 Comments » Over at NYC Resistor , it was getting cold, and we needed a doorbell so visitors wouldn’t be stranded outside when the building was locked. A standard wireless model didn’t work reliably (the space is on the fifth floor, just out of range), so various members generally resorted to writing their phone numbers on a sign on the front door when they were expecting guests. Since almost everyone has a mobile phone already, and SMS-based solution seemed appropriate. In order to implement this we need two things: An SMS shortcode A system to notify when the shortcode is triggered It’s irritating and expensive to acquire your own shortcode, but there are several services that will allow you to use one in exchange for a small fee or advertisements in your messages. TextMarks is my


001 (ns datapackage-clj.core)
002
003 (defn foo
004 "I don't do a whole lot."
005 [x]
006 (println x "Hello, World!"))


Physics:
Newtonian, relativistic and quantum
Juan Camilo Espejo-Serna
Universidad de la Sabana
Plan
- Newtonian Physics
- Relativistic Physics
- Quantum Physics
- NOA
What does it mean to say that God does not play dice? ("Gott würfelt nicht")
- Every object will remain at rest or in uniform motion in a straight line unless compelled to change its state by the action of an external force.
(example: circular movement).
- For an externally applied force, the change in velocity depends on the mass of the object
F = ma2. (Ex. Free fall : initial height - ( g × time 2 ÷ 2))
- For every action (force) in nature there is an equal and opposite reaction (Ex: jumping on solid ground vs jumping on mud)
Law of universal gravitation
Gravitational force = G * (M1 * M2) / D2
Gravitational force =
Gravitational constant × mass1 × mass2 ÷ distancia2
Gravitational force =
Gravitational constant (6.67E-11 m3 s-2 kg-1) × mass1 (objeto uno) × mass2 (objeto dos) ÷ distance between the objects2
One of the main virtues of this view is its scope. The same laws that govern the movement of the planets, govern the movment of the simple board marker. There are no special rules, some for the sublunar, some for the supralunar.
There is one single set of laws to rule movement, one set to explain it, one law to to bring them all, and in the Newtonian Theory bind them.
Almost
Gravity does not quite behave
Why does the gravitational law work?
The question about gravity, the misterious action at a distance, remains.
Two key ideas:
- Laws of physics are the same for every observer
- The speed of light is constant
(Ignoring details about acceleration)
Part of what makes this physics philosophically interesting is that it defies our ordinary understanding of matter and thus has received a huge amount of attention in the media.
Basic idea: if the laws of physics always remain the same and the speed of light is constant, then space and time for two observers at different speeds is different.
(This is even weirder when acceleration and gravity come into play, but let's keep setting those issues aside.)
The idea that time and space are not the same regardless of frame of reference is deeply counterintuitive. Our intuition tends to favour the view that time and space are absolute.
Let us see this for time.
A bit more detail:
- Special relativity (no details)
- General relativity (gravity and acc)
Special relativity (1905) was first proposed by Einstein and needs no special maths; general relativity (1915) requires a way of dealing with acceleration and gravity and accordingly requires a stronger mathematical apparatus.
Intuitive formulation
- Special relativity
- If two frames of references differ only in their relative constante speed, physical phenomena behave the same.
- The speed of light is always constant, regardless of frame of reference. C = 3·108 m/s (aprox)
- General relativity
- Laws of physics are the same for every frame of reference.
- The effects of gravity and acceleration are indistinguishable
One of the main consequences of general relativity is that we can see gravity as a result of the existence of mass in space-time.
Gravitational waves happen when big masses cease to exist. They've been recently meassured with LIGO.
The idea of space-time can be intuitively understood as a two dimensional plane where gravity can be seen as the result of distortions in it.
- Facts
- Mathematical model
- Interpretation
Facts
Subatomic partices, on some occasions, behave like waves and, on other occasions, behave like particles.
Mathematical model
In order to account for the fact, a mathematical model of probability and waves is needed. The wave function is a representacion of the position, momentum or spin of a given particle. (In general, every meassurement in the system is given through a wave function.) Predictions in the system are the result of mathematical operations on wave functions.
Graphical representation of the wave function of the electrons in a hydrogen atom at different energy leves. (A brighter color represents a higher probability of finding an electron)
When meassured, the "cloud of possibilities" collapses into one point: the observed position of the electron.
(Compare this to the Rutherford model!)
Intepretation
The experimental results (facts) and the models (maths) do not however favour a specific interpretation. Many options are possible
Copenhague interpretation
A particles does not have a definite state before meassurement. When observed, the wave function collapses.
Wave function collapse: several Eigenstates possible reduce to one, ie, the observed one
Wave function: the mathematical descripcion of a system's quantum state.
Realist interpretation
Quantum theory is an incomplete theory. Einstein Podolsky Rosen (but more P than E and R):
The wave function is incomplete: the reason why the values for a given property are not known is that information is missing. There are unknown hidden variables
Bell's theorem: hidden variables are inconsistent with the results predicted by the theory
Separation: The state of a particle system does not depende on the state of other particles when they are distant enough in space.
Completeness: if a certain physical property in fact holds for one partide at a given time, then the state function for the combined system at that time should yield probability one for finding that the property does hold.
Separation: The state of a particle system does not depend on the state of other particles when they are distant enough in space.
Completeness: if a certain physical property in fact holds for one particle at a given time, then the state function for the combined system at that time should yield probability one for finding that the property does hold.
Completeness and separation are incompatible!
Non-local interpretation: the system is complete but there is no separation. (This goes against the claim that nothing can travel faster than light)
Multiverse interpretation: there is no collapse. Several states of the probability are actual, just that in parallel universes.
Instrumentalist interpretation: Nevermind those questions; let's keep playing with the LHC!.
NOA: the natural ontological attitude
Philosophy of science is as usefull to scientists as ornithology is to birds.
—Richard Feynman
The attitude, to let science stand on its own and to view it without the
support of philosophical isms, is what characterizes [the Natural Ontological Attitude]. (Fine 1986:9)
NOA: Our attitude towards science should be like our pre-reflective attitude towards the ordinary world. We accept the existence of objects like tables, chairs, clouds, trees and mountains, although we do not have a precise ways of defining them. They make up our world. NOA suggests: ditto for science.
But science has talked about ether, caloric, atoms, natural tendencies, quarks, spins, electrons, etc. How should we construe the ontological status of such entitites of the past and present science?
Para la próxima clase
- Suppe, Frederick (1979) La estructura de las teorías científicas. Editora Nacional: Madrid, España. Partes I, II (★) y III


ProTip! Updating your profile with your name, location, and a profile picture helps other GitHub users get to know you.
Web learning
HTML Updated 6 days ago


Money Play. Should Red redouble? If redoubled, should White take?
pips Red=134 White=68
(CorrectAnswer= 0/0, ErrorScore= 0)
Many would wait a roll here but winning backgammon is all about maximising your returns. This is a volatile position and a redouble from White's will be some way off even if things go well for him.
White's home board is a mess and that blot on his ace-point is very relevant to the decision-making. XG has this as just a blunder not to redouble and don't forget – some players will drop this despite it being an easy take because of the 66 pip lead.
White's home board is a mess and that blot on his ace-point is very relevant to the decision-making. XG has this as just a blunder not to redouble and don't forget – some players will drop this despite it being an easy take because of the 66 pip lead.
Cube analysis 2-ply cubeless equity +0.417 0.719 0.085 0.003 - 0.281 0.107 0.001 Cubeful equities: 1. No double +0.675 2. Double, pass +1.000 (+0.325) 3. Double, take +0.644 (-0.031) Proper cube action: No redouble, take (8.6%)


Build scrambled words into words. Type a letter to get started.
You've earned {{points}} points so far.
Try again.


Authorization is the process of deciding which Slack credentials (such as a bot token) should be available while processing a specific incoming event.
Custom apps installed on a single workspace can simply use the token
option at the time of App
initialization. However, when your app needs to handle multiple tokens, such as cases where it will be installed on multiple workspaces or needs access to more than one user token, the authorize
option should be used instead.
The authorize
option should be set to a function that takes an event source as its input, and should return a Promise for an object containing the authorized credentials. The source contains information about who and where the event is coming from using properties like teamId
(always available), userId
, conversationId
, and enterpriseId
.
The authorized credentials should also have a few specific properties: botToken
, userToken
, botId
(required for app to ignore messages from itself), and botUserId
. You can also include any other properties you’d like to make available on the context
.
You should always provide either one or both of the botToken
and userToken
properties. One of them is necessary to make helpers like say()
work. If they are both given, then botToken
will take precedence.
const app = new App({ authorize: authorizeFn, signingSecret: process.env.SLACK_SIGNING_SECRET });
// NOTE: This is for demonstration purposes only.
// All sensitive data should be stored in a secure database
// Assuming this app only uses bot tokens, the following object represents a model for storing the credentials as the app is installed into multiple workspaces.
const installations = [
{
enterpriseId: 'E1234A12AB',
teamId: 'T12345',
botToken: 'xoxb-123abc',
botId: 'B1251',
botUserId: 'U12385',
},
{
teamId: 'T77712',
botToken: 'xoxb-102anc',
botId: 'B5910',
botUserId: 'U1239',
},
];
const authorizeFn = async ({ teamId, enterpriseId }) => {
// Fetch team info from database. You could also set userToken instead.
const fetchAuthorizedTeam = new Promise((resolve, reject) => {
teamInfo[source.enterpriseId][source.teamId] !== undefined ?
Promise.resolve(teamInfo[source.enterpriseId][source.teamId]) :
Promise.reject();
});
const authorizedTeam = await fetchAuthorizedTeam;
return () => ({
botToken: authorizedTeam.botToken,
botId: authorizedTeam.botId,
botUserId: authorizedTeam.botUserId,
});
}


1 /* 2 * Copyright (c) 2014, Carnegie Mellon University. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. 10 * 2. Redistributions in binary form must reproduce the above copyright 11 * notice, this list of conditions and the following disclaimer in the 12 * documentation and/or other materials provided with the distribution. 13 * 3. Neither the name of the University nor the names of its contributors 14 * may be used to endorse or promote products derived from this software 15 * without specific prior written permission. 16 * 17 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 18 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 19 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 20 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 21 * HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 22 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 23 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 24 * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 25 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY 27 * WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 28 * POSSIBILITY OF SUCH DAMAGE. 29 */ 30 31 // Enable "developer mode" toggle 32 var DEVMODE_ENABLED = false; 33 34 // Enable the system diagram 35 var DIAGRAM_ENABLED = false; 36 37 // Enable the grading inteface 38 var GRADER_ENABLED = false; 39 40 // Optimize for display on paper? 41 var PAPER = true; 42 43 // Does a mousedown drag nodes? 44 var MOUSE_DRAGS = false;


Over the years, there have been all number of innovations, techniques, tools, tricks and fads purported to help you build better-quality applications more quickly - model-driven code generation, object-relational frameworks, IoC containers, unit testing, Scrum, Kanban, documenting everything, documenting nothing, pair programming - even industrial quantities of XML (in the case of the abomination that was SOAP). For me, though, one stands head and shoulders above all the rest, Test-Driven Development. If you only do one thing tomorrow that you aren’t doing today, choose TDD.
I came to the TDD party pretty late. Of course, I’d known all about unit testing for a long time, but I’d never actually seen it work, in terms of improving the speed or quality of application development. What I’d generally seen was that a conscientious newcomer to some team would write tests for new code they were working on, plus maybe a few other tests where they had to fix existing code. Those tests would be maintained for a period of time, before falling into (for want of a better word) disrepair, spending as much time failing as passing, and eventually being deleted or ignored. When I first came into a TDD environment, it opened my eyes to how to make proper use of automated tests, and when I look back at the times before I used TDD, I see nothing but missed opportunities to build better software.
I’ve done TDD with JUnit, ScalaTest, PyTest, Nose and Cucumber, and it works well with any and all of them. I don’t think the choice of tools is especially important - just pick the ones that work for you and use them. Even if you’re still writing programs in COBOL for mainframes, I’m sure there are options out there.
I don’t think I would have attempted +F if I wasn’t already doing TDD in my day job. A processor is basically a large collection of instructions which all operate on the same global state. Those instructions can then be combined in an infinite number of permutations, where the state of a single bit in a single register can cause execution to take a completely different path. Butterflies flap their wings at every step along the way.
I shuddered at the thought of having to debug a problem in some large Z80 program (i.e. Match Day II) without having confidence that the individual processor operations were working correctly in isolation.
The only way to tackle it was one operation at a time, writing tests based on what the Z80 User Manual specified, writing the code for the operation, then moving on to the next. Dull, yes, but it’s the only way I could see of gaining any traction. As it is, having taken the TDD approach, the major problems which stopped programs from working outright have been reasonably rare, obvious and easy to debug and fix.
By now, you may have read about my valiant but doomed attempt to write +F in Python. I’ll confess that the thought of having to start again from scratch did make me think twice about what I was doing, but the choice was made easier by the one thing I had in my favour - a good set of tests for all of the processor emulation. And, given that I hadn’t got much beyond that part (aside from a prototype display that showed just how slow the emulator was), that meant I had a good set of tests for more or less everything that I needed to rewrite. Admittedly, those tests were in Python’s Nose framework, but picking up on something else I’d learned over the previous year or two, a typical test looked like this one:
def test_and_a_with_other_reg_giving_zero_result(self):
# given
self.given_register_contains_value('a', 0b10101010)
self.given_register_contains_value('b', 0b01010101)
self.given_next_instruction_is(0xa0)
# when
self.processor.execute()
# then
self.assert_register('a').equals(0b00000000)
self.assert_register('b').equals(0b01010101)
self.assert_flag('s').is_reset()
self.assert_flag('z').is_set()
self.assert_flag('h').is_set()
self.assert_flag('p').is_set()
self.assert_flag('n').is_reset()
self.assert_flag('c').is_reset()
In other words, it read sort of like a mini-DSL. A bit of judicious search-and-replace meant that I could port tests like these easily to an equivalent in ScalaTest like this:
"and <reg>" should "calculate a zero result when a and <reg> have no shared bits" in new Machine {
// given
registerContainsValue("a", binary("10101010"))
registerContainsValue("b", binary("01010101"))
nextInstructionIs(0xa0)
// when
processor.execute()
// then
registerValue("a") shouldBe binary("00000000")
registerValue("b") shouldBe binary("01010101")
flag("s").value shouldBe false
flag("z").value shouldBe true
flag("h").value shouldBe true
flag("p").value shouldBe true
flag("n").value shouldBe false
flag("c").value shouldBe false
flag("f3").value shouldBe false
flag("f5").value shouldBe false
}
All I then had to do was write the implementation of the DSL (easy enough), and then I had a full set of tests available from the outset, against which I could code the Java version of +F. Class-by-class, I converted the tests and then wrote the code to pass them, and in little over a month I was back to the same point I’d reached in Python without too much effort. Full-on TDD to the rescue!
Of course, it would be out of character if the faint glimmer of success I saw in the distance wasn’t subsequently extinguished by an act of stupidity, laziness, or (in this case) both.
Processor emulation isn’t the only complex thing I had to tackle when writing +F. Tape loading was another
tricky area, and emulating it properly is surprisingly fiddly. There’s a remarkably well-documented specification of the TZX emulated tape format, and in theory all that’s required is
to turn the contents of a TZX file into a stream of 0s and 1s which can be fed bit-by-bit into the emulated Spectrum.
The catch is that the timings and high/low state of the input really have to be precise, or the ROM’s tape loading
routine doesn’t work. Either the input signal won’t be recognised at all, or you’re faced with the sight of the
R Tape Loading Error, 0:1
error message that haunted the childhood of me and many others of my generation.
Intricate and nuanced, but well-documented … this is exactly the sort of thing that TDD was made for. However, by this stage, I had a lot of +F working and I’d become a bit cavalier in my attitude again. (My unfortunate dalliance with Python was by this stage some six months in the past. How quickly the mind forgets.) Certain that I was only a few commits away from a fully-working application, I pinned my ears back and frenziedly wrote the TZX-handling routines, supported by only a smattering of tests.
Surprisingly, the code worked. Sadly, however, it was laughably inefficient. When reading from a TZX file, the screen refresh rate would slow noticeably, and I’m sure all the lights in the house became dimmer while it was running too. It’s hardly unheard of first implementations to be lacking performance-wise, so I could treat it as a proof of concept and rewrite it piece-by-piece so that it skipped along more efficiently.
That’s where the problems really began. Inefficient as it may have been, the first TZX routine was fairly good functionally. But because I didn’t have a thorough set of tests which allowed me to make changes and still verify that each part worked, any time I did something that made it run faster, I also introduced a bug somewhere else. In a bid to stop the incessant cycle of fixing one bug only to introduce another, I resorted to cobbling together a “regression test” based on this class from the original, inefficient, implementation and testing all of my potential improvements with respect to that.
It helped, but was nothing more than a length of wallpaper to cover up the cracks in my approach. It’s still there.
Thankfully, I haven’t had to touch the TZX-handling routines much of late, but I dread the day that I have to. I think it’s pretty clear to see, when comparing its code with the Z80 emulation code that was developed with a TDD approach, that not building it by TDD has caused a lot of problems there needn’t have been.
The lesson? It’s all too easy to consider brushing TDD aside in an effort to get to where you want to be more quickly, but no matter how much you try to rationalise it, it’s still just cutting corners. You can’t just wave away the inherent complexity of software when it suits, but you can certainly use TDD to tame it a bit.


Public Member Functions | |
| void | testDemoRun () throws IOException |
| void | testDemoRunWithFlowThreshold () throws IOException |
| void ch.ethz.systems.netbench.ext.demo.DemoRunTest.testDemoRun | ( | ) | throws IOException |
| void ch.ethz.systems.netbench.ext.demo.DemoRunTest.testDemoRunWithFlowThreshold | ( | ) | throws IOException |


At the age of eleven, I began Euclid, with my brother as my tutor.
This was one of the great events of my life, as dazzling as first love. -- Bertrand Russell
Benoit Mandelbrot's
book on Fractal Geometry.
L. S. Stavrianos's
The World to 1500: A Global History .
Dale Purves and others' Textbook
Neuroscience .
A few intrigering facts about retina extracted from
Masland RH (2001).
The fundamental plan of the retina. Nat. Neurosci. 4 (9): 877–86
Roll's
book on Cerebral Cortex.
Matt Mahoney's
tutorial on data compression.
Homeworks and recitations I designed for the machine learning class in 2010 spring
HW1,
Decision Trees and Information Theory,
solution
HW2,
Multiclass Classiﬁcation,
solution
HW3,
Linear regression, and bias-variance trade-off,
solution
HW4,
Learning Theory ,
solution
HW5,
AdaBoost,
solution
recitation,
Linear Algebra and Matlab
recitation,
Expectation-Maximization
recitation,
Computational Learning Theory
recitation,
Boosting


In Java classes it is common to have pairs of functions that are used as getters and setters for some property of instances of the class. @x:Act has a mechanism that allows these functions to share a single name and to use the same invocation syntax.
When a function call appears on the left-hand side of an assignment, then the lhs version of that function is called passing the value of the right-hand side of the assignment as an extra parameter. In other cases the rhs version of the function is called. The @x:func command allows options lhs and rhs.
The full richness of function call syntax also applies to lhs/rhs function pairs. This allows lhs dot qualification to be defined. If the rhs function has no parameters and no () formal parameter list then a "virtual" variable is defined that can be referenced from both lhs and rhs contexts.


Arsenal set to miss out on potential Unai Emery replacement Luis Enrique
Arsenal had reportedly made contact with former Spain manager Luis Enrique as Unai Emery's future has been made uncertain following a series of disappointing results
by Irishmirror.ieArsenal are set to miss out on managerial target Luis Enrique - with the former Barcelona manager set to be named Spain boss.
Gunners' head of football Raul Sanllehi was reported to have made contact with Enrique after compiling a list of potential replacements for under pressure Unai Emery.
Current boss Emery has endured a torrid spell in north London - with his side on a run on five games without a win in all competitions.
Arsenal's last Premier League victory came on October 6 when they edged a 1-0 victory over Bournemouth - with the Gunners sixth in the table and eight points adrift of the top four.
And last week it emerged that Sanllehi had touched base with Enrique over potentially moving to England.
Former Real Madrid and Barca midfielder Enrique hasn't had a job since he resigned as Spain boss in June, following his daughter Xana's diagnosis and subsequent tragic death from bone cancer.
But he appears to be on course for an emotional return to the international post for Euro 2020.
Current La Roja chief Robert Moreno, who was Enrique’s No.2, left the Wanda Metropolitano in tears after Spain's 5-0 victory over Romania.
"I consider Luis a friend and ahead of everything is friendship," Moreno said.
"If one day he wants to return, I would be delighted to take a step to the side and work with him.”
"[I have] No need to sit down with Rubiales, nor [sporting director Jose] Molina, who are the people who trust me and I trust.
"I give more value to what they tell me privately.
"They have always told me everything they had to say to me. I did not expect any more roundness from the president."
Enrique has previously suggested that he would like to manage in the Premier League in the future.
"I'd like to manage in England at some point," he said. "My wife wouldn't like the weather, she's from Barcelona and likes the sun. It would depend on the team and the football they played."


SKY UX brings a consistent, cohesive experience to Blackbaud products and allows third-party developers to provide the same consistent experience in their customizations and applications. SKY UX provides guidelines and tooling for the entire application lifecycle.
SKY UX is proudly open sourced and hosted on GitHub. We highly encourage contributions from all SKY UX users. Learn more.
The core of SKY UX is our design patterns. They empower users, focus on their workflow, and provide a clean, cohesive interface. Learn more.
We implement our design patterns as Angular components that allow developers to quickly create applications with a common user experience. Components are grouped into modules to improve performance. Learn more
To learn about our AngularJS (1.x) implementation, visit the SKY UX 1 documentation.
SKY UX provides additional tooling in the form of several SDK and CLI libraries. These ensure rapid application development, as well as reliable testing and hosting of our front-end applications. Learn more.
For a full list of prerequisites, see the getting started guide.
The Stache component library provides open source components built on SKY UX to generate consistent, user-focused technical documentation websites with the same tools that you use to write code. Learn more.


{% extends "base.html" %} {% load staticfiles i18n compress%} {% block content %}
Join FreshWater Watch
Be part of a community of citizen scientists monitoring water quality around the world and contribute to a global research project exploring one of the major challenges facing 21st century society – the FreshWater Challenge.
Learn about Fresh Water
Learn more about the FreshWater Challenge in your region and gain an insight to how it affects livelihoods around the world.
Join an Earthwatch expedition
For over 40 years Earthwatch has focused its research on critical environmental issues.
Our expeditions engage people worldwide in scientific field research and education to promote the understanding and action necessary for a sustainable environment. Through your hard work and support you can help us understand a rapidly changing world.
Visit the Earthwatch website to join an expedition and experience working alongside scientists in the field.
Start fundraising
Wherever you are in the world, you can help raise vital funds to transform lives.
Think of your own way to raise funds for WaterAid, or check out ‘The Inspiration Station’ with 30 ways to raise funds for WaterAid.
Volunteering in our projects
WaterAid promotes community ownership and for that reason we do not offer placements overseas in the countries we work in.
However, if you think your business skills could benefit WaterAid and want to discuss this further contact<EMAIL_ADDRESS>Get involved: UK, USA, Canada, Australia, Sweden, Japan
If you are based in the UK, USA, Canada, Australia, Sweden or Japan there are many ways to get involved on offer through our WaterAid Member Country offices based in the these countries.
Take part in a challenge event, join a local WaterAid group, donate some of your pre-tax pay through payroll giving or join our volunteer Speaker Network (UK only).
Visit www.wateraid.org/get-involved and select your country of residence or contact<EMAIL_ADDRESS>to find out more.
Campaigning
Find out more about our latest campaigns and how you could get involved.
Join WWF
Become a WWF member and your money will be used to support vital work around the world. You’ll also be part of a passionate, global community and be kept informed with lively magazines and email updates. Alternatively, make a one-off donation to WWF or adopt an animal.
Fundraising events & Campaigns
From marathons to bike rides, wherever you are in the world there’s lots of events you can take part in to support WWF’s work – find fundraising opportunities and events in your area through the links on our international hub. Whether making a pledge to live greener or asking MPs to strengthen bills on energy, logging or marine protection, your help is invaluable. Find out more about our latest global campaigns.
Sign up to Earth Hour
WWF’s Earth Hour is a unique annual phenomenon that focuses the world’s attention on our amazing planet and how we need to protect it. At 8.30pm on the last Saturday in March, hundreds of millions of people turn off their lights for one hour, on the same night, all across the world in a huge, symbolic show of support. Find out more and sign up today. Connect with WWF on social media For daily updates, latest news and inspiring images, follow WWF on Facebook or Twitter (@WWF).
Contact
To find out more about WWF’s work through the HSBC Water Programme or how you can support WWF, please contact Claire Bunning, cbunning@wwf.org.uk.


{%extends 'all_photos/base.html'%} {% block content %} {{block.super}}
Photography is life
Photos for {{date|date:"l d-F Y"}}
OneTimeGallery.com


openssl req -new -out output.pem -key my_key.pem -days 9999 -x509 -config openssl.cnf
There's also a way to do this with the java "keytool" application.
If you purchased your SSL certificate from Verisign or Thawte, then
it should be automatically trusted by the "trust file" within the JVM (Sun
seems to ship JVMs with certs from these two suppliers). If you created
your own certificate, you'll need to import
that cert into cacerts.
1. Find the trusted file "cacerts" in your JRE, e.g.
find /java_install -name "cacerts"
2. Copy that file to a backup
cp cacerts cacerts.bak
3. Install your certificate into the trust file (note: the file cacerts
ships from Sun with password "changeit")
keytool -import -alias <mycompany> -file mycert.pem
-keystore $JAVA_HOME/jre/lib/security/cacerts
4. Verify that your cert was imported:
keytool -list -keystore $JAVA_HOME/jre/lib/security/cacerts
2. You must enable SSL support (i.e., support for URLs that start with
"https") in your test rig's JVM. Some environments like Weblogic offer native
SSL support, which is fast compared to pure java. For Weblogic, set the
property weblogic.security.ssl.enable=true in the config file and just start
using URLs like "https://myhost". Also, there is at least one free
SSL implementation in java.
1. Add the three key jars to your JVM's "ext" (extentions) directory;
e.g.
cp jcert.jar jnet.jar jsse.jar $JAVA_HOME/jre/lib/ext/
2. After the jars are in place, you must modify the file "java.security"
to allow usage of the providers found within the jars. Find the file
find $JAVA_HOME -name "java.security"
3. Add the following line to the file java.security:
security.provider.2=com.sun.net.ssl.internal.ssl.Provider
Then start using URLs like "https://myhost" within the test rig.
The HTTPS protocol will automatically cause new provider classes within
the extention jars to be employed for a java.net.URL class and its related
connections. Note that you should NOT add these jars to the CLASSPATH.
Javax jars are accessed by the JVM by their inclusion in the magic "ext"
folder.
See how to make your certificate
trusted.
Compiled 12 Mar 2001 by larry hamel. Please post corrections/comments to the httpunit discussion list.


About
The Band
Tickets
The Gallery
Book Us
+
Contact us
*
Your Name
*
Email
*
Your message
*
Are you human?
3 + 1 =


Setting up the GMAT API¶
The GMAT API is included in the GMAT release code beginning with the GMAT R2020a release of the system on SourceForge. The API subsystem included in these packages has been tested using Python and MATLAB calls to the API.
Installation¶
Installation of the API is complete when the GMAT release bundle is installed on the user’s workstation.
Direct Usage¶
The API can be used immediately by users that want to run it from the GMAT bin directory. Simply open a session in MATLAB or Python, change directories to the GMAT bin folder, and load the GMAT system into the executing environment. The examples shown later in this document can then be run directly in that environment.
Running the API Outside of the GMAT Folders¶
Users that want to run the API from a different location from the GMAT system need to perform additional steps to configure the system to address two features of the system:
GMAT uses a set of data files for its core functions.
Running environments need to be able to find the GMAT API interfaces.
The following paragraphs address the configuration settings for these two items.
File Location Access¶
GMAT uses a text data file, gmat_startup_file.txt, to identify and locate GMAT plug-in components, planetary ephemerides, gravitational potentials, and a large variety of other data files required during a run. The GMAT API operates using this data file by default, but that causes problems when running outside of the GMAT folder structure. Rather than change the GMAT startup file, API users can accomplish the folder structure definition by creating an API specific startup file. A template for this file, api_startup_file_template.txt is in the api folder in the main GMAT folder. Follow these steps to configure that file for use:
Copy the startup file template into the GMAT bin folder, renaming it api_startup_file.txt.
Open the new api_startup_file.txt file with a text editor.
Change the “<TopLevelGMATFolder>” entry near the top of the file to the absolute path to your top level GMAT folder.
For example, if GMAT is installed (on Windows; please excuse the backslashes) in
C:MyGmatR2019aBeta2
then set the ABSOLUTE_PATH variable to
ABSOLUTE_PATH = C:/MyGmat/R2019aBeta2
Note I’ve replaced backslashes with forward slashes here. For the startup file, Windows users need not do this. Mac and Linux users should use their native forward slash formatting for this absolute path.
Edit the PLUGIN entries as needed, turning on desired (and available) plug-in components.
Save the file.
Once the api_startup_file is configured, you are ready to configure your Python or MATLAB environment.
External Access from Python¶
Note
External access from Python requires configuration of an API startup file, as described in the File Location Access text, above.
The API is loaded from a Python process running outside of the GMAT folders using the load_gmat.py module found in the GMAT api folder. The simplest way to proceed is to edit that file in place:
Open load_gmat.py in a text editor.
Change the “<TopLevelGMATFolder>” entry near the top of the file to the absolute path to your top level GMAT folder. Make sure that the path is enclosed in quotation marks.
Windows users will also need to change backslash characters in this string either to double backslashes or to forward slashes so that the Python interpreter can handle the path correctly.
Save the file.
Copy the edited load_gmat.py file into the folder that is used for the API run.
Note one advantage of editing the load_gmat file in the api folder is that this file can be copied into any folder that needs access to the API. In other words, once the file has the absolute path set, it can be copied to any folder that needs to act as the home folder for an API run.
Test the configuration to make certain that the API can be run. Note that, rather than directly importing load_gmat, you will want to preserve the imported symbols. This preservation is done using the syntax “from module import *”, as shown in this Linux example:
$ cd APIFromHere/
$ python3
>>> from load_gmat import *
>>> sat = gmat.Construct("Spacecraft","Sat")
>>> gmat.ShowObjects()
Current GMAT Objects
EarthMJ2000Eq
EarthMJ2000Ec
EarthFixed
EarthICRF
SolarSystemBarycenter
Sat
>>>
External Access from MATLAB¶
Note
External access from MATLAB requires configuration of an API startup file, as described in the File Location Access text, above.
The API is loaded from a MATLAB console running outside of the GMAT folders using the load_gmat.m module found in the GMAT bin folder. That file configures MATLAB to use the API. The simplest way to use it is to add the GMAT bin folder to your MATLAB path, either in the running MATLAB environment or in the MATLAB configuration on your workstation. You can test the configuration to make certain that the API can be run following the steps below, which run the API from the folder APIFromHere outside of the GMAT installation folders:
$ cd APIFromHere/
$ matlab -nodesktop
MATLAB is selecting SOFTWARE OPENGL rendering.
< M A T L A B (R) >
Copyright 1984-2019 The MathWorks, Inc.
R2019a Update 6 (<IP_ADDRESS>4997) 64-bit (glnxa64)
September 25, 2019
To get started, type doc.
For product information, visit www.mathworks.com.
>> addpath('/home/djc/gsfcgmat/GmatDevelopment/GMAT-R2019a-Linux-x64/bin/')
>> load_gmat
No script provided to load.
ans =
Instance of GMAT Moderator is initialized. No script ready to run.
>> sat = gmat.gmat.Construct('Spacecraft','MySat')
sat =
Object of type Spacecraft named MySat
>> gmat.gmat.ShowObjects()
ans =
Current GMAT Objects
EarthMJ2000Eq
EarthMJ2000Ec
EarthFixed
EarthICRF
SolarSystemBarycenter
MySat
The SolarSystem contains the following bodies:
[Sun, Mercury, Venus, Earth, Mars, Jupiter, Saturn, Uranus, Neptune, Pluto, Luna]
>>
Loading the API¶
Packaging¶
The GMAT API is packaged in a set of libraries encapsulating specific pieces of functionality.
Package Name |
Contents |
Description |
|---|---|---|
gmat |
GMAT Utilities and Core Components |
Utility classes used in the rest of GMAT, that do not depend on other GMAT components, built from gmatutil code. Classes used for most of the GMAT spacecraft modeling, along with the GMAT “engine” that drives the main application, built from gmatbase code. |
station |
Ground station models |
Code used to model ground stations |
navigation |
Estimation Components |
Classes used for the GMAT orbit determination subsystem. |
Initialization¶
There are some differences in how to initialize the API between Python, Java,
and MATLAB, however they all follow the same basic process. The API is first
loaded into the interfacing language, and then the GMAT executive is initialized
through the Moderator. The process of initializing the API is detailed in the
sections below for each supported language. The initialization example for each
language creates an instance of the Moderator object named myMod
that has
been initialized. The result
variable is a flag which returns True
if
the initialization was successful, or False
if unsuccessful.
Python¶
The API is loaded from the GMAT bin folder into Python with an import command
Python initialization example:
import gmatpy as gmat
At this point, the GMAT Python API is not initialized. A user can initialize it using the Setup() command, or by making any call to an API specific function.
The API can be loaded into from any folder from Python if by following the External Access from Python instructions, above.
Java¶
Java requires an extra step compared to Python. Not only does the GMAT API need to be imported, a shared library must also be loaded
import gmat.*;
public class main {
public static void main(String[] args) {
Moderator myMod;
boolean result;
// Load the GMAT library
System.loadLibrary("gmat"); // On Windows
myMod = Moderator.Instance();
result = myMod.Initialize("gmat_startup_file.txt");
}
}
At this point, the GMAT Java API is initialized.
MATLAB¶
While the MATLAB interface uses the Java API, there are a few extra steps required due to how Java packages are used inside MATLAB. The . To simplify this, a MATLAB script which performs all the initialization, load_gmat.m, is included with the GMAT installation in the <install-dir>/bin directory. The load_gmat script also optionally takes as an input the filename of a GMAT script to load, and a filename to a custom startup file.
[myMod, gmatStartupPath, result] = load_gmat("sample.script");
The extra steps in initializing the GMAT API through MATLAB is because every GMAT library and JAR file needs to be loaded explicitly, and it needs to be loaded by the Java instance inside MATLAB instead of by MATLAB itself. For more details, see the comments inside the load_gmat.m file.


{% extends "g-ui/layout/article" %} {% import "page-elements.html" as PageElements -%} {% import "g-ui/ads" as Ads -%} {% set layout = {name: 'full-body'} %} {% set stylesheets = [ 'https://origami-build.ft.com/v2/bundles/css?modules=o-expander@^4.0.2,o-buttons@^4.0.2,o-grid<EMAIL_ADDRESS>'g-ui/main.css', 'main.css', 'result-page.css' ] %} {% set scripts = [ 'g-ui/index.js', 'https://origami-build.ft.com/v2/bundles/js?export=bundle&modules=o-expander@^4.0.2,o-buttons@^4.0.2,o-date<EMAIL_ADDRESS>] %} {% block appendhead %} {% endblock -%} {% block article_body %}
Each candidate needs 270 electoral college votes to win the presidency
{{congresstext | safe}}


class InsertStatement : ColumnSetter
An SQL insert statement. See Database.insertInto.
Note that this statement type doesn't have a getReusable()
method, like
SelectQuery.Builder.getReusable. That's because, for an insert statment, the
lambda that identifies the columns also sets their values. The overhead
of establishing a mapping if those functions were to be separated exceeds the
slight overhead of looking up the statement in the cache.
Builder |
A builder for an insert statement where the client code is interested in the ResultSet generated by the PreparedStatement. See Database.insertInto. class Builder : StatementBuilder<Key> |
BuilderNoResults |
A builder for an insert statement where the client code is not interested in the ResultSet generated by the PreparedStatement. See Database.insertInto. class BuilderNoResults |
Key |
Key used for caching insert statements by Database. data class Key |
Result |
A holder for the ResultSet created by PreparedStatement.getGeneratedKeys after an insert statement is run. class Result : ResultsHolder |


Next: Error Protocol
Up: No Title
Previous: Internal Design
Please copy all the files from cs564-1/fall96/proj1/src
into your own local directory. The contents are:
- under bufmgr directory
You should have all your code for bufmgr package implemented
under this directory. We provide a sample Makefile to compile
your project. You will have to set up any dependencies by editing
this file.
You can also design your own Makefile. Whatever you do, please
make sure that the classpath is set to the one provided in
the original Makefile.
- under diskmgr direcotry
You should study the code for diskmgr package carefully before
you implement the bufmgr package. The detailed description
of the files are not included. Please refer to the java documentation
of the packages.
- under tests directory
Makefile, TestDriver.java, BMTest.java:
Buffer manager test driver program. Note that you do have to
use the Makefile to run your tests too.
You can find other useful information by reading the java documentation
on other packages, such as the global package and the
chainexception package.
Qingqing Ouyang
11/24/1998


Neuroplasticity & Resilience
Growing Neural Networks
Benefits of Understanding Neuroplasticity
Neuroplasticity is ability of the brain to change throughout a person's life, for example grey matter can change, and synapses can strenghten or weaken over time.
Traditionally the brain was thought of as static, unchanging, and locked - however research shows that aspects of the brain are actually 'plastic' and can change, especially for developing brains.
Understanding the principles of neuroplasticity can greatly benefit learning - simply by recognising and accepting that abilities can be developed, and learning is a formation of new or stronger neural pathways can change the way our brains work.
Principles of Neuroplasticity
- Use it or Lose it: neural circuits not acitvely engaged can begin to degrade over time, this is something I am already well aware of after learning a language, and learning an instrument, if you don't include these practices in your daily life the knowledge begins to fad. Knowing this I will be sure to include some form of coding in my daily life.
- Use it and Improve it: Learning that drives a specific brain function can lead to enhancement of that function - I know my JavaScript skills could do with a lot of improvement, but I also know not to feel frustrated or give up because of this. Once I begin to build and strengthen those neural networks it should become much easier to understand and use.
- Repetition Matters: Basically Eat, Study, Sleep, Repeat! Without forgetting to keep a healthy work/life balance of course.
In order to keep the brain flexible and plastic, we must ensure sustained practise of a new behaviour where the brain is sufficiently challenged.
Putting the brain outside its comfort zone, and developing skills that cause you to struggle will help to enhance the plasticity of the brain.
Growth Mindset
There are two types of mindsets that we can cultivate, one being fixed mindet, and the other a growth mindset. Those who see problems are interesting challenges, rather than things to be avoided can be thought of as having a growth mindset.
This type of mindset is invaluable to learning, as this creates a love for learning, with endless opportunity for growth - though it is not uncommon to switch from one type to the other.
This exploration in to the concept of a 'Growth Mindset' is interesting as it causes me to reflect on my personal learning journey, and recognise times where I embraced challenge and excelled - and other times when I was perhaps tired, or needed a break and saw tasks as something to get out of the way with a fixed mindset.
Ways I will embrace a Growth Mindset:
- Try things, especially when I am not sure of the answer, and not worry about failing
- Know that I can learn anything if I want it enough
- Know that failing is part of learning
- Embrace constructive feedback to improve
- Motivate my peers to succeed to help my own growth


The Klout API gives you access to the most comprehensive social media influence measurement metrics in the world. Tap into the datasource and develop your own customized apps.
Visit developer.klout.com to get your free API key today.
Twitter Name @
Enter a Twitter handle.


In this project you'll make your first web page!
Click Here to View Full Screen!
1. Using HTML, make at least 5 div
's in the body
of the page.
Tip: It can be helpful to give each div
a border
for now -- it makes them easier to see.
Click Here to View Full Screen!
2. Give each of your div
's a unique id
.
Click Here to View Full Screen!
3. Using CSS, set the size of the div
's. Make them all the same size, but make sure they take up the whole room of the page!
Click Here to View Full Screen!
4. Using CSS, set the background-color
of each div
. You can make a rainbow, choose your favorite colors, or whatever you would like! Now, if you want, you can remove the border
.
Click Here to View Full Screen!
5. Save and share your project!


How to Make the Icing
Gather your ingredients:
Combine the ingredients using a beater. Mix until smooth and fluffy.
Spread over cooled cake.


boldy
bae
Next color
ORANGE
- Cuz i'm still looking
looking for trouble
- Your hesitation speaks to me
more than million words
- Heels on the bike it's a mess
I'm not the only one who is late


Lower East Side, 1854
People from 1854 New York City Directory, matched with addresses and buildings from Building Inspector. Data from NYC Space/Time Directory. For more information on connecting different datasets from the NYC Space/Time Directory, see our tutorial on historical addresses.


Printed
Saturday, October 01, 2011
I slept most of the night in the recliner. When we were ready to go to bed last night Mae was working on her journal program. I set in the recliner to wait for her and fell asleep. I woke at 4AM and then went back to sleep in our bed. We woke about 7AM. After normal morning routines I took care of the chickens and rabbits. I turned water onto the garden and then started washing the windows. Feed the rabbits and chickens and came in just in time for Conference to start. I was sure impressed with all of the conference session today. While watching conference this morning I pealed pears while Mae cored them and sliced them for drying. During the afternoon session I filet the fish we caught yesterday. This evening I picked Scott up and we attended the Priesthood Session in Scott’s Stake. That too was a very enjoyable session. Afterwards we picked Kylan up and the three of us went out to eat at the Rooster. It was good and we enjoyed being together. I took my wheel barrel and shovel to Jeff’s after I took Scott and Kylan home. I had to stop for gas before coming on home. Mae has sure been working today. I worry about her doing so much but it doesn’t help to say anything about it.
Sunday, October 02, 2011
We didn’t get up until almost 8AM and then had time to eat and make the bed before General Conference started. We enjoyed most of the day watching conference. Bob invited us up for lunch then this evening we had Scott and his family come for dinner at 5PM. Bob also came down and ate with us. We enjoyed visiting in the back yard while the children ran around. Kylan brought his airplanes and flew them around the yard. He is very good at being able to control them. It was after 8:30 PM when they left. I helped Mae clean up the house and it didn’t take long to have the house looking good again. I think we will watch a show on DVD before going to bed. I got a call this evening asking me to drive route bus 338 out of the Farmington compound.
Monday, October 03, 2011
I didn’t sleep very well last night but was up at 4AM and couldn’t go back to sleep. I got on the computer and entered my bids for next week’s field trips and some payroll information. My routes went quite well. I took a nap in between the morning run and the afternoon run. I also had time to put the last of our camping items away from our last trip. On the way home this afternoon I stopped at Home Depot for items needed to help Scott reroof his house on Saturday. This evening Mae and I went for a walk and before we finished it started to rain. We had to hurry home. We worked on our lesson for this Sunday. I got a call from the Utah Firefighters asking for donations. I would like to help but we just get one after another calling us. We did turn on the TV to see if Orem High School was one of the High Schools selected be shown on the program. It evidently was not chosen for it didn’t come on. I got another call to take a bus route out of the Farmington compound in the morning so I had better get to bed.
Tuesday, October 04, 2011
I got up at 4AM to get ready and get to the compound in time. When I got to the Farmington compound I could not find bus 328. At 6AM I went to the office and tried to call the dispatch. I checked the bus parking chart and there was no 328 at the compound. Dispatch told me to take a extra bus. I started up 68 but found out that the interior light would not work so I switched to bus 67. The first high school run worked out ok but on the Jr. High I had trouble finding the address’s and was late on that run. That put me behind on the grade school. It really was a trying and confusing run. It was 10:30AM when I finally got home. Mae has been working on food storage most of the day. She also visited with Shellie by phone for a while. Bob prepared lunch of fish, biscuits and gravy for us. That was sure good. Mae and I worked on our new GPS and we think that it is now working. I took a nap and then went on the afternoon routes. The afternoon runs went much better. I was very tired when I got home. We watched some shows on TV before going to bed. Mae called and visited with Sandi.
Wednesday, October 05, 2011
I woke about 5AM and was afraid that I would wake Mae I went back to sleep in the recliner instead of going back into the bedroom. It was after 7AM when I got up and found that Mae was up working on the storage bedroom. After breakfast we took care of the animals and got ready to go to the Temple. We took Bob with us and went to the Bountiful Temple. There was no parking on the top floor of the parking lot so we went to the lower level. It too was almost full but we enjoyed the walk. The session was enjoyable and we got to participate in the Prayer Circle. The Brother that set next to me had some paralyzes in his left side so I was able to help him with some of the clothing. Bob and I got to the waiting area long before Mae did as she met Adele Clay who she used to work with at the School District. I couldn’t help but think that while waiting I saw someone that was lamed, someone that was blind, many that are old and halted and Bob is deaf: when the Lord comes all these will be cured. Until then we need to care for them until that day. After leaving the Temple we went to the Chuck-Wagon and ate lunch. After getting home Mae and I took a nap in the recliners. I got a call from Roberta telling me that because of rain my field trip has been canceled. She called back in a few minutes with a run for me for tomorrow, Friday and Monday. Things seem to work out one way or the other. We then went to Kitchen Needs and purchased food storage items. We ate super when we got back and then plan on watching a movie before going to bed.
Thursday, October 06, 2011
I went into the bus compound and road with Cindy (bus 471 route but we drove bus 364 today) to become familiar with the route so I can take it on Friday and next Monday. That went well and I came home expecting to be able to get some things done around the house. I got a call from dispatch asking if I would take the PM rout for bus 336. As I left I forgot to take my bus bag with me (big mistake). I got the address for the elementary school but I didn’t get the city. When I got to the compound I found that bus 336 was a Thomas. I had to become familiar with all the differences between a Thomas and a Blue Bird. I couldn’t get the radio to work nor could I figure out the loading / unloading lights. I stopped on top and got Steve to come out and help me. His first try he got no response on the radio but then it started working. He showed me the switches for the lights and I went on. The first school out went ok as I had students help me. When I went to the elementary school I made a wrong turn. I tried to put the address into the GPS but I didn’t know the city. Without my bus bag I didn’t have the schools addresses with me. I tried to call the dispatch and couldn’t get the radio to work. I was parked so I tried to call the dispatch on the phone. No one answered even when I tried other numbers. I tried to wave another school bus down but he just waved and went on. Finally Rosa called me on the radio and I finally got it to answer. By then I was too late and Rosa had another driver cover the route. All together it was another frustrating event. Mae had been busy most of the day canning. I helped her some when I returned home. I did work on the computer trying to get things straight for my run tomorrow.
Friday, October 07, 2011
I woke early and then slept in the recliner until we got up for me to go to the bus shop. The runs this morning went well. Mae was busy cleaning and she was in the mood to get rid of quite a lot that we no longer use. I loaded it in the car for her and she will drop it off at the D.I. After she left Bob called me to help him carry a lot of Carroll’s clothes to his car and he took them to the D.I. The D.I. is getting quite a load today. I took a nap before I took the afternoon run. We sent out to eat with Scott and his family. After that we went up to see Jeff and Gail. After putting the children to bed we played two games of Rook. It only took three hands for each game. The first three hands Jeff and I took all three hands and won. Then the next three hands were taken by Gail and Mae and they won. That was interesting and I have never seen it go that way.
Saturday, October 08, 2011
I went over to Scott’s and we started reroofing his house. Jeff joined us about 10:30AM and that helped a lot. We worked until dark and then put things away. We got almost 2/3 of it roofed and it was probably the hardest part. I had called Kip and he let us borrow his roofing gun, so that really helped and it saved Scott renting a gun. When I got home Mae made me some dinner. I took a hot bath and socked for a while. I then filled out this journal entry. Mae has also been very busy all day but that is normal for her. I wish she could slow down a little. I played a game of chess and lost before going to bed.
Sunday, October 09, 2011
I slept pretty good last night but am still tired and sore from shingling. I wish it was done but I’m sure it will take tomorrow to finish the job. Our Family History class went ok but I played the wrong DVD segment. Bob invited us for dinner and then later we took a nap. Bob then called down to us and a good movie was playing. Irven and Sandy came over and visited for a while. I helped them get some tomatoes and squash from our garden. It was 9PM before they left so I entered my journal while Mae prepared my lunch for tomorrow as I will have to go from my bus run over to Scotts to work on their house. I am having some trouble with my IPOD. It is low on battery and I haven’t been able to get it recharged. It seems to be working now so we will hope for the best.
Monday, October 08, 2011
I had a bus run to go on this morning and when that finished I went to Scott’s about 9:30AM and we got started shingling their roof. Scott and I had some opportunity to visit about Church matters. I felt that went very well. Roberta called me and said that I did not have to make the afternoon run as the driver got back into town and would make it. That really help with the roofing job as I didn’t have to stop and drive bus. About 4PM President Craven and his son Kyran came over and helped us finish the job. It was late when we finished. I got home very tired and sore about but very glad to have that job finished. Before going to bed I called the Sub-Line and asked them not to call me in the morning.
Tuesday, October 11, 2011
This morning we did sleep in but I still had a Sub-bus Drivers meeting at 9:30. Mae and Bob took my pickup in for service. Shortly after I got home from the meeting, Mae and Marna McPhie went out to have lunch. I took care of the animals and got my lunch. I also tried to get some information for Roy about Bob’s tax problems. I had a Special Aid run this afternoon that went quite well. I did have some problem with the bus that I wrote up at the end of the run. Because Mae had the car at lunch I had Bob take me to work. Mae came to get me after my run. She stopped and paid for the service on the pickup and got the key before coming for me. We stopped on the way home and got the pickup. After dinner this evening Mae and I went over to the church house to see the computers in the Family History area and some physical rearrangements of our class room for Sunday. We heard that Brother Bill Reid passed away this evening. That is sure a blessing for him as he has been sick for a long time. It’s now 9:35PM so we will soon be going to bed.
Wednesday, October 12, 2011
We were able to sleep in and when we got up we had a nice breakfast of pancakes and eggs. Mae went into South Ogden with an appointment. I killed four chickens; I had planned on just killing the four old chickens but got one of the new chickens mixed instead of the one old hen. Bob came out and helped me. This afternoon I took a bus run. It was kind of funny; the run was changed on me three times but it worked out ok. Mae had Book Group this evening. I finished cooking the chickens and stripped the meat from the bones. I watched a show on TV while doing that; “The Valley of the Dolls” and I really appreciate the life I live with the Gospel of Jesus Christ to give me purpose to life. I received a phone call about 10PM asking me to take a run in the morning. We had to hurry to bed.
Thursday, October 13, 2011
I got up at 4:30 in order to get to my run. I had an assistant with me so the run went well. When I returned to the compound I checked with Janet in payroll about a run that I couldn’t get up on the computer. We found that it hadn’t been entered. She also showed me how to bid on the bus routes that are open for bid. I did bid on four routes, so we will see. I helped Mae can the chicken that I butchered yesterday. I took a Field Trip this afternoon, taking Bountiful High to East High in Salt Lake. It went well but it was late getting home. Roberta called and asked me to take another Field Trip tomorrow. It’s late and I am tired so good night!
Friday, October 14, 2011
I got a call at 5:45AM asking me to take a route that departs at 6:42AM so I really had to hurry. I did have a good assistant so that really helps. After getting home I worked on my payroll and I think I have it almost correct and entered. Mae had some things she is doing so she left shortly after I got home. I did get a 15 minute nap and some lunch before taking a Field Trip this afternoon. This evening we went out to eat at Golden Coral. We then came home and watched a movie on DVD “To Catch a Thief” before going to sleep.
Saturday, October 15, 2011
I woke at 6:15 with my mask making lots of noise. I am not sure just what to do with it so that I can sleep better. After reading my scriptures, saying prayers and drying the windows, prepared breakfast as Mae was still doing her hair. I have a headache this morning and feel quite depressed but I will get through it. Mae went over to the Relief Society social this morning. I made a new cover for the one chicken feeder as the chickens seem to be sitting on the one and messing in the trough. Bob prepared lunch for me as Mae ate at the R.S. program. I set down to watch the BYU vs Organ football game and fell asleep before it started. The game was under way when I woke. I watched the game. I did get all the squash out of the garden and stored in the garage. Mae weeded Bob’s rose bushes in front of the house, trimmed the yards, picked the strawberries, tomatoes & peppers while I ate and was sleeping. Scott and Michelle brought their children over for Mae to tend this evening while they went out. It was after 10PM when Scott and Michelle returned. Mae was worn out and very tired so when they left we soon went to bed.
Sunday, October 16, 2011
I woke about 5AM with my mask making lots of noise. I realized that Mae wasn’t in bed and later found out that she was woke up because of my mask. I am not sure just what to do about it. I went back to bed and did fall asleep. I didn’t hear the alarm go off and Mae woke me at 7AM. We had to hurry to get to meetings on time. Our Family History class went well. As soon as that finished we went over to Gale’s ward, as she was asked to talk in Sacrament Meeting. She gave a very good talk and bore a strong Testimony. Jeff was also there to support his sweetheart. After the meeting we went over to Jeff’s and borrowed his trailer. Jeff showed us his new office furniture, which he bought from the plant in Clearfield, as that plant is now closed. He bought it for Gail to have as she does a small pre-school and also does scrapbooking and Jeff said it isn’t working for her to use his office for all that. Especially now that he will be working more from home as he is still the Controller for the Greenville plant in Ohio. He will go there for one or two weeks a month and the rest of the time, he will work from home. They put her office furniture in Matt’s room and they will put Matt down with Ben in his room and make Matt’s room an office for Gail. Bob had dinner prepared for us when we got home. Mae went Visiting Teaching and then Bob and I went Home Teaching to Sister Fallis. After getting home Bob, Mae and I got on the New Family Search and updated Bob’s Family records. Bob is sealed to Charles but not to his father, Lester. We found that that cannot be done until after his death. His children should continue to do the work on the Young line with that blank until then and then add that ordinance. We prepared for me to get up early in the morning for the bus run. We went to bed early but shortly after going to bed Bob called to see if I had taken the garbage out.
Monday, October 17, 2011
I woke early with my mask making lots of noise so I didn’t sleep the best. I got up at 4:20AM so after getting ready and eating breakfast I still had time to work on my journal for a few minutes. I made my morning run and then stopped in and visited with Janet Nash in payroll and got some corrections made on my entries. I went to Dr. Gray’s and got my teeth cleaned and checked. Cleaning was all that needs to be done now. I had a little time before my afternoon run. That went well. I was very tired when I got home and Mae was also tired so we relaxed and watched a J.A.G. serious before going to sleep.
Tuesday, October 18, 2011
It has been a busy day, starting with getting up at 4AM for the bus run. Mae woke before I left so she didn’t get much sleep either. My runs went well and I came home about 9:30AM. Mae went to Dr. Gray’s shortly after I got home. She then did several errons and got home just before I went back for the afternoon run. Mae had started cutting up peppers before she left and I finished getting them ready for her to dry. I had also taken a quart of preserved rabbit meat and ground it into sandwich spread. The afternoon run went well and I fueled the bus before coming home. Karen, my bus assistant gave me some beef liver, and I took her some eggs. It has been good to work with her. This evening Bob and I went Home Teaching. We took a squash to Casey’s and checked to see how Sister Casey is doing. We also had a nice visit with the Thurman’s and the Johnston’s. After getting home I went out and gathered the eggs and put new straw in the nests. I quickly entered this entry and we are going right to bed.
Thursday, October 20, 2011
Both Mae and I got up early this morning. Even with getting up early, it was 8:30AM before Bob and I left to go fishing. We then had to get gas in the pickup and boat and buy worms for fishing. It was after 10AM that we got onto the lake. I was almost ready to try going somewhere else due to the reports that I had received the East Canon was very poor fishing. Bob and I had a very good morning and by 1PM we were limited out and back to the boat dock. We noticed that the tires are in bad condition on the boat trailer so I stopped at Discount Tire and ordered two new tires to be mounted on the boat trailer. I left the trailer and boat there and Bob and I came on home. We cleaned and filed the fish before I went back to get the boat. Mae had taken Tyler, Emily, Connor, Kylan and Ashley to the Salt Lake Zoo for the day.  We ate our dinner in front of the TV this evening. Mae and I watched TV for a while before filling in this entry and going to bed.
Friday, October 21, 2011
We were going to go fishing but we were too tired to get up early so when we got up and had breakfast, I took the boat to Willard Bay so that I could take the boat off the trailer and repair the trailer. Bryce also went with me and helped with the repairs. After repairing the boat trailer, we took a ride in the boat. Mae had lunch ready when I got home. We then went up to Park City where we stayed with Mike and Becky in their condominium. We went out to eat at the Wasatch Brew Pub. It was good but the dish that I wanted they no longer make. After we returned we played a game of Rook and the girls won. We really enjoyed the opportunity to spend some time with Mike and Becky.
Saturday, October 22, 2011
I didn’t sleep very well but we didn’t get up until 8AM. Mae and Mike cooked breakfast that was great. After eating Mae and I came home. I feel that this needs to be recorded and so will enter this in my journal; Bob has worked for several days getting all the items that Carroll has made or collected together that his children might go through them and take what they want. He has worried that he handles the disposal in a proper way. I know that Sherrie helped him one day and took some items but to Bob’s disappointment none of his children came today. I can’t help but feel a little of his disappointment! After getting home we went up to Gail’s mothers and picked quite a few apples. Returning from there I tried to get on the computer to enter some payroll information and to search for any awarded Field Trips, but the payroll is locked up for processing so I will have to wait. We were going to take a nap but Sandi called and asked if we could meet her in Bountiful to return Paris to her. We kept Paris while she and Nike went to Lake Powel with some friends. After getting home I caught up my journal before dinner. We watched a show on TV even though we had seen it before. I then worked on our new recorder for a little while trying to learn how to use it. We also played the DVD segments for our lesson tomorrow. It was late when we finished so we went right to bed.
Sunday, October 23, 2011
We woke at 6AM so got up and started the day. I added some to the journal entry for yesterday. I also got my IPod on to recharge as I had again forgotten to turn it off and therefore ran the battery down. Our Family History class went well. After returning home from meetings Mae made some dinner. Bob had forgotten to take a key with him when he came to Church so he wasn’t able to come home between Priesthood meeting and Sacrament meeting to start dinner. I set down in the recliner and soon fell asleep after we had eaten. Mae and I walked over to Brother Larson’s to check on him as he wasn’t at church today. We have heard that he had fallen but we are not sure if this is a 2nd time or just a report from his 1st fall. He was not home so we didn’t find out. I stopped and talked to Sister Fallis. She was waiting to find out how much it would cost for plumbing part to install the water faucet to their horse corral before they started digging. When I told her the cost she said that they would get started. Mae and I played a game of Rummy, at which Mae won. Bob cooked chicken and gravy and Mae prepared us some rice. After eating Mae and I studied our lesson for next week. I called Randy and he will go fishing with me in the morning. I called into the Sub-line to let Malissa know that I am not available to run bus tomorrow. Mae and I watched a movie on DVD before going to sleep.
Monday, October 24, 2011
I woke at 4:40AM and got up to get ready to go fishing. Mae got up just before I finished and got my lunch put to gather for me. I got to Randy’s shortly before 7AM and we soon left. We stopped at the Maverik on 300 N in Clearfield to buy some fishing worms but they were out. We found some at the Maverik on 700 S and then went to the Chevron where I bought gas and natural gas for the truck. It was 8:30AM before we got to the East Canon Reservoir and got the boat launched. It was almost 1PM before we both caught our limits although we had both released some small fish. We stopped at my place and cleaned the fish before I took Randy home. It has been a very pleasant day fishing. When I returned home, I fled my fish and got them sealed and in the freezer. I took 1 ½ fish up to Bob and he cooked it for dinner this evening, along with some fried potatoes. It made a very nice meal. Mae has been busy all day with various projects. This evening I changed the cutting blades on the rider lawn mower for Bob. I am tired this evening.
Tuesday, October 25, 2011
I woke at 6AM having not slept the best because of my CPAP. Mae got up at 6:30 as she has a dentist appointment this morning. I went back to sleep and didn’t wake until almost 9AM. Mae had made waffles for breakfast and they we waiting in the oven for me. I worked on the dishwasher and reversed the door seal to see if that will stop the leak. I got on the computer and did some work on my payroll entries. Mae was home just long enough to have lunch and then she went over to tend Jeff and Gail’s children so Gail could attend the Temple. I worked on the garden the rest of the day getting all the plants pulled out and tilled it and also tilled around the fence line. As I finished Jeff called and is coming over for his trailer. I went with him and helped load some furnishings for his office in his basement. He will be working mainly out of his home for a while. I drove back with Mae. We had some toast for super as I ate a piece of pizza at Jeff’s before we left. I took a hot shower and went to bed. We went to bed about 9PM but I woke at 11PM. I couldn’t go back to sleep with my legs and arms hurting so I went into the recliner.
Wednesday, October 26, 2011
I slept most of the night in the recliner and got some sleep. After breakfast Mae and I went to the Stake canning shop and we canned the rice we bought a couple of weeks ago. We were back before 11AM and I started arranging our storage on shelves. We have a lot of storage but little that we can eat. Mae had an appointment with Deanna Davis so she went there. Roberta called me and asked if I could take a bus run this afternoon. I told her that I would. I was about to get me some lunch when Roberta called me back and said that they had a emergency and ask if I could take that run instead. That was at 1:03PM and I needed to leave the bus compound at 1:15PM. I told her that I couldn’t get there that fast and she told me to do the best I could. It was almost 25 after when we left the compound but it went well and things worked out. I got home about 10 minutes before Mae did because she did some other shopping. We got something for a late lunch and then went into Apria Health care to get some help with my CPAP. We stopped at Cosco and Home Depot before coming home. We had a late dinner so I am not sure if I can lay down in bed to sleep. Both Mae and I slept in the recliners tonight.
Thursday October 27, 2011
Both Mae and I slept until 6:30 before we woke up. Neither of us even got up during the night. Maybe we need to do that more often. We started on apples shortly after we ate breakfast and put up 12 quarts of apple sauce along with drying quite a few apples. After lunch Bob and I took the load of garden trash to the dumps. It took us longer to unload it than we thought it would so Bob was late for his Doctors appointment. Mae went up to David’s where she tended Connor for Shauna. She had a meeting to attend today. Shellie called and wanted Mae to go with Sandi on the cruse with her and Roy. That caused some problems with Mae and I. It upset me that Mae would consider going on a major vacation without me and I guess I didn’t handle it very well. When I returned from taking the trash to the dumps, I cold packed the apple sauce as well as peeled and sliced more apples to dry. I also watched a movie on TV. It was just about over when Mae returned home. We ate some dinner and then we went to a “Know your candidates” night at the city recreation center. After returning home I helped Mae put the apple sauce away and then I entered my journal entry.
Friday, October 28, 2011
I woke at 4:15AM and got up. I had time, study my scriptures, do my stretch exercises and get ready and leave for a bus run. I just rode along with the driver and I will take the afternoon run. I put a new tail light in the Buick, fed the chickens and rabbits and ran electrical cords to all the water feeders so they won’t freeze. Mae and I have decided to go on the Hawaiian cruse with Shellie, Roy and Sandi on the first of December. That will be our Christmas gifts this year. We are not going to go to Alaska this next summer. I took a shower before going to the bus compound. The afternoon run went very well. While I was sweeping the bus Noland called me. He had several questions about framing a shed. I invited him to meet me at home and I loaned him some tools. He got there just a few minutes after I did. I gave him some tips about building that I hope will help him. Bryce came over to trade Noland vehicles and so he went with us to pickup Deanna. She has been tending Shanna’s children today so was at their home in Kaysville. We went there and then the four of us went to the Bountiful Temple. We were able to get right into a session but it was still after 9PM before we finished. We stopped at our place and had some pie and ice cream. This was a apple pie that Bob had made for us so I could have some. Of course I didn’t put any ice cream on my slice. We stayed up late after Bryce and Deanna left and watched a show on TV.
Saturday, October 29, 2011
After getting things going I took my boat over to have it winterized. When I returned I winterized the tent trailer and did a couple of minor repairs to it. I also got the water units for the rabbits and the chicken plugged in to the power so that they will not freeze in the cold weather. This afternoon I was called about my boat and went over and got it. Bob helped me get the cover tied onto it and put it away for the winter. That really makes me sad to know that I am through using it for the year. This evening we went to Tooele to attend a Family Halloween Party at Sandi and Nike’s home. Sandi had really gone all out with food, decorations and games. All of our family except Shellie’s family and David (Mike’s son) were there. It was a very enjoyable time but we were late leaving for home. Mae and I did stop for gas at a Maverick station for gas. Mae went in while I was fueling the car and bought us a medium dish of Yogurt. We shared that as we drove. We got home just before mid-night and I was very happy when we got there. We went right to bed.
Sunday, October 30, 2011
I woke at 4AM and slept the rest of the night in the recliner. It was really hard to get up this morning. We made it and our class went ok. The Priesthood and relief Society met jointly as it is the 5th Sunday. Two Sisters from the Stake presented the lesson on Handicap People that was very informative. After returning home Bob had dinner for us. We then took a nap. Mae only slept for a few minutes but I slept for quite a while. Jeff, Gail and children came over for dinner. We also invited Bob to join us. After a nice dinner, Mae & Gail stood Jeff and I in a game of Rook. This time Jeff and I won. I made some payroll entries and entered my journal after Jeff’s family left. It’s been a good evening. Mae and I watched a movie on DVD before going to bed.
Monday, October 31, 2011
I woke about 4AM and Mae wasn’t in bed with me. She had not been able to sleep so had gone in the front room and slept in the recliner. It was after 7AM when I again woke and got up. I let Mae sleep until she woke at 9AM. We then went back to bed for a while. I prepared breakfast of pan cakes and eggs while Mae started the washing. Working together we got the sheds cleaned out and separated several items to go to the D.I. Bob had loaded a lot of items that he wanted to get rid of into my pickup. We added the items we had and Bob and I took them to the D.I. this evening I took Mae out to eat at the Golden Coral. It has been a busy day but we also accomplished a lot and enjoyed working together. We watched a D.V.D. before going to sleep.


Pipes, Redirects, and Tees
Useful powerful commands that simplify code. Mouse over bold text for explanation of command.
Chaining Commands
Different ways to run commands.
Using a semicolon to separate commands
Run commandA then commandB
commandA; commandB
grep -l 'hello' file.txt; echo "hello" > file.txt
Using double ampersand to separate commands.
If commandA is successful then run commandB
commandA && commandB
grep -l 'world' file.txt && echo "world" > file.txt
Using double pipe to separate commands.
If commandA fails then run commandB
commandA || commandB
grep -l 'world' file.txt || echo "world" > file.txt
Using a single ampersand to run a command in the background.
command &
tail file.txt &
Pipe
Sending the results of a command to a new command.
grep "string" filename.txt | grep "a"
Redirects
Sending the results of a command to a file.
echo 'Hello World' > filename.txt
echo 'Hello World' >> filename.txt
Tee
Splitting the results of a command between a file and its standard output.
echo "hello world" | tee filename.txt
echo "hello world" | tee -a filename.txt