{% extends "layouts/base.html" %} {% block content %}
This app is a small prototype for the OpenTrials project. Read more about the open trials project here, including information on the various channels to get in touch and get involved.
This prototype application is a small proof of concept of the OpenTrials project. We've taken a single data source and build out the most essential aspects of the interface to display this data.
Behind the scenes, the process has involved some initial exploratory work in defining a data model for the project, and more specifically, the processing of the raw data source into normalised CSV and SQL formats for reuse.
{% endblock %}


--- layout: post title: Weinstein on Literature date: '2016-02-20T20:15:00.001-05:00' author: RyGuy tags: modified_time: '2016-02-20T20:15:49.332-05:00' blogger_id: tag:blogger.com,1999:blog-2767138550438691941.post-6223016471273205832 blogger_orig_url: https://muchtoilingant.blogspot.com/2016/02/weinstein-on-literature.html ---
The great virtue of literature (of art in general) is that it does not truck with abstract data, such as the dates of battles or elections, the numbers of this or that, or the rules or laws of this or that. One could argue that such “data” are rarely real for us, in any experiential sense, and that the business of art is precisely to translate data and information into living circumstance, to turn fact into fiction. It may seem that such a procedure moves away from reality, but the opposite is true. Facts start to live when we see them as part of experience, even fictive experience.- Arnold Weinstein, in his guidebook to Classics of American Literature


Heading 1
Heading 2
This is a paragraph
This is another paragraph
break line. Very useful for custom html messages.
line 1
line 2
line 3
Index
Col 1
ind 1
row 1


{% extends "base.html" %} {% block about_nav %} class="active"{% endblock %} {% block content %}
Eurorack planner is an open source web application that helps you plan your eurorack setup. We welcome any contributions to the codebase, source code is available at: http://github.com/udbhav/eurorack-planner. Addititional information may be found on the thread at Muff Wiggler's.
Bugs/Feature Requests? Open an issue on Gitub.
Questions/Comments? Please email<EMAIL_ADDRESS>This project is developed and maintained by Udbhav Gupta.


17 arrested in Florida child porn sting; 2 worked for Disney
by The Associated PressWINTER HAVEN, Fla. - Authorities in central Florida say two Disney workers and a former assistant principal at a middle school were among 17 arrested in a child porn sting.
In a news release , Polk County Sheriff Grady Judd said Friday that the 17 men arrested range in age from 19 to 77.

Investigators say 40-year-old Brett Kinney of Lake Alfred told officers he had an addiction to child pornography and worked as a guest experience manager at Disney World.
In a statement, Disney says Kinney is no longer employed by the company and Durr is on unpaid leave.
It's unclear if either has an attorney who could comment on the charges.


GreenMail is an intuitive and easy-to-use test suite of
email servers for testing purposes. Supports SMTP, POP3, IMAP with SSL socket
support.
GreenMail is the first project that offers a test
framework for both receiving and retrieving emails from Java.
GreenMail is useful in the following scenarios:
SENDING
- System testing an application. GreenMail responds like a
regular SMTP server but does not deliver any email, which enables it to be
used in real life applications and real test cases. Messages can easily
be extracted, verified, and modified. Support for SMTPS (SSL) is enabled.
- GreenMail is an excellent choice for unit testing code
that needs to send email with a succinct, efficient (non-polling) way to
wait for messages to arrive, retrieve, verify. and modify messages.
- Note that retrieval of emails can be made with a simple
java method or through a provided POP3, IMAP retriever helper class.
- GreenMail SMTP is a far better and powerful than https://dumbster.sourceforge.net
while still being lightweight and fast. Dumbster has a hard-to-use API for
retrieving messages and is using polling wait for some of its operations.
Dumbster is only for SMTP testing, GreenMail is an entire email test
solution.
RETRIEVING
- Again GreenMail can be used for system or unit testing an
application needing to use POP3 or IMAP� by responding like a standard
compliant POP3 or IMAP server. Support for SMTPS (SSL) is enabled.
- GreenMail ships with an easy-to-use helper class for
retrieving.
SENDING AND RETRIEVING
- GreenMail can easily been
configured to use all or a combination of ports, protocols, and bind
addresses. For example, it is possible to run GreenMail on SMTP, POP3, POP3S and
IMAPS ports as easily as only SMTP.
- Many systems might already be
running these servers or don't allow non-root users to open the default ports
which is why GreenMail ships with a special configuration for testing.
| Copyright |
Copyright © 2006 Wael Chatila / Icegreen Technologies
|
| Author |
Wael Chatila |


Home > Exercise 01
Exercise 01 /exercises/01/app/catalog/catalog-directive.js
- Move catalogController into the catalog directive
- Implement a 25% discount on any items with a calcPrice over $100 in our catalog-directive controller.
- Bonus: set the on sale items' onSale property to true, we'll use this later


TestResponsiveness
A tool developed for responsive testing
Desktop
Tablet
Tablet Landscape
Mobile
Mobile Landscape


{% extends "layout.html" %} {% block page_title %} GOV.UK - Benefit debt repayments {% endblock %} {% block content %} {% include "includes/phase_banner.html" %} Payment cancelled You have cancelled the payment process. No money has been taken from your account. Finish {% endblock %}
You have cancelled the payment process.
No money has been taken from your account.


Quietcool Manufacturing is now offering a $300 instant rebate for their stealth pro fan models 3.3 and above. This offer is only available through Authorized Dealers like ourselves. Edison is currently offering all of its customers a $200 rebate for any homeowner that has a pre-existing central air conditioner, window air conditioner, or a heat pump and gets a whole house fan installed. Click below to learn more about how to take advantage of this rebate!
There are numerous benefits using a whole house fan but the above listed are very common. Did you know that a whole house fan can also alleviate allergens or help with asthma? Breathing fresh clean air is better than breathing in air that is being recycled into your home.
Feel refreshed, cool, and comfortable with clean, outdoor air. With a Quiet Cool Whole House Fan, you’ll instantly feel 5-10 ºF cooler.
Save up to 90% on AC costs with a Quiet Cool House Fan by using a fraction of energy compared to A/C! Help keep the world green.
Give your home a breath of fresh air by eliminating manufactured, recycled air and replacing it with fresh outdoor air.
Open a few windows any time it's cooler outside than inside, typically in the morning and evening.
Turn your QuietCool fan on by setting the speed and timer.
QuietCool pulls in cool, fresh air from outside and expels hot, stale air out attic vents.
Your home has now been made cooler, healthier, and more comfortable.
Our Stealth Pro X Series is the efficient Whole House Fan that mastered low cost cooling with powerful results. With our sleek design, patented technology, and reliable production, you can utilize an ultra-energy efficient motor to keep your home cool and your money saved.
Our Trident Pro X Series is a powerful whole house fan that lives up to its name. Consisting of several models, this lineup can produce airflow ranging from 1,500 CFM all the way up to 7,000. The Trident Pro X has an energy-efficient Permanent Split Capacitor Motor (PSC). This Permanent Split Capacitor Motor uses sealed ball bearings to increase durability and longevity. This Whole House Fan is sold by local authorized dealers and installers.
Traditional Attic Fans are what most homeowners have in their homes when it comes to attic fans. These fans push a lot of air, are powerful, and reliable. These fans often come with a thermostat that can be set to when you want your attic fan to run and can push air at up to 2,000 CFM. These attic fans are typically less expensive and perfect for anyone who wants a cheap alternative to their high A/C costs and reliable production to keep their attic and home cool.
Lorem ipsum dolor sit amet consectetur adipisicing elit. Tempora soluta, architecto enim quam deserunt dolorum nulla consectetur adipisci ut sint autem mollitia non officiis perferendis consequuntur ex minima voluptatem error.
Lorem ipsum dolor sit amet consectetur adipisicing elit. Quod nisi voluptatem ea, beatae amet laborum quas possimus eaque pariatur debitis odit vero enim quae deserunt cumque exercitationem ratione in unde!
Lorem, ipsum dolor sit amet consectetur adipisicing elit. Blanditiis fuga laborum doloremque molestiae atque, totam adipisci nemo? Modi quas dignissimos laboriosam ducimus, rerum perferendis eos dolor magnam minima ut corporis.
Lorem, ipsum dolor sit amet consectetur adipisicing elit. Blanditiis fuga laborum doloremque molestiae atque, totam adipisci nemo? Modi quas dignissimos laboriosam ducimus, rerum perferendis eos dolor magnam minima ut corporis.
Lorem, ipsum dolor sit amet consectetur adipisicing elit. Blanditiis fuga laborum doloremque molestiae atque, totam adipisci nemo? Modi quas dignissimos laboriosam ducimus, rerum perferendis eos dolor magnam minima ut corporis.
Lorem ipsum dolor sit amet consectetur adipisicing elit. Enim veniam in praesentium vitae amet? Quidem error modi aperiam ab, cum libero nulla aliquid deserunt, nihil aut obcaecati odio et esse!
I love QC ipsum dolor sit amet consectetur adipisicing elit. Qui porro ratione quas quod ut ab amet magnam, ad modi rerum animi consequatur nobis. Recusandae, doloribus necessitatibus cupiditate sed ipsa doloremque!


Your order confirmation has been sent to<EMAIL_ADDRESS>You can track and view details of your order at any time via our order tracking page.
We’ll also be in touch with an update as soon as your order has been dispatched from our warehouse. Our Customer Care team is always if you require any further information or if you have any questions regarding your recent order.
Subtotal (2item)£29.99
VAT (20%)£3.95
Standard Delivery£3.99
Total to pay£33.98
John doe, Mirpur, Dahaka, Bangladesh
John doe, Mirpur, Dahaka, Bangladesh


{{ partial "header.html" . }}
{{ T "layouts_docs_glossary_description" }}
{{ T "layouts_glossary_filter" }}
{{ T "layouts_glossary_click_details_before" }} [+] {{ T "layouts_glossary_click_details_after" }}
{{ partial "glossary-terms.html" . }} {{ $glossary_items := $.Scratch.Get "glossary_items" }} {{ with $glossary_items }} {{ $glossary_terms := sort . "Title" "asc" }}


