class: center, middle # Intro to Java Or at least a soft exploration of it --- # Agenda ####1. Introductions ####2. Java and the Java environment ####3. Java primitives ####4. Exercise: "Hello world" ####5. Exercise: Write more methods! ####6. Run a Java program from the command line ####7. Exercise: Write a Java class ####8. Wrap up with AllState --- # Introduction ### My name is Lorena Mesa ### Why are you here today? --- # Coderpad - an online REPL REPL - Read, evalulate, print, loop Online REPLs allow us to use Java without having to install it on your local machine (for now) To start: * Navigate to `http://coderpad.io` * Select `try demo` => `Java` * Look -- some prepopulated code, a `Solution` class! * Hit `run >` to execute the code! --- # Java Static, strongly typed ```Java int age = 5; String name = "Maru"; bool isFluffy = true; ``` Sometimes these [two can be confused](http://stackoverflow.com/questions/121385/what-are-the-key-aspects-of-a-strongly-typed-language), for example Python is a dynamic strongly typed language Static languages use known types, these types are checked at run time as shown above In Java the [compiler will check for these type of errors](http://www.sitepoint.com/typing-versus-dynamic-typing/) rather than at run time Strongly typed indicates that the types for objects change, while strong vs weak is more a spectrum we say Java is [strongly typed](http://stackoverflow.com/questions/20563433/different-between-static-and-dynamic-programming-languages) --- # Let's create a variable Just like Algebra when we'd solve for a variable `x` and used a variable to represent a value, we use variables in programming (For those of you that have coded this is no surprise!) To create a variable in Java, we opt to use `camelCase` for variable names, opting for lowercase to start Now that we know Java is a static programming, we know we need to define the type of variable too --- # Java Primitives Like any language, Java has [built in primitives](https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html) Primitives are the most basic built in data types, there are 8 of them Here are a few examples of Java primitives: ```java char example = 'a'; // single 16-bit Unicode character int exampleTwo = 3; // minimum value of -231 and a maximum value of 231-1 long exampleThree = 9999999; // minimum value of -263 and a maximum value of 263-1 float exampleFour = 9.02; // 32-bit 754 floating point double exampleFive = 333.10; // 64-bit 754 floating point bool exampleSix = false; ``` --- # You try Inside the `main` function (between the `{ ... }`) of the `Solution` class create the following: 1. Create an `int` variable with the value of the `date` today times the value of the `year` 2. Create a `bool` variable 3. Create a `double` variable with the value of `pi` modulo the number of pies you ate on pie day! (Mar 14) As you'd expect, you can do math with `int`, `double`, `float`, `long`! *What happens if you try to multiple the `int` variable from 1 with the `bool` variable with 2?* This is an example of Java's strong typing! --- # But wait, we only have a `char` to work with? You may have noticed that a `char` is only a single Unicode character Primitives don't let us do much in Java, they allow us to do math operations but if we want to do other things we will need to use objects Primitives can be "[autoboxed](https://docs.oracle.com/javase/tutorial/java/data/autoboxing.html)" into an object using a [primitive wrapper class](https://en.wikipedia.org/wiki/Primitive_wrapper_class) A class wraps up a primitive's data along with methods to let you do things with the data and carry the data in one object, all objects in Java descend from the `java.lang.Object` [class](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) ```java int oldInt = 8; Integer newInt = Integer.valueOf(oldInt); newInt += oldInt; System.out.println(newInt); // What do you think the value is? ``` --- # You try Inside the `main` function (between the `{ ... }`) of the `Solution` class create the following: 1. Create an `int` variable with the value of your `age` 2. Wrap the primitive `age` with a primitive wrapper (*Which one should we use and why?*) 2.  Create an `int` variable with the value of your `age` 2. Wrap the primitive `age` into the primitive wrapper to make the `int` a text 2. Create a `String` variable with the value of your `name` 3. `System.out.println` a message with your `age` and `name` ```Java int age = 29; String newAge = String.valueOf(age); String name = "Lorena"; System.out.println(name + " is " + age); ``` Primitives use less memory than objects, therefore "prefer primitives to boxed primitives" as Joshua Bloch advises in [Effective Java](http://www.amazon.com/Effective-Java-Edition-Joshua-Bloch/dp/0321356683) ---


A few days ago, I stumbled on a repository on GitHub that was exploring category theory through the use of Coq, formalizing Edware Kmett’s Hask library. Curious, I wondered what Hask was and read the description: “Category theory for Haskell with a lens flavor”.
But… what are lenses?
I remembered that I had bookmarked a blog post that Steve Klabnik tweeted a while ago because it was related to Haskell. And now it was relevant to my interests.
Lenses are, at a high level, something like “getters” and “setters” that are used in imperative programming languages. It’s not uncommon to see something like book.author.name
. Lenses provide an abstraction like this for Haskell.
I spent a long time staring at the explanations in this blog post, and after pairing with Alan a bit on a simple Lens implementation, felt blown away by the weirdness and how elegant of an idea this was.
A realization that I had about working with Alan (after ten weeks…) is that he is the type of person to think things out by writing on a white board. Up until this point, I had never really thought about whiteboarding as a way of getting my thoughts out so that I could actually look at them. And the act of writing type signatures out instead of staring at them on a screen made a lot of difference for me. (I do write on scratch paper, but I generally do so very disorganizedly).
After Thursday demo presentations, I spent about thirty minutes whiteboarding out my thought process for the implementations of over
and set
:
I guess moral of the story for me is that I should whiteboard more to figure out what I’m doing when I’m confused before jumping straight to code. A very simple epiphany, but a very helpful one.


