- onActivityResult(int, int, Intent) - Method in class com.example.sulemaia.Activity.CharacterSelector
-
We control the deletion of characters, not making it able to have less than one.
- onActivityResult(int, int, Intent) - Method in class com.example.sulemaia.Activity.MainActivity
-
This is basically the whole parsing of the file so we can check it goes along
with the limitations and specifications of the project.
- onBackPressed() - Method in class com.example.sulemaia.Activity.SearchAlgorithms
-
Method called by user on back button pressed.
- onBindViewHolder(CharacterEditorAdapter.Item, int) - Method in class com.example.sulemaia.Adapter.CharacterEditorAdapter
-
Method to act over the view holder for the edition of the costs af the lands for the character.
- onBindViewHolder(CharacterSelectorAdapter.Item, int) - Method in class com.example.sulemaia.Adapter.CharacterSelectorAdapter
-
Method to act over the creation of the view holder.
- onBindViewHolder(DialogCharacterEditorAdapter.Item, int) - Method in class com.example.sulemaia.Adapter.DialogCharacterEditorAdapter
-
Take action on the bind view holder.
- onBindViewHolder(DialogCharacterInformationAdapter.Item, int) - Method in class com.example.sulemaia.Adapter.DialogCharacterInformationAdapter
-
Take action on the view holder creation.
- onBindViewHolder(MainActivityAdapter.Item, int) - Method in class com.example.sulemaia.Adapter.MainActivityAdapter
-
Take action on the view holder.
- onClick(View) - Method in class com.example.sulemaia.Activity.CharacterEditor.ButtonActions
-
Depending on the button tapped on the activity, the resulting action
changes.
- onClick(View) - Method in class com.example.sulemaia.Activity.CharacterSelector.ButtonActions
-
Floating action buttons.
- onClick(View) - Method in class com.example.sulemaia.Activity.ExpansionDetails.ButtonActions
-
We get an order depending on the order tapped by the user on the app,
and proceed depending on the selection of the automatic or manual
algorithm.
- onClick(View) - Method in class com.example.sulemaia.Activity.FieldInformation.ButtonActions
-
Tap configuration so we can choose the color of a terrain,
the initial and final tile fo the character, and finally
the ok button to proceed with the app.
- onClick(View) - Method in class com.example.sulemaia.Activity.GameScreen.ButtonActions
-
Depending on the button pressed (up, down, left, right), we have to check
if there is any map terrain in that coordinate (if the character is not
already on the bounds of the map), and also if the character can go through
that specific terrain.
- onClick(View) - Method in class com.example.sulemaia.Activity.MainActivity.ButtonActions
-
Implementation of the action depending on the button tapped on the app
(cancel button = go backwards, addFileButton = ask permision and continue
with the normal app flow, okButton = load all the information that will be
needed for the processes into the intent).
- onClick(View) - Method in class com.example.sulemaia.Adapter.CharacterSelectorAdapter.ButtonActions
-
Take action depending on which float button was tapped.
- onClick(View) - Method in class com.example.sulemaia.Fragment.AStar.ButtonActions
-
When we start the algorithm, we let the user select a color for the final path drawing.
- onClick(View) - Method in class com.example.sulemaia.Fragment.FirstBest.ButtonActions
-
Once the user chooses to start the algorithm, we let he/she choose the color to paint
the final path.
- onClick(View) - Method in class com.example.sulemaia.Fragment.UniformCost.ButtonActions
-
When we start the algorithm, we let the user select a color for the final path drawing.
- onCreate(Bundle) - Method in class com.example.sulemaia.Activity.CharacterEditor
-
On the creation of this class and activity, we instantiate the most important
aspects of the app in this context, like buttons, images, names, and editors.
- onCreate(Bundle) - Method in class com.example.sulemaia.Activity.CharacterSelector
-
We obtain each character icon into Constants from
the ones preloaded into the code (in this version, 10 characters),
obtain all the previous information (biomes, content file, etc...) from the Intent,
configure each characteristic of each player on default,
add the necessary buttons and views, and finally check if its the first time
starting the app, so we can show the interactive tutorial.
- onCreate(Bundle) - Method in class com.example.sulemaia.Activity.ExpansionDetails
-
On the creation of the class, we have four slots for the four possible directions in which
the character can move, creating an expansion order.
- onCreate(Bundle) - Method in class com.example.sulemaia.Activity.FieldInformation
-
Class to configure all the initial instances for the class to work.
- onCreate(Bundle) - Method in class com.example.sulemaia.Activity.GameScreen
-
Initialization of all the basic data that the game and board will need to be playable,
like biomes, colors, codes, coordinates, and buttons.
- onCreate(Bundle) - Method in class com.example.sulemaia.Activity.LoadScreen
-
- onCreate(Bundle) - Method in class com.example.sulemaia.Activity.MainActivity
-
We instantiate the most basic and necessary items so the app can work correctly,
like buttons and hash sets.
- onCreate(Bundle) - Method in class com.example.sulemaia.Activity.SearchAlgorithms
-
Getting the initial variables available for the run of the activity, like the
bundle and the intent.
- onCreate(Bundle) - Method in class com.example.sulemaia.Activity.Tutorial
-
On the creation of the tutorial, we activate and deactivate certain buttons, for it to
work accordingly to the normal flow, and show specific images with their description.
- onCreateView(LayoutInflater, ViewGroup, Bundle) - Method in class com.example.sulemaia.Fragment.AStar
-
To create the view.
- onCreateView(LayoutInflater, ViewGroup, Bundle) - Method in class com.example.sulemaia.Fragment.FirstBest
-
To create the view.
- onCreateView(LayoutInflater, ViewGroup, Bundle) - Method in class com.example.sulemaia.Fragment.UniformCost
-
On create view we load all the importan information from the bundle, like the biomes,
codes, colors, relevant coordinates, etc...
- onCreateViewHolder(ViewGroup, int) - Method in class com.example.sulemaia.Adapter.CharacterEditorAdapter
-
Method called by system on the creation of the view.
- onCreateViewHolder(ViewGroup, int) - Method in class com.example.sulemaia.Adapter.CharacterSelectorAdapter
-
Method to act over the view holder creation.
- onCreateViewHolder(ViewGroup, int) - Method in class com.example.sulemaia.Adapter.DialogCharacterEditorAdapter
-
Take action on the view holder creation.
- onCreateViewHolder(ViewGroup, int) - Method in class com.example.sulemaia.Adapter.DialogCharacterInformationAdapter
-
Take action on the view holder creation.
- onCreateViewHolder(ViewGroup, int) - Method in class com.example.sulemaia.Adapter.MainActivityAdapter
-
Take action on the view holder creation.
- onItemClick(AdapterView<?>, View, int, long) - Method in class com.example.sulemaia.Activity.FieldInformation.ButtonActions
-
Relevant information related to the field, so it can be shown and processed.
- onItemSelected(AdapterView<?>, View, int, long) - Method in class com.example.sulemaia.Fragment.AStar.Measures
-
We show a reference to the measure mode selected.
- onItemSelected(AdapterView<?>, View, int, long) - Method in class com.example.sulemaia.Fragment.FirstBest.Measures
-
We show a reference to the measure mode selected.
- onNavigationItemSelected(MenuItem) - Method in class com.example.sulemaia.Activity.SearchAlgorithms.NavigationListener
-
Depending of the heuristic algoritm to show, we create and load the corresponding fragment.
- onNothingSelected(AdapterView<?>) - Method in class com.example.sulemaia.Fragment.AStar.Measures
-
When no method is selected, nothing happens, since you already have one method selected
by default.
- onNothingSelected(AdapterView<?>) - Method in class com.example.sulemaia.Fragment.FirstBest.Measures
-
When no method is selected, nothing happens, since you already have one method selected
by default.
- onOptionsItemSelected(MenuItem) - Method in class com.example.sulemaia.Activity.CharacterEditor
-
Method called by system on back button pressed.
- onOptionsItemSelected(MenuItem) - Method in class com.example.sulemaia.Activity.CharacterSelector
-
Method called by system.
- onOptionsItemSelected(MenuItem) - Method in class com.example.sulemaia.Activity.ExpansionDetails
-
Method called by system on back button pressed.
- onOptionsItemSelected(MenuItem) - Method in class com.example.sulemaia.Activity.FieldInformation
-
Method called by system.
- onOptionsItemSelected(MenuItem) - Method in class com.example.sulemaia.Activity.GameScreen
-
Method called by system on Back button pressed.
- onOptionsItemSelected(MenuItem) - Method in class com.example.sulemaia.Activity.SearchAlgorithms
-
Method called by user on back button pressed.
- onPostExecute(HeuristicPathTree) - Method in class com.example.sulemaia.Thread.ResolverAStarThread
-
Once the algorithm has finished, we actually need to end the thread and draw the path over the UI.
- onPostExecute(HeuristicPathTree) - Method in class com.example.sulemaia.Thread.ResolverFirstBestThread
-
Once the algorithm has finished, we actually need to end the thread and draw the path over the UI.
- onPostExecute(HeuristicPathTree) - Method in class com.example.sulemaia.Thread.ResolverUniformCostThread
-
Whenever the algorithm finishes, we have to finish the thread.
- onProgressChanged(SeekBar, int, boolean) - Method in class com.example.sulemaia.Fragment.AStar.ButtonActions
-
Change to the refresh of the process of the thread.
- onProgressChanged(SeekBar, int, boolean) - Method in class com.example.sulemaia.Fragment.FirstBest.ButtonActions
-
Refresh rate from the time configured to the movement of the character, controlled
by the thread.
- onProgressChanged(SeekBar, int, boolean) - Method in class com.example.sulemaia.Fragment.UniformCost.ButtonActions
-
Change to the refresh of the process of the thread.
- onProgressUpdate(HeuristicPathTree.Node...) - Method in class com.example.sulemaia.Thread.ResolverAStarThread
-
Every time the thread makes a step, we change the character's position.
- onProgressUpdate(HeuristicPathTree.Node...) - Method in class com.example.sulemaia.Thread.ResolverFirstBestThread
-
Every time the thread makes a step, we change the character's position.
- onProgressUpdate(HeuristicPathTree.Node...) - Method in class com.example.sulemaia.Thread.ResolverUniformCostThread
-
Every time the thread refreshes, we have to move the character in the UI.
- onRequestPermissionsResult(int, String[], int[]) - Method in class com.example.sulemaia.Activity.MainActivity.ButtonActions
-
We proceed with the normal flow of the app depending of which option was selected (reading
permission granted or denied).
- onStartTrackingTouch(SeekBar) - Method in class com.example.sulemaia.Fragment.AStar.ButtonActions
-
Code not used but still needed to be instantiated for the thread to work properly.
- onStartTrackingTouch(SeekBar) - Method in class com.example.sulemaia.Fragment.FirstBest.ButtonActions
-
Code not used but still needed to be instantiated for the thread to work properly.
- onStartTrackingTouch(SeekBar) - Method in class com.example.sulemaia.Fragment.UniformCost.ButtonActions
-
Code not used but still needed to be instantiated for the thread to work properly.
- onStop() - Method in class com.example.sulemaia.Fragment.AStar
-
Method to make the thread stop once the algorithm finishes.
- onStop() - Method in class com.example.sulemaia.Fragment.FirstBest
-
Method to make the thread stop once the algorithm finishes.
- onStop() - Method in class com.example.sulemaia.Fragment.UniformCost
-
Mehtod to stop the thread once the algorithm finishes.
- onStopTrackingTouch(SeekBar) - Method in class com.example.sulemaia.Fragment.AStar.ButtonActions
-
Code not used but still needed to be instantiated for the thread to work properly.
- onStopTrackingTouch(SeekBar) - Method in class com.example.sulemaia.Fragment.FirstBest.ButtonActions
-
Code not used but still needed to be instantiated for the thread to work properly.
- onStopTrackingTouch(SeekBar) - Method in class com.example.sulemaia.Fragment.UniformCost.ButtonActions
-
Code not used but still needed to be instantiated for the thread to work properly.
- onTouch(View, MotionEvent) - Method in class com.example.sulemaia.Activity.FieldInformation.ButtonActions
-
Detect the touch on the phone panel