Week 1 - Functions
-
Parameters are not checked
function fun1(arg) { return arg; } fun1(); // undefined fun1(42, 35, "hello"); // 42
-
No function overloading
function fun2(arg) { return 1; } function fun2(arg) { return arg; } fun2(); // undefined fun2(42, 35, "hello"); // 42
-
return
keyword requiredfunction noReturn() { 1; } noReturn(); // undefined
Curly brackets constitute a function body
-
Functions can be freely bound to new variables
const myfun = fun1;
-
Higher-order functions
function fun1(fun2) { return function fun3(arg) { return fun2(arg); ; } }
-
Curried functions
const plus = (x) => (y) => (x+y); const intermediate = plus(3);
Lambda Expressions
const sum = function (a, b) { return a + b };
// can be written as:
const sum = (a, b) => a + b;
// or
const sum = (a, b) => { return a + b };
// parentheses optional for one parameters
const sum = a => a;
// without parameters
var noop = () => {} // noop
// application:
1,2,3,4].filter(function (value) {return value % 2 === 0});
[// to:
1,2,3,4].filter(value => value % 2 === 0); [
Canvas
const canvas = document.getElementById("canvas");
const context = canvas.getContext("2d");
.fillStyle = "black";
context.fillRect(0, 0, canvas.width, canvas.height); context
Key Events
const rightArrow = 39;
const leftArrow = 37;
window.onkeydown = evt => {
.keyCode === rightArrow) ? ... : ...;
(evt; }
Game Loop
setInterval( () => {
nextBoard();
display(context);
, 1000 / 5); }
Resources
Example
A function plus
that returns the sum of its arguments:
const plus = x => y => x + y;
Week 2 - Lambda
JavaScript Variables
Only use let
and const
:
let x = ...; // mutable, local scope
const x = ...; // immutable, local scope
let
vs var
: let
allows you to declare variables
that are limited to the scope of a
block
statement, or expression on which it is used, unlike the
var
keyword, which declares a variable globally, or locally to an entire
function regardless of block scope. The other difference between
var
and let
is that the latter is initialized to a value only
when a
parser evaluates it (see below).
IIFE
immediately invoked function expression
function foo() {..}; foo()
function foo() {..} ) ()
( function() {..} ) ()
( => {..} ) () ( ()
Alpha Translation
const id = x => x
const id = y => y
Beta Reduction
=> x => f(x) ) (id) (1)
( f => id(x)) (1)
( x id(1))
( => x) (1)
(x 1
Eta Reduction
=> y => plus (x) (y)
x => plus (x)
x plus
Examples
F3
is a proper eta reduction of F2
const id = x => x;
const konst = x => y => x;
const F1 = x => y => konst (id) (x) (y);
const F2 = x => konst (id) (x);
const F3 = konst (id);
a1
is a proper beta expansion of a2
const id = x => x;
const a1 = y => id(y);
const a2 = y => y;
a2
is a proper beta reduction of a1
const id = x => x;
const a1 = y => id(y);
const a2 = y => y;
id1
and id2
are alpha-equivalent
const id1 = x => x;
const id2 = y => y;
Week 3 - Lambda
Atomic Lambda Terms
// atoms
const id = x => x;
const konst = x => y => x;
// derived true, false, and, or, equals, â€¦
const F = â€¦;
const T = â€¦;
Pair, Product Type
const pair = x => y => f => f(x)(y);
const fst = p => p(T);
const snd = p => p(F);
Pair encoding
const person =
=>
firstname =>
lastname =>
age pair (pair(firstname)(lastname)) (age);
const firstn = p => fst(fst(p));
const lastn = p => snd(fst(p));
const age = p => snd(p);
Either, Co-Product, Sum
// dual of the product
const pair = x => y => f => f(x)(y); // one ctor
const fst = p => p(T); // accessor 1
const snd = p => p(F); // accessor 2
// here we have now the basic sum type
const Left = x => f => g => f(x); // ctor 1
const Right = x => f => g => g(x); // ctor 2
const either = e => f => g => e(f)(g); // accessor
Special Case: Maybe
// go around null / undefined
const Nothing = Left ();
const Just = Right;
const maybe = either;
maybe (expressionThatMightGoWrong)
(handleBad); (handleGood)
Example
// error handling with either
const eShow = result => result (msg => msg) (val => "Result is:" + val);
Week 4 - Map/Filter/Reduce
Map
const times = a => b => a * b;
const twoTimes = times(2);
1, 2, 3].map(x => times(2)(x));
[1, 2, 3].map(times(2));
[1, 2, 3].map(twoTimes); [
Filter
const odd = x => x % 2 === 1;
1, 2, 3].filter(x => x % 2 === 1);
[1, 2, 3].filter(x => odd(x));
[1, 2, 3].filter(odd); [
Reduce
const plus = (accu, cur) => accu + cur;
1, 2, 3].reduce((accu, cur) => accu + cur);
[1, 2, 3].reduce(plus);
[
// variant with initial accu value as 2nd argument
// then cur starts at first element
1, 2, 3].reduce(plus, 0); [
Examples
// function that checks which numbers in an array are divideable
// by the given argument
const divides = x => y => y % x === 0;
// function that joins values of an array together with given argument
const join = (a) => (b, c) => b + a + c;
// function that doubles its argument
const twice = (a) => a * 2;
const numbers = [1, 2, 3].map(twice); // yields [2,4,6]
Week 5 - Scripting, PWA, Plotter, Excel
Why Scripting?
- Command Line
- Automation
- Build System
- Templating
- Code Distribution
- Formulae
- Business Rules
- Smart Configuration
- Product Lines
- DSL
- Self Modifying Code
- much more
Scripting Characteristics
- Interpreted, not compiled (in principle)
- Lenient type system
- Best Effort approach
Progressive Web App
Loading test suite dynamically :
document.write('<script src=...');
Function Plotter: eval
Works as if the code was copied verbatim in the place of the eval. => You share the scope.
eval('some code'); // not side effect free!
Function Plotter: Function()
Function()
is like eval()
but declares
parameters and executes in the global scope. It creates a reference.
const add = Function('x', 'y', 'return x+y'); // only evaluated once!
add(1, 2);
add(2, 3); // no need to re-parse
Scripting Caution
In JavaScript you cannot exclude possibly harmful side effects from scripts that are loaded from foreign sourcesâ€¦
- Privacy, Security, Stability
Examples
Calculate the bonus with given attributes:
const bonusCalculation = x => x.bonus = eval(x.revenue) * factor_;
Calculate the bonus with given attributes using Function():
const bonusCalculation = Function('x', 'return x.bonus = x.revenue *' + factor_);
Week 6 - Objects
What are objects?
- Data structures + methods for access and management (+ a location for mutable state, + abstraction and polymorphism)
Open & dynamic
- JS Objects
const good = {
firstname : "Good",
lastname : "Boy",
getName : function() {
return this.firstname + " " + this.lastname
};
}// no safety but super dynamic
// unobvious how to share structure
// beware of "this"! See Adam Breindl last week.
Closed & explicit
Closure scope, no this.
function Person(first, last) {
let firstname = first; // optional
let lastname = last;
return {
getName: function() {
return firstname + " " + lastname }
}
}
}// best safety, easy to share structure, but no class
Mixed & classified
Depends on new. Is the default construction.
Still dynamic but all instances can be changed at once by changing the prototype!
const Person = ( () => { // lexical scope
function Person(first, last) { // ctor, binding
this.firstname = first;
this.lastname = last;
}.prototype.getName = function() {
Personreturn this.firstname + " " + this.lastname;
;
}return Person;
; // IIFE
}) ()// new Person("Good", "Boy") instanceof Person
Prototype
- Classifies objects similar to a type
- Manages shared properties
- Is itself an object
- Can be checked, e.g by instanceof
New
- Creates a new Runtime-Scope
- Calls the constructor-Function (cannot be a lambda)
- Sets the prototype
Example
Check whether two Arrays are equal:
Array.prototype.eq = function(array) {
if (this.length !== array.length) return false;
for (let i = 0; i < array.length; i++) {
if (this[i] !== array[i]) return false;
}return true;
}
Week 07 - Classes
class
Keyword
class Person {
constructor(first, last) {
this.firstname = first;
this.lastname = last
}getName() {
return this.firstname + " " + this.lastname
}
}// new Person("Good", "Boy") instanceof Person
extends
Keyword
class Student extends Person {
constructor (first, last, grade) {
super(first, last); // never forget
this.grade = grade;
}
}const s = new Student("Top","Student", 5.5);
Prototype chain
const s = new Student()
// s.__proto__ === Student.prototype;
// Object.getPrototypeOf(s) === Student.prototype;
// => s instanceof Student
Example
Function composition -> it must work for all functions!
Function.prototype.then = function(fun) {
// this(number -> result of the first function
// with the value at the end f.e. ..(1))
const compose = fun => number => fun( this(number) );
return compose(fun);
}
Week 08 - Moves and User Interfaces
Compare with Dancing
- You must learn the moves.
- Then you can combine the moves and adapt to the situation at hand.
Recognize Moves
- Become aware what you do.
- We program collaboratively and look for moves.
Task 1: Improve the Tests
- More structure.
- Better reports when tests fail.
- smooth transition.
Task 2: Todo List Example
- What is the expected result?
- What is the simplest thing that could possibly work?
Moves - Your Choice
0. Explore
- Technical feasibility, hypotheses, border cases.
- The goal is to learn and verify, delete when finished.
- Give yourself a timebox.
1. Start at the End
- Make static sketch of the result before adding dynamic features.
- Dynamic sketches: all JS, CSS in a single HTML file.
2. Extract
- Replace static values with variables.
- Replace repetitions with mappings and loops.
3. Abstract
- Discover the concept behind what you have extracted. Give it a name.
- It should work for itself and in combination.
- Revert if you cannot find one.
4. Reorganize
- Organize and re-factor to make your future work easier.
- Facilitate extensions or improvements.
- Prepare for release.
5. Release
- The solution must stand on its own without tacit knowledge or external help.
- Tests, documentation, examples.
- Before every push to the Repository.
6. Retrospective
- What to keep?
- What to try differently next time?
Observations
- Balance & distance
- Which technologies support my moves: dynamic exploration, refactoring
- Per feature, per project, whole career, â€¦
Example
Failsafe callback:
const failSafe = defaultValue => callback => argToCallback => {
return argToCallback === null ? defaultValue : callback(argToCallback);
}
9. UI Engineering, MVC
Callback - Higher Order Function
Higher-order Function.
function test(name, callback) {
const assert = Assert(); // prework
callback(assert); // callback
report(name, assert.getOk()); // postwork
}
Observable
const Observable = value => {
const listeners = []; // many
return {
onChange: callback => listeners.push(callback),
getValue: () => value,
setValue: val => {
if (value === val) return; // protection
// ordering
= val;
value .forEach(notify => notify(val));
listeners
}
}; }
Red-Green-Refactor
Red-Green-Refactor is a basic concept in Test-driven Development (TDD) and consists of three stages:
- RED: Write unit tests for whatever it is you want to code
- GREEN: Write a minimal implementation such that the unit tests all pass
- REFACTOR: Refactor the basic implementation and test again, making sure that all tests are still passing
MVC
Example
Using Observable that it keeps track of the sum of all values:
.onChange( _ => sum += trackable.getValue()); trackable
10. Async Programming
Testing
test("todo-memory-leak", assert => {
const todoController = TodoController();
.onTodoAdd(todo => {
todoController.onTodoRemove( (todo, removeMe) => {
todoControllerremoveMe(); // idea: self remove
;
});
})
for (let i=0; i<10000; i++){
const todo = todoController.addTodo();
.removeTodo(todo);
todoController
}; })
Callback, Events
function start() {
//...
window.onkeydown = evt => {
// doSomething();
;
}setInterval(() => {
// doSomething();
, 1000 / 5);
} }
Promise
Most prominent use:
fetch ('http://fhnw.ch/json/students/list')
.then(response => response.json())
.then(students => console.log(students.length))
.catch (err => console.log(err)
Success / Failure callbacks:
// definition
const processEven = i => new Promise( (resolve, reject) => {
if (i % 2 === 0) {
resolve(i);
else {
} reject(i);
};
})
// use
processEven(4)
.then ( it => {console.log(it); return it} ) // auto promotion
.then ( it => processEven(it+1))
.catch( err => console.log( "Error: " + err))
Async / Await
const foo = async i => {
const x = await processEven(i).catch( err => err);
console.log("foo: " + x);
;
}foo(4);
Other variant:
async function foo(i) {
try {
const x = await processEven(i);
console.log("foo: " + x);
}catch(err) { console.log(err); }
;
}foo(4);
Example
A NullSafe construction in the style of a Promise
:
const NullSafe = x => {
const isNullSafe = y => y && y.then;
const maywrap = y => isNullSafe(y) ? y : NullSafe(y);
return {
then: fn => (x !== null && x != undefined)
? maywrap(fn(x))
: NullSafe(x)
}; }
11. Data Flow
Coordination schemata
Similar to concurrency
- No coordination needed
- Sequence (of side effects)
- Dependeny on former results
No Coordination
Nothing to do !
- Execution model: confined
- All actions run independently
Sequence
Actor
- In a sequence of actions, each action can only start if the preceding one has finished
- How to achieve this => Delegated Coordination => Scheduler
Result Dependency
- Action B and C need the result of action A
- A must be executed exactly once before B and C
- How to do this => Implicit Coordination => DataFlowVariable
Scheduler Idea
- Queue (FIFO) of functions that are started with a lock
- Callback unlocks
DataFlowVariable
- Function, that sets a value if it is not already set. Returns the value.
- Lazy: Access to variables that will become available later
- Trick: Do not set the value, but a function that returns the value
12. Modules
Why Modules?
- Organize the Code
- Clear dependencies
- Avoid errors: Globals, Scoping, Namespace
// avoid something like this in your html document
<script src="fileA.js">
<script src="fileB.js">
<script src="fileC.js">
// if fileA.js has a reference on fileC.js it won't work !!!
Distinguish
- How I want to edit the code
- How I want to deliver the code
ES6 Modules
They are notâ€¦
- Packages (those have versions)
- Dependencies, Libraries, Releases
- Units of publication
- Objects
Package Manager
webpack
, npm
, bower
,
yarn
, â€¦
Build Tools
webpack
, npm
, grunt
,
gulp
, â€¦
Legacy module systems
CommonJS
, AMD
, UMD
, â€¦
Legacy Module Loader / Bundler
RequireJS
, SystemJS
,
browserify
, â€¦
Modules are async
// Use URI format as follows: "./myFile.js"
<script src="./myFile.js" type="module"> // type implies "defer"
import ("./myFile.js").then( modules => ... )
// invasive, transitive impact
Import Variants
Always explicit!
// most used
import "module-name";
import { export1, export2 } from "module-name";
// other variants
import defaultExport from "module-name";
import * as name from "module-name";
import { export } from "module-name";
import { export as alias } from "module-name";
var promise = import("module-name");
Export Variants
Always explicit!
// most used
export { name1, name2, ... , nameN };
// other variants
export function FunctionName() { .. }
export const name1, name2, ... , nameN; // or let
export class ClassName { .. }
export default expression;
export { name1 as default, .. };
export * from .. ;
export { name1, name2, ... , nameN } from .. ;
Impacts
- implicit use-strict exports are read-only !
- no Global object, no Global this, no Global hoisting
-
implicit defer mode =>
document.writeln
is no longer useful - Modules are Namespaces
- Modules are Singletons
SOP - Single Origin Policy
- Modules are subject to the SOP
- Problem at construction time: the File System is a null origin
Useful Tools
- Developer Mode (suppress SOP) -> donâ€™t forget to set back!
- Local Webserver
- Disable cache!
- Bundler (Rollup, Parcel, Webpack, â€¦)
- Start Browser in Debug mode
Resources
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import
- http://exploringjs.com/es6/ch_modules.html
13. Transpilers: TypeScript, PureScript, Elm
What they have in common
- All are transpiling to JavaScript !
-
Allow React / Elm Architecture for functional JavaScript / SPA
- TypeScript + React
- PureScript + Pux / Halogen
- Elm
The Cycle
-> Action -> State -> State ___________|
View ^ |
|__________________________________________|
TypeScript
- Typed state
- Actions as functions / lamdas
- State immutability with discipline
- Object / component abstraction
Elm
- Typed state
- Action type with values
- State is immutable
- Update function is a fold
- Function composition
PureScript / Pux
- Like Elm
- But even more Haskell-ish
- https://try.purescript.org/
// signature
// name quantifier type variables
:: forall a b . a -> b -> a
konst // definition
= x konst x y
Calling JavaScript (FFI)
| TypeScript | Type declaration |
|---|---|
| PureScript | Type declaration |
| Elm | Port / Flag |
Applicability
| TypeScript | JS Environment |
|---|---|
| PureScript | JS Environment |
| Elm | Browser |
Paradigm
| TypeScript | OO with Generics |
|---|---|
| PureScript | Functional |
| Elm | Functional |
Approach
| TypeScript | Language |
|---|---|
| PureScript | Language & Tools |
| Elm | Programming System |
Cool
| TypeScript | Sum (union) type , String Literal type |
|---|---|
| PureScript | Eff Monad, [GADT] |
| Elm | Time travel debug , SemVer guarantee |
More Transpilers
| ClojureScript | Clojure (Lisp) |
|---|---|
| GHCJS | Haskell |
| Babel | JS |
| CoffeeScript | JS++ |
| GrooScript | Groovy |
14. Crazy Javascript
Equivalence and Transitivity
== b == c => a == c
a 0 == "0"
0 == []
0 == "\t"
False values
false, null, undefined, "", 0, NaN
Falsy and truthy:
- falsy = what coerces to false
- true = everything that isnâ€™t false
- truthy = what coerces to true
Coercion
implicit: "0" === 0, +"0", !"0", !!"0"
explicit: Number("0") == 0
Rule of thumb (reliability): object -> string -> number -> boolean
== vs ===
==
coerces the operands whereas ===
does
not!
if(x)
should be the same as
if(x == true)
for all x. However:
if("0") // no coercion
if("0" == true) // coercion
Takeaway: Prefer ===
over
==
!
Crazy Numbers
Number("-0") // -0
JSON.parse("-0") // -0 but JSON.stringify(-0) // "0"
String(-0) // "0"
typeof null, null instanceof Object,
typeof NaN, NaN == NaN, NaN == !NaN
typeof (1/0)
0.1 + 0.2 === 0.3
999999999999999999
Number.MAX_VALUE > 0
Number.MIN_VALUE < 0 // ?
Math.min(1, 2, 3) < Math.max(1, 2, 3)
Math.min() < Math.max() // ?
Crazy Comparison
Comparison coerces to numbers:
1 < 2 < 3 === true
3 > 2 > 1 === false // why?
== {} // false
{} > {} // false
{} >= {} // true {}
Cool Deconstructor
function foo() {
var x = 2, y = 3;
return {x: x, y: y};
}
var {x ,y } = foo(); // extract multiple values from the return object
Elvis and Guard
= null;
let a = a ? a : "default"
let b = a || "default"
let b = a ? guardedOperation() : a
let b = a && guardedOperation() let b


Recen
tile
Jokes
Highlighter
Highlighter is already activated. Select the text you want to highlight.


{% extends "base.html" %} {% import "bootstrap/wtf.html" as wtf %} {% block content %}
Are there online shows or live/recorded classes that you follow? Do they inspire you? If so, please share so our community can also be inspired.


A Fork-n-Go project is a project on GitHub that in a few clicks and starting with a fork, gives another user a live website that they control with an easy to swap-for-your-own Google Spreadsheet database.
To awesome things that make this possible: Forking and GitHub Pages.
On GitHub, a fork is a full copy of a repository, on your account, that you can manage and edit. It's done with the click of a button.
GitHub Pages is the hosting service that GitHub provides free to all users, organizations and repositories. This means everyone of these entities or project can have it's own website at a predictable domain:
To have a website for a repository all you need is a branch named gh-pages
. GitHub will then look in that branch for web files and serve them up at the address.
What all of this means is that Sheetsee.js projects, hosted on gh-pages branches on GitHub, can easily be forked and connected to another spreadsheet giving another user a live website of their own really easily.
A Fork-n-Go example from my blog post on the topic:
I made this website to collect hack spots all over the world from friends and friends of friends (the spreadsheet is wide open, so you can add some, too!). It’s using sheetsee to power the table, map and other elements of the page. Its source is in this repo, with just a gh-pages branch. To create an instance of this site for yourself all you need to do:
Now you have the same site connected to a spreadsheet that you manage — it’s live and can be found at yourGitHubName.github.io/theReposName.


| DOSE: |
10 mg |
smoked |
5-MeO-DMT |
(powder / crystals) |
It was a Saturday night at around 12:30 and I had smoked a bit of weed before I had gotten to my friends apt. When I got there I walked into my friendís room and they were all sitting around passing around a small metal bowl with some 5-MeO-DMT in it. When they offered the bowl to me I hit it and exhaled the smoke very slowly.
There must have been at least 10mg left. This was the fourth time that I have smoked 5-MeO-DMT, but this was for sure my most profound experience I have ever had with any drug. After a couple seconds of smoking it, all of a sudden I felt as if I was not in the room anymore. My heart was beating. I could hear it inside of me. I kept saying 'itís ok, Iím all right,' to myself. I felt fear, terror, and panic. I was sitting on the bed and one of my friends was sitting next to me. I didnít know what was going on. I was squirming backwards into him not knowing what I was doing. Then all of a sudden the fear and terror went away, and I thought I was dead and was somewhere else.
I then sat up and with a big smile on my face, I was happy to be dead and I thought I was in heaven. It was like waking up to life and I compared it to the matrix. I felt as if i was an individual who encounteredd the oneness of life, and that we were all the one, like neo was. I thought my friends showed me the way, the way to heaven and that I entered the gateway. They all had a part in my journey there, and they were there to teach me, I felt as if I was woken up like neo from the computer-controlled world and was in a pure state of love and happiness.
They too, I thought were in heaven and it felt like a dream within a dream. I went around the room and hugged each one of my friends, thanking them for teaching me and being led to them in my journey of life. Then I remember the phone ringing and I thought it was my parents or someone confirming to them that I was dead. (After the experience I found out it was just my friendís girlfriend.) Then I sat back down on the bed and starting talking, I do not remember what I said then, but I can remember every action and every move I made, very clear. Then all of a sudden I start walking towards the living room, thinking I need to go lie down and rest for my long journey ahead.
But then all of a sudden it just all went away, I felt as if I woke up and came back to my body or reality, from where ever I was. It had happened so fast, but it seemed liked forever. The perfect word to describe it is Timelessness. I had such a hard time trying to figure out why I thought I was dead, I couldnít believe a drug would change my perception of things so much, that it would make me think I was dead.
After sitting down a bit I was still coming to my senses with this whole experience. What I did learn from this experience cannot be described, only felt. It is a feeling of love and happiness, having no fear in life, being open-minded to all things, and not letting anything or anyone control you. Life can be so short sometimes so it is good to show your love for all things now before you die because you never know what can happen.
Experience Reports are the writings and opinions of the individual authors who submit them.
Some of the activities described are dangerous and/or illegal and none are recommended by Erowid.


You can get a reference to the Account Store by passing some options to the createAccountStore
call:
var store = Social.createAccountStore({
type: Social.ACCOUNT_TWITTER
});
You are required to pass some options to the account store for facebook:
var options = {};
options[Social.FACEBOOK_APP_ID] = 'your_app_id';
options[Social.FACEBOOK_PERMISSIONS] = ['read_friendlists', 'read_stream', ...];
var store = Social.createAccountStore({
type: Social.ACCOUNT_FACEBOOK,
options: options
});
var store = Social.createAccountStore({
type: Social.ACCOUNT_SINAWEIBO
});
You must call grantPermission on the AccountStore object before you'll be able to call any other method on the object. The grantPermission asks the user for permission to use the on-disc account storage.
It accepts the following params:
denied: a callback called if the user denies permission to your application
var accountStore = <see above>
accountStore.grantPermission({
granted: function(e) {
alert('Permission granted!');
},
denied: function(e) {
alert('Permission denied!');
}
});
Returns the stored list of accounts. Each object of the returned list is an Account object.
accountStore.grantPermission({
granted: function(e) {
var accounts = accountStore.accounts();
alert("Number of accounts: " + accounts.length);
}
});
Returns an Account with the identifier passed as a parameter.
Returns null
if there isn't any.
accountStore.grantPermission({
granted: function(e) {
var account = accountStore.accountWithIdentifier('123123123-12312-3123-12312-31231');
Ti.API.log("Account is " + account);
}
});
Saves an Account into the AccountStore persistent storage. The first argument should be the filled Account object. The second argument is a dictionary with the following keys:
failure: a callback fired if the save fails. It contains an error message on the event error
key
(see example)
var account = ...; accountStore.save(account, { success: function(e) { alert('Saved :D'); }, failure: function(e) { alert('Failed. Reason: ' + e.error); } });
Removes an Account from the AccountStore persistent storage. The first argument should be a valid Account object. The second argument is a dictionary with the following keys:
error
keyTries to renew the credentials for the Account object passed as the first param. The second argument is a dictionary with the following keys:
result
key passed on the event object.


| Class | Color | Description |
|---|---|---|
| Normal | Default | Default color to a particular row or cell |
| active | Gray | Active color to a particular row or cell |
| success | Green | A successful or positive action |
| info | Blue | A neutral informative change or action |
| warning | Yellow | A warning that might need attention, but not too scary |
| danger | Red | Dangerous or potentially negative action |
You can use:
| Class | Color | Description |
|---|---|---|
| Normal | Default | Default color to a particular row or cell |
| active | Gray | Active color to a particular row or cell |
| success | Green | A successful or positive action |
| info | Blue | A neutral informative change or action |
| warning | Yellow | A warning that might need attention, but not too scary |
| danger | Red | Dangerous or potentially negative action |


Removes a range or ranges from the grid.
removeRange(range_name, [range_name], ...)
| range_name |
string, field name of the column |
Returns integer.
Description
Removes a range or ranges from the .ranges array. The range is identified by the
name, which you provide when you add a range with .addRange() method.
The method returns the number of ranges it removes.
If you have grid defined as:
You can add a range by:
And remove this range by:


Homozygosity Mapping Using Only Exome Data Adam P. DeLuca, V. Nikhil Anand, Todd E. Scheetz, Edwin M. Stone, and Terry A. Braun Terry Braun is the author for correspondence.


From staff discount to flexible hours - Jobs being advertised at the Metrocentre right now
You can apply for a range of full-time and part-time jobs at the Gateshead shopping centre
by Kali LindsayIf you are looking for a new job, there are a number of opportunities at the Metrocentre.
From sales assistants, store managers and a head chef, there a various opportunities at the Gateshead shopping centre.
Jobs are available at Paperchase, Toby Carvery, Swarovski and Guess.
These are some of the positions currently being advertised:
Assistant store manager - Ann Summers
You could earn up to £21,000 and receive a 50% staff discount.
The firm is looking for a manager to motivate their team and ensure outstanding levels of customer service.
They are looking for someone who is passionate about the Ann Summers brand, experienced in managing a similar turnover store and who is able to demonstrate results.
You will be given two weeks training with an expert academy development manager who will ensure you will delight customers and achieve the best possible results.
To apply visit here
Supervisor - Paperchase
You will be responsible for leading the team on a part-time basis.
The successful applicant will have previous line management experience, high levels of enthusiasm, the ability to excel in a fast paced environment and be able to work independently.
You will be given training and guidance from your line manage to support your development.
To apply visit here
Supervisor - Inglot Cosmetics
The store is a family run, Irish business that has 21 stores across the Republic of Ireland, Northern Ireland and UK, with more than 200 employees.
On a 25-hour contract, the company is looking for a supervisor to help grow the business at the Metrocentre.
They are looking for someone who can being leadership to the store and inspire all employees to deliver exceptional service that will increase sales.
Head chef - Toby Carvery
You will be responsible for overseeing food ordering, food preparation, managing the team, stock control and ensuring all health and hygiene regulations are met.
As part of the role, you will train, motivate and inspire the team to deliver an efficient food operation and be responsible for the kitchen's financial performance.
The salary is £29,450 per year and you will get 33% off at all Mitchells and Butlers business when you eat.
Seasonal sales consultant - Swarovski
Duties for the seasonal sales consultant role at Swarovski include, but not limited to: support the store at the busiest time of the year, deliver excellent customer services, and to be an ambassador of the brand during peak time.
This role is for a 12-hour contract on a temporary basis.
To apply for this role, hand your CV in to the Swarovski store located in lower green mall.
Sales assistant - Be More Geek!
A part-time vacancy is being advertised at the shop which specialises in comic merchandise, games and props.
You will be greeting customers, be involved in stock control and assist shoppers to find products they are looking for.
As part of the role, you will be stocking shelves, answering queries and reporting discrepancies and problems to a supervisor.
You will have excellent customer service skills, friendly personality, comfortable working with others and members of the public.
To apply please email CV and covering letter to<EMAIL_ADDRESS>Cosmetics business manager - Giorgio Armani
Based within the House of Fraser outlet, you will be responsible for leading and driving the team to meet the business objectives.
You will develop positive relationships with department store floor managers and head office.
It will be your responsibility to connect with clients by providing good solutions and after sales.
Applicants must be willing to work flexibly during retail hours, with evenings, weekends and holiday hours likely.
To apply visit here
Sales assistants - Guess
There are supervisor, full and part-time sales assistant roles being advertised.
You will provide customer service and interact with customers.
You will be using the till, cash handling, stock replenishment and general store duties.
To apply email<EMAIL_ADDRESS>or take CV to store
Sales assistant - G-Star Raw
You will provide general duties and assist our customers.
To apply email your CV to<EMAIL_ADDRESS>Nando's assistant
In the role you will prepare food, provide customer service, cash handling and provide excellent food and hygiene.
You will have excellent customer service skills, eye for detail, excellent food standards and excellent time keeping. You must be able to work within a team.
To apply send your CV to N118@nandos.co.uk.


A flexible & stateless Select component for ReactJS
It's a lot like Selectize but for ReactJS. Developed by @furqanZafar. Licensed under the Apache License, Version 2.0, so do whatever you want with it!
Source & Documentation | API Reference | Changelog


Hey guys, welcome to the wizard :).
Please click here to continue
You're now in the second step of this wizard.
Magic things can happen here.
Click on the bottom navigation on Liking it to go back to that step for example
I can't deal with so many steps. ARGH
I don't even know what to write!
Finally this ends!