public abstract class YawPitchRollConversion
extends java.lang.Object
WARNING: the Euler angles or yaw-pitch-roll representation is sensitive to gimbal lock and is sometimes undefined. Prefer using other representations of 3D orientation such as axis-angle, quaternion, or rotation matrix.
To convert an orientation into other data structure types see:
AxisAngleConversion
,
QuaternionConversion
,
RotationMatrixConversion
,
RotationVectorConversion
.
Note: the yaw-pitch-roll representation, also called Euler angles, corresponds to the representation of an orientation by decomposing it by three successive rotations around the three axes: Z (yaw), Y (pitch), and X (roll). The equivalent rotation matrix of such representation is:
R = RZ(yaw) * RY(pitch) * RX(roll) / cos(yaw) -sin(yaw) 0 \ RZ(yaw) = | sin(yaw) cos(yaw) 0 | \ 0 0 1 / / cos(pitch) 0 sin(pitch) \ RY(pitch) = | 0 1 0 | \ -sin(pitch) 0 cos(pitch) / / 1 0 0 \ RX(roll) = | 0 cos(roll) -sin(roll) | \ 0 sin(roll) cos(roll) /
| Modifier and Type | Field | Description |
|---|---|---|
static double |
MAX_SAFE_PITCH_ANGLE |
Pitch angle that defines the upper bound of the safe region in which the resulting pitch angle
of a conversion is accurate.
|
static double |
MIN_SAFE_PITCH_ANGLE |
Pitch angle that defines the lower bound of the safe region in which the resulting pitch angle
of a conversion is accurate.
|
static double |
SAFE_THRESHOLD_PITCH |
Represents the safety margin that
|
| Constructor | Description |
|---|---|
YawPitchRollConversion() |
| Modifier and Type | Method | Description |
|---|---|---|
static double |
computePitch(AxisAngleReadOnly axisAngle) |
Computes the pitch from an axis-angle.
|
static double |
computePitch(RotationMatrixReadOnly rotationMatrix) |
Computes the pitch angle from a rotation matrix.
|
static double |
computePitch(RotationScaleMatrixReadOnly rotationScaleMatrix) |
Computes the pitch angle from the rotation part of a rotation-scale matrix.
|
static double |
computePitch(Vector3DReadOnly rotationVector) |
Computes the pitch from a rotation vector.
|
static double |
computePitch(QuaternionReadOnly quaternion) |
Computes the pitch from a quaternion.
|
(package private) static double |
computePitchFromAxisAngleImpl(double ux,
double uy,
double uz,
double angle) |
Computes the pitch from the given axis-angle.
|
(package private) static double |
computePitchFromQuaternionImpl(double qx,
double qy,
double qz,
double qs) |
Computes the pitch from a quaternion.
|
(package private) static double |
computePitchImpl(double m20) |
Computes the pitch from a rotation matrix.
|
static double |
computeRoll(AxisAngleReadOnly axisAngle) |
Computes the roll from an axis-angle.
|
static double |
computeRoll(RotationMatrixReadOnly rotationMatrix) |
Computes the roll from a rotation matrix.
|
static double |
computeRoll(RotationScaleMatrixReadOnly rotationScaleMatrix) |
Computes the roll from the rotation part of a rotation-scale matrix.
|
static double |
computeRoll(Vector3DReadOnly rotationVector) |
Computes the roll from a rotation vector.
|
static double |
computeRoll(QuaternionReadOnly quaternion) |
Computes the roll from a quaternion.
|
(package private) static double |
computeRollFromAxisAngleImpl(double ux,
double uy,
double uz,
double angle) |
Computes the roll from the given axis-angle.
|
(package private) static double |
computeRollFromQuaternionImpl(double qx,
double qy,
double qz,
double qs) |
Computes the roll from a quaternion.
|
(package private) static double |
computeRollImpl(double m21,
double m22) |
Computes the roll from a rotation matrix.
|
static double |
computeYaw(AxisAngleReadOnly axisAngle) |
Computes the yaw from an axis-angle.
|
static double |
computeYaw(RotationMatrixReadOnly rotationMatrix) |
Computes the yaw from a rotation matrix.
|
static double |
computeYaw(RotationScaleMatrixReadOnly rotationScaleMatrix) |
Computes the yaw from the rotation part of a rotation-scale matrix.
|
static double |
computeYaw(Vector3DReadOnly rotationVector) |
Computes the yaw from a rotation vector.
|
static double |
computeYaw(QuaternionReadOnly quaternion) |
Computes the yaw from a quaternion.
|
(package private) static double |
computeYawFromAxisAngleImpl(double ux,
double uy,
double uz,
double angle) |
Computes the yaw from the given axis-angle.
|
(package private) static double |
computeYawFromQuaternionImpl(double qx,
double qy,
double qz,
double qs) |
Computes the yaw from a quaternion.
|
(package private) static double |
computeYawImpl(double m00,
double m10) |
Computes the yaw from a rotation matrix.
|
static void |
convertAxisAngleToYawPitchRoll(AxisAngleReadOnly axisAngle,
double[] yawPitchRollToPack) |
Converts the axis-angle into yaw-pitch-roll.
|
static void |
convertAxisAngleToYawPitchRoll(AxisAngleReadOnly axisAngle,
Tuple3DBasics eulerAnglesToPack) |
Converts the axis-angle into yaw-pitch-roll.
|
(package private) static void |
convertAxisAngleToYawPitchRollImpl(double ux,
double uy,
double uz,
double angle,
double[] yawPitchRollToPack) |
Converts the axis-angle into yaw-pitch-roll.
|
(package private) static void |
convertAxisAngleToYawPitchRollImpl(double ux,
double uy,
double uz,
double angle,
Tuple3DBasics eulerAnglesToPack) |
Converts the axis-angle into yaw-pitch-roll.
|
static void |
convertMatrixToYawPitchRoll(RotationMatrixReadOnly rotationMatrix,
double[] yawPitchRollToPack) |
Converts the rotation matrix into yaw-pitch-roll.
|
static void |
convertMatrixToYawPitchRoll(RotationMatrixReadOnly rotationMatrix,
Tuple3DBasics eulerAnglesToPack) |
Converts the given rotation matrix into yaw-pitch-roll.
|
static void |
convertMatrixToYawPitchRoll(RotationScaleMatrixReadOnly rotationScaleMatrix,
double[] yawPitchRollToPack) |
Converts the rotation part of the given rotation-scale matrix into yaw-pitch-roll.
|
static void |
convertMatrixToYawPitchRoll(RotationScaleMatrixReadOnly rotationScaleMatrix,
Tuple3DBasics eulerAnglesToPack) |
Converts the rotation part of the given rotation-scale matrix into yaw-pitch-roll.
|
static void |
convertQuaternionToYawPitchRoll(QuaternionReadOnly quaternion,
double[] yawPitchRollToPack) |
Converts the quaternion into yaw-pitch-roll.
|
static void |
convertQuaternionToYawPitchRoll(QuaternionReadOnly quaternion,
Tuple3DBasics eulerAnglesToPack) |
Converts the given quaternion into yaw-pitch-roll.
|
static void |
convertRotationVectorToYawPitchRoll(Vector3DReadOnly rotationVector,
double[] yawPitchRollToPack) |
Converts the rotation vector into yaw-pitch-roll.
|
static void |
convertRotationVectorToYawPitchRoll(Vector3DReadOnly rotationVector,
Vector3DBasics eulerAnglesToPack) |
Converts the rotation vector into yaw-pitch-roll.
|
public static final double SAFE_THRESHOLD_PITCH
public static final double MAX_SAFE_PITCH_ANGLE
public static final double MIN_SAFE_PITCH_ANGLE
static double computeYawImpl(double m00, double m10)
This method is for internal use. Use computeYaw(RotationMatrixReadOnly)
instead.
Edge case:
Double.NaN
, this method returns
Double.NaN
.
m00
- the new 1st row 1st column coefficient for the matrix to use for the conversion.m10
- the new 2nd row 1st column coefficient for the matrix to use for the conversion.static double computePitchImpl(double m20)
This method is for internal use. Use computePitch(RotationMatrixReadOnly)
instead.
Edge case:
Double.NaN
, this method returns
Double.NaN
.
m20
- the new 3rd row 1st column coefficient for the matrix to use for the conversion.static double computeRollImpl(double m21, double m22)
This method is for internal use. Use computeRoll(RotationMatrixReadOnly)
instead.
Edge case:
Double.NaN
, this method returns
Double.NaN
.
m21
- the new 3rd row 2nd column coefficient for the matrix to use for the conversion.m22
- the new 3rd row 3rd column coefficient for the matrix to use for the conversion.public static double computeYaw(RotationMatrixReadOnly rotationMatrix)
Edge case:
Double.NaN
, this method returns
Double.NaN
.
rotationMatrix
- the rotation matrix to use for the conversion. Not modified.public static double computePitch(RotationMatrixReadOnly rotationMatrix)
Edge case:
Double.NaN
, this method returns
Double.NaN
.
rotationMatrix
- the rotation matrix to use for the conversion. Not modified.public static double computeRoll(RotationMatrixReadOnly rotationMatrix)
Edge case:
Double.NaN
, this method returns
Double.NaN
.
rotationMatrix
- the rotation matrix to use for the conversion. Not modified.public static double computeYaw(RotationScaleMatrixReadOnly rotationScaleMatrix)
Edge case:
Double.NaN
, this method returns
Double.NaN
.
rotationScaleMatrix
- a 3-by-3 matrix representing an orientation and a scale. Only the
orientation part is used during the conversion. Not modified.public static double computePitch(RotationScaleMatrixReadOnly rotationScaleMatrix)
Edge case:
Double.NaN
, this method returns
Double.NaN
.
rotationScaleMatrix
- a 3-by-3 matrix representing an orientation and a scale. Only the
orientation part is used during the conversion. Not modified.public static double computeRoll(RotationScaleMatrixReadOnly rotationScaleMatrix)
Edge case:
Double.NaN
, this method returns
Double.NaN
.
rotationScaleMatrix
- a 3-by-3 matrix representing an orientation and a scale. Only the
orientation part is used during the conversion. Not modified.public static void convertMatrixToYawPitchRoll(RotationScaleMatrixReadOnly rotationScaleMatrix, double[] yawPitchRollToPack)
After calling this method, the rotation part of the rotation-scale matrix and the yaw-pitch-roll angles represent the same orientation.
Edge case:
Double.NaN
, the yaw-pitch-roll angles
are set to Double.NaN
.
rotationScaleMatrix
- a 3-by-3 matrix representing an orientation and a scale. Only the
orientation part is used during the conversion. Not modified.yawPitchRollToPack
- the array in which the yaw-pitch-roll angles are stored, in the
order yaw
, pitch
, then roll
. Modified.public static void convertMatrixToYawPitchRoll(RotationMatrixReadOnly rotationMatrix, double[] yawPitchRollToPack)
After calling this method, the rotation matrix and the yaw-pitch-roll angles represent the same orientation.
Edge case:
Double.NaN
, the yaw-pitch-roll angles
are set to Double.NaN
.
rotationMatrix
- a 3-by-3 matrix representing an orientation. Not modified.yawPitchRollToPack
- the array in which the yaw-pitch-roll angles are stored, in the
order yaw
, pitch
, then roll
. Modified.public static void convertMatrixToYawPitchRoll(RotationScaleMatrixReadOnly rotationScaleMatrix, Tuple3DBasics eulerAnglesToPack)
After calling this method, the rotation part of the rotation-scale matrix and the yaw-pitch-roll angles represent the same orientation.
Edge case:
Double.NaN
, the yaw-pitch-roll angles
are set to Double.NaN
.
rotationScaleMatrix
- a 3-by-3 matrix representing an orientation and a scale. Only the
orientation part is used during the conversion. Not modified.eulerAnglesToPack
- the tuple in which the yaw-pitch-roll angles are stored, i.e.
eulerAnglesToPack.set(roll, pitch, yaw)
. Modified.public static void convertMatrixToYawPitchRoll(RotationMatrixReadOnly rotationMatrix, Tuple3DBasics eulerAnglesToPack)
After calling this method, the rotation matrix and the yaw-pitch-roll angles represent the same orientation.
Edge case:
Double.NaN
, the yaw-pitch-roll angles
are set to Double.NaN
.
rotationMatrix
- a 3-by-3 matrix representing an orientation. Not modified.eulerAnglesToPack
- the tuple in which the yaw-pitch-roll angles are stored, i.e.
eulerAnglesToPack.set(roll, pitch, yaw)
. Modified.static double computeYawFromQuaternionImpl(double qx, double qy, double qz, double qs)
This method is for internal use. Use computeYaw(QuaternionReadOnly)
instead.
qx
- the x-component of the quaternion to use in the conversion.qy
- the y-component of the quaternion to use in the conversion.qz
- the z-component of the quaternion to use in the conversion.qs
- the s-component of the quaternion to use in the conversion.static double computePitchFromQuaternionImpl(double qx, double qy, double qz, double qs)
This method is for internal use. Use computePitch(QuaternionReadOnly)
instead.
qx
- the x-component of the quaternion to use in the conversion.qy
- the y-component of the quaternion to use in the conversion.qz
- the z-component of the quaternion to use in the conversion.qs
- the s-component of the quaternion to use in the conversion.static double computeRollFromQuaternionImpl(double qx, double qy, double qz, double qs)
This method is for internal use. Use computeRoll(QuaternionReadOnly)
instead.
qx
- the x-component of the quaternion to use in the conversion.qy
- the y-component of the quaternion to use in the conversion.qz
- the z-component of the quaternion to use in the conversion.qs
- the s-component of the quaternion to use in the conversion.public static double computeYaw(QuaternionReadOnly quaternion)
Edge case:
Double.NaN
, this method returns
Double.NaN
.
quaternion
- the quaternion to use in the conversion. Not modified.public static double computePitch(QuaternionReadOnly quaternion)
Edge case:
Double.NaN
, this method returns
Double.NaN
.
quaternion
- the quaternion to use in the conversion. Not modified.public static double computeRoll(QuaternionReadOnly quaternion)
Edge case:
Double.NaN
, this method returns
Double.NaN
.
quaternion
- the quaternion to use in the conversion. Not modified.public static void convertQuaternionToYawPitchRoll(QuaternionReadOnly quaternion, double[] yawPitchRollToPack)
After calling this method, the quaternion and the yaw-pitch-roll angles represent the same orientation.
Edge case:
Double.NaN
, the yaw-pitch-roll angles are
set to Double.NaN
.
quaternion
- the quaternion to use in the conversion. Not modified.yawPitchRollToPack
- the array in which the yaw-pitch-roll angles are stored, in the
order yaw
, pitch
, then roll
. Modified.public static void convertQuaternionToYawPitchRoll(QuaternionReadOnly quaternion, Tuple3DBasics eulerAnglesToPack)
After calling this method, the quaternion and the yaw-pitch-roll angles represent the same orientation.
Edge case:
Double.NaN
, the yaw-pitch-roll angles are
set to Double.NaN
.
quaternion
- the quaternion to use in the conversion. Not modified.eulerAnglesToPack
- the tuple in which the yaw-pitch-roll angles are stored, i.e.
eulerAnglesToPack.set(roll, pitch, yaw)
. Modified.static double computeYawFromAxisAngleImpl(double ux, double uy, double uz, double angle)
This method is for internal use. Use computeYaw(AxisAngleReadOnly)
instead.
ux
- the x-component of the axis of the axis-angle to use in the conversion.uy
- the y-component of the axis of the axis-angle to use in the conversion.uz
- the z-component of the axis of the axis-angle to use in the conversion.angle
- the angle of the axis-angle to use in the conversion.static double computePitchFromAxisAngleImpl(double ux, double uy, double uz, double angle)
This method is for internal use. Use computePitch(AxisAngleReadOnly)
instead.
ux
- the x-component of the axis of the axis-angle to use in the conversion.uy
- the y-component of the axis of the axis-angle to use in the conversion.uz
- the z-component of the axis of the axis-angle to use in the conversion.angle
- the angle of the axis-angle to use in the conversion.static double computeRollFromAxisAngleImpl(double ux, double uy, double uz, double angle)
This method is for internal use. Use computeRoll(AxisAngleReadOnly)
instead.
ux
- the x-component of the axis of the axis-angle to use in the conversion.uy
- the y-component of the axis of the axis-angle to use in the conversion.uz
- the z-component of the axis of the axis-angle to use in the conversion.angle
- the angle of the axis-angle to use in the conversion.public static double computeYaw(AxisAngleReadOnly axisAngle)
Edge case:
Double.NaN
, this method returns
Double.NaN
.
axisAngle
- the axis-angle to use in the conversion. Not modified.public static double computePitch(AxisAngleReadOnly axisAngle)
Edge case:
Double.NaN
, this method returns
Double.NaN
.
axisAngle
- the axis-angle to use in the conversion. Not modified.public static double computeRoll(AxisAngleReadOnly axisAngle)
Edge case:
Double.NaN
, this method returns
Double.NaN
.
axisAngle
- the axis-angle to use in the conversion. Not modified.public static void convertAxisAngleToYawPitchRoll(AxisAngleReadOnly axisAngle, double[] yawPitchRollToPack)
After calling this method, the axis-angle and the yaw-pitch-roll angles represent the same orientation.
Edge case:
Double.NaN
, the yaw-pitch-roll angles are
set to Double.NaN
.
axisAngle
- the axis-angle to use in the conversion. Not modified.yawPitchRollToPack
- the array in which the yaw-pitch-roll angles are stored, in the
order yaw
, pitch
, then roll
. Modified.public static void convertAxisAngleToYawPitchRoll(AxisAngleReadOnly axisAngle, Tuple3DBasics eulerAnglesToPack)
After calling this method, the axis-angle and the yaw-pitch-roll angles represent the same orientation.
Edge case:
Double.NaN
, the yaw-pitch-roll angles are
set to Double.NaN
.
axisAngle
- the axis-angle to use in the conversion. Not modified.eulerAnglesToPack
- the tuple in which the yaw-pitch-roll angles are stored, i.e.
eulerAnglesToPack.set(roll, pitch, yaw)
. Modified.static void convertAxisAngleToYawPitchRollImpl(double ux, double uy, double uz, double angle, double[] yawPitchRollToPack)
This method is for internal use. Use computeYaw(AxisAngleReadOnly)
instead.
After calling this method, the axis-angle and the yaw-pitch-roll angles represent the same orientation.
ux
- the x-component of the axis of the axis-angle to use in the conversion.uy
- the y-component of the axis of the axis-angle to use in the conversion.uz
- the z-component of the axis of the axis-angle to use in the conversion.angle
- the angle of the axis-angle to use in the conversion.yawPitchRollToPack
- the array in which the yaw-pitch-roll angles are stored, in the
order yaw
, pitch
, then roll
. Modified.static void convertAxisAngleToYawPitchRollImpl(double ux, double uy, double uz, double angle, Tuple3DBasics eulerAnglesToPack)
This method is for internal use. Use computeYaw(AxisAngleReadOnly)
instead.
After calling this method, the axis-angle and the yaw-pitch-roll angles represent the same orientation.
ux
- the x-component of the axis of the axis-angle to use in the conversion.uy
- the y-component of the axis of the axis-angle to use in the conversion.uz
- the z-component of the axis of the axis-angle to use in the conversion.angle
- the angle of the axis-angle to use in the conversion.eulerAnglesToPack
- the tuple in which the yaw-pitch-roll angles are stored, i.e.
eulerAnglesToPack.set(roll, pitch, yaw)
. Modified.public static double computeYaw(Vector3DReadOnly rotationVector)
Edge case:
Double.NaN
, this method returns
Double.NaN
.
rotationVector
- the rotation vector to use in the conversion. Not modified.public static double computePitch(Vector3DReadOnly rotationVector)
Edge case:
Double.NaN
, this method returns
Double.NaN
.
rotationVector
- the rotation vector to use in the conversion. Not modified.public static double computeRoll(Vector3DReadOnly rotationVector)
Edge case:
Double.NaN
, this method returns
Double.NaN
.
rotationVector
- the rotation vector to use in the conversion. Not modified.public static void convertRotationVectorToYawPitchRoll(Vector3DReadOnly rotationVector, double[] yawPitchRollToPack)
After calling this method, the rotation vector and the yaw-pitch-roll angles represent the same orientation.
Edge case:
Double.NaN
, the yaw-pitch-roll angles
are set to Double.NaN
.
rotationVector
- the rotation vector to use in the conversion. Not modified.yawPitchRollToPack
- the array in which the yaw-pitch-roll angles are stored, in the
order yaw
, pitch
, then roll
. Modified.public static void convertRotationVectorToYawPitchRoll(Vector3DReadOnly rotationVector, Vector3DBasics eulerAnglesToPack)
After calling this method, the rotation vector and the yaw-pitch-roll angles represent the same orientation.
Edge case:
Double.NaN
, the yaw-pitch-roll angles
are set to Double.NaN
.
rotationVector
- the rotation vector to use in the conversion. Not modified.eulerAnglesToPack
- the tuple in which the yaw-pitch-roll angles are stored, i.e.
eulerAnglesToPack.set(roll, pitch, yaw)
. Modified.