Underwater Gardener, Cat Mom, Video Gamer, Full Stack Web Developer
About MeI wrote my first line of code to animate a sprite I had created in a simple video game. It felt like I had just programmed the mars rover. Programming is the perfect union of the traits I value most highly in myself: creativity, logic, perseverance, and problem solving.
See My SkillsExcited by the endless possibilites of coding!
Focused on SEO and Accessibility.
I love to get creative and make things beautiful.
Finally, a library I can work in while screaming!
Querying and scheming with the best of them.
More packages than Christmas morning!
I'm not afraid to commit.
Gotta squash 'em all!
Think I'd be a great fit for your team? Yeah, me too. Call, text, or email and I'll respond blazingly fast! Feel free to connect with me on Linkedin.


Foodie Friend Finder Survey
I enjoy discovering weird, new, and non-american type resturants to try.
1: strongly disagree
2: somewhat disagree
3: neutral
4: somewhat agree
5: strongly agree
I enjoy the quality of the food and not the quantity of the food.
1: strongly disagree
2: somewhat disagree
3: neutral
4: somewhat agree
5: strongly agree
I enjoy having my food brought to me by a wait staff vs a buffett.
1: strongly disagree
2: somewhat disagree
3: neutral
4: somewhat agree
5: strongly agree
I enjoy meals that are simple to make more than foods that are hard to recreate.
1: strongly disagree
2: somewhat disagree
3: neutral
4: somewhat agree
5: strongly agree
I like to follow directions when recreating a recipe from another source.
1: strongly disagree
2: somewhat disagree
3: neutral
4: somewhat agree
5: strongly agree
I enjoy shopping for exotic ingredients so that I can create exotic recipes.
1: strongly disagree
2: somewhat disagree
3: neutral
4: somewhat agree
5: strongly agree
I prefer restaurants that uses local source ingredients over big chain restaurants.
1: strongly disagree
2: somewhat disagree
3: neutral
4: somewhat agree
5: strongly agree
I like when people enjoys and compliments my homemade recipe meals.
1: strongly disagree
2: somewhat disagree
3: neutral
4: somewhat agree
5: strongly agree
I enjoy dinning with a group of friends or family over eating by myself.
1: strongly disagree
2: somewhat disagree
3: neutral
4: somewhat agree
5: strongly agree
If the restuarant is very good based on reviews, I am okay with traveling over an hour to try it.
1: strongly disagree
2: somewhat disagree
3: neutral
4: somewhat agree
5: strongly agree
Submit


BARON compatible functions
BARON is a sophisticated global optimizer which requires an algebraic description of the model in order to optimize it. This means that user supplied functions (objective, constraints) must be pre-processed to an algebraic form BARON can process. Based on this requirement, user supplied functions must meet the criteria set out below.
Scalar functions
A simple objective function is a written as function of indexed (scalar) decision variables, such as:
obj = @(x) 3*x(1)^2 - 2*x(2);
If your objective is a function of one variable only (single variable optimization), you may drop the index:
obj = @(x) 3*x^2;
Alternatively if your objective does not contain any variables, you must still write it as a function of x:
obj = @(x) -3;
Vectorized functions
The MATLAB - BARON Interface also supports vector and a subset of matrix operations. For the following examples, assume x is a 3 x 1 column vector:
a = [1;2;3];
H = eye(3);
objV = @(x) sum(a.*x); % element wise multiply summed
objD = @(x) a'*x; % equivalent to above but via inner product
objM = @(x) x'*H*x; % quadratic term
The interface implements indexing identical to MATLAB so you can use logical or position based indexing:
objI = @(x) sum(a(a>1).*x(a>1)); % logical indexing
objI2 = @(x) sum(a(1:2).*x(2:3)); % position based indexing
objI3 = @(x) sum(a(1)*x); % scalar expansion is also supported
Remember your objective function must always result in a scalar.
MATLAB functions and anonymous functions
Both MATLAB functions and anonymous functions are supported, for example:
obj = @(x) 3*x(1)^2 - 2*x(2)^3 + 3*x(1)*x(2);
OR
function fx = objective(x)
fx = 3*x(1)^2 - 2*x(2)^3 + 3*x(1)*x(2);
end
however both functions must be a function of one argument (x) only. If your function requires multiple parameters you can wrap it as follows:
function fx = objective(x,a,b)
fx = 3*x(1)^2 - a*x(2)^3 + b*x(1)*x(2);
end
a = 2; b = 3;
obj = @(x) objective(x,a,b); %now only a function of x
Multiline MATLAB functions including loops are supported, however the function must be deterministic. This means no matter what value x is, the function executes the same code path.
Nonlinear constraint function
The nonlinear constraint function should return a column vector of values, for example:
nlcon = @(x) [-(x(1)*x(2));
3*x(1) + 2*x(2)];
OR
function cx =
nlconstraints(x)
cx(1,1) = -(x(1)*x(2));
cx(2,1) = 3*x(1) + 2*x(2);
end
However you may also return a matrix of values, in which case it will be internally converted to a column vector. This process assumes column major, so ensure your nonlinear constraint bounds are set in the same order. All operations (vector, matrix, etc) that are supported by the objective are also supported by the nonlinear constraint function.
MATLAB/BARON interface supported functions
| Function | name | Typical usage | Function | Name | Typical usage |
| + | plus | a+b | prod | Product | prod(a) |
| - | minus | a-b | diff | Difference | diff(a) |
| ./ | rdivide | Elementwise a./b | diag | Diagonal | diag(a) |
| / | mrdivide | Elementwise a./b if b is a scalar | triu | Tri upper | triu(a) |
| .* | times | Elementwise a.*b | tril | Tri lower | tril(a) |
| * | mtimes | Matrix and vector products +inner and outer products | fliplr | Flip LR | fliplr(a) |
| .^ | power | Elementwise a.^b | flipud | Flip UD | flipud(a) |
| ^ | mpower | a^b if a is square and b is an integer | rot90 | Rotate 90 | rot90(a) |
| - | uminus | Elementwise -a | repmat | Replicate matrix | repmat(a,m,n) |
| .' | ctranspose | a' | reshape | Reshape | reshape(a,m,n) |
| ' | transpose | a' | length | Length | length(a) |
| exp | Exponential | exp(a) | size | Size | size(a) |
| log | Natural Log | log(a) | ndims | # Dimensions | ndims(a) |
| log10 | Log Base 10 | log10(a) | isscalar | Is scalar | isscalar(a) |
| dot | Dot Product | dot(a,b) | vertcat | V concatenate | [a; b] |
| sqrt | Square Root | sqrt(a) | horzcat | H concatenate | [a b] |
| norm | Norm | norm(a) [Vector = 2 norm, Matrix = Frobenius Norm] | subsref | Subs reference | a(1), a(1:2), a(1:end), a(1,1), a(1,:), a(:) |
| sum | Sum | sum(a) | subsasgn | Subs assign | c(1) = a, c(1:2) = a, c(1,:) = a; |
Checking the processed function
By default, baron.m will compare the result of the original function and that of the generated BARON function when both are subjected to the same random x0. This process ensures the problem BARON solves is identical to that you described in MATLAB. If you wish to skip this check (for efficiency reasons), you can disable it via the option 'chkfun' in baronset.
Alternatively, you can manually inspect the resulting equations using the following code snippet (assuming you have defined fun as the objective, nlcon as the constraints, and x0 as initial guess):
x = barvec(size(x0)); % BARON Vector Variable
fval = fun(x) % Objective Function Equation
cval = nlcon(x) % Constraint Function Equation(s)
For example, consider the following code:
% Problem
a = [1;2;3];
fun = @(x) sum(a.*x);
x0 = zeros(3,1);
% Test
x = barvec(size(x0));
fval = fun(x)
The above code results in the following equation:
Scalar
BARVEC Object
Eq [+]: 1*x1 + 2*x2 + 3*x3
The MATLAB/BARON interfarce is provided from http://www.minlp.com.