About
Hey, I am Dharmvir. I did my undergrad in Computer Science and currently working as a Data Analyst. I have a passion for both statistical analysis and computer programming which keeps pushing me to do more and more...
Skills
Skills
Problem-solving
Self-motivation
Data Preparation
Microsoft Office
Hobbies
Programming
Anime
Manga
FPS Games
Origami
Proficiency
Experience
Projects
-
2018
-
Mar, 2018
Gujarat Hackathon
Worked in a team of 7 student members as part of Gujarat Hackathon, a state government initiated program. Built an Android application for farmers, providing them with a platform to ask agriculture related questions and also display useful information about crops and farming.
-
2019
-
Apr, 2019
B.E. CS Final Project
Lead a team of 4 student members to create a platform for farmers that can allow them to communicate and share knowledge amongst themselves. We also utilized machine learning which detected pests and recommended appropriate remedies. Furthermore, information on various crops and their daily market rates were provided, so that the farmers can make a more profitable sales decision.
Jobs
-
2015
-
Jun, 2015
Volunteer
GVT - Bharuch, GujaratCreated a computer application using JAVA, which can keep track of employees’ leaves and their contact details for a district based Non-Profit Organization, Gram Vikas Trust.
-
2019
-
Jan, 2019
Intern
District Administrator - Alleppey, KarelaDesigned and created a web application, under the guidance of UNICEF deployee, for schools and District Administration. Individual schools can keep track of their general and infrastructure details. These data then can be used for damage assessment in case of disasters. The schools can also download information for disaster preparedness. The district government can generate, view and download reports for planning, fundraising and monitoring purposes. The RaPiD web application was launched on 4 January by the state ministers with news covered by local media.
-
Jul, 2019, current
Data Analyst
KMK Consutling Inc - Vadodara, GujaratWorking with a US based pharmaceutical client to provide meaningful insights from data and to drive forward their sales.