I am a rising senior majoring in computer science at University of Illinois at Urbana Champaign (UIUC). I will be an intern at the Illumination and Imaging Lab (ILIM) at the Robotics Institue, Carnegie Mellon University (CMU). I was a one-semester visiting student at National Taiwan University. My research interest lies in machine/deep learning, computer vision/graphics, and computational photography. Specifically, I currently focus more on 3D side of computer graphics/vision.
🎓Education
-
University of Illinois at Urbana-Champaign
Aug. 2018 - Dec. 2021
BS in Computer Science
GPA: 3.96/4.00 -
National Taiwan University
Fall 2020
One-semester visiting student
GPA: 4.30/4.30
✔Experience
-
Deep Learning Research Intern
June 2020 - May 2021
Data Analytics Group, National Center of Supercomputing Application (NCSA)- Developed a temporal convolution network for video action recognition, written in tensorflow
- Achieved 98% frame-wise accuracy @ 1 fps on a real-world sea turtle dataset
- Familiar with Linux system and cluster job scripts
-
Undergradute Research Assistant
Feb. 2020 - Present
Prof. David Forsyth- Utilized a soft rasterizer to develop a 2D mesh semantic mask for image segmentation
- Worked on novel view synthesis of scenes using generated models (more coming soon)
-
PyTorchFI Contributor
Feb. 2020
HackIllinois, Champaign, IL- Developed a runtime perturbation tool (PyTorchFI) for DNNs, implemented for PyTorch
- Refactored the fault injector to generalize to inject error into specific parts of RNNs and LSTMs for testing models’ robustness to unexpected errors
-
MEMBER OF PACBOT CODING TEAM
Aug. 2018 - May 2019
iRobotics, Champaign, IL- Worked on the algorithm of a completely automated robot that runs on a real world Pacman game
- Used Dijkstra’s shortest path algorithm and updated signals of the current position of ghosts and PacBot to compute the next movement of the PacBot, written in Python
- Participated in Harvard PacBot Competition and won the 4th place
🏆Awards
- National Science Foundation (NSF) Research Experiences for Undergraduates (REU)
- NCSA Letter of Recognition
- NCSA Fiddler Innovation Undergraduate Student Fellowship Award
- College of Engineering Dean’s List ‘18, ‘19, ‘20, ‘21
⛰Interests
Apart from being a machine learning and computer vision/graphics enthusiast, I enjoy mountain hiking. I have been to 39 out of 100 most famous peaks in Taiwan (台灣百岳). Taking beautiful photos in mountains and apply my skills to these photos are one of my favorite hobbies.


You have collected globally 430 points.
Your rank is 4/131.
You can spend 100 points in the shop !
You can perform objectives to ear points to spend in the shop. With these points, you will be able to unlock new features for your fish tank: new fishes, decorations, ... There is 3 different kind of objectives, which grant each 5, 20 or 50 points each depending of the difficulty you have chosen.
| Name | Description | Price | Buy |
|---|---|---|---|
| Fish#1 | One other fish | 10 | |
| Fish#2 | One other fish | 30 | |
| Fish#3 | One other fish | 50 | |
| Fish#4 | One other fish | 80 | |
| Fish#5 | One other fish | 120 |
| Name | Description | Price | Buy |
|---|---|---|---|
| Plant#1 | One other plant | 20 | |
| Plant#2 | One other plant | 30 | |
| Plant#3 | One other plant | 50 | |
| Plant#4 | One other plant | 50 | |
| Plant#5 | One other plant | 50 |
| Name | Description | Price | Buy |
|---|---|---|---|
| Boat | 60 | ||
| Submarine | 80 | ||
| House | 50 | ||
| Castle | 70 | ||
| Diver | 60 |
| Name | Description | Price | Buy |
|---|---|---|---|
| Bowl/Reservoir | 20 | ||
| Standard Food | Need one per fish/week | 15 | |
| Sophisticated Food | Optional or required for Fish #4 and #5. Need one per fish/week. | 25 | |
| Water cleaner | Make the fish healthier, happier, with more energy | 150 | |
| XL Fish Tank | Can fit 7 fishes but losses 7% of water per day. Contains 150 units of water. | 300 |
These objectives grant 5 points each.
| # | Description | Do it! |
|---|---|---|
| #1 | Avoid running taps | |
| #2 | Reduce the time spent in the shower by 2 minutes | |
| #3 | Turn off the tap when soaping or washing your hairs | |
| #4 | Take a shower instead of a bath | |
| #5 | Turn off the tap when you brush your teeth | |
| #6 | Only start your washing machine when it is fully loaded | |
| #7 | Only start your dishwasher when it is fully loaded | |
| #8 | Only fill the kettle with the amount of water needed | |
| #9 | Reuse the water that has been left in the kettle | |
| #10 | If available, activate the Eco/Fast mode on your dishwasher | |
| #11 | If available, activate the Eco/Fast mode on you washing machine | |
| #12 | Use a glass of water to rinse your mouth when you clean your teeth | |
| #13 | If you have dual-flush toilets, make sure you use the long or short flush when it is appropriated | |
| #14 | When dishwashing per hand, try not to use too much soap or washing liquid |
These objectives grant 20 points each.
| # | Description | Do it! |
|---|---|---|
| #1 | Try not to take a bath this week | |
| #2 | Reduce the time spent in the shower by 3 minutes | |
| #3 | Try to do one less washing machine load this week | |
| #4 | Try to do one less dishwasher load this week | |
| #5 | Do not flush the toilet all the time | |
| #6 | Reuse the water used for boiling some food to water plant. Ex: eggs, pasta | |
| #7 | If dishwashing per hand, try to use a basin/bowl | |
| #8 | If dishwashing per hand, try to rinse the dishes in a bowl as well after washing them | |
| #9 | Try to reuse the water used for dishwashing per hand for garden purposes. A low amount of washing liquid won’t affect the plant | |
| #10 | Try to wash your clothes by hand in a basin when you don’t have a lot to clean | |
| #11 | Try to turn on the dishwasher or washing machine between hour#1 and hour#2 |
These objectives grant 50 points each.
| # | Description | Do it! |
|---|---|---|
| #1 | Collect rainwater to water your plants | |
| #2 | Try to do one less washing machine load per week over two weeks | |
| #3 | Try to do one less dishwasher load per week over two weeks | |
| #4 | Try only to take two baths maximum per month | |
| #5 | When taking the bath, try to reuse some of the “grey” water for garden purposes | |
| #6 | If you can, reduce the intensity of the flow coming out of the shower | |
| #7 | If washing your car, try to use a basin and not a pressure washer |