326. Miscellaneous Control of Profiling
Up: Profiling Interface
Next: Profiler Implementation Example
Previous: Logic of the Design
There is a clear requirement for the user code to be able to control
the profiler dynamically at run time. This capability is normally used for (at
least) the purposes of
- Enabling and disabling profiling depending on the state of the
calculation.
- Flushing trace buffers at non-critical points in the calculation.
- Adding user events to a trace file.
These requirements are met by use of MPI_PCONTROL.
| MPI_PCONTROL(level, ...) |
| IN level | Profiling level (integer) |
int MPI_Pcontrol(const int level, ...)
MPI_Pcontrol(level)
INTEGER, INTENT(IN) :: level
MPI_PCONTROL(LEVEL)
INTEGER LEVEL
MPI libraries themselves make no use of this routine, and simply
return immediately to the user code. However the presence of calls to
this routine allows a profiling package to be explicitly called by the
user.
Since MPI has no control of the implementation of the profiling code,
we are unable to specify precisely the semantics
that
will be
provided by calls to MPI_PCONTROL. This vagueness extends to the
number of arguments to the function, and their datatypes.
However to provide some level of portability of user codes to different
profiling libraries, we request the following meanings for certain
values of level.
- level==0
Profiling is disabled.
- level==1
Profiling is enabled at a normal default level of detail.
- level==2
Profile buffers are flushed, which may be a no-op in some profilers.
- All other values of level
have profile library defined effects and additional arguments.
We also request that the default state after MPI_INIT has been
called is for profiling to be enabled at the normal default level.
(i.e., as if MPI_PCONTROL had just been called with the
argument 1). This allows users to link with a profiling library and
to obtain profile output without having to modify their source code at
all.
The provision of MPI_PCONTROL as a no-op in the standard MPI
library supports the collection of more
detailed profiling information with source
code that can still link against the standard MPI library.
Up: Profiling Interface
Next: Profiler Implementation Example
Previous: Logic of the Design
Return to MPI-3.1 Standard Index
Return to MPI Forum Home Page
(Unofficial) MPI-3.1 of June 4, 2015
HTML Generated on June 4, 2015


class TransferOperationBuilder : Builder<TransferOperation>
Builder class for transfer operation TransferOperation
Author
Dmitriy Bushuev
<init> |
Builder class for transfer operation TransferOperation TransferOperationBuilder() |
build |
Must be implemented and return the factory is supposed to build. fun build(): TransferOperation |
setAmount |
Defines amount value of transfer operation fun setAmount(transferAmount: AssetAmount): TransferOperationBuilder |
setFee |
Defines fee value of transfer operation fun setFee(fee: AssetAmount): TransferOperationBuilder |
setFrom |
Defines source account of transfer operation fun setFrom(from: Account): TransferOperationBuilder |
setTo |
Defines target account of transfer operation fun setTo(to: Account): TransferOperationBuilder |


Sorry, your browser does not support CSS grids
Try with Chrome Canary or Firefox Nightly
See also http://caniuse.com/#feat=css-grid


CAPTION
This is to be used in the TABLE Tag.
The text written in this tag is displayed as a
Description for
a Table
This is a Container Tag and thus has to be closed.
Attributes
- ALIGN :
Indicates where the Caption appears.
- TOP :
Top of the Table.
- BOTTOM :
Bottom of the Table.
- LEFT :
Left of the Table.
- RIGHT :
Right of the Table.
Syntax

...Text...

Example

Table Heading

Effect
See Effect
Home
About


Getting Started¶
Standard Setup¶
Clone the repo¶
- Make sure to clone the repo,
git clone https://github.com/abhardwaj/datahub.git
- Navigate into the the repo,
cd datahub
PostgreSQL¶
DataHub is built on the PostgreSQL database.
- Install Postgres and create a user called
postgres
. See here for step-by-step instructions. - When the Postgres server is running, open the Postgres shell
psql -U postgres
- Create a database for DataHub,
CREATE DATABASE datahub;
- Quit the shell with
\q
Create user_data
directory¶
- Navigate to the root directory,
cd /
- Create the
user_data
directory as root user,sudo mkdir user_data
We realize that this is not the best location for the user_data
directory. In future commits, we’ll make this option configurable and
perhaps default to a different location.
Create a virtualenv
¶
It’s useful to install python dependencies in a virtual environment so they are isolated from other python packages in your system. To do this, use virtualenv.
- Install virtualenv with pip,
pip install virtualenv
- Create a virtual environment (called
venv
) within the datahub directory,virtualenv venv
- Activate the virtual environment,
source venv/bin/activate
.
When you are finished with the virtual environment, run deactivate
to close it.
Install dependencies with pip
¶
Installing the dependencies for DataHub is easy using the pip package manager.
- Install the dependencies with
pip install -r requirements.txt
Setup server and data models¶
- Update
src/settings.py
with your postgres username and password. - Setup the server environment,
source src/setup.sh
(Please note that this must be sourced from the root directory.) - Sync with the database,
python src/manage.py migrate
- Migrate the data models,
python src/manage.py migrate inventory
Install Berkeley DB bindings¶
- I haven’t written this yet, so for now, please comment out
import bsddb
fromsrc/apps/dbwipes/summary.py
Run server¶
- Run the server,
python src/manage.py runserver
- Navigate to localhost:8000
NOTE: If the server complains that a module is missing, you may need
to source src/setup.sh
and pip install -r requirements.txt
again. Then, python src/manage.py runserver
and navigate to
localhost:8000
Run test with behave
¶
cd /datahub/src behave
Vagrant Environment Setup (optional)¶
Vagrant setup is much less error-prone than standard setup. However, unlike standard setup, it does not allow you to quickly debug and make changes to DataHub. If you plan to develop apps using datahub, but don’t plan to work on DataHub’s code base, this is the right choice for you.
Follow these steps:
- You need internet access the first time you do these steps.
- Download and install VirtualBox https://www.virtualbox.org/
- Download and install Vagrant https://www.vagrantup.com/downloads.html
- Add this line to your hosts file:
<IP_ADDRESS> datahub-local.mit.edu
- Then start the environment with:
$ vagrant up
After some time your environment is setup and running. You can go to https://datahub-local.mit.edu and start using Datahub.
To manually stop/start your docker containers:¶
- First login into VM:
vagrant ssh
- Then List docker containers
sudo docker ps
- Stop docker datahub
sudo docker stop datahub
- Start docker container
sudo docker start datahub
- Execute command inside container, bellow is the example of getting
shell access to container
sudo docker exec -i -t datahub /bin/bash
Run test with behave
in Vagrant:¶
- Login in VM
$ vagrant ssh
- Get shell access to datahub container
$ sudo docker exec -i -t datahub /bin/bash
- Change directory and execute
behave
cd /datahub/src behave
Shutdown Vagrant¶
- Exit docker shell with
exit
(if you are in docker) - Exit the vm with
exit
(if you are in vagrant VM) - Shutdown the vm with
vagrant halt
(next time you dovagrant up
will be much faster as packages are already installed; there is no need for internet connection). - If you want to delete the vm
vagrant destroy
(if you dovagrant up
again, it will download and install all the packages).
Building Sphinx Docs¶
Sphinx is included in requirements.txt
.
make html
rebuilds the documentation.
When submitting a pull request, you must include sphinx documentation. You can achieve this by adding *.rst
and linking them from other *.rst
files. See the sphinx tutorial for more information.
Testing DataHub¶
Functional Tests¶
Functional tests are used to test DataHub’s functionality
Run them from the /src
directory:
$ cd src
$ python manage.py test functional_tests
Unittests¶
Unitests are used to test DataHub’s models and views.
Run them from the /src
directory:
$ cd src
$ python manage.py test
Alternatively, they can be run individually:
$ cd src
$ python manage.py test inventory
- tests models$ python manage.py test www
- tests home page$ python manage.py test account
- tests account management views$ python manage.py test browser
- tests datahub core views


Charlotte Astle
About
Contact
Portfolio
Portfolio
Hangman
RPG Game
Trivia Game
Rutgers Info Widget
Rock Paper Scissors
Connect With Me