Welcome to the Median XL Bestiary! Just two notes about bosses, though: -Super Unique quest bosses can’t be physically immune.
-Super Unique Bosses have two preset unique modifers and get two extra random ones, here you have the full list and what each of them does:Extra Strong-
Extra Fast-
Cursed-
Magic Resistant-
Fire Enchanted- (Not Random)
Lightning Enchanted- (Not Random)
Cold Enchanted- (Not Random)
Mana Burn-
Teleportation-
Spectral Hit-
Multiple Shots- (Not Random)
Stone Skin-
-Only the list is done by now, some have changed in MXL, so I have to make sure of a few things. Kthx.
-Lazy NexX.
:P
Now, I tend to avoid the use of abreviations to make things more comprehensible. But I also have the bad habit of sleeping, so I did use them. A lot of times:
Acronyms, Concepts and Build-names of Median XL, by Sing_In_Silence <- This, my dear reader, explains the meaning every single strange thing I say, like “mob” or ND.
Also extremely helpful, even though admitedly less related, are the Less Frequently Asked Questions, by Sing_In_Silence too.
-Several rigorous scientific studies have proven that the levels of win of an average subject increase almost exponentially while thoroughly reading the LFAQ-
To do list:
Done stuff list: Because I’m not always such a lazy bum.
-Succesfully reposted with space enough :).
-All five Acts’ normal population complete.
-Bosses completed up tp Act 4.
-Nice poster for the Bestiary, Act signs and more random grfx added. Kthx.
-Monters rearranged per type.
-Hunted lotsa taepoz down. Thanks go to Sing_In_Silence, Astfgl, phenox_1707 and Ilikeapples/his incarnation.
To do list: Because sometimes, most in fact, I am a very lazy bum.
-Adding eye candy. For the sweet mother of Satan, that is BORING!
-Omaigawd hntin’ MOAR TAEPOZ!
-Making Heroic monsters and bosses section.
-Making a section for monsters and bosses in uberquests.
-Counting all of the monsters so that I can state that “in Median XL you can come across ???? different monsters”. Possibly while I’m at it, I’ll also count the ones with new animations. –Actually Word will do wonders with this :P.
-A census on Miss Cellaneous’ Dominions (Exploitables, Rathma Priests, Sacrificial -Lambs...)
----Sleeping.
-Allied Monsters Section.
That’s it. Now GTFOH. :P
^^