|
Output in MPEG, DVD/MiniDVD
DVDBuilder Pro is a total solution for you to create your
dvd . Create, Share and Preserve your memories on
DVD. DVDBuilder Pro has all the tools you need to be
your own movie producer. Whether you are new to disc
authoring or an advanced user, creating movie or photo
slideshow DVDs has never been easier. Turn your digital
media into memorable projects to share with family and
friends. No matter what the occasion -- birthday, wedding,
vacation, holiday, family reunion, or others, DVDBuilder
Pro is the fastest way to create, preserve and share
lasting memories on DVD. Complete Video and Photo Tools
for DVD Creation.
DVDBuilder Pro makes it easy to create fun and entertaining
DVDs with video, photos and music. It is so intuitive
you'll be making your first disc in minutes. Start by
using the automatic scene detection to help identify
scenes. Then, trim out any parts you don't want, add
fun effects, transitions, and text, and even mix video
and photos to tell your story. You can also add your
own chapters and chapter menus, just like you see on
Hollywood DVDs. Use the Free-Form-Button Placement feature
to customize the placement of your button menus or let
DVDBuilder Pro automatically place them for you. Add
your favorite music to your project and create a blockbuster
that your family and friends are sure to enjoy.
DVDBuilder Pro supports all popular file formats
and capture devices, so whether you're capturing yesterday's
birthday party from a DV camera or a 1980's family reunion
from Beta, we've got you covered.
Create Photo Slideshows Create photo slideshows
with DVDBuilder Pro on DVD that can be played back on
your computer or on your TV through your family room
DVD player. Just drag-and-drop your favorite photos into
the DVDBuilder Pro slideshow window, choose your favorite
songs to use as background music and you're done. DVDBuilder
Pro will even import your photos with the correct orientation
directly from your digital camera. With one click,
DVDBuilder Pro will automatically fit your slideshow
to your background music. It comes complete with
numerous customizable video/audio controls that can deliver
the highest quality viewing and listening experience.
As well, DVDBuilder offers feature-rich navigation controls,
for a more interactive and tailored DVD experience. DVDBuilder
is guaranteed to deliver the highest quality and personalized
DVD Creating experience possible on the PC today!
Free Download Now
|


I am a freshman Studying at National Institute of Technology-Karnataka, Surathkal.
I have completed my schooling from DAV Public School, Patna. Right now, I am exploring the fields of web development, machine learning and competitive programming.
I like to read novels and I am a fan of Dan Brown. My favourite book is 'The Alchemist' written by Paulo Coelho. Also, I like to watch movies in my spare time.


To use RXSOCKVM do the following:
- Copy rxsockvm.dll to a directory in your libpath.
- Insert the initialization/termination code in your Rexx program.
All RXSOCKVM calls have a common format:
ret = Socket( <command> [, <parameters>...] )
where different commands take a variable number of parameters as indicated.
the returned value ('ret' in the above example) will contain either:
- A return code of "0" optionally followed by additional data as described for
each command below.
- A non-zero return code followed by an error acronym and a descriptive error
message.
RXSOCKVM Calls:
(case is insignificant in parameters,
[] indicates optional parameter, | indicates alternatives)
| ret = Socket( 'Accept', socketid )
| socketid is a socket number as returned by the Socket( 'Socket' ... ) call
|
| ret = Socket( 'Close', socketid )
|
| ret = Socket( 'Connect', socketid, socketname )
| socketname is a socket's network address consting of domain port ID and IP address.
example: "AF_INET 1234 <IP_ADDRESS>"
| ret = Socket( 'Fcntl', socketid, 'F_GETFL' )
| | ret = Socket( 'Fcntl', socketid, 'F_SETFL', fvalue )
| fvalue can be 'NON-BLOCKING' or 'FNDELAY' or 'BLOCKING' or '0'
| | ret = Socket( 'GetClientId' [, domain] )
| domain can be 'AF_INET' or '0'
| | ret = Socket( 'GetDomainName' )
| | ret = Socket( 'GetHostByAddr' [, ipaddress] )
| ipaddress can be 'INADDR_ANY' or 'ANY' or 'INADDR_BROADCAST' or 'BROADCAST'
or an IP address in dotted-decimal notation
| ret = Socket( 'GetHostByName' [, hostname | fullhostname] )
| hostname is the host processor name as a character string.
fullhostname is the fully qualified host name.
| ret = Socket( 'GetHostId' )
| | ret = Socket( 'GetHostName' )
| | ret = Socket( 'GetPeerName', socketid )
| | ret = Socket( 'GetProtoByName', protocolname )
| Protocolname is the name of a protocol: 'IP', 'TCP' or 'UDP'.
| | ret = Socket( 'GetProtoByNumber', protocolnumber )
| | ret = Socket( 'GetServByName', servicename [, protocolname] )
| servicename> is the name of a service such as 'TELNET'.
| | ret = Socket( 'GetServByPort', portid [, protocolname] )
| portid is a port number, 'INPORT_ANY' or 'ANY'.
| | ret = Socket( 'GetSockOpt', socketid, level, optname )
|
| level is 'SOL_SOCKET'.
| optname is one of the following:
| 'SO_ASCII' | 'SO_BROADCAST' | 'SO_DEBUG'
| | 'SO_EBCDIC' | 'SO_ERROR' | 'SO_KEEPALIVE'
| | 'SO_LINGER' | SO_OOBINLINE' | 'SO_SNDBUF'
| | 'SO_REUSEADDR' | 'SO_TYPE'
|
|
| | ret = Socket( 'GiveSocket', socketid, clientid )
| Not supported by OS/2 TCP/IP.
| | ret = Socket( 'Initialize', subtaskid [, 40|maxdesc [ TCP/IP userid] ] )
|
subtaskid is the name of the "socket set", 1-8 characters.
RXSOCKVM allows only one active socket set.
| maxdesc is the number of sockets in the "socket set".
| | TCP/IP userid is ignored.
| |
| | ret = Socket( 'ioctl', socketid, icmd [, ivalue ] )
| icmd is one of the following:
| | ret = Socket( 'Listen', socketid [, 10|backlog ])
| backlog is the number of pending connection requests.
| | ret = Socket( 'Read', socketid [, 10000|maxlength ] )
| maxlength is the maximum length of data to be read
| | ret = Socket( 'Recv', socketid [, 10000|maxlength [, recvflags] ] )
| recvflags is 'MSG_OOB' or 'OOB' or 'OUT_OF_BAND'
and/or 'MSG_PEEK' or 'PEEK'.
| ret = Socket( 'RecvFrom', socketid [, 10000|maxlength [, recvflags] ] )
| | ret = Socket( 'Resolve', ipaddress|hostname|fullhostname [, timeout ] )
| timeout is a positive integer indicating
the maximum wait time in sec.
| ret = Socket( 'Select', [, mask [, 'FOREVER'|timeout ] )
| mask is:
| ['Read' socketlist]
| | ['Write' socketlist]
| | ['Exception' socketlist]
| | socketlist is a list of socketids
| | 'Read', 'Write', and 'Exception' can be in any order.
|
| | ret = Socket( 'Send', socketid , data [, sendflags ] )
|
| data is the message string to be sent.
| | sendflags are 'MSG_OOB' or 'OOB' or 'OUT_OF_BAND'
| | and/or 'MSG_DONTROUTE' or 'DONTROUTE'
|
| | ret = Socket( 'SendTo', socketid , data [, sendflags [, destination name ] ] )
| destination name is the destination network address.
| | ret = Socket( 'SetSockOpt', socketid, level, optname, optvalue )
| optname - see 'GetSockOpt'
| | ret = Socket( 'Shutdown', socketid [, 'BOTH'|how ] )
| how is 'FROM' or 'RECEIVE' or 'RECEIVING' or 'READ' or 'READING'
or 'TO' or 'SEND' or 'SENDING' or 'WRITE' or 'WRITING'
| ret = Socket( 'Socket' [, 'AF_INET' [, 'SOCK_STREAM'|'SOCK_DGRAM'|'SOCK_RAW'|'RAW'
[, 'IPPROTO_TCP'|'IPPROTO_UDP' ] ] ] )
| | ret = Socket( 'SocketSetList' )
| | ret = Socket( 'SocketSetStatus' [, subtaskid ] )
| | ret = Socket( 'TakeSocket', clientid, socketid )
| Not supported by OS/2 TCP/IP.
| | ret = Socket( 'Terminate' [, subtaskid ] )
| | ret = Socket( 'Trace' [, setting [, modifier ] ] )
| Not supported by OS/2 TCP/IP.
| | ret = Socket( 'Translate', string, how )
| Not implemented by this version of RXSOCKVM.
| | ret = Socket( 'Version' )
| | ret = Socket( 'Write', socketid,data )
| | | | | | |
Returned values:
(if other than 0)
| 'Accept'
| "0 socketid socketname" as "0 8 AF_INET 1234 <IP_ADDRESS>"
|
| 'Fcntl'
| if 'F_GETFL' is specified returns "0 characteristic"
|
| 'GetClientId'
| "0 AF_INET Userid subtaskid".
|
| 'GetDomainName'
| "0 domain_name".
|
| 'GetHostByAddr'
| "0 fully-qualified_host_name".
|
| 'GetHostByName'
| "0 ip_address".
|
| 'GetHostId'
| "0 ip_address".
|
| 'GetHostName'
| "0 host_name".
|
| 'GetPeerName'
| "0 socket_name".("domain portid ipaddress")
|
| 'GetProtoByName'
| "0 protocol_number". (e.g. 'TCP'->6).
|
| 'GetProtoByNumber'
| "0 protocol_name". (e.g. 6->'TCP').
|
| 'GetServByName'
| "0 service_name portid protocolname".
|
| 'GetServByPort'
| "0 the domain_name".
|
| 'GetSockName'
| "0 socket_name". ("domain portid ipaddress").
|
| 'GetSockOpt'
| "0 option_status".
|
| 'Initialize'
| "0 subtaskid number_of_sockets 'TCPIP' "
|
| 'Ioctl'
| "0 operating_characteristics".
|
| 'Read'
| "0 length_of_data_read data".
|
| 'Recv'
| "0 length_of_data_read data".
|
| 'RecvFrom'
| "0 network_address length_of_data_read data".
|
| 'Select'
| "0 number_of_seckets socket_list".
socket_list example: "Read 1 2 Write 3 Exception"
| 'Send'
| "0 length_of_data_written".
| | 'SendTo'
| "0 length_of_data_written".
| | 'Socket'
| "0 new_socket_id".
| | 'SocketSet'
| "0 subtaskid".
| | 'SocketSetList'
| "0 subtaskid".
RXSOCKVM allows only one socket set.
| 'SocketSetStatus'
| "0 subtaskid 'Connected' 'Free' # 'Used' #".
| | 'Translate'
| "0 length_of_translated_string translated_string".
| | 'Version'
| "0 'RxSockVM 1.00 14 July 2000'"
| | 'Write'
| "0 length_of_data_written".
| | |
Initialization/Termination code for RXSOCKVM
/* Required initialization code */
RC = RxFuncAdd( 'Socket', 'RXSOCKVM', 'Socket' )
If RC<>0 Then Do
Say "RxFuncAdd for RXSOCKVM returned" RC
End
/* Suggested initialization code to make sure */
/* that DLL is released after use */
Signal On Error Name Cleanup
Signal On Failure Name Cleanup
Signal On Halt Name Cleanup
Signal On Syntax Name Cleanup
... Your code goes here ...
/* Required Termination code */
/* Prior to this you might also want to execute */
/* some application-specific cleanup: close, etc */
Cleanup:
RC = RxFuncDrop( 'Socket' )
Rebuilding RXSOCKVM
RXSOCKVM was compiled using EMX 0.9d and EMX sockets.
It also requires base OS/2 TCP/IP support.
To rebuild the dll, cd to the directory containg the sources
and issue the command
make
You should then copy the rebuilt dll to replace the original in whatever directory
you placed it at install time. You will most likely have to end
all instances of usage before copying.
Change Log
| 08 Aug 2000 | 1.00a | Cleanup termination code and error messages.
|
| 01 Aug 2000 | 1.00 | Initial release.
|


Way less. In way more time.
Discover the robust gamedev solution that is the Default Cube. Built from the ground-up to not support React, not support memory leaks, and also not support other things.
Outstanding features beyond science.
• Works on Android, iOS, and Web (if available, also multi-touch.)
• Absolutely painless workflow - transforming Blender into an actual game engine.
• Convert Blender files into playable prototypes literally within a hours.
• Dynamic team and free office fruits on Thursdays.
• 100% focused on making gamedev as easy as possible.
• Seamless interaction controls. This one is actually pretty cool - you can change cameras on the fly, follow characters without a million lines of code, all the cool stuff.
• Support for ads and IAPs, because money.
Hard things that Default Cube may make less hard.
• Three.js animations. Never worry about implementing blending - just play the animations.
• Audio system. Howler API ensures as wide platform support as it gets.
• Culling WebGL memory leaks. Or any kind of memory leaks for that matter.
• Scene, state, and asset management. No more manual disposals, just load that glTF and live a carefree life.
• Multi-touch and pan gestures.
• Collisions and AI.
• UI rendering.


if you trade for a living and need fiat, in the UK you are supposed to keep a record of every single trade you make, not sure about other countries.... this is in principle, until they figure things out. But anyone who day trades, doesn't matter the asset, record every trade.
Have no idea... apart from some serious hours of work


Json and Xhtml Version - Backend is a flatfile database with 6Mb spanish dictonary. So its maybe too slow sometimes ;)