Uses abstract class as base to build off of for this class.
Default function only checks key validity of number, string, and Date. This function also only uses '===' for the comparison. Supply a custom function in the constructor to use properly with your data types.
Default function only checks value equality of number, string, and Date. THis function also only uses '===' for the comparison. Supply a custom function in the constructor to use properly with your data types.
Default function compares only number and string other wise the user will need to supply a custom key comparison function to use this Node Tree model properly.
Default function compares only number and string otherwise the use will need to supply a custom value comparison function to use this Node Tree model properly.
Used to hold the depth of the tree at this point.
The key used to find this Node
Holds a child of this type Node as a Node in this type tree.
Holds the parent of this type Node as a Node in this type tree.
Holds a child of this type Node as a Node in this type tree.
set in the constructor to have only unique keys
The value this Node holds
Returns the balance factor.
Compare all keys, if there is no key then node fails then tree fails validation check. keys have to be of the same type.
Check that the balance factors are between -1 and 1. Otherwise throw an error.
Check the recorded height for this AVL Node and all children. Throws an error if one height does not match.
Make sure this Node is referenced in children correctly and check all sub Nodes.
Used to check entire tree structure and individual branches to validate pointers.
Check all nodes and use compare keys function to validate Node and children of this Node.
Calls upon super to check that all basic Node validation is met, along with also checking the balance and height correctness of the AVL Node.
Create a left child AVL Node with a reference to this parent AVL Node
Create a right child AVL Node with a reference to this parent AVL Node
Create a new AVL Node similar to this one except without the key and value
Execute a function on every node of the tree, in key order
Check if this.key passes the equality check. A positive match will return false and a negative match will return true.
Base method used in high method to compare keys of two Nodes.
Example query: { $gt: 3 } or { $gte: 5 }
Returns the key of the max descendant
Recursively call for right child till there is none then return this.
Returns the key of the min descendant
Recursively call for left child till there is none then return this.
Count every key in branch or entire tree.
Returns binary tree as an array of arrays. Example: Inserting 0 - 4 keys in AVL tree would return this example with this method. inserts them as they would be seen in the binary tree 1 / \ 0 3 / \ / \ null null 2 4
[ [ { key: 1, value: [Object] }], [{key: 0, value: [Object]},{key: 3, value: [Object]}], [ null, null, {key: 2, value: [Object]}, {key: 4, value: [Object]}] ]
Retrieve the height at this current Node location
Base method used in high method to compare keys of two Nodes.
Example usage: { $lt: 3 } or { $lte: 4 }
Perform a left rotation of the tree if possible and return the root of the resulting tree The resulting tree's nodes' heights are also updated
Modify the tree if its left subtree is too small compared to the right. Return the new root if any.
Method for retrieving values based on key comparison of gt & lt & ne
Example: { $gt: 1 , $lte: 3, $ne: 2 }
To return this class if this class were to be extended.
To return this class and not the extended version use this method.
Perform a right rotation of the tree if possible and return the root of the resulting tree The resulting tree's nodes' heights are also updated
Modify the tree if its right subtree is too small compared to the left. Return the new root if any.
Turn tree into JSON with an array of objects holding the key and value Requires that key and value can be turned into JSON
Generated using TypeDoc
Used to create an AVL tree with a binary search tree as the root of each Node


| C_04_lattice.options {lattice} | R Documentation |
Functions to handle settings used by lattice. Their main purpose is to make code maintainance easier, and users normally should not need to use these functions. However, fine control at this level maybe useful in certain cases.
lattice.options(...) lattice.getOption(name)
name |
character giving the name of a setting |
... |
new options can be defined, or existing ones modified, using one or
more arguments of the form |
These functions are modeled on options
and getOption
,
and behave similarly for the most part. Some of the available
components are documented here, but not all. The purpose of the ones
not documented are either fairly obvious, or not of interest to the
end-user.
panel.error
A function, or NULL
. If the former, every call to the
panel function will be wrapped inside tryCatch
with
the specified function as an error handler. The default is to use
the panel.error
function. This prevents the plot
from failing due to errors in a single panel, and leaving the grid
operations in an unmanageable state. If set to NULL
,
errors in panel functions will not be caught using
tryCatch
.
save.object
Logical flag indicating whether a "trellis"
object should
be saved when plotted for subsequent retrieval and further
manipulation. Defaults to TRUE
.
layout.widths
, layout.heights
Controls details
of the default space allocation in the grid layout created in the
course of plotting a "trellis"
object. Each named
component is a list of arguments to the grid function
unit
(x
, units
, and optionally
data
).
Usually not of interest to the end-user, who should instead use
the similiarly named component in the graphical settings,
modifiable using trellis.par.set
.
drop.unused.levels
A list of two components named
cond
and data
, both logical flags. The flags
indicate whether the unused levels of factors (conditioning
variables and primary variables respectively) will be dropped,
which is usually relevant when a subsetting operation is performed
or an 'interaction' is created. See xyplot
for more
details. Note that this does not control dropping of levels of
the 'groups' argument.
legend.bbox
A character string, either "full"
or "panel"
. This
determines the interpretation of x
and y
when
space="inside"
in key
(determining the legend; see
xyplot
): either the full figure region ('"full"'),
or just the region that bounds the panels and strips ('"panel"').
default.args
A list giving default values for various
standard arguments: as.table
, aspect
,
between
, skip
, strip
,
xscale.components
, yscale.components
, and
axis
.
highlight.gpar
A list giving arguments to
gpar
used to highlight a viewport chosen using
trellis.focus
.
banking
The banking function. See
banking
.
axis.padding
List with components named
"numeric"
and "factor"
, both scalar numbers.
Panel limits are extended by this amount, to provide padding
for numeric and factor scales respectively. The value for
numeric is multiplicative, whereas factor is additive.
skip.boundary.labels
Numeric scalar between 0 and 1. Tick marks that are too close to the limits are not drawn unless explicitly requested. The limits are contracted by this proportion, and anything outside is skipped.
interaction.sep
The separator for creating
interactions with the extended formula interface (see
xyplot
).
axis.units
List determining default units for axis components. Should not be of interest to the end-user.
In addition, there is an option for the default prepanel and panel
function for each high-level function; e.g., panel.xyplot
and
prepanel.default.xyplot
for xyplot
. The options
for the others have similarly patterned names.
lattice.getOption
returns the value of a single component,
whereas lattice.options
always returns a list with one or more
named components. When changing the values of components, the old
values of the modified components are returned by
lattice.options
. If called without any arguments, the full
list is returned.
Deepayan Sarkar<EMAIL_ADDRESS>options
, trellis.device
,
trellis.par.get
, Lattice
names(lattice.options()) str(lattice.getOption("layout.widths"), max.level = 2)


A class of porins that allow the passage of WATER and other small molecules across CELL MEMBRANES. (mesh:D020346)
| Identifier | Name | Relation |
| HGNC:19941 | AQP12A | isa |
| HGNC:638 | AQP5 | isa |
| HGNC:643 | AQP9 | isa |
| HGNC:640 | AQP7 | isa |
| HGNC:642 | AQP8 | isa |
| HGNC:633 | AQP1 | isa |
| HGNC:7103 | MIP | isa |
| HGNC:634 | AQP2 | isa |
| HGNC:637 | AQP4 | isa |
| HGNC:639 | AQP6 | isa |
| HGNC:6096 | AQP12B | isa |
| HGNC:16029 | AQP10 | isa |
| HGNC:19940 | AQP11 | isa |
| HGNC:636 | AQP3 | isa |
| Relation | Identifier | Name |
| isa | FPLX:Porins | Porins |


Michigan Releases Video Of Locker Room Celebration vs. Michigan State
by Chris RosvoglouThe Michigan Wolverines made a statement this weekend as they dismantled the Michigan State Spartans. Following the game, Jim Harbaugh and his players threw quite the celebration.
Michigan received a dominant performance from Shea Patterson, who threw for 384 yards and four touchdowns.
All the criticism that Michigan dealt with earlier in the season is officially gone. Harbaugh has the team playing its best football in recent memory.
Even though Michigan State has struggled this season, Michigan was thrilled to pick up a win over its in-state rival.
While addressing his team in the locker room, Harbaugh yelled “Who’s got it better than us?”
Once the coaching staff was done speaking to the players, they brought out the Paul Bunyan Trophy and allowed the locker room to go crazy for a few minutes.
Here’s the video of what went down in the locker room:
Blowing out your in-state rival by 34 points does call for a celebration.
Michigan has to keep this momentum going as it has a tough road matchup next weekend against Indiana. It’ll be the final away game on the schedule for the Wolverines.
Just imagine how crazy the locker room would be if Michigan manages to defeat Ohio State in the regular-season finale.


The Hobbit: The Battle of the Five Armies
PG-13
(2014)
Django Unchained
R
(2012)
Amadeus
R
(1984)
The Beat That My Heart Skipped
Unrated
(2005)
The Good, The Bad, and The Ugly
Unrated
(1966)
The Big Lebowski
R
(1998)
Jiro Dreams of Sushi
PG
(2011)
Star Trek Into Darkness
PG-13
(2013)
War of Arrows
R
(2011)
American Psycho
R
(2000)
Snatch
R
(2000)
Kiss Kiss Bang Bang
R
(2005)
Ferris Bueller's Day Off
PG-13
(1986)
Old Boy
R
(2000)
Perfume: The Story of a Murderer
R
(2006)


A simple usage of the plugin.
Use up and down arrows (with and without shift), try clicking the rows holding ctrl or shift keys. Ctrl + A and ESC work as well!
| Firstname | Lastname | Points |
|---|---|---|
| Jill | Smith | 50 |
| Eve | Jackson | 94 |
| John | Doe | 80 |
| Adam | Johnson | 67 |
| Jill | Smith | 50 |
| Eve | Jackson | 94 |
| John | Doe | 80 |
| Adam | Johnson | 67 |
| Jill | Smith | 50 |
| Eve | Jackson | 94 |
| John | Doe | 80 |
| Adam | Johnson | 67 |


--- layout: example categories: example/v1.0.0 version: v1.0.0 title: Filtering marker cluster groups description: Show only filtered markers in marker clusters tags: - cluster ---