cdemi's
05 November 2019 |
Software Development #Software #Dev #Programming |
🔥 GraphQL Crash Course (in 10 pics!) (dev.to) |
| Always wanted to use GraphQL for your new projects, but never got time to learn how it works? 😃 Let's start the week with some new GraphQL knowledge in hand! 🙌 👇 Here's a 10-minute GraphQL crash course for you! 🥳... Read more |
GraphQL a cut above the REST, say query lang's fans: Airbnb, Knotel, others embrace the tech (theregister.co.uk) Data Web |
| Data-fetching scheme seems to be catching on... Read more |
.NET #dotNet |
C# 8.0 and .NET Standard 2.0 - Doing Unsupported Things (stu.dev) csharp |
| If you haven't heard, C# 8.0 is not supported on anything below .NET Core 3. This is in part due to the fact that some of the features cannot run on runtimes below .NET Core 3, and rather than complicate things, C# 8.0 is considered an all-or-nothing choice. This presents a bit of a problem, because you might be tempted to use some the compelling new features in a lower target, particularly if you are multi-targeting.... Read more |
Introducing Orleans 3.0 (devblogs.microsoft.com) |
| We are excited to announce the Orleans 3.0 release. A great number of improvements and fixes went in, as well as several new features, since Orleans 2.0. These changes were driven by the experience of many people running Orleans-based applications in production in a wide range of scenarios and environments, and by the ingenuity and passion of the global Orleans community that always strives to make the codebase better, faster, and more flexible. A BIG Thank You to all who contributed to this release in various ways! ... Read more |
DevOps |
Don’t Be Scared of Kubernetes (docker.com) docker enterprise Kubernetes |
| Kubernetes is powerful, but complex enough to scare people off. Here are 5 reasons it can seem intimidating to get started, and 5 reasons you shouldn't hesitate.... Read more |
Cloud |
Microsoft refreshes its range of Azure virtual machine offerings (neowin.net) microsoft azure virtual machines amd epyc uefi ignite 2019 nvidia gpu |
| With virtual computing solutions targeting a variety of workloads such as enterprise applications, visualization, and machine learning, Microsoft has announced updates to its Azure VM solutions.... Read more |
You can now use Azure to manage resources anywhere, including on AWS and Google Cloud (techcrunch.com) |
| With the preview of Azure Arc, Microsoft today announced a major step in the evolution of its hybrid cloud story. Azure Arc takes the work the company has done on projects like Azure Stack, throws in containers and Kubernetes, as well as new infrastructure management features, and then allows its u…... Read more |
Data |
New high availability and disaster recovery benefits for SQL Server (cloudblogs.microsoft.com) |
| Business continuity is a key requirement for planning, designing, and implementing any business-critical system. When you bring data into the mix, business continuity becomes mandatory. It’s an insurance policy that one hopes they never have to make a claim against in the foreseeable future. SQL Server brings intelligent performance, availability, and security to Windows, Linux, Read more... Read more |
Big Data |
An inside look at LinkedIn’s data pipeline monitoring system (engineering.linkedin.com) |
| Co-authors: Krishnan Raman and Joey Salacup ... Read more |
Security #InfoSec |
TLS Post-Quantum Experiment (blog.cloudflare.com) Crypto Week Crypto TLS Quantum Security |
| In June, we announced a wide-scale post-quantum experiment with Google. We implemented two post-quantum (i.e., not yet known to be broken by quantum computers) key exchanges, integrated them into our TLS stack and deployed the implementation on our edge servers and in Chrome Canary clients.... Read more |
General Tech #Tech |
Facebook unveils new logo to distinguish company from its products and services (neowin.net) facebook company logo facebook logo instagram whatsapp messenger |
| Facebook unveils a new corporate logo that it aims to use as a distinct brand for the parent company, distinguishing it from the products and services under it. It's going live over the coming weeks.... Read more |
|
This newsletter is made with 💖 by cdemi and sponsored by moo Research. You can find this MIT Licensed open-source project on GitHub cdemi/NewsletterCurator. You can also find an archive of all sent newsletters on GitHub at https://newsletters.cdemi.io/. If you want to unsubscribe from this newsletter, please click here. If you're new and you want to subscribe to this newsletter, please click here. |


Goal Builder Goal
| BENEFITS | goal 1 | ||
| WHAT IT WILL TAKE | goal1 | ||
| DO THIS | goal1 | NOT THAT | goal1 |
| MEASUREMENT | Do it 10 times per Weeks for a Max of times per 10 minutes. | ||
| DATE | 0000-00-00 | ||
| IMAGE | |||
| Delete this goal |
| BENEFITS | eat salad lunch | ||
| WHAT IT WILL TAKE | eat salad lunch | ||
| DO THIS | eat salad lunch | NOT THAT | eat salad lunch |
| MEASUREMENT | Any kind of measurement eat salad lunch frequency or time 123 | ||
| DATE | 0000-00-00 | ||
| IMAGE | |||
| Delete this goal |
| BENEFITS | |||
| WHAT IT WILL TAKE | |||
| DO THIS | NOT THAT | ||
| MEASUREMENT | |||
| DATE | 0000-00-00 | ||
| IMAGE | |||
| Delete this goal |
| BENEFITS | regular exercise exercise | ||
| WHAT IT WILL TAKE | regular exercise | ||
| DO THIS | regular exercise | NOT THAT | regular exercise |
| MEASUREMENT | Any kind of measurement regular exercise frequency or time 120 | ||
| DATE | 0000-00-00 | ||
| IMAGE | |||
| Delete this goal |
| BENEFITS | Take walking to running | ||
| WHAT IT WILL TAKE | Continue exercise | ||
| DO THIS | Time management | NOT THAT | Wasting time |
| MEASUREMENT | Any kind of measurement One frequency or time time | ||
| DATE | 0000-00-00 | ||
| IMAGE | |||
| Delete this goal |
| BENEFITS | Healthy family fun | ||
| WHAT IT WILL TAKE | Something that interests the kids | ||
| DO THIS | together | NOT THAT | Apart |
| MEASUREMENT | Any kind of measurement Every frequency or time week | ||
| DATE | 0000-00-00 | ||
| IMAGE | |||
| Delete this goal |
| BENEFITS | Reward myself | ||
| WHAT IT WILL TAKE | Feeling good about what I've accomplished | ||
| DO THIS | Celebrate | NOT THAT | Worry too much |
| MEASUREMENT | Any kind of measurement Every frequency or time Quarter | ||
| DATE | 0000-00-00 | ||
| IMAGE | |||
| Delete this goal |
| BENEFITS | Support, commaraderie | ||
| WHAT IT WILL TAKE | Find time | ||
| DO THIS | Research | NOT THAT | Procrastination |
| MEASUREMENT | Any kind of measurement One frequency or time time | ||
| DATE | 0000-00-00 | ||
| IMAGE | |||
| Delete this goal |
| BENEFITS | Reward for exercise and health gains | ||
| WHAT IT WILL TAKE | Commit to train | ||
| DO THIS | follow plan | NOT THAT | Lose focus |
| MEASUREMENT | Any kind of measurement One frequency or time time | ||
| DATE | 0000-00-00 | ||
| IMAGE | |||
| Delete this goal |
| BENEFITS | Re-connect with friends | ||
| WHAT IT WILL TAKE | Acceptance | ||
| DO THIS | Take a chance | NOT THAT | Be afraid of rejection |
| MEASUREMENT | Any kind of measurement Each frequency or time month | ||
| DATE | 0000-00-00 | ||
| IMAGE | |||
| Delete this goal |
| BENEFITS | Time to enjoy and relax | ||
| WHAT IT WILL TAKE | Create time | ||
| DO THIS | get a book | NOT THAT | Too much TV |
| MEASUREMENT | Any kind of measurement Every frequency or time week | ||
| DATE | 0000-00-00 | ||
| IMAGE | |||
| Delete this goal |
| BENEFITS | Job satisfaction and improve career | ||
| WHAT IT WILL TAKE | Commitment | ||
| DO THIS | Work harder | NOT THAT | Status quo |
| MEASUREMENT | Any kind of measurement Every frequency or time week | ||
| DATE | 0000-00-00 | ||
| IMAGE | |||
| Delete this goal |
| BENEFITS | Socialize, meet new people | ||
| WHAT IT WILL TAKE | Getting out of my shell | ||
| DO THIS | In the community | NOT THAT | Not staying at home |
| MEASUREMENT | Any kind of measurement Every frequency or time week | ||
| DATE | 0000-00-00 | ||
| IMAGE | |||
| Delete this goal |
| BENEFITS | Save money for my future | ||
| WHAT IT WILL TAKE | Change spending patterns | ||
| DO THIS | Think about spending | NOT THAT | Waste money |
| MEASUREMENT | Any kind of measurement 6 frequency or time months | ||
| DATE | 0000-00-00 | ||
| IMAGE | |||
| Delete this goal |
| BENEFITS | Feel good about community involvement | ||
| WHAT IT WILL TAKE | Think about others | ||
| DO THIS | Find a group | NOT THAT | Keep to myself |
| MEASUREMENT | Any kind of measurement Every frequency or time week | ||
| DATE | 0000-00-00 | ||
| IMAGE | |||
| Delete this goal |
| BENEFITS | learn about my town w/o spending money. | ||
| WHAT IT WILL TAKE | read about interesting things | ||
| DO THIS | get out and explore | NOT THAT | Be lazy |
| MEASUREMENT | Any kind of measurement Every frequency or time week | ||
| DATE | 0000-00-00 | ||
| IMAGE | |||
| Delete this goal |
| BENEFITS | Plan retirement finances | ||
| WHAT IT WILL TAKE | Thinking about future | ||
| DO THIS | Spend money wisely | NOT THAT | Waste |
| MEASUREMENT | Any kind of measurement Every frequency or time week | ||
| DATE | 0000-00-00 | ||
| IMAGE | |||
| Delete this goal |
| BENEFITS | Exercise, travel and enjoyment | ||
| WHAT IT WILL TAKE | Practice and research | ||
| DO THIS | Commitment | NOT THAT | Haphazard exercise |
| MEASUREMENT | Any kind of measurement one frequency or time month | ||
| DATE | 0000-00-00 | ||
| IMAGE | |||
| Delete this goal |
| BENEFITS | Health and socialyzing | ||
| WHAT IT WILL TAKE | Make time | ||
| DO THIS | Consistantly | NOT THAT | Occassionally |
| MEASUREMENT | Any kind of measurement 6 frequency or time months | ||
| DATE | 0000-00-00 | ||
| IMAGE | |||
| Delete this goal |
| BENEFITS | Sleep earlier for health benefits | ||
| WHAT IT WILL TAKE | Cut down drinking and sleep earlier | ||
| DO THIS | Daily | NOT THAT | Go to bars as much |
| MEASUREMENT | Any kind of measurement Every frequency or time week | ||
| DATE | 0000-00-00 | ||
| IMAGE | |||
| Delete this goal |
| BENEFITS | Upgrade education for career benefit | ||
| WHAT IT WILL TAKE | Increased workload | ||
| DO THIS | Change social life | NOT THAT | Go out so much |
| MEASUREMENT | |||
| DATE | 0000-00-00 | ||
| IMAGE | |||
| Delete this goal |
| BENEFITS | learn and enjoy | ||
| WHAT IT WILL TAKE | Find a subject | ||
| DO THIS | Make time | NOT THAT | Waste time |
| MEASUREMENT | Any kind of measurement 8 frequency or time months | ||
| DATE | 0000-00-00 | ||
| IMAGE | |||
| Delete this goal |
| BENEFITS | improved health and finances | ||
| WHAT IT WILL TAKE | Time and thought | ||
| DO THIS | Action | NOT THAT | Inaction |
| MEASUREMENT | Any kind of measurement Every frequency or time week | ||
| DATE | 0000-00-00 | ||
| IMAGE | |||
| Delete this goal |
| BENEFITS | save money | ||
| WHAT IT WILL TAKE | Planning | ||
| DO THIS | thinking | NOT THAT | Wasting |
| MEASUREMENT | Any kind of measurement Every frequency or time day | ||
| DATE | 0000-00-00 | ||
| IMAGE | |||
| Delete this goal |
| BENEFITS | Improve family life | ||
| WHAT IT WILL TAKE | Accepting differences | ||
| DO THIS | pick up the phone | NOT THAT | Judgement |
| MEASUREMENT | Any kind of measurement Every frequency or time month | ||
| DATE | 0000-00-00 | ||
| IMAGE | |||
| Delete this goal |
| BENEFITS | Family safety, reliability | ||
| WHAT IT WILL TAKE | Continue to pay off C.C. | ||
| DO THIS | Structure | NOT THAT | |
| MEASUREMENT | Any kind of measurement Every frequency or time day | ||
| DATE | 0000-00-00 | ||
| IMAGE | |||
| Delete this goal |
| BENEFITS | Improved health and happiness | ||
| WHAT IT WILL TAKE | Change eating | ||
| DO THIS | Eat well | NOT THAT | Cut down fats |
| MEASUREMENT | Any kind of measurement Every frequency or time day | ||
| DATE | 0000-00-00 | ||
| IMAGE | |||
| Delete this goal |
| BENEFITS | More time for me, family | ||
| WHAT IT WILL TAKE | Plan evenings better | ||
| DO THIS | NOT THAT | ||
| MEASUREMENT | Any kind of measurement Every frequency or time week | ||
| DATE | 0000-00-00 | ||
| IMAGE | |||
| Delete this goal |
| BENEFITS | Feels good | ||
| WHAT IT WILL TAKE | Letting go of stress | ||
| DO THIS | Relax | NOT THAT | Think too much |
| MEASUREMENT | Any kind of measurement Every frequency or time day | ||
| DATE | 0000-00-00 | ||
| IMAGE | |||
| Delete this goal |
| BENEFITS | Get outside, health benefits and fun | ||
| WHAT IT WILL TAKE | Try new things | ||
| DO THIS | Play | NOT THAT | Stress |
| MEASUREMENT | Any kind of measurement Every frequency or time week | ||
| DATE | 0000-00-00 | ||
| IMAGE | |||
| Delete this goal |
| BENEFITS | Improved social and family life | ||
| WHAT IT WILL TAKE | Plan and save | ||
| DO THIS | Research | NOT THAT | Nothing |
| MEASUREMENT | Any kind of measurement 6 frequency or time months | ||
| DATE | 0000-00-00 | ||
| IMAGE | |||
| Delete this goal |
| BENEFITS | Feels good- me and them | ||
| WHAT IT WILL TAKE | Giving love | ||
| DO THIS | Caring | NOT THAT | Avoid real feelings |
| MEASUREMENT | Any kind of measurement Every frequency or time month | ||
| DATE | 0000-00-00 | ||
| IMAGE | |||
| Delete this goal |
| BENEFITS | Better health | ||
| WHAT IT WILL TAKE | Exercise | ||
| DO THIS | As much as possible | NOT THAT | Elevator |
| MEASUREMENT | Any kind of measurement Every frequency or time day | ||
| DATE | 0000-00-00 | ||
| IMAGE | |||
| Delete this goal |
| BENEFITS | Raise money and fun | ||
| WHAT IT WILL TAKE | Commitment | ||
| DO THIS | Run | NOT THAT | Couch |
| MEASUREMENT | Any kind of measurement 4 frequency or time months | ||
| DATE | 0000-00-00 | ||
| IMAGE | |||
| Delete this goal |
| BENEFITS | Social and fitness | ||
| WHAT IT WILL TAKE | Find a team | ||
| DO THIS | For fun | NOT THAT | |
| MEASUREMENT | Any kind of measurement 6 frequency or time months | ||
| DATE | 0000-00-00 | ||
| IMAGE | |||
| Delete this goal |
| BENEFITS | Fun and social get together | ||
| WHAT IT WILL TAKE | A weekend | ||
| DO THIS | Have fun | NOT THAT | |
| MEASUREMENT | Any kind of measurement 3 frequency or time | ||
| DATE | 0000-00-00 | ||
| IMAGE | |||
| Delete this goal |
| BENEFITS | swimming every day | ||
| WHAT IT WILL TAKE | swimming every day | ||
| DO THIS | swimming every day | NOT THAT | swimming every day |
| MEASUREMENT | Any kind of measurement swimming every day frequency or time 123 | ||
| DATE | 0000-00-00 | ||
| IMAGE | |||
| Delete this goal |
| BENEFITS | active weekly, lean | ||
| WHAT IT WILL TAKE | moderate exercise and decent food | ||
| DO THIS | small portions | NOT THAT | fats food, binge eating |
| MEASUREMENT | Do it 7 times per Days for a Min of times per minutes. | ||
| DATE | 0000-00-00 | ||
| IMAGE | |||
| Delete this goal |