Home
Page 1
Page 2
Page 3
Page 4
CareerPath
We care for your future!
This website is developed under GirlScript's The Uplift Project


Use-Case and interaction-flow for Normal User
John will go to website
John will enter his zipcode in map
Local restaurants and Covid 19 statistics will appear
John can browse the listings and make his decision


--- layout: default title: Bootstrap 3 Prototyping Glue - Home --- Bootstrap 3 Prototyping Glue Base Styles Bootstrap Docs GitHub
Turn this page into your own design patterns and theme mockups. Simply fire up your editor and hack the files under /html, /scss, and /js.


Infos on SharedPreferences
Using numbers (Float, Long, Integer):
If you type in a wrong, non numerical value or a float value for Long or Integer, saving the value will be ignored. You will only see an error message in the LogCat.
Using StringSet (HashSet):
Carriage return means: new entry. Be sure to have no carriage return at the end of the textarea, otherwise you will have an empty String entry in your set.
Float:
Float accepts dot (.) or comma (,). 3.3 is the same as 3,3


--- title: "Speaking Tonight at the Dallas C# SIG" layout: post ---
In case you're in Dallas and free this evening, I will be speaking at the Dallas C# SIG tonight and discussing C# 3.0. This should be a great chance to discuss C#'s future with people who are passionate about the language. All the relevant details can be found here.