Schuylkill Navy Crosscountry 5.6 mile (9 km)
Philadelphia PA/USA
Website: www.www.boathouserow.org/index.html
Race Winners
(109 runnings)
23 Nov 2006
31:01.0
39:07.6
24 Nov 2005
30:14.9
35:09.9
25 Nov 2004
31:11.4
35:20.5
27 Nov 2003
31:21.4
35:29.5
28 Nov 2002
31:47.1
39:38.1
22 Nov 2001
30:29.7
35:48.2
23 Nov 2000
30:43
35:17
25 Nov 1999
30:27
36:40
26 Nov 1998
30:30
n/a
27 Nov 1997
31:10
n/a
28 Nov 1996
n/a
n/a
23 Nov 1995
31:00
39:31.5
24 Nov 1994
n/a
n/a
25 Nov 1993
31:13
38:06.3
26 Nov 1992
31:06
36:23
28 Nov 1991
32:10
41:26
22 Nov 1990
30:36
34:27
23 Nov 1989
31:49
37:18
24 Nov 1988
30:34
36:14
26 Nov 1987
31:17
36:50
27 Nov 1986
31:32
36:44
28 Nov 1985
30:42
n/a
22 Nov 1984
29:55
40:55
24 Nov 1983
30:40
30:09
25 Nov 1982
30:08
26 Nov 1981
31:09
n/a
27 Nov 1980
30:53
40:46
22 Nov 1979
n/a
38:03
23 Nov 1978
31:14
43:01
24 Nov 1977
31:36
40:58
25 Nov 1976
30:34
35:44
27 Nov 1975
31:18
36:58
28 Nov 1974
32:16
37:46
22 Nov 1973
31:05
36:20
23 Nov 1972
31:20
37:15
25 Nov 1971
31:28
37:28
26 Nov 1970
30:15
27 Nov 1969
32:32
28 Nov 1968
32:54
23 Nov 1967
31:20
24 Nov 1966
32:30
25 Nov 1965
29:54
26 Nov
1964
28:52
28 Nov
1963
31:18
22 Nov 1962
31:21
23 Nov 1961
29:16
24 Nov
1960
29:27
26 Nov 1959
30:40
27 Nov 1958
31:33
28 Nov 1957
32:23
22 Nov 1956
32:54
24 Nov 1955
29:58
25 Nov 1954
30:22
26 Nov 1953
30:09
27 Nov 1952
29:49
22 Nov 1951
31:30
23 Nov 1950
33:08
24 Nov 1949
31:
25 Nov 1948
31:56
27 Nov 1947
31:45
28 Nov 1946
34:03
22 Nov 1945
21:39
1943-1944
---
26 Nov 1942
31:45
20 Nov 1941
34:03
21 Nov 1940
32:02
16 Nov
1939
32:51
24 Nov 1938
32:47
25 Nov 1937
32:33
26 Nov 1936
32:05
28 Nov 1935
31:32
29 Nov 1934
31:34
30 Nov 1933
32:32
24 Nov
1932
32:40
26 Nov 1931
31:04
27 Nov 1930
31:09
28 Nov 1929
31:46
29 Nov 1928
31:15
24 Nov 1927
30:51
25 Nov 1926
33:11
26 Nov 1925
30:14
27 Nov 1924
30:24
29 Nov 1923
31:19
30 Nov
1922
31:44
24 Nov 1921
33:20
25 Nov 1920
33:05
27 Nov
1919
33:27
1917-1918
---
30 Nov
1916
30:24
25 Nov 1915
32:41
26 Nov
1914
32:08
27 Nov 1913
32:06
28 Nov
1912
33:09
30 Nov
1911
31:55
24 Nov 1910
32:04
25 Nov 1909
34:30
26 Nov 1908
32:31
28 Nov
1907
33:22
29 Nov 1906
33:05
30 Nov 1905
34:13
24 Nov
1904
31:50
26 Nov
1903
32:49
27
Nov 1902
32:03
28 Nov 1901
33:31
28 Nov 1900
32:45
30 Nov 1899
34:10
Notes: 1899 was the inaugural year. The 1945 course was shorter, to Meade's Monument and return. The 1952 race
was run as a handicap. The first male and female finishers are given, when
known. For some years, guest runners were allowed and only the first
Schuylkill Navy member is known. The first and last 1.5 miles are on roads
with about 2 miles of crosscountry for the middle portion of the race.
24 Nov
2011
31:25.6
Shane Madden-5
35:18.6
Liz Welsh-3
25 Nov
2010
29:17.0
Pat Hayburn-5
34:46.5
Liz Welsh-2
26 Nov
2009
30:34.0
Pat Hayburn-4
36:24.8
Liz Welsh (USA)
27 Nov
2008
29:54.1
Pat Hayburn-3
38:17.1
Meghan Sarbanis-3
22 Nov
2007
29:19.9
Pat Hayburn-2
34:48.2
Cara Kiernan (USA)
Pat Hayburn (USA)
Meghan Sarbanis-2
Shane Madden-4
Ann Tierney-7
Shane Madden-3
Shannon Grady (PA/USA)
Shane Madden-2
Ann Tierney-6
Shane Madden (PA/USA)
Meghan Sarbanis (PA/USA)
John Hayburn-2
Ann Tierney-5
Frank Rowe-3
Ann Tierney-4
John Hayburn (PA/USA)
Ann Tierney-3
Frank Rowe-2
Ann Tierney-2
Frank Rowe (PA/USA)
Alaina Gurski (PA/USA)
Mike Teti-9
Ann Tierney (PA/USA)
Eugene Mitchell (PA/USA)
Theresa Zarzecny-4
Mike Teti-8
Andrea Bonaccorsi (PA/USA)
Eric Strobel-2
Theresa Zarzecny-3
Eric Strobel (PA/USA)
Theresa Zarzecny-2
Mike Teti-7
Brita Mas (PA/USA)
Mike Teti-6
Angie Herron-2
Mike Teti-5
Angie Herron (PA/USA)
Charlie Engeman (PA/USA)
Theresa Zarzecny (PA/USA)
Mike Teti-4
Kay Worthington-3
Mike Teti-3
Kay Worthington-2
Mike Teti-2
Kay Worthington (PA/USA)
Mike Teti (PA/USA)
Ann Keeler (PA/USA)
Kevin St Clair-7
Mary Zawadski (PA/USA)
Kevin St Clair-6
Kevin St Clair-5
Betts Kent (PA/USA)
James Raslavsky (PA/USA)
Ann Jonik-2
Kevin St Clair-4
Susie Sneeden (PA/USA)
Kevin St Clair-3
Ann Jonik (PA/USA)
Kevin St Clair-2
Sue Morgan (PA/USA)
Kevin St Clair (PA/USA)
Karin Constant-5
Larry O'Brien-3
Karin Constant-4
Larry O'Brien-2
Karin Constant-3
Larry O'Brien (PA/USA)
Susie Buchanan (PA/USA)
Richard Ricci (PA/USA)
Karin Constant-2
John St Clair III-4
Karin Constant (PA/USA)
John St Clair III-3
John St Clair III-2
John St Clair III (PA/USA)
Steve Whelan-4
Mike McSweeney (PA/USA)
Bill Clark-3
Bill Clark-2
Steve Whelan-3
Steve Whelan-2
Bill Clark (PA/USA)
Francis Carver -2
Francis Carver (PA/USA)
Steve Whelan (NJ/USA)
James Pettit (PA/USA)
John St Clair, Jr-3
John Cunningham-3
John Cunningham-2
John St Clair, Jr-2
John Cunningham (PA/USA)
John St Clair, Jr (PA/USA)
Gus Constant-2
Gus Constant (PA/USA)
William Adolph-2
William Adolph (PA/USA)
Hugh Sharp (PA/USA)
Joseph Cochrane (PA) + Frank Kieser (PA)
not held
Charles Rickard-2
Charles Rickard (PA/USA)
Richard Campbell (PA/USA)
Philip Cochrane-2
Philip Cochrane (PA/USA)
John M Clark-5
John M Clark-4
John M Clark-3
John M Clark-2
George Rapp-5
George Rapp-4
George Rapp-3 + John M Clark (PA/USA)
George Rapp-2
George Rapp (PA) + Arthur Clark (PA)
William G Miller-2
William G Miller (PA/USA)
Francis Gotsowisch (PA/USA)
J K Mullen-4
J K Mullen-3
J K Mullen-2
J K Mullen (PA/USA)
J W Morris-3
Edward S Wagner (PA/USA)
Frank Goswisch (PA/USA)
not held
K Schusted-2
K Schusted (PA/USA)
J W Morris-2
J W Morris (PA/USA)
A C Borzner (PA/USA)
Joseph Fleith-6
Joseph Fleith-5
Joseph Fleith-4
Joseph Fleith-3
Joseph Fleith-2
J C Gilpin (PA/USA)
Joseph Fleith(PA/USA)
C Truitt Darrow-2
C Truitt Darrow (PA/USA)
William Burrough (PA/USA)
Robert Ayres (PA/USA)
John Baillie (PA/USA)
C T Barrow (PA/USA)
Note on dates: Thanksgiving was the last Thursday in November for 1863-1938, the third Thursday in November for 1939-1941, and has been the fourth Thursday in November since then.
Most Wins
(1899-date)
Men
9
Mike Teti (PA/USA)
1984-87,1989-91,1994,1996
Women
7
Ann Tierney (PA/USA)
1996,1998-2001,2003,2005
Prize Money
(ADR qualified runners)
No information on prize money has been received for this race.
Race Time Bias
(sec/km)
Insufficient data to calculate the race time bias.
Competitive Level
(1990-date)
Insufficient data to calculate the competitive level.
Last Updated on
07 Jan 2012
Contributors: Klaas Loonstra (50), Juraj Gasparovic (23), Clete Graham


Computer Science student at University of Waterloo
I'm currently a 4th year computer science student at the University of Waterloo. I have varying interests in many different focuses, but I'm always eager and looking to try something new! Looking for an internship for Fall 2018
Product Engineer
Android Engineer
Android Engineer
Test Engineer