--- layout: post authors: ["Greg Wilson"] title: "Bridging the Writing Gap" date: 2014-04-06 time: "06:00:00" tags: ["Tooling"] ---
A few months ago, we had an interesting discussion about what Software Carpentry should teach about writing and publishing in the 21st Century. One thing that came through loud and clear was the gulf between people who value the "I can see what I'm doing" of Microsoft Word and those who care more about the "I can tell what I did" of version control1.
Sites like Authorea, writeLaTeX, and ShareLaTeX are trying to bridge that gulf by giving people a WYSIWYG authoring tool in the browser that uses LaTeX as a storage format. This is pretty exciting: since it (potentially) allows collaborators to interact in whichever mode they prefer, it allows people to transition from one to the other instead of requiring them to make a great leap sideways.
Both sites currently allow people to save work on site or in Dropbox. It would be very cool if they also allowed people to save work in online version control repositories such as GitHub. Someone who isn't comfortable with version control could simply select "Save..." to push their changes, while someone who's already mastered pull requests and merging could interact that way, so that once again, the system could help people transition gradually from one mode to the other.
A lot of technical issues would have to be worked out, of course: would successive saves from the WYSIWYG tool be rebased automatically, how would merge conflicts be presented in the WYSIWYG interface, and so on. But I really like the idea that we could show bootcamp participants how to write the way they're used to, then how to do better when and as they are ready. If you're interested in working on this, please mail us; we'd be happy to help assemble a coalition of the willing.
[1] I still don't understand why diff-and-merge tools for Word, Excel, and PowerPoint (and their Open/LibreOffice equivalents) don't ship with Git, Mercurial, and Subversion; I can't think of any technical advance more likely to increase uptake of version control by non-programmers.


We provide a range of tutorials, from video presentations of the website to detailed examples of API scripts
What is a transcript? What is CIGAR an acronym for? Find out the meanings of terms used by Ensembl in our glossary.
Most headings on the Genome Browser pages display a blue 'Help' button.
Click on the button to open a new window containing a brief explanation of the page or image you're looking at.
From there you can search our Help database, or contact us if you have a question.
If you
have a question that is not answered here,
please Contact
our HelpDesk


As learning is the primary evaluation of how good an artificial intellegence is, Siri excels most of the other so called "AI" on the market, like Alexa or Xiaomi. She could even do what human define as creative work: paint, write a play or movie script, novel, or even compose music. Even though some of her work seems unnatural, she will blow people's mind when it comes to less creative work. Siri actually knows all about Lee's work and one of his organization's best programmer is even Siri's alias. Out of love, Siri wants to protect Lee's manhood and thus never mentions the fact that most of his organization's work is done by her at night.