---
layout: post
title: There is Such a Thing as Too Much Testing
date: 2010-02-18 09:13:00.000000000 +11:00
comments: true
categories:
- development
- testing
---
Have been watching the RubyConf 2009
video. And I liked the matrix which is based on 3 dimensions to determine level of testing. The questions you have to ask to determine how much testing you need should include:
- Did your tests stop/find bugs?
- Was there good design?
- Did the tests encourage good design?
- How easy was it to write new features?
- What's the level of developer buy-in for testing?
- What's the level of buy-in for managers?
- What level of assurance do you need? Are you really sure? (Lose a tweet – not a big deal, lose a life – thing you're dead too).
The lessons are:
- Start small (do not do Selenium at least!).
- Do not get new resources just to run your tests. They MUST be fast enough.
- Paralllelise.
- Use fast machine or cloud.
- Do not hit external resources (including DB if possible).
- Profile and examine slow tests.
- remove redundant tests.
- Distinguish between model and integration test clearly. You often assert in model test instead of integration ones.


REVIEW 5
The questions that follow are based on
- Tools: Scikit-Learn
- Tools: NLTK
Scikit Learn
- Why is it a good idea to shuffle your training data?
- When could shuffling be a bad idea? Give 2 examples.
- What is a Binary classifier? How is it different from an
n-ary
classifier? - What is a confusion matrix
- Write a snippet to obtain the confusion matrix from Scikit learn
- In the above confusion matrix that you obtained from scikit-learn, what do each of the cells represent. In other words, fill the following matrix:
--|-------------|-------------------|------------------|--
| | ?=? | ?=? |
--|-------------|-------------------|------------------|--
| ?=? | ? | ? |
--|-------------|-------------------|------------------|--
| ?=? | ? | ? |
--|-------------|-------------------|------------------|--
- With the above confusion matrix, write a snippet to compute:
- Precision
- Recall
- False Alarm
- F1 score
- What is a k-fold cross validation?
- What is stratification? Why is used?
- When would k-fold cross-validation be misleading?
- How would one convert a linear regression into a binary classifier?
- What is a decision hyperplane?
- Say you have an n-dimensional data, how many dimensions would the decision hyperplane comprise of?
- What is the key intuition in SVM?
- What does an SVM aim to achieve when training?
- SVM seem to work very well for which domain? (Ans: Text Classification)
- What are hyper-parameters?
- What is the difference between CART and Random Forest?
- How does Random Forests work?
- What is a
mode
of an array?
Text Classification
- Draw a general pipeline for a simple text classification task.
- Define in a sentence or two, what each of the blocks above aim to achieve.
- Define the following terms:
- Tokenization
- Lemmatization
- Stopword removal
- Part-of-speech tagging.
- Given a sentence below, convert it into tokens using: Tokenization, Lemmatization, and Stopword removal.
- "This is a sentence about cats"
- What is vectorization?
- Give the mathematical formulation of the following:
- Term Frequency
- Document Frequency
- What is intuition underlying TFIDF vectorization?
- Generate a TFIDF vectorization of the following two sentences:
- "Something about a cat."
- "Something about a dog."
- How does sk-learn store sparse matrices? (Ans: CSR Format)
- What is the CSR (compressed sparse row) format?
Multiprocessing
- What is Global Interpreter Lock (GIL)?
- What is chunking?
- Distinguish between synchronous and asynchronous processes.
- How would you count the number of processors in your system with python's Multiprocessing?
- Write a snippet to print "Hello, World! {processor id}" on each of the systems processors.


I have lived in the Pacific Northwest my whole life, 36 years, but I love to travel! I currently live in Vancouver, WA, with my wife and two pets.
I have one life to live and not enough time to learn everything...I'd better get started then! ~ Daniel Hongel


File
File
File
File
LICENSE
left.html
CONTRIBUTING.md
SUMMARY.md
prism.css
networking.html
readme-ov...ile.md
untitled-2.md
style.css
renovate.json
README.md
front-end...ce.pdf
directory.html
CODE_OF_CONDUCT.md
README_RAW.md
How-To-Wi...le.pdf
index.html
companies...ice.md
SECURITY.md
_config.yml
Files: 20
Size of all files: 2019880 KB


Hi! My name is Pat, and this is my family: my wife Patricia, my son Pate, and my daughter, Patia. Welcome to Pat's Salmon Cookies! Being from the Pacific NorthWest, I grew up on all kinds of salmon dishes. But, have you ever heard of salmon cookies? Probably not until today. Our cookies are fresh baked with local, responsibly farmed salmon.


import pyro.poutine as poutine
from pyro.infer import TracePosterior
[docs]class Importance(TracePosterior):
"""
:param model: probabilistic model defined as a function
:param guide: guide used for sampling defined as a function
:param num_samples: number of samples to draw from the guide (default 10)
This method performs posterior inference by importance sampling
using the guide as the proposal distribution.
If no guide is provided, it defaults to proposing from the model's prior.
"""
def __init__(self, model, guide=None, num_samples=None):
"""
Constructor. default to num_samples = 10, guide = model
"""
super(Importance, self).__init__()
if num_samples is None:
num_samples = 10
print("num_samples not provided, defaulting to {}".format(num_samples))
if guide is None:
# propose from the prior by making a guide from the model by hiding observes
guide = poutine.block(model, hide_types=["observe"])
self.num_samples = num_samples
self.model = model
self.guide = guide
def _traces(self, *args, **kwargs):
"""
Generator of weighted samples from the proposal distribution.
"""
for i in range(self.num_samples):
guide_trace = poutine.trace(self.guide).get_trace(*args, **kwargs)
model_trace = poutine.trace(
poutine.replay(self.model, guide_trace)).get_trace(*args, **kwargs)
log_weight = model_trace.log_pdf() - guide_trace.log_pdf()
yield (model_trace, log_weight)
[docs] def log_z(self, *args, **kwargs):
"""
Estimate the marginal likelihood of observations using importance weights.
Takes the same inputs as self.model and self.guide and returns a 1-element tensor
containing the estimate.
"""
log_z = 0.0
n = 0
# TODO parallelize
for _, log_weight in self._traces(*args, **kwargs):
n += 1
log_z = log_z + log_weight
return log_z / n


public class ViewFullRecipeActivity
extends Activity
| Constructor and Description |
|---|
ViewFullRecipeActivity() |
| Modifier and Type | Method and Description |
|---|---|
void |
clickHandler(View v)
Function that handles the clicks from a user.
|
void |
onAddPhoto()
Function that is called when the user clicks on the add photo button.
|
boolean |
onCreateOptionsMenu(Menu menu) |
void |
onDelete()
Function that is called when the user clicks on the delete button of the
recipe.
|
void |
onDone()
Function that is called when the user clicks on the done button of the
recipe.
|
boolean |
onKeyDown(int keyCode,
KeyEvent event)
Overides the back key action.
|
void |
onNextPhoto()
Function that is called when the user clicks on the image button.
|
void |
onRemovePhoto()
Function that is called when the user clicks on the remove photo button.
|
void |
onResume() |
void |
saveInfo() |
void |
setImage(Recipe recipe) |
void |
setInfo(Recipe recipe)
Function that takes the info of the recipe being edited and puts in into
the text fields.
|
void |
showMessage(java.lang.String message)
Function that displays a message to the user in the current activity
|
public void onResume()
public boolean onKeyDown(int keyCode, KeyEvent event)
public void setInfo(Recipe recipe)
recipe
- The recipe to set the info forpublic void setImage(Recipe recipe)
public boolean onCreateOptionsMenu(Menu menu)
public void clickHandler(View v)
v
- The view of the button that was clickedpublic void onDone()
public void onDelete()
public void showMessage(java.lang.String message)
message
- The message to displaypublic void onAddPhoto()
public void onRemovePhoto()
public void onNextPhoto()
public void saveInfo()


Back to Home
Enter comment
My life matters!
Pikabob
-
posted 6 days ago
DarkCubes
-
posted 1 week ago
Love Matters!
Sir_Pig
-
posted 1 day ago
Black Lives Matter!
We need more love!


| 1 |
| h01 |
| CS32 F18 |
| Name: | ||||
|---|---|---|---|---|
| (as it would appear on official course roster) | ||||
| Umail address: | @umail.ucsb.edu | |||
| Optional: name you wish to be called if different from name above. | ||||
| Optional: name of "homework buddy" (leaving this blank signifies "I worked alone" |
h01: Templates and the STL
| ready? | assigned | due | points |
|---|---|---|---|
| true | Tue 10/02 08:00AM | Tue 10/09 02:00PM |
You may collaborate on this homework with AT MOST one person, an optional "homework buddy".
MAY ONLY BE TURNED IN IN THE LECTURE LISTED ABOVE AS THE DUE DATE,
OR IF APPLICABLE, SUBMITTED ON GRADESCOPE. There is NO MAKEUP for missed assignments;
in place of that, we drop the four lowest scores (if you have zeros, those are the four lowest scores).
Reading: Templates and the STL, PS 8.3, 17, 18
- (10 pts) Fill in the information in the header. The following are required to get the 10 "participation" points.
- Filling in your name and umail address.
Also: For paper submission PLEASE submit on ONE SHEET OF PAPER, double-sided if at all possible. If you must submit on two printed sheets write name on BOTH sheets and no staples, paperclips, or folded corners.
- Filling in your name and umail address.
- Suppose we have a C++ class called
Student
. There are many ways one can create a collectionStudent
objects. Among these: one can use a normal C++ array or an STLvector
, and one could create a collection of objects, or of pointers to objects (presumably allocated on the heap.)- (2 pts) Write a line of C++ code that declares an array
a
that can hold 10 objects of typeStudent
. - (2 pts) Write a line of C++ code that declares an array
b
that can hold 10 pointers to objects of typeStudent
. - (2 pts) Write a line of C++ code that declares an STL vector
c
that can hold 10 objects of typeStudent
. - (2 pts) Write a line of C++ code that declares an STL vector
d
that can hold 10 pointers to objects of typeStudent
.
- (2 pts) Write a line of C++ code that declares an array
- (20 pts) In the previous problem, you were asked to write four different declarations, (a), (b), (c) and (d). Each of these has "pros" and "cons". There are also differences among them that we might describe as "neutral", for whether they are a pro/con depends on the context. For the "pros" and "cons" below, please indicate which of the letters above (a, b, c, d) the statement applies to. Note that in some cases, you may have to indicate more than one letter. Circle the letters to which the statement applies. If you mess up, cross out all the letters and list the letters in the space to the right.
| Hero or zero? | Choices |
|---|---|
Con: Additional #include directives and using statements are required to use this approach. |
a b c d |
| Pro: The item declared can be expanded beyond 10 items if needed. | a b c d |
| Pro: You can declare this item without actually creating any Student objects. | a b c d |
| Con: The class MUST have a default constructor, or this declaration is not permitted. | a b c d |
| Pro: All space for the item and the Students it contains are co-located in memory—on the stack if the item is declared as a local | a b c d |
Grading: for each answer, deduct one point if an item should be included and is not, or is included and should not be.
- (3 pts) In your own words, what is the "problem" for which "templates for functions" is a solution? I'm looking for a brief description—a single sentence, or at most 2-3 sentences that get to the central point, a description of the problem, not a detailed description of everything you know about templates, and certainly not a sentence copied, word-for-word, from either textbook.
- (3 pts) The C++ syntax for function templates includes this
template <class Item>
. The nameItem
in the example above is preceeded by the keywordclass
. One might infer from that thatItem
should be the name of someclass
, e.g.class Student
, orclass Roster
, etc. But that is not a correct assumption. Explain why. (BRIEFLY!) -
Let's say you have a function
int calc(int operand1, int operand2, char op)
whereop
is either '+' or '-'. Instead of overloading this function for each numerical datatype in C++ (e.g. also defining it forfloat
,double
, etc., you want to create a generic function that is far more flexible. In the space below, definecalc
as a template function. If op is neither '+' nor '-', print an error message oncerr
and call the system functionexit(1);
(you may assume that#include<cstdlib>
has already been done.)Note that once we've covered exceptions, that would be a better approach than the
cerr/exit
technique.Grading:- (2 pts) for correct template function header
- (2 pts) for correctly handling the error
- (2 pts) for function body being correct for non-error case.


|
|
2012 Season FIRST Robotics Competition aka Rebound Rumble
Events in All Areas
(70 found, 1 - 70 displayed)
|
Print | Close |
|
|
| Event Subtype |
Event Name |
Event Venue |
Location |
Date(s) |
|
Championship
|
FIRST Championship
|
Edward Jones Dome |
St. Louis, MO USA |
26-Apr - 28-Apr-2012 |
|
Regional
|
Greater Kansas City Regional
|
Hale Arena |
Kansas City, MO USA |
01-Mar - 03-Mar-2012 |
|
Regional
|
BAE Systems Granite State Regional
|
Verizon Wireless Arena |
Manchester, NH USA |
01-Mar - 03-Mar-2012 |
|
Regional
|
Smoky Mountains Regional
|
Knoxville Convention Center |
Knoxville, TN USA |
01-Mar - 03-Mar-2012 |
|
Regional
|
Alamo Regional
|
San Antonio Convention Center |
San Antonio, TX USA |
01-Mar - 03-Mar-2012 |
|
Regional
|
San Diego Regional
|
Valley View Casino Center |
San Diego, CA USA |
02-Mar - 04-Mar-2012 |
|
Regional
|
Israel Regional
|
Nokia Arena |
Tel Aviv, TA Israel |
05-Mar - 07-Mar-2012 |
|
Regional
|
Greater Toronto East Regional
|
University of Ontario Institute of Technology |
Oshawa, ON Canada |
08-Mar - 10-Mar-2012 |
|
Regional
|
Orlando Regional
|
University of Central Florida Arena |
Orlando, FL USA |
08-Mar - 10-Mar-2012 |
|
Regional
|
WPI Regional
|
WPI |
Worcester, MA USA |
08-Mar - 10-Mar-2012 |
|
Regional
|
Chesapeake Regional
|
Baltimore Convention Center |
Baltimore, MD USA |
08-Mar - 10-Mar-2012 |
|
Regional
|
Lake Superior Regional
|
Duluth Entertainment Convention Center |
Duluth, MN USA |
08-Mar - 10-Mar-2012 |
|
Regional
|
Finger Lakes Regional
|
Gordon Field House |
Rochester, NY USA |
08-Mar - 10-Mar-2012 |
|
Regional
|
Autodesk Oregon Regional
|
Portland Memorial Coliseum |
Portland, OR USA |
08-Mar - 10-Mar-2012 |
|
Regional
|
Pittsburgh Regional
|
PITT Petersen Event Center |
Pittsburgh, PA USA |
08-Mar - 10-Mar-2012 |
|
Regional
|
Festival de Robotique FRC a Montreal Regional
|
Uniprix Stadium |
Montreal, QC Canada |
15-Mar - 17-Mar-2012 |
|
Regional
|
Sacramento Regional
|
UC Davis ARC Pavilion |
Davis, CA USA |
15-Mar - 17-Mar-2012 |
|
Regional
|
Los Angeles Regional
|
Long Beach Arena |
Long Beach, CA USA |
15-Mar - 17-Mar-2012 |
|
Regional
|
Peachtree Regional
|
Gwinnett Center |
Duluth, GA USA |
15-Mar - 17-Mar-2012 |
|
Regional
|
Boilermaker Regional
|
Purdue Armory |
West Lafayette, IN USA |
15-Mar - 17-Mar-2012 |
|
Regional
|
Bayou Regional
|
Pontchartrain Center |
Kenner, LA USA |
15-Mar - 17-Mar-2012 |
|
Regional
|
Utah Regional co-sponsored by NASA and Platt
|
Maverik Center |
West Valley City, UT USA |
15-Mar - 17-Mar-2012 |
|
Regional
|
Virginia Regional
|
VCU Siegel Center - Richmond |
Richmond, VA USA |
15-Mar - 17-Mar-2012 |
|
Regional
|
New York City Regional
|
Javits Convention Center |
New York, NY USA |
16-Mar - 18-Mar-2012 |
|
Regional
|
Waterloo Regional
|
University of Waterloo |
Waterloo, ON Canada |
22-Mar - 24-Mar-2012 |
|
Regional
|
Arizona Regional
|
Hamilton High School |
Chandler, AZ USA |
22-Mar - 24-Mar-2012 |
|
Regional
|
Colorado Regional
|
Daniel L. Ritchie Center |
Denver, CO USA |
22-Mar - 24-Mar-2012 |
|
Regional
|
Hawaii Regional sponsored by BAE Systems
|
Stan Sheriff Center |
Honolulu, HI USA |
22-Mar - 24-Mar-2012 |
|
Regional
|
Midwest Regional
|
UIC Pavilion |
Chicago, IL USA |
22-Mar - 24-Mar-2012 |
|
Regional
|
Boston Regional
|
Agannis Arena |
Boston, MA USA |
22-Mar - 24-Mar-2012 |
|
Regional
|
St. Louis Regional
|
Chaifetz Arena |
St. Louis, MO USA |
22-Mar - 24-Mar-2012 |
|
Regional
|
Buckeye Regional
|
Wolstein Center |
Cleveland, OH USA |
22-Mar - 24-Mar-2012 |
|
Regional
|
Palmetto Regional
|
North Charleston Coliseum |
North Charleston, SC USA |
22-Mar - 24-Mar-2012 |
|
Regional
|
Seattle Cascade Regional
|
CenturyLink Event Center |
Seattle, WA USA |
22-Mar - 24-Mar-2012 |
|
Regional
|
Seattle Olympic Regional
|
CenturyLink Event Center |
Seattle, WA USA |
22-Mar - 24-Mar-2012 |
|
Regional
|
Wisconsin Regional
|
US Cellular Arena |
Milwaukee, WI USA |
22-Mar - 24-Mar-2012 |
|
Regional
|
Greater Toronto West Regional
|
Hershey Centre |
Mississauga, ON Canada |
29-Mar - 31-Mar-2012 |
|
Regional
|
Silicon Valley Regional
|
San Jose State University |
San Jose, CA USA |
29-Mar - 31-Mar-2012 |
|
Regional
|
Northeast Utilities FIRST Connecticut Regional
|
Connecticut Convention Center |
Hartford, CT USA |
29-Mar - 31-Mar-2012 |
|
Regional
|
Washington DC Regional
|
Walter E. Washington Conv. Ctr. |
Washington, DC USA |
29-Mar - 31-Mar-2012 |
|
Regional
|
South Florida Regional
|
Florida Atlantic University |
Boca Raton, FL USA |
29-Mar - 31-Mar-2012 |
|
Regional
|
Minnesota 10000 Lakes Regional
|
Williams Arena/The Sports Pavilion Univ of MN |
Minneapolis, MN USA |
29-Mar - 31-Mar-2012 |
|
Regional
|
Minnesota North Star Regional
|
Univ. of MN - Mariucci Arena |
Minneapolis, MN USA |
29-Mar - 31-Mar-2012 |
|
Regional
|
SBPLI Long Island Regional
|
Hofstra University |
Hempstead, NY USA |
29-Mar - 31-Mar-2012 |
|
Regional
|
Oklahoma Regional
|
Cox Arena |
Oklahoma City, OK USA |
29-Mar - 31-Mar-2012 |
|
Regional
|
Dallas West Regional sponsored by jcpenney
|
Dallas Convention Center |
Dallas, TX USA |
29-Mar - 31-Mar-2012 |
|
Regional
|
Dallas East Regional sponsored by jcpenney
|
Dallas Convention Center |
Dallas, TX USA |
29-Mar - 31-Mar-2012 |
|
Regional
|
Central Valley Regional
|
Madera South High School |
Madera, CA USA |
05-Apr - 07-Apr-2012 |
|
Regional
|
North Carolina Regional
|
Dorton Arena |
Raleigh, NC USA |
05-Apr - 07-Apr-2012 |
|
Regional
|
Las Vegas Regional
|
Cashman Center |
Las Vegas, NV USA |
05-Apr - 07-Apr-2012 |
|
Regional
|
Queen City Regional
|
Xavier University |
Cincinnati, OH USA |
05-Apr - 07-Apr-2012 |
|
Regional
|
Lone Star Regional
|
George R. Brown Convention Center |
Houston, TX USA |
05-Apr - 07-Apr-2012 |
|
Regional
|
Spokane Regional
|
Eastern Washington University |
Cheney, WA USA |
05-Apr - 07-Apr-2012 |
FIRST in Michigan
District Championship
|
Michigan FRC State Championship
|
Eastern Michigan University |
Ypsilanti, MI USA |
12-Apr - 14-Apr-2012 |
Mid-Atlantic Robotics
District Championship
|
Mid-Atlantic Robotics FRC Region Championship
|
Liacouras Center |
Philadelphia, PA USA |
12-Apr - 14-Apr-2012 |
FIRST in Michigan
District Event
|
Kettering University FIRST Robotics District Competition
|
Kettering University |
Flint, MI USA |
02-Mar - 03-Mar-2012 |
FIRST in Michigan
District Event
|
Gull Lake FIRST Robotics District Competition
|
Gull Lake High School |
Richland, MI USA |
02-Mar - 03-Mar-2012 |
FIRST in Michigan
District Event
|
Traverse City FIRST Robotics District Competition
|
Traverse City Central High School |
Traverse City, MI USA |
09-Mar - 10-Mar-2012 |
FIRST in Michigan
District Event
|
Waterford FIRST Robotics District Competition
|
Waterford Mott High School |
Waterford, MI USA |
09-Mar - 10-Mar-2012 |
FIRST in Michigan
District Event
|
West Michigan FIRST Robotics District Competition
|
Grand Valley State University |
Allendale, MI USA |
16-Mar - 17-Mar-2012 |
FIRST in Michigan
District Event
|
Detroit FIRST Robotics District Competition
|
Wayne State University |
Detroit, MI USA |
16-Mar - 17-Mar-2012 |
FIRST in Michigan
District Event
|
Niles FIRST Robotics District Competition
|
Niles High School |
Niles, MI USA |
23-Mar - 24-Mar-2012 |
FIRST in Michigan
District Event
|
Northville FIRST Robotics District Competition
|
Northville High School |
Northville, MI USA |
23-Mar - 24-Mar-2012 |
FIRST in Michigan
District Event
|
Livonia FIRST Robotics District Competition
|
Churchill High School |
Livonia, MI USA |
30-Mar - 31-Mar-2012 |
FIRST in Michigan
District Event
|
Troy FIRST Robotics District Competition
|
Troy Athens High School |
Troy, MI USA |
30-Mar - 31-Mar-2012 |
Mid-Atlantic Robotics
District Event
|
Hatboro-Horsham FIRST Robotics District Competition
|
Hatboro-Horsham High School |
Horsham, PA USA |
02-Mar - 03-Mar-2012 |
Mid-Atlantic Robotics
District Event
|
Chestnut Hill FIRST Robotics District Competition
|
Chestnut Hill Academy |
Philadelphia, PA USA |
09-Mar - 10-Mar-2012 |
Mid-Atlantic Robotics
District Event
|
Rutgers University FIRST Robotics District Competition
|
College Avenue Gym |
New Brunswick, NJ USA |
10-Mar - 11-Mar-2012 |
Mid-Atlantic Robotics
District Event
|
Lenape FIRST Robotics District Competition
|
Seneca High School |
Tabernacle, NJ USA |
24-Mar - 25-Mar-2012 |
Mid-Atlantic Robotics
District Event
|
Mount Olive FIRST Robotics District Competition
|
Mount Olive High School |
Flanders, NJ USA |
31-Mar - 01-Apr-2012 |
| Note: |
All FIRST Robotics Competition regionals and tournaments are free and open to the public.
Additional community events are listed as a service to the FIRST community and do not represent an endorsement by FIRST.
Local Kickoffs and Events Run by Teams are conducted, managed and overseen by the identified organizer, not by FIRST. |
|


Ukrainian naval boats seized by Russia near kerch Strait to be returned overnight Sunday – media
Service ships are heading to pick up the boats off the coast of Cape Tarkhankut.
Ukraine Navy artillery boats Berdyansk and Nikopol, seized by Russia near the Kerch Strait in November 2018, as well as the Yany Kapu tugboat, will be returned to Ukraine overnight Sunday.
The report says special vessels are now heading from the Pivdenny port to pick up the boats off the coast of Cape Tarkhankut, an Odesa-based Dumskaya news outlet reports.
The Russian side is tugging Ukrainian boats from the port of Kerch in the occupied Crimea.
According to Dumskaya, the transfer of ships will take place at high seas some 60 nautical miles from Odesa, near Cape Tarkhankut.
As UNIAN reported earlier, the return of Ukrainian naval vessels was set to take place before the Normandy Four summit.
Personal weapons of Ukrainian crew, as well as radios and logs containing information on the crew and other data, will remain in Russia, the Kommersant outlet reported.


|
Fig. 1
|
X-ray diffuse scattering. a Experimental and b calculated 3D ... |
|
Fig. 2
|
Characteristics of the chemical ordering of Mg and Nb. a A s ... |
|
Fig. 3
|
Characteristics of the cation displacements. a Key partial p ... |
|
Fig. 4
|
Correlations among the Pb displacements. a Clusters of Pb at ... |
|
Fig. 5
|
Simulated neutron diffuse scattering. a, b Neutron diffuse s ... |


Teen intervenes after seeing man trying to force woman into van in Parksville
by Roxanne Egan-ElliottSixteen-year-old Sara Picard didn’t think twice about intervening when she saw a man trying to force a woman into a van on a Parksville street.
“She was screaming and looking for help,” Sara said. She had just stepped off a bus on Bay Street when she witnessed the incident. She ran over and pushed the man away.
That’s when he pulled out a knife. Sara took a few steps backward and called the police.
“The man looks at the woman and then looks at me, and takes the knife and puts it to his heart. He ended up stabbing himself in the chest,” Sara said.
Police arrived as the man fell to the ground. He died later in hospital.
Sara now knows the two were a couple with three children.
She said she’s receiving support from RCMP victim services for what was a traumatizing experience, but she wouldn’t do anything differently.
“I think that anybody should have done what I did,” she said.
When Sara saw the woman’s daughter in a police car later, she gave her her phone number and told the teenager to call her if she needed anything.
She contacted Sara, thanking her for saving her mother.
Sara said her priority now is making sure the family is okay. Two fundraisers have been set up for the family to raise money and provide meals while they grieve the loss of a husband and father.
More than $8,000 has been raised for the family.
Sara has been called a hero for her actions on Nov. 14, including by those organizing the fundraisers, but the teenager doesn’t see herself that way.
“I would do it again in a heartbeat if it meant I got to save somebody,” she said.
Cpl. Chris Manseau, an RCMP media relations officer, said officers are thankful Sara stepped in.
“In these types of situations -- they’re ongoing and dynamic -- we’d never want someone to put themselves in harm’s way, but in this incident it did turn out that the actions were effective,” he said.


2 Chronicles 4:20
Moreover the candlesticks with their lamps, that they should burn after the manner before the oracle, of pure gold;


Module: Minitest
| Relationships & Source Files | |
| Namespace Children | |
|
Classes:
| |
| Defined in: | railties/lib/minitest/rails_plugin.rb |
Class Attribute Summary
Class Method Summary
-
.plugin_rails_init(options)
Owes great inspiration to test runner trailblazers like RSpec, minitest-reporters, maxitest, and others.
- .plugin_rails_options(opts, options)
Instance Attribute Summary
- #run_via readonly
Class Attribute Details
.run_via (readonly) Also known as: #run_via
Backwards compatibility with ::Rails
5.0 generated plugin test scripts
# File 'railties/lib/minitest/rails_plugin.rb', line 73
mattr_reader :run_via, default: {}
Class Method Details
.plugin_rails_init(options)
Owes great inspiration to test runner trailblazers like RSpec, minitest-reporters, maxitest, and others.
# File 'railties/lib/minitest/rails_plugin.rb', line 53
def self.plugin_rails_init( ) unless [:full_backtrace] || ENV["BACKTRACE"] # Plugin can run without Rails loaded, check before filtering. if ::Rails.respond_to?(:backtrace_cleaner) Minitest.backtrace_filter = BacktraceFilterWithFallback.new(::Rails.backtrace_cleaner, Minitest.backtrace_filter) end end # Suppress summary reports when outputting inline rerun snippets. if reporter.reporters.reject! { |reporter| reporter.kind_of?(SummaryReporter) } reporter << SuppressedSummaryReporter.new( [:io], ) end # Replace progress reporter for colors. if reporter.reporters.reject! { |reporter| reporter.kind_of?(ProgressReporter) } reporter << ::Rails::TestUnitReporter.new( [:io], ) end end
.plugin_rails_options(opts, options)
[ GitHub ]# File 'railties/lib/minitest/rails_plugin.rb', line 28
def self. (opts, ) ::Rails::TestUnit::Runner. (opts) opts.on("-b", "--backtrace", "Show the complete backtrace") do [:full_backtrace] = true end opts.on("-d", "--defer-output", "Output test failures and errors after the test run") do [:output_inline] = false end opts.on("-f", "--fail-fast", "Abort test run on first failure or error") do [:fail_fast] = true end opts.on("-c", "--[no-]color", "Enable color in the output") do |value| [:color] = value end [:color] = true [:output_inline] = true end
Instance Attribute Details
#run_via (readonly)
[ GitHub ]# File 'railties/lib/minitest/rails_plugin.rb', line 73
mattr_reader :run_via, default: {}


Just as I said in the home page I am an aspiring developer, but currently I am lead technician for GE aviation I want to learn coding because I want to use my skills in engineering to build physical things that implements code I have written.
check out the tables below to see things I like to do, and things that I want to do with my future coding knowledge.


Gilt Featured in NY Daily News Article About STEM Education in New York City
This week the New York Daily News published an article on our November visit with some very special guests: A group of girls from the Bronx Academy for Software Engineering! In addition to learning from some of Gilt’s women technologists about roles in business systems management, UX/design, project management and software development, the girls worked on an HTML app, shared lunch with the team, and took a tour of our office. They also got to meet and hear a talk from Gilt CEO Michelle Peluso, who told the NYDN that it was “wonderful to be able to give these girls a boost. It’s inspiring to all of us.” Agreed!


Mama Mboga
Home
(current)
Menu
Order
Mama mboga
The Best ones under the roof
Let's Eat!
Mama Mboga
Fresh veges.
Let's Eat!
Mama Mboga
Delicasy
Let's Eat!
Mama Mboga
For the Love of Veges.
Let's Eat!
Mama Mboga
Organic to the root
Let's Eat!
Previous
Next


Showerloop at the Design museum
Anthony HathawayLow poly showerstall for the Design Museum. Enter & Encounter Exhibit
At the start of the year, we were asked to bring a demo of Showerloop to an art/design/futurism exhibit. We also designed a wooden shower stall to accompany the showerloop system. The shower stall was made with blender, Explision, Meshlab, a lasercutter, circle saw, router, dremel, drill, clamps, hammer, crowbar, screwdriver, nuts, sticks, planks and bits, interior wax and lights.


I wish I had some korean food right now..
Or maybe McDonald's?.. I remember the San Francisco Mcdonald's had $5 for 20 Chicken nuggets....
Hmmm.. salmon sashimi sounds good too..
Ah.. It's too late to eat anything, and I have nothing either...
I should just go to sleep so that I don't feel this hunger...


Short content, 29 characters.
This is longer content, which reaches a total of 63 characters.
This is still longer content, going on and on, causing line-wraps and the growth of the row’s height as it makes its way up to 151 characters in total.


In October 2006 I was becoming seriously concerned about whether I would be able to find a show to do over the winter time. I had had a couple of societies in mind, but it turned out that they were both doing shows that would be inapproriate to take the children along to see. I couldn't think of what to do.
One Friday evening I was shopping in Tesco, South Queensferry, when my phone rang. The caller wondered if I might be willing to help Dunfermlin Gilbert and Sullivan Society, who were trying to cast Luiz in The Gondoliers? After some thought, I realised that this would work perfectly.
I had fond memories of the Society, having done Princess Ida there in 1992, and indeed there were still a few folk that I recognised there. And Peter Macfarlane had directed SABOS for a couple of shows too, so I felt quickly at home.
Luiz is an unexpectedly small role; he is only on with the chorus at the finalé. As a result this was quite a strange show to do, as I knew the principals I was working with but hardly anyone else in the company. Of course, by the time that show week had come and gone I knew everyone, but it was a little strange until then.
I also have to say that it was one of the best-organised companies I have ever been in. Being able to leave your shirt in a bag and come in to find it washed overnight is simply luxury!
This was something of a revelation, photographically speaking.
I had bought a Canon EOS350D digital SLR, and frankly it wasn't my friend. Outdoors, I just could not get photographs that were anywhere near as clear and sharp as those with my Pro1. I had returned it to be checked, and was told it was working just as expected. I was totally lost.
And then I borrowed a colleague's 70-200mm f/4.0 L lens, and the friend who took photographs of the show used it. Now, it was arguably a little on the long side for the Carnegie hall, but the colour reproduction and the sharpness of the photographs took my breath away. In one set of pictures it was instantly clear what the difference was - Canon's L-series glass.
As soon as I could afford it, I went out and bought a Canon 24-105mm f/4.0 L lens, and went out to play with it. Soon thereafter I started StagePics, where I was able to practise stage photography. I won't say that I've got it right, but I now understand dramatically more than I did before!


Welcome to our Bus-Mall Application
You will have a small picking game
Pick the product you are more intrested in
Get Ready for a lot of fun !


Link your Sonos player
How to find the IP Address
OS X / Windows:
- Launch the Sonos Controller App
- Click on Sonos > "About my Sonos System"
- The IP Address is in the big white box, after "Associated ZP:"
iOS / Android:
- Launch the Sonos App
- Scroll all the way down, choose Settings
- Choose "About my Sonos System"
- The IP Address is in the big white box, after "Associated ZP:"
Created by shaaaaawn. Based on Add to Sonos Queue by ~robbi5.
This extension is open source! Fork it, improve it oder simply read the source at github.com/shaaaaawn/thedrop-sonos
Made using:
- TheDrop.club Unofficial API
- SoundCloud API
- node-sonos — Node.js Interface to Sonos (MIT)
- Browserify — Compile node.js modules for the browser (MIT)
- browser-request — Port of the npm request package to the browser (Apache 2.0)
- chrome-bootstrap — Styling of the settings page (MIT)
- Zepto.js — minimalist JavaScript library with a largely jQuery-compatible API (MIT)


rotten > Library > Conspiracy > INSLAW
INSLAW
Timeline
| 1982 |
Inslaw, Inc., signs a 3-year $10 million contract with the US Justice Department to develop case management software. |
| 1987 |
Federal Bankruptcy Judge George F. Bason, Jr., finds in favor of Inslaw: "The [D]epartment [of Justice] took, converted, stole INSLAW's software by trickery, fraud and deceit... the Justice Department engaged in an outrageous, deceitful, fraudulent game of cat and mouse, demonstrating contempt for both the law and any principle of fair dealing." Bason orders the DOJ to pay Inslaw $6.8 million. The order is later overturned on a technicality. |
| 21 Mar 1991 |
Michael Riconosciuto, a.k.a. "Danger Man", signs a sworn affidavit admitting he altered the PROMIS software and sold it to the Royal Canadian Mounted Police. |
| 10 Aug 1991 |
Private investigator Joseph Daniel 'Danny' Casolaro is found dead in a Martinsburg, West Virginia, motel. His death is ruled a suicide, but his body is cremated before his family is informed of his death. |
| 5 Nov 1994 |
Ronald Reagan announces he has Alzheimer's. The hacker group Cult of the Dead Cow promptly claims responsibility. cDc threatens to give each former president Alzheimer's unless certain demands are met. Among them: "We want the government to own up to the evils it perpetrated in the Inslaw case."
|
Pornopolis |
Rotten |
Faces of Death |
Famous Nudes
|