|
Currently second
generation mobile phone systems are in operation. These phones primarily
provide voice services, with very limited data applications. Third
generations systems will be introduced world wide around 2003. These systems
will provide a data rate ranging from 144 kbps to 2 Mbps depending on the
distance from the base station and the velocity of the user. The principle
aim of third generation systems is to provide data services, allowing high
speed mobile internet terminals, along with video phone communication. Third
generation systems use an RF carrier modulation scheme called Direct Sequence
Code Division Multiple Access, which is similar to the current CDMA systems
in operation, such as IS-95. Third generation systems use a wide bandwidth of
5 MHz to achieve a high data rate.
|


Class: ActionDispatch::Response
| Relationships & Source Files | |
| Namespace Children | |
|
Classes:
| |
| Extension / Inclusion / Inheritance Descendants | |
|
Subclasses:
|
|
| Super Chains via Extension / Inclusion / Inheritance | |
|
Instance Chain:
self,
MonitorMixin,
Http::Cache::Response ,
Http::FilterRedirect ,
Rack::Response::Helpers
|
|
| Inherits: | Object |
| Defined in: | actionpack/lib/action_dispatch/http/response.rb |
Overview
Represents an HTTP response generated by a controller action. Use it to retrieve the current state of the response, or customize the response. It can either represent a real HTTP response (i.e. one that is meant to be sent back to the web browser) or a TestResponse
(i.e. one that is generated from integration tests).
Response is mostly a Ruby on Rails framework implementation detail, and should never be used directly in controllers. Controllers should use the methods defined in ::ActionController::Base
instead. For example, if you want to set the HTTP response’s content MIME type, then use ActionControllerBase#headers
instead of #headers.
Nevertheless, integration tests may want to inspect controller responses in more detail, and that’s when Response can be useful for application developers. Integration
test methods such as Integration::RequestHelpers#get and Integration::RequestHelpers#post return objects of type TestResponse
(which are of course also of type Response).
For example, the following demo integration test prints the body of the controller response to the console:
class DemoControllerTest < ActionDispatch::IntegrationTest
def test_print_root_path_to_console
get('/')
puts response.body
end
end
Constant Summary
-
CONTENT_TYPE =
# File 'actionpack/lib/action_dispatch/http/response.rb', line 80"Content-Type"
-
CONTENT_TYPE_PARSER =
Internal use only
# File 'actionpack/lib/action_dispatch/http/response.rb', line 412/ \A (?<mime_type>[^;\s]\s*(?:;\s*(?:(?!charset)[^;\s]))*)? (?:;\s*charset=(?<quote>"?)(?<charset>[^;\s]+)\k<quote>)? /x
-
LOCATION =
# File 'actionpack/lib/action_dispatch/http/response.rb', line 82"Location"
-
NO_CONTENT_CODES =
# File 'actionpack/lib/action_dispatch/http/response.rb', line 83[100, 101, 102, 103, 204, 205, 304]
-
NullContentTypeHeader =
# File 'actionpack/lib/action_dispatch/http/response.rb', line 410ContentTypeHeader.new nil, nil
-
SET_COOKIE =
# File 'actionpack/lib/action_dispatch/http/response.rb', line 81"Set-Cookie"
Http::FilterRedirect
- Included
Http::Cache::Response
- Included
DATE, DEFAULT_CACHE_CONTROL, LAST_MODIFIED, MUST_REVALIDATE, NO_CACHE, NO_STORE, PRIVATE, PUBLIC, SPECIAL_KEYS
Class Attribute Summary
- .default_charset (also: #default_charset) rw
- .default_headers (also: #default_headers) rw
Class Method Summary
Instance Attribute Summary
-
#body
rw
Returns the content of the response as a string.
-
#body=(body)
rw
Allows you to manually set or override the response body.
-
#charset
rw
The charset of the response.
-
#charset=(charset)
rw
Sets the HTTP character set.
- #committed? ⇒ Boolean readonly
-
#content_type
rw
Content type of response.
-
#content_type=(content_type)
rw
Sets the HTTP response’s content MIME type.
- #default_charset rw
- #default_headers rw
-
#header
(also: #headers)
readonly
Get headers for this response.
-
#headers
readonly
Alias for #header.
-
#request
rw
The request that the response is responding to.
- #sending? ⇒ Boolean readonly
- #sending_file=(v) writeonly
- #sent? ⇒ Boolean readonly
-
#status
rw
The HTTP status code.
-
#status=(status)
rw
Sets the HTTP status code.
-
#stream
readonly
The underlying body, as a streamable object.
Http::Cache::Response
- Included
| #cache_control, #date, #date=, #date?, | |
| #etag= | This method sets a weak ETag validator on the response so browsers and proxies may cache the response, keyed on the ETag. |
| #etag?, #last_modified, #last_modified=, #last_modified?, #strong_etag=, | |
| #strong_etag? | True if an ETag is set, and it isn’t a weak validator (not preceded with |
| #weak_etag=, | |
| #weak_etag? | True if an ETag is set, and it’s a weak validator (preceded with |
Http::FilterRedirect
- Included
Instance Method Summary
- #[]
- #[]=
-
#_cache_control
Aliasing these off because
AD::Http::Cache::Response
defines them. - #_cache_control=
- #abort
- #await_commit
- #await_sent
- #body_parts
- #close
-
#code
Returns a string to ensure compatibility with
Net::HTTPResponse
. - #commit!
-
#cookies
Returns the response cookies, converted to a
::Hash
of (name => value) pairs. - #delete_header(key)
- #each(&block)
- #get_header(key)
- #handle_no_content!
- #has_header?(key) ⇒ Boolean
-
#media_type
Media type of response.
-
#message
(also: #status_message)
Returns the corresponding message for the current HTTP status code:
-
#prepare!
Alias for #to_a.
- #rack_response(status, header)
-
#redirect_url
The location header we’ll be responding with.
- #reset_body!
-
#response_code
The response code of the request.
-
#send_file(path)
Send the file stored at
path
as the response body. - #sending!
- #sent!
- #set_header(key, v)
-
#status_message
Alias for #message.
-
#to_a
(also: #prepare!)
Turns the
Response
into a Rack-compatible array of the status, headers, and body. - #write(string)
- #assign_default_content_type_and_charset! private
- #before_committed private
- #before_sending private
- #build_buffer(response, body) private
- #munge_body_object(body) private
-
#parsed_content_type_header
private
Small internal convenience method to get the parsed version of the current content type header.
- #set_content_type(content_type, charset) private
- #parse_content_type(content_type) private Internal use only
Http::Cache::Response
- Included
| #cache_control_headers, #cache_control_segments, #generate_strong_etag, #generate_weak_etag, #handle_conditional_get!, #merge_and_normalize_cache_control!, #prepare_cache_control! |
Http::FilterRedirect
- Included
Constructor Details
.new(status = 200, header = {}, body = []) {|_self| ... } ⇒ Response
# File 'actionpack/lib/action_dispatch/http/response.rb', line 161
def initialize(status = 200, header = {}, body = []) super() @header = Header.new(self, header) self.body, self.status = body, status @cv = new_cond @committed = false @sending = false @sent = false prepare_cache_control! yield self if block_given? end
Class Attribute Details
.default_charset (rw) Also known as: #default_charset
[ GitHub ]# File 'actionpack/lib/action_dispatch/http/response.rb', line 85
cattr_accessor :default_charset, default: "utf-8"
.default_headers (rw) Also known as: #default_headers
[ GitHub ]# File 'actionpack/lib/action_dispatch/http/response.rb', line 86
cattr_accessor :default_headers
Class Method Details
.create(status = 200, header = {}, body = [], default_headers: self.default_headers)
[ GitHub ]# File 'actionpack/lib/action_dispatch/http/response.rb', line 149
def self.create(status = 200, header = {}, body = [], default_headers: self.default_headers) header = merge_default_headers(header, default_headers) new status, header, body end
.merge_default_headers(original, default)
[ GitHub ]# File 'actionpack/lib/action_dispatch/http/response.rb', line 154
def self.merge_default_headers(original, default) default.respond_to?(:merge) ? default.merge(original) : original end
Instance Attribute Details
#body (rw)
Returns the content of the response as a string. This contains the contents of any calls to render
.
# File 'actionpack/lib/action_dispatch/http/response.rb', line 304
def body @stream.body end
#body=(body) (rw)
Allows you to manually set or override the response body.
# File 'actionpack/lib/action_dispatch/http/response.rb', line 313
def body=(body) if body.respond_to?(:to_path) @stream = body else synchronize do @stream = build_buffer self, munge_body_object(body) end end end
#charset (rw)
The charset of the response. HTML wants to know the encoding of the content you’re giving them, so we need to send that along.
# File 'actionpack/lib/action_dispatch/http/response.rb', line 274
def charset header_info = parsed_content_type_header header_info.charset || self.class.default_charset end
#charset=(charset) (rw)
Sets the HTTP character set. In case of nil
parameter it sets the charset to .default_charset.
response.charset = 'utf-16' # => 'utf-16'
response.charset = nil # => 'utf-8'
# File 'actionpack/lib/action_dispatch/http/response.rb', line 263
def charset=(charset) content_type = parsed_content_type_header.mime_type if false == charset set_content_type content_type, nil else set_content_type content_type, charset || self.class.default_charset end end
#committed? ⇒ Boolean
(readonly)
[ GitHub ]
# File 'actionpack/lib/action_dispatch/http/response.rb', line 217
def committed?; synchronize { @committed }; end
#content_type (rw)
Content type of response.
# File 'actionpack/lib/action_dispatch/http/response.rb', line 243
def content_type super.presence end
#content_type=(content_type) (rw)
Sets the HTTP response’s content MIME type. For example, in the controller you could write this:
response.content_type = "text/plain"
If a character set has been defined for this response (see charset=) then the character set information will also be included in the content type information.
# File 'actionpack/lib/action_dispatch/http/response.rb', line 233
def content_type=(content_type) return unless content_type new_header_info = parse_content_type(content_type.to_s) prev_header_info = parsed_content_type_header charset = new_header_info.charset || prev_header_info.charset charset ||= self.class.default_charset unless prev_header_info.mime_type set_content_type new_header_info.mime_type, charset end
#default_charset (rw)
[ GitHub ]# File 'actionpack/lib/action_dispatch/http/response.rb', line 85
cattr_accessor :default_charset, default: "utf-8"
#default_headers (rw)
[ GitHub ]# File 'actionpack/lib/action_dispatch/http/response.rb', line 86
cattr_accessor :default_headers
#header (readonly) Also known as: #headers
Get headers for this response.
# File 'actionpack/lib/action_dispatch/http/response.rb', line 67
attr_reader :header
#headers (readonly)
Alias for #header.
# File 'actionpack/lib/action_dispatch/http/response.rb', line 69
alias_method :headers, :header
#request (rw)
The request that the response is responding to.
# File 'actionpack/lib/action_dispatch/http/response.rb', line 61
attr_accessor :request
#sending? ⇒ Boolean
(readonly)
[ GitHub ]
# File 'actionpack/lib/action_dispatch/http/response.rb', line 216
def sending?; synchronize { @sending }; end
#sending_file=(v) (writeonly)
[ GitHub ]# File 'actionpack/lib/action_dispatch/http/response.rb', line 252
def sending_file=(v) if true == v self.charset = false end end
#sent? ⇒ Boolean
(readonly)
[ GitHub ]
# File 'actionpack/lib/action_dispatch/http/response.rb', line 218
def sent?; synchronize { @sent }; end
#status (rw)
The HTTP status code.
# File 'actionpack/lib/action_dispatch/http/response.rb', line 64
attr_reader :status
#status=(status) (rw)
Sets the HTTP status code.
#stream (readonly)
The underlying body, as a streamable object.
# File 'actionpack/lib/action_dispatch/http/response.rb', line 159
attr_reader :stream
Instance Method Details
#[]
[ GitHub ]# File 'actionpack/lib/action_dispatch/http/response.rb', line 71
delegate :[], :[]=, to: :@header
#[]=
[ GitHub ]# File 'actionpack/lib/action_dispatch/http/response.rb', line 71
delegate :[], :[]=, to: :@header
#_cache_control
Aliasing these off because AD::Http::Cache::Response
defines them.
# File 'actionpack/lib/action_dispatch/http/response.rb', line 90
alias :_cache_control :cache_control
#_cache_control=
[ GitHub ]# File 'actionpack/lib/action_dispatch/http/response.rb', line 91
alias :_cache_control= :cache_control=
#abort
[ GitHub ]# File 'actionpack/lib/action_dispatch/http/response.rb', line 370
def abort if stream.respond_to?(:abort) stream.abort elsif stream.respond_to?(:close) # `stream.close` should really be reserved for a close from the # other direction, but we must fall back to it for # compatibility. stream.close end end
#assign_default_content_type_and_charset! (private)
[ GitHub ]# File 'actionpack/lib/action_dispatch/http/response.rb', line 466
def assign_default_content_type_and_charset! return if media_type ct = parsed_content_type_header set_content_type(ct.mime_type || Mime[:html].to_s, ct.charset || self.class.default_charset) end
#await_commit
[ GitHub ]# File 'actionpack/lib/action_dispatch/http/response.rb', line 183
def await_commit synchronize do @cv.wait_until { @committed } end end
#await_sent
[ GitHub ]# File 'actionpack/lib/action_dispatch/http/response.rb', line 189
def await_sent synchronize { @cv.wait_until { @sent } } end
#before_committed (private)
[ GitHub ]# File 'actionpack/lib/action_dispatch/http/response.rb', line 438
def before_committed return if committed? assign_default_content_type_and_charset! merge_and_normalize_cache_control!(@cache_control) handle_conditional_get! handle_no_content! end
#before_sending (private)
[ GitHub ]# File 'actionpack/lib/action_dispatch/http/response.rb', line 446
def before_sending # Normally we've already committed by now, but it's possible # (e.g., if the controller action tries to read back its own # response) to get here before that. In that case, we must force # an "early" commit: we're about to freeze the headers, so this is # our last chance. commit! unless committed? headers.freeze request. unless committed? end
#body_parts
[ GitHub ]# File 'actionpack/lib/action_dispatch/http/response.rb', line 357
def body_parts parts = [] @stream.each { |x| parts << x } parts end
#build_buffer(response, body) (private)
[ GitHub ]#close
[ GitHub ]#code
Returns a string to ensure compatibility with Net::HTTPResponse
.
# File 'actionpack/lib/action_dispatch/http/response.rb', line 285
def code @status.to_s end
#commit!
[ GitHub ]# File 'actionpack/lib/action_dispatch/http/response.rb', line 193
def commit! synchronize do before_committed @committed = true @cv.broadcast end end
#cookies
Returns the response cookies, converted to a ::Hash
of (name => value) pairs
assert_equal 'AuthorOfNewPage', r. ['author']
# File 'actionpack/lib/action_dispatch/http/response.rb', line 394
def = {} if header = get_header(SET_COOKIE) header = header.split("\n") if header.respond_to?(:to_str) header.each do || if pair = .split(";").first key, value = pair.split("=").map { |v| Rack::Utils.unescape(v) } [key] = value end end end end
#delete_header(key)
[ GitHub ]# File 'actionpack/lib/action_dispatch/http/response.rb', line 181
def delete_header(key); headers.delete key; end
#each(&block)
[ GitHub ]#get_header(key)
[ GitHub ]# File 'actionpack/lib/action_dispatch/http/response.rb', line 179
def get_header(key); headers[key]; end
#handle_no_content!
[ GitHub ]# File 'actionpack/lib/action_dispatch/http/response.rb', line 506
def handle_no_content! if NO_CONTENT_CODES.include?(@status) @header.delete CONTENT_TYPE @header.delete "Content-Length" end end
#has_header?(key) ⇒ Boolean
# File 'actionpack/lib/action_dispatch/http/response.rb', line 178
def has_header?(key); headers.key? key; end
#media_type
Media type of response.
# File 'actionpack/lib/action_dispatch/http/response.rb', line 248
def media_type parsed_content_type_header.mime_type end
#message Also known as: #status_message
# File 'actionpack/lib/action_dispatch/http/response.rb', line 297
def Rack::Utils::HTTP_STATUS_CODES[@status] end
#munge_body_object(body) (private)
[ GitHub ]#parse_content_type(content_type) (private)
# File 'actionpack/lib/action_dispatch/http/response.rb', line 418
def parse_content_type(content_type) if content_type && match = CONTENT_TYPE_PARSER.match(content_type) ContentTypeHeader.new(match[:mime_type], match[:charset]) else NullContentTypeHeader end end
#parsed_content_type_header (private)
Small internal convenience method to get the parsed version of the current content type header.
# File 'actionpack/lib/action_dispatch/http/response.rb', line 428
def parsed_content_type_header parse_content_type(get_header(CONTENT_TYPE)) end
#prepare!
Alias for #to_a.
# File 'actionpack/lib/action_dispatch/http/response.rb', line 389
alias prepare! to_a
#rack_response(status, header)
[ GitHub ]#redirect_url
The location header we’ll be responding with.
# File 'actionpack/lib/action_dispatch/http/response.rb', line 364
alias_method :redirect_url, :location
#reset_body!
[ GitHub ]# File 'actionpack/lib/action_dispatch/http/response.rb', line 353
def reset_body! @stream = build_buffer(self, []) end
#response_code
The response code of the request.
# File 'actionpack/lib/action_dispatch/http/response.rb', line 280
def response_code @status end
#send_file(path)
Send the file stored at path
as the response body.
#sending!
[ GitHub ]# File 'actionpack/lib/action_dispatch/http/response.rb', line 201
def sending! synchronize do before_sending @sending = true @cv.broadcast end end
#sent!
[ GitHub ]# File 'actionpack/lib/action_dispatch/http/response.rb', line 209
def sent! synchronize do @sent = true @cv.broadcast end end
#set_content_type(content_type, charset) (private)
[ GitHub ]# File 'actionpack/lib/action_dispatch/http/response.rb', line 432
def set_content_type(content_type, charset) type = content_type || "" type = "#{type}; charset=#{charset.to_s.downcase}" if charset set_header CONTENT_TYPE, type end
#set_header(key, v)
[ GitHub ]# File 'actionpack/lib/action_dispatch/http/response.rb', line 180
def set_header(key, v); headers[key] = v; end
#status_message
Alias for #message.
# File 'actionpack/lib/action_dispatch/http/response.rb', line 300
alias_method :, :
#to_a Also known as: #prepare!
# File 'actionpack/lib/action_dispatch/http/response.rb', line 385
def to_a commit! rack_response @status, @header.to_hash end
#write(string)
[ GitHub ]# File 'actionpack/lib/action_dispatch/http/response.rb', line 308
def write(string) @stream.write string end


library(tweetbotornot2)
This vignette provides background and addresses commonissues related to obtaining access (authorization) to Twitter’s APIs. It also introduces two authorization methods–the default (user) authorization method and the application-only (bearer) authorization method–and explains some key differences between the two.
Use of {tweetbotornot} typically1 requires, at a minimum, (a) internet connection and (b) an active Twitter account. The latter is needed because Twitter requires authentication prior to use of their REST API. As a result, to use key functions of {tweetbotornot}, users must either approve the embedded {rtweet} rstats2twitter application (this allows {rtweet} to communicate from R to Twitter’s APIs) or provide their own application and account credentials. If a user is already signed into Twitter in their default web browser, this can be done with a single click. Otherwise, users must sign-in to Twitter and then click.
If you’re working in an interactive R session on a local machine (in the RStudio application, for example), this process should be relatively straight forward.1 However, if you’re working on a remote server or in the cloud (in RStudio Server, for example), then it’s a bit trickier. The easiest solution is to start a local, interactive session of R and then do the following:
On a machine with a local version of R, send API request via {rtweet}
rstats <- rtweet::search_tweets("rstats")
The above code actually creates (as a side effect) a Twitter token for you. So, on the same machine, save the token as an .rds
file
Upload the saved token file to your cloud/server
Once the token is uploaded to the cloud, you can read the token file and specify the resulting object in each {tweetbotornot} call, e.g.,
token <- readRDS("rtweet_token.rds")
predict_bot("jack", token = token)
or set the path to the saved token as an R environment variable. The latter option (example below) allows you to avoid having to specify the token each time.
Sys.setenv(TWITTER_PAT = "/path/to/rtweet_token.rds")
predict_bot("jack")
or set the R environment variable for current and future sessions (on a given machine), you can also try tfse::set_renv()
.
tfse::set_renv(TWITTER_PAT = "/path/to/rtweet_token.rds")


Deal Or No Deal v1.1
Directions:
In front of you are 26 cases, each holding money amounts from 1¢ to a top prize.
First, pick one case for you to keep.
Then, you will eliminate the other cases one by one.
Whatever amount is in the case you open cannot be in the case you picked to keep.
Each round removes fewer cases from the game, until eventually only one case is removed per round.
At the end of each round, the Banker will make you an offer.
The Banker wants you to win as little money as possible.
If you eliminate a small amount, the Banker will increase your offer.
If you eliminate a large amount, the Banker will decrease your offer.


Tony Hsieh describes three types of happiness. The first one is pleasure. Life through this lens would be about pursuing the next thing that makes you happy. The second type of happiness is passion. Life through this lens would mean that you are engaged in what you are doing and you are doing a good job at it. The last type of happiness is higher purpose. Life through this lens would mean that you are contributing to something that is bigger than yourself.
My core value would be family. To have people around me that are loyal, dependable and who support me is something that I think is very important. I would stand for being true to yourself, being able to be your own individual and respecting what people have to say while also having the courage to stand up for yourself and your beliefs.
During the meditation exercise I found it difficult to experience the emotions without grasping or aversion. Reading through the Emotional Resilience section I think this is something that I will need to work on as I don’t won’t to let success or failure hold me back.
“People want to be inspired!” Last year I had an experience with this in my job. I really wanted to implement something in our school that would benefit all of our our junior school students. By sharing this idea with everyone in my team, they were able to see how passionate I was about it and they all wanted to help out! In the end we were all able to work together for this greater goal. Sometimes we need to share our ideas with others so that you can achieve something that may not have been possible by yourself.


The Gallery of Horns
Page 1
Page 2
Show All
Sort by Horns
Sort by Title
{{title}}
{{description}}
×
Some text in the Modal..


air smoke use health Health PAC concentrations public indoor PACs HEPA filter filtration wildfire {border-style μg/m px;} #ffffff;} CI: study efficiency operated period. period) Public benefits respiratory studies cardiovascular clean control exposure high homes particulate Environ induct Indoor cleaners mean period shelters (.) blood events filters half intervention landscape matter randomly reduced (control evidence fires function home pressure private px; response {font-family (filtration Available Exposure: Health: Units adults associated cleaner effects font-size from: lower n = outdoor portable provide reported residential units years; Accessed Air Allen Department Portable community days. double; events. hospital increased interventions large low pollution provided reduce related time wildfires British Canada Henderson Mean Services admissions aged average border-color border-width costs decreased deviation) exposures indoors inflammation information people potential precipitators randomized reductions review room scenarios solid; use, used {font-style {font-weight (standard .%), Barn Chen Columbia Elliott Endothelial Environmental Health. Med Smoke [Internet]. [], authorities bold buildings communities compared continuous courier; electrostatic em; fine general impacts implementation include limited mortality older particles periods plates pt;} spaces specific symptoms systems wildfires.


Welcome to SJ Infotech, here you can find Mobile phones as well as Laptops, used as well as new in both categories available
Major Companies Google, Samsung, OnePlus
Major CompanyApple
Major Companies HP, Dell, Lenovo, Mac
Let's connect!
Contact UsEmail: sjinfotech@gmail.com


-
((( All of our machines have digital speed controller and heat controller.)))
-
(((With those features machines can be adjusted according to characteristics of the seeds such as pressing capacity and output of the oil.)))
| Engine | 2,2 kW (3 Hp) |
| Electricy | 220V or 380V |
| Working Frequency | 50-60 Hz |
| Power of the Heat | 0,5 kW |
| Dimension (W*D*H) | 51*110*90cm |
| Weight | 180 Kg |
| Power of the Heat | 8-20 Lt /sa |
| Output | %25 - 55 |
| Linseed | Mustard Seed | Canola | Sesame | Cumin | Grape seed | Pomegranate seed | Safflower |
| Nigella | Almond | Sunflower | Apricot seed | Pumpkin seed | Peanut | Walnut etc. |
((( All of our machines have digital speed controller and heat controller.)))
(((With those features machines can be adjusted according to characteristics of the seeds such as pressing capacity and output of the oil.)))
| Engine | 5,5 kW (7,5 Hp) |
| Electricy | 380V |
| Working Frequency | 50-60 Hz |
| Power of the Heat | 0,5 kW |
| Dimension (W*D*H) | 150*150*230cm |
| Weight | 740 Kg |
| Power of the Heat | 40-100 Lt /hr |
| Output | %25 - 55 |
| Linseed | Mustard Seed | Canola | Sesame | Cumin | Grape seed | Pomegranate seed | Safflower |
| Nigella | Almond | Sunflower | Apricot seed | Pumpkin seed | Peanut | Walnut etc. |
(((All of our machines have digital speed controller and heat controller.)))
(((With those features machines can be adjusted according to characteristics of the seeds such as pressing capacity and output of the oil.)))


Phaze: a real-time web audio pitch-shifter
Audio Worklet API not supported by you browser, try a recent Chrome version.
Speed
1.00
Pitch
1.00


This site is designed for those who are starting a new business craving for a cool logo, but hasn't great graphics capabilities, and little money to pay for a graphic
Choose up to 5 different text boxes, single letter, symbol or mini sentences, position it and customize it, try different fonts, colours and layouts.
At any time, you can save a picture, or save your work online, creating your own permalink
Text2Logo is designed for teamwork: simply prepare a first version of the logo, create the link and send it to your partner, which can continue your work, and send you back ...
Who better than your friends can give you advice? Share the link on Facebook, or Google+ or whatever you want, they will appreciate your work directly from the web
Text 2 Logo is a project created for people like me who is not a designer, but want the same create an original logo


Thief jumps into canal in Wednesfield
A thief jumped into a canal in an attempt to flee police in Wednesfield.
by Jordan ReynoldsFive alleged shoplifters were arrested in total at Bentley Bridge Retail Park yesterday and hundreds of pounds worth of goods were recovered.
Wednesfield Police tweeted saying: "The team have been busy today @BBShoppingPark.
"Five shoplifters arrested. One even jumped into the canal in a failed attempt to get away.
"Hundreds of pounds worth of goods recovered.
"Three of the offenders arrested were also wanted for multiple offences.
"Also big thanks to @ResponseWMP."


Provides a rudimentary display of the inheritance relationships between a class and all its subclasses.
(browse-classes [<class-name>])


This is interpreted as a command name containing a linefeed. Double check syntax.
(or tab)
'''
This script greets the planet
'''
echo "Hello World"
# This script greets the planet
echo "Hello World"
ShellCheck found a command name containing an especially unusual character like a tab or linefeed. This is most likely due to a syntax issue.
In the example, this was due to a Python style documentation string, which a shell will merely interpreted as a multi-line command name sandwiched between two empty strings.
If you have a command name that does contain a tab or linefeed you can ignore this message, but... wow.


The toString() method returns an array as a comma separated string:
The join() method joins array elements into a string. It this example we have used " * " as a separator between the elements:
The pop() method removes the last element from an array.
The return value of the pop() method is the removed item:
The push() method appends a new element to an array:
The push() method returns the new array length:


Reproduced with permission of the authors. Copyright 2012 Marty Stepp, Jessica Miller, and Victoria Kirst. All rights reserved. Further reproduction or distribution is prohibited without written permission.
The internet uses a layered hardware/software architecture (OSI model):
ipconfig
(Windows) or ifconfig
(Mac/Linux)cse.hanyang.ac.kr
→ <IP_ADDRESS>
C:\Windows\system32\drivers\etc\hosts
/private/etc/hosts
/etc/hosts
http://www.aw-bc.com/info/regesstepp/index.html ~~~~ ~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~ protocol host path
www.aw-bc.com
GET /info/regesstepp/index.html
http://www.textpad.com/download/index.html#downloads
index.html
then jumps down to part of the page labeled downloads
http://selab.hanyang.ac.kr:8080/secret/money.txt
http://www.google.com/search?q=miserable+failure&start=10
q
is set to "miserable+failure"
start
is set to 10
GET filename
: downloadPOST filename
: send a web form responsePUT filename
: upload$ telnet cse.hanyang.ac.kr 80 Trying <IP_ADDRESS>... Connected to cse.hanyang.ac.kr. Escape character is '^]'. GET /index.html <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 ..."> <html> ...
| Number | Meaning |
|---|---|
| 200 | OK |
| 301-303 | page has moved (permanently or temporarily) |
| 403 | you are forbidden to access this page |
| 404 | page not found |
| 500 | internal server error |
| complete list |
| MIME type | file extension |
|---|---|
| text/html | .html |
| text/plain | .txt |
| image/gif | .gif |
| image/jpeg | .jpg |
| video/quicktime | .mov |
| application/octet-stream | .exe |