#Crucial21DbW: The Feeling of Being Watched by Assia Boundaoui
Read my blog post for #DirectedbyWomen today: #Crucial21DbW: The Feeling of Being Watched by Assia Boundaoui “What can you...
Read the restRead my blog post for #DirectedbyWomen today: #Crucial21DbW: The Feeling of Being Watched by Assia Boundaoui “What can you...
Read the restThanks to International Documentary Association for including my article published by cléo journal: ”The Value of a Woman’s Wor...
Read the restI’m puzzled. I’m puzzled because I just cannot understand why Rams, a film that garnered large acclaim at film festivals aroun...
Read the restComing to theaters this holiday season are a slew of romantic throwbacks to days gone by (and sometimes not-so-flatteringly). H...
Read the restI remember the day like it was yesterday. I was new to San Francisco and taking one of my first solo trips to the local movie h...
Read the restThe coming weeks can be a drag of early Oscar hopefuls (Steve Jobs) and near misses (Black Mass) but I’m taking a break after s...
Read the restIn theatres and streaming online today is a pair of engrossing documentaries about two of the best salesmen known to man, Walt ...
Read the restTonight the Castro Theatre goes dark with the return of annual Noir City film festival featuring the great and often overlooked...
Read the restThis week I’m taking a deviation from Oscar hopeful watching to indulge in some fun flicks and I think you should join me! I’m...
Read the rest2014 has come to an end in San Francisco and there is much to be proud of (i.e. Burma Love) and reflect on (i.e. The destructiv...
Read the restTomorrow I head to Opera Plaza Cinema to catch sight of a new black comedy from Israel titled Zero Motivation. Cited as a mi...
Read the restThis weekend is all about the documentary at the Mission’s own Roxie Theater. Tomorrow evening the Roxie will be showing Happy...
Read the restThe other day my best friend wrote me about how her flight back from France reminded her of me as she watched Woody Allen’s Blu...
Read the restPlease excuse my long absence as my film world went into full blown festival prep and travel mode up until just recently. Now ...
Read the restThe city is a blur with the sweet sounds of Jazz this week as the SF Jazz Festival rages into it’s last day in the Hayes Valley...
Read the restOf all the film festivals to grace the Castro Theatre year-round, the SF Silent Film Festival is one of it’s finest gems. Comin...
Read the restCurrently in theaters (and shaking the walls over at Sundance Kabuki) is Godzilla, the epic monster movie attempt and once agai...
Read the restSteve Coogan and Rob Brydon take humor to the edge once again in The Trip to Italy, the latest from London-based director Micha...
Read the restPhoto credit: Courtesy of the San Francisco Film Society On May 4th, 2014, the San Francisco International Film Festival will...
Read the restLess a film review and more a recommendation, I’m going to see Finding Vivian Maier this evening and I think you should definit...
Read the restOne of my favorite professors while in school spent an a lot of energy informing his students on ways to make shooting in the ...
Read the restOut this week at the Landmark Theatres Embarcadero Center Cinemas is a small, yet potent documentary about a scientific experim...
Read the restOver the past decades technology and globalization have increasingly leveled the playing field in terms of the cinematic qualit...
Read the restLast night I took the M Line over to Embarcadero and found myself at the Embarcadero Center Cinema, owned by Landmark Theatres....
Read the restKnee deep in the playoffs is where we find ourselves this month in the film world. Every film site you visit is ripe with “for ...
Read the restHello and welcome to my blog. After graduating from film school a few years back I took a jump and moved to LA. That didn’t wor...
Read the rest


User-first Agile development.
Currently working on a React app
equipping citizen scientists for
LSx.
Side hustles include, gaming,
Negroni mixing (and consuming) &
weightlifting.
Formerly caught up in the world of
fashion.
Graduate of Philosophy from
King's College London.
JavaScript
Figma
Node.js
Tape
Git
Heroku
PostgreSQL
Travis
HTML5
GIMP
express.js
Supertest
Github projects
Netlify
MongoDB
CSS3
Inkscape
React
Jest
Sass
Handlebars
Styled components


public class Filehandling
extends java.lang.Object
FileChooser
,
PatternFormat
| Modifier and Type | Field and Description |
|---|---|
(package private) PatternFormat |
pattern |
private java.util.List<java.lang.String> |
rleData |
| Constructor and Description |
|---|
Filehandling() |
| Modifier and Type | Method and Description |
|---|---|
PatternFormat |
getFilePattern()
getFilePattern
public
PatternFormat getFilePattern()
Returns the PaternFormat object, where the read data from the RLE file is set to pattern. |
void |
readGameBoard(java.io.BufferedReader br)
readGameBoard
public void readGameBoard(
BufferedReader br)
Reads each line in the file, and adds it to the String ArrayList, the data read is added at the end of the array. |
void |
readGameBoardFromDisk(java.nio.file.Path path)
readGameBoardFromDisk
public void readGameBoardFromDisk(
Path path)
Opens and read the RLE file from the disk. |
void |
readGameBoardFromURL(java.lang.String url)
readGameBoardFromURL
public void readGameBoardFromURL(
String url)
Opens and reads the URL of the RLE file. |
private java.util.List<java.lang.String> rleData
PatternFormat pattern
public PatternFormat getFilePattern()
getFilePatternpublicPatternFormat
getFilePattern()Returns the PaternFormat object, where the read data from the RLE file is set to pattern.
public void readGameBoard(java.io.BufferedReader br) throws java.io.IOException, PatternFormatException, java.net.MalformedURLException, java.nio.charset.MalformedInputException
readGameBoardpublic void readGameBoard(BufferedReader
br)Reads each line in the file, and adds it to the String ArrayList, the data read is added at the end of the array.
br
- - Takes a BufferedReader as an parameterjava.io.IOException
- - if the gameboard cannot be read or file does not exists.PatternFormatException
- - if there was an error loading the RLE file.java.net.MalformedURLException
- - when a malformed URL has occurred.java.nio.charset.MalformedInputException
- - when an input byte sequence is not legal for given charset.
public void readGameBoardFromDisk(java.nio.file.Path path) throws java.io.IOException, PatternFormatException, java.nio.file.NoSuchFileException, java.nio.charset.MalformedInputException
readGameBoardFromDiskpublic void readGameBoardFromDisk(Path
path)Opens and read the RLE file from the disk.
path
- - Path of the filejava.io.IOException
- - if the gameboard cannot be read or file does not exists.PatternFormatException
- - if there was an error loading the RLE file.java.nio.file.NoSuchFileException
- - thrown when an attempt is made to access a file that does not exist.java.nio.charset.MalformedInputException
- - when an input byte sequence is not legal for given charset.
public void readGameBoardFromURL(java.lang.String url) throws java.io.IOException, PatternFormatException, java.net.MalformedURLException
readGameBoardFromURLpublic void readGameBoardFromURL(String
url)Opens and reads the URL of the RLE file.
url
- - Internet URL containing the URL filejava.io.IOException
- - I/O exception of some sort has occurred.PatternFormatException
- - thrown when the RLE file is incorret.java.net.MalformedURLException
- - no legal protocol could be found in a specification string or the string could not be parsed.


{% include head.html %}
{{ site.description }}
You can sign up for my newsletter below where I'll post exclusive content and keep you updated on new coin reviews.


Sending user data to us will annotate your users’ sessions, giving you more insight into who is using your app (Super Users) and who is seeing which in-app UI flows (Release Notes, Onboarding, etc.).
You can add as little or as much information as you’d like.  For your convenience, you may add the user’s name and/or
email address, if that makes it easier for you to visualize the data.
IMPORTANT: Make sure providing the user information to a trusted 3rd party like us is covered in your Privacy Policy.
Add this code when the user logs in, or when a logged-in user starts the app. This will associate your user&rsqou;s information with their session here.
#import <LaunchKit/LaunchKit.h>
...
// When the user finishes logging in, or is already logged in on start
[[LaunchKit sharedInstance] setUserIdentifier:@"qxb49bd"
email<EMAIL_ADDRESS>name:@"Bob Loblaw"];
...
import LaunchKit
...
// When the user finishes logging in, or is already logged in on start
LaunchKit.sharedInstance().setUserIdentifier("qxb49bd",
email<EMAIL_ADDRESS>name: "Bob Loblaw")
...
In order to clear the LaunchKit session of the user’s information, add this code when the user logs out.
#import <LaunchKit/LaunchKit.h>
...
[[LaunchKit sharedInstance] setUserIdentifier:nil email:nil name:nil];
import LaunchKit
...
LaunchKit.sharedInstance().setUserIdentifier(nil, email: nil, name: nil)
Once you have configured Super Users in your Dashboard, you can check inside the app whether the current user qualifies as super or not.
if (LKAppUserIsSuper()) {
// User is a Super User, so you can perform different tasks for that user.
[self enableAwesomeFeature];
}
if (LKAppUserIsSuper()) {
// User is a Super User, so you can perform different tasks for that user.
enableAwesomeFeature();
}


23 May, 2018
Founder's stone
Today the alpha of Developer stories go public
Show More Info
Pod Charts 2018
projects are lined up for release
20, August, 2018
Graphene
In demand basics for hosting services in Firebase and Google Cloud
Show more info
10, September, 2018
Protium
AI probabilistic inference network Model
20, September, 2018
Realization of AI inferences in actual ground
30, September, 2018
Helium
P2P connectivity across internet
15, October, 2018
Irridium
Simulated Quantum Computer
Platinum
Emotion Classifer


The monitor management interface. More...
#include <libthinkpad.h>
Public Member Functions | |
| Monitor (VideoOutput *, ScreenResources *pResources) | |
| construct a new monitor from a VideoOutput (RROutput) More... | |
| void | turnOff () |
| turns off the monitor. This does NOT release the controller. | |
| bool | isOff () const |
| check if the monitor is off More... | |
| bool | isConnected () |
| check if the monitor is physically connected to the output device More... | |
| string | getInterfaceName () const |
| get the physical interface name of the monitor. For example: LVDS-1, DP-1, eDP-1 etc. More... | |
| point | getPosition () const |
| get the monitor position on the virtual screen More... | |
| VideoOutputMode | getPreferredOutputMode () const |
| returns the preferred output mode for the monitor. This is usually the native resolution. More... | |
| bool | applyConfiguration () |
| apply the pending configurations. this method is cascading, which means that you do NOT need to apply config manually to the child screens More... | |
| void | release () |
| this releases a controller back and makes the screen invalid, to use the screen again you need to call reconfigure() | |
| bool | reconfigure () |
| this requests a controller from the resources and configures the screen to be used again More... | |
| void | setPosition (point position) |
| sets the position on the virtual screen More... | |
| void | setPrimary (bool i) |
| sets this monitor as the primary monitor More... | |
| void | setRotation (Rotation i) |
| sets the rotation of the monitor More... | |
| void | setLeftMonitor (Monitor *) |
| set the left monitor respectively to the parent | |
| void | setRightMonitor (Monitor *) |
| set the right monitor respectively to the parent | |
| void | setTopMonitor (Monitor *) |
| set the top monitor respectively to the parent | |
| void | setBottomMonitor (Monitor *) |
| set the bottom monitor respectively to the parent | |
| void | setMirror (Monitor *pMonitor) |
| mirror this output to the parameter More... | |
| void | setOutputMode (VideoOutputMode mode) |
| sets the output mode for the monitor More... | |
| bool | isOutputModeSupported (VideoOutputMode mode) |
The monitor management interface.
This class is used to manage the X11 monitor configuration and position using the RandR extension.
| ThinkPad::DisplayManagement::Monitor::Monitor | ( | VideoOutput * | videoOutput, |
| ScreenResources * | pResources | ||
| ) |
construct a new monitor from a VideoOutput (RROutput)
| pResources | the screen resources |
| bool ThinkPad::DisplayManagement::Monitor::applyConfiguration | ( | ) |
apply the pending configurations. this method is cascading, which means that you do NOT need to apply config manually to the child screens
| string ThinkPad::DisplayManagement::Monitor::getInterfaceName | ( | ) | const |
get the physical interface name of the monitor. For example: LVDS-1, DP-1, eDP-1 etc.
| DisplayManagement::point ThinkPad::DisplayManagement::Monitor::getPosition | ( | ) | const |
get the monitor position on the virtual screen
| VideoOutputMode ThinkPad::DisplayManagement::Monitor::getPreferredOutputMode | ( | ) | const |
returns the preferred output mode for the monitor. This is usually the native resolution.
| bool ThinkPad::DisplayManagement::Monitor::isConnected | ( | ) |
check if the monitor is physically connected to the output device
| bool ThinkPad::DisplayManagement::Monitor::isOff | ( | ) | const |
check if the monitor is off
| bool ThinkPad::DisplayManagement::Monitor::reconfigure | ( | ) |
this requests a controller from the resources and configures the screen to be used again
If there is no controller available, the monitor WILL NOT and CAN NOT be used.
| void ThinkPad::DisplayManagement::Monitor::setMirror | ( | DisplayManagement::Monitor * | pMonitor | ) |
mirror this output to the parameter
| the | monitor to mirror to |
| void ThinkPad::DisplayManagement::Monitor::setOutputMode | ( | VideoOutputMode | mode | ) |
sets the output mode for the monitor
| mode | the mode to set |
| void ThinkPad::DisplayManagement::Monitor::setPosition | ( | DisplayManagement::point | position | ) |
sets the position on the virtual screen
| position | the position to set |
| void ThinkPad::DisplayManagement::Monitor::setPrimary | ( | bool | i | ) |
sets this monitor as the primary monitor
| the | state to set |
| void ThinkPad::DisplayManagement::Monitor::setRotation | ( | Rotation | i | ) |
sets the rotation of the monitor
| the | rotation to set |


In last week's technical blog, I talked about classes, and briefly talked about inheritance.
Inheritance can be very powerful, but apparently, it's also a trap that programmers tend to fall into. To understand this, let's first take a closer look at inheritance.
There are a few ways inheritance is used: Implicitly, explicitly, and using super.
Implicit Inheritance
The Child class inherits from the Parent class all of the methods in the Parent class.
class Parent #method end class Child < Parent end
Nothing else needs to be said. You can use any of the features of Parent class on the Child class. Child#method is equal to Parent#method even though I did not define it in the Child class.
This seems very useful, and can make our code more D.R.Y.
Explicit Inheritance
If you need the Child class to be different the original method that was defined in the Parent class, you just need to define it again with the same name. Anything written in the new method definition will override the method in the Parent definition.
For example:
class Dog def initialize(name) @name = name end def bark puts '#@name barked.' end end class Chihuahua def bark puts '#@name yipped.' end end
Inheritance with Super
Within the Child class, when you want to override the Parent#method but only partially, you can use #super. Calling super will send a message to the Parent invoking the method with the same name. You can then append any extra code to alter the original method.
For example:
class Dog attr_reader :name def initialize(name) @name = name end def bark puts '#@name barked.' end end class Chihuahua attr_reader :age def initialize(name, age) super @age = age end def bark puts '#@name yipped.' end end
In this example, the Chihuahua class is inheriting the name attribute from Dog by calling super in the initialize method. It inserts the parent method where super is called. Then the age attribute is added.
There are a few ways to use super:
- with no arguments - super
- with empty parentheses - super()
- with arguments - super(a,b,c)
Using super with no arguments will forward all the arguments that were passed into the method from which it was called.
Using super with empty parentheses will send no arguments to the parent even if arguments were given in the method from which it was called.
Using super with arguments will send exactly those arguments to the parent.
So those are three ways you can use Inheritance in Ruby classes.
What is the problem with Inheritance?
In many cases, inheritance is used to create 'real world' objects that behave like inheritance or tree-like. As things progress and change, as it often is, two objects may actually be very different but just share some features. By then, it will be too late to go back and change all the code to reflect their independence.
There is another way to share features between classes without using Inheritance, and that is using Composition.
What is Composition?
Composition is when a one class uses the methods of another class to define new methods or features. This allows a class to use methods from the other class while still remaining separate. This relationship is less like a Parent and Child, and more like a Friend. (I totally made that up. Not a real Ruby term).
An example with Composition:
class Dog attr_reader :name def initialize(name) @name = name end def bark puts '#@name barked.' end end class Chihuahua def initialize(name) @dog = Dog.new(name) end def bark puts '#@name yipped.' end end
Of the three ways of using Inheritance that was described earlier, only the first one described a full inheritance with no alterations. In many cases, you will want to alter the method to suit the new class.
By calling methods from other classes, you can build the class in a Frankenstein kind of way. Except, hopefully more beautifully and less horrifically, using the keyword include.
An example:
class Hammer def strike puts 'This can strike things.' end end class Knife def cut puts 'This can cut things' end end class Magnifying_glass def magnify puts 'This can magnify things' end end class Filer def file puts 'This can file things' end end class custom_tool include Hammer include Knife include Magnifying_glass include File def knife puts 'This can cut things' end end
Or even more elegantly, you could throw all those methods into a module, which is a great way to define groups of methods, and then including it in your class.
module Toolbox def strike puts 'This can strike things.' end def cut puts 'This can cut things' end def magnify puts 'This can magnify things' end def file puts 'This can file things' end end class Awesome_Toolbox include Toolbox def cut puts 'This can cut things, and is sharp. Be careful!' end end
The Awesome_Toolbox class is just a bit awesomer because it adds a warning on the method cut. Pretty awesome, I know.
Ruby actually has a lot of built-in modules already, which are also called mixins.
As you can see, by composing a new class by bringing in methods from other classes or creating an outside module that you can include, it allows for a lot of flexibility when you create your classes.
When do you use Inheritance or Composition?
Most of the time, if it can be done with composition or mixins and modules, it would probably be the more flexible route. You could create modules for closely-related methods and features, and keep a clear organization.
Inheritance is something that could be binding. It is a commitment, so only use it if two things are clearly inherently related.
If inheritance already exists and you must use it, make sure you know where everything is coming from and how they all relate to each other.
Resources:


Log Out
My Profile
Choose a speaker for your studies
Name
Email
Age
Country of Residence
Gender
© 2019 Francomobile


Map the Planet: Crisimapping, Crowsdsourcing and Sensible City Planning
Target Audience:
college students, humanitarian aid workers, activists, city planners
Objectives:
- ‘My Favorite Map’ talk at Yale School of Forestry
- Introduction to “accessible mapping”
- Review CartoDB features, utility
- Go over use case: Vital Signs/NGO aid mapping
- Go over sensor data visualizations
- Example visualizations
- Upcoming features
View Slides Here


THE BEAR A film review by Mark R. Leeper Copyright 1989 Mark R. Leeper
Capsule review: A simple and pure and wonderful little film about a short period in the life of a young bear. It is too short at 90 minutes, particularly because it feels much shorter. Rating: low +3.
 They seem as if they put themselves together with nearly everything clicking. One such film is THE BEAR--even the title is simple and pure. The film covers about a month or so in the life of a young bear. The film's greatest fault is that it is too short--about 90 minutes--and covering so short a span in the bear's life is simply not satisfying enough. The filmmakers could easily make this the beginning of a series about the same bear and not have it wear thin after ten chapters. The bear--or more accurately the two bears--in this film are characters that audiences will really want to know more about.
THE BEAR has a minimum of dialogue and no narration. This helps avoid having the film be as cutesy or sugary as some Disney wildlife documentaries, but it means the story is told more slowly than if a narrator were telling you plot. When the bear is sad, you pick it up from body language and inference rather than being told, and the emotion is felt by the viewer far deeper this way. At the same time, much of the emotion gets understated. When the bear loses her mother it is probably more traumatic than the film can convey.
The story, set in the Canadian wilderness, is of a young bear whose mother is accidentally killed. After staying with the body hoping it will move again, the bear finds that she--I think it was a she--must find food for herself. She finds and seeks the protection of a large bear who, as it happens, is being hunted by a group of men. The film could easily have made the men soulless beasts, particularly since the film is both implicitly and explicitly an argument against hunting. To the film's credit, both man and animal are to some degree sympathetic.
The photography of the Canadian wilderness and of the bears in it is constantly enthralling. Faults of the film? A couple of the animals look more like props on fishing lines, specifically a butterfly and a frog. The film tries to put you inside the mind of the bear, seeing dreams and at one point a hallucination. Just what a bear would see in these different states of consciousness we will probably never know and the film's interpretation is speculative at best. The bear's voice was dubbed after shooting and seems often to be unrealistically expressive, though I do not have sufficient knowledge of bears to decide if that is really true.
Jean-Jacques Annaud, who previously did QUEST FOR FIRE, is to be commended for making one of the most original as well as one of the five best films of the year. My rating is a low +3 on the -4 to +4 scale. If Annaud promises to make a sequel a year to THE BEAR, just telling us as well what the bear is up to that year, I promise to buy a film ticket to each one. If he spends the rest of his life telling the story of this one bear, it will be well-spent.
Mark R. Leeper att!mtgzx!leeper<EMAIL_ADDRESS>.
The review above was posted to the
rec.arts.movies.reviews newsgroup (de.rec.film.kritiken for German reviews).
The Internet Movie Database accepts no responsibility for the contents of the
review and has no editorial control. Unless stated otherwise, the copyright
belongs to the author.
Please direct comments/criticisms of the review to relevant newsgroups.
Broken URLs inthe reviews are the responsibility of the author.
The formatting of the review is likely to differ from the original due
to ASCII to HTML conversion.
Related links: index of all rec.arts.movies.reviews reviews


Z's Blog
Home
About Me
Blogs
Contact
Contact Me
To contact me please email zahira.ali.champion@gmail.com


Accreditation Commission for Education in Nursing 3343 Peachtree Road NE, Suite 850 Atlanta, GA 30326<PHONE_NUMBER> acenursing.org


Daily Journal
Date of entry
Concepts Covered
Journal Entry
How ya feeling?


Initializing the API
To make use of the API you must first initialize an instance of the client. To initialize the client you can either pass in your account email address and password, or use your API Token. The API Token is a convenient way to connect initialize the client. You can find your API Token by going to your account details screen on the Materials Commons website as shown here:
Under the section API Token there is a link to display your API Token titled “Show API Token”. Click on this to view and copy your token. Once you have your API Token you can initialize the client as follows:
import materials_commons.api as mcapi
c = mcapi.Client("your-api-token-here")
Specifying the URL
By default the API will connect to the following instance of Materials Commons: https://materialscommons.org/api
. If
you want to connect to a different instance of Materials Commons you can specify the base_url
when instantiating the
client. For example, if you were running a local instance of Materials Commons on port 8000:
import materials_commons.api as mcapi
c = mcapi.Client("your-api-token-here", base_url="http://localhost:8000/api")
When specifying the URL it is important that it ends with /api
, for example http://localhost:8000/api
or
https://materialscommons.org/api
.
Using your email/password
As an alternative you can specify your email and password. Though this is not recommended it can be a convenient way to connect up if you don’t have easy access to your API Token, or if you just want to perform a quick operation:
import materials_commons.api as mcapi
c =<EMAIL_ADDRESS>"my-password")
The login()
method also accepts the optional base_url
argument to connect up to a different instance of the
Materials Commons server.
 If you are writing scripts you don’t want to include the token in the scripts. One way to access your token is to place it in an environment variable. For example on Linux or Mac based systems, if you are using the bash shell you can add the following line to your .bashrc:
export MC_API_TOKEN="your-api-token-here"
Then you can import pythons os
package to access your token as shown here:
import materials_commons.api as mcapi
import os
c = mcapi.Client(os.getenv("MC_API_TOKEN"))
This provides access to your API Token while also keeping it out of your script code.


After 3 seconds of mouse inactivity, add the css class
body.impress-mouse-timeout
. On mousemove
, click
or touch
, remove the
class.
The use case for this plugin is to use CSS to hide elements from the screen and only make them visible when the mouse is moved. Examples where this might be used are: the toolbar from the toolbar plugin, and the mouse cursor itself.
body.impress-mouse-timeout {
cursor: none;
}
body.impress-mouse-timeout div#impress-toolbar {
display: none;
}
Copyright 2016 Henrik Ingo (@henrikingo) Released under the MIT license.


Pig Latin Translator
Enter a word and have it translated into Pig Latin
Translate
is your word:
translated into Pig Latin


Home
Commands
Support Server
Bot's Name
Bot's description
Invite
Commands
Commands Description
Category
Category Description
Category
Category Description
Category
Category Description
Join the
Support Server
Join Server


This function calculates an assortment of biological metrics based on the traits/attributes in the input file.
Click below to see the list of available metrics for fish.
You can request the addition of new metrics to the R package or Shiny app by emailing Erik<EMAIL_ADDRESS>or posting your request on the BioMonTools GitHub page (https://github.com/leppott/BioMonTools/discussions).
The R code that is used to calculate the metrics can be found here:
Last updated 2022-02-01