Puppet Module Manual Page
NAME
puppet-module
- Creates, installs and searches for modules on the Puppet Forge.
SYNOPSIS
puppet module action
DESCRIPTION
This subcommand can find, install, and manage modules from the Puppet Forge, a repository of user-contributed Puppet code. It can also generate empty modules, and prepare locally developed modules for release on the Forge.
OPTIONS
Note that any configuration parameter that's valid in the configuration
file is also a valid long argument, although it may or may not be
relevant to the present action. For example, server
is a valid
configuration parameter, so you can specify --server <servername>
as
an argument.
See the configuration file documentation at
http://docs.puppetlabs.com/references/stable/configuration.html for the
full list of acceptable parameters. A commented list of all
configuration options can also be generated by running puppet with
--genconfig
.
- --render-as FORMAT
- The format in which to render output. The most common formats are
json
,s
(string),yaml
, andconsole
, but other options such asdot
are sometimes available. - --verbose
- Whether to log verbosely.
- --debug
- Whether to log debug information.
ACTIONS
build
- Build a module release package.SYNOPSIS
puppet module build path
DESCRIPTION
Prepares a local module for release on the Puppet Forge by building a ready-to-upload archive file. Before using this action, make sure that the module directory's name is in the standard username-module format.
This action uses the Modulefile in the module directory to set metadata used by the Forge. See http://links.puppetlabs.com/modulefile for more about writing modulefiles.
After being built, the release archive file can be found in the module's
pkg
directory.RETURNS
Pathname object representing the path to the release archive.
changes
- Show modified files of an installed module.SYNOPSIS
puppet module changes path
DESCRIPTION
Shows any files in a module that have been modified since it was installed. This action compares the files on disk to the md5 checksums included in the module's metadata.
RETURNS
Array of strings representing paths of modified files.
generate
- Generate boilerplate for a new module.SYNOPSIS
puppet module generate name
DESCRIPTION
Generates boilerplate for a new module by creating the directory structure and files recommended for the Puppet community's best practices.
A module may need additional directories beyond this boilerplate if it provides plugins, files, or templates.
RETURNS
Array of Pathname objects representing paths of generated files.
install
- Install a module from a repository or release archive.SYNOPSIS
puppet module install [--force | -f] [--dir DIR | -i DIR] [--module-repository REPO | -r REPO] [--ignore-dependencies] [--modulepath MODULEPATH] [--version VER | -v VER] name
DESCRIPTION
Installs a module from the Puppet Forge, from a release archive file on-disk, or from a private Forge-like repository.
The specified module will be installed into the directory specified with the --dir option, which defaults to /Users/nick/Documents/modules.
OPTIONS
--dir DIR | -i DIR - The directory into which modules are installed; defaults to the first directory in the modulepath. Explicitly setting this option will re-set the modulepath; if you need the install to check for dependencies in other directories, you must set the --modulepath option on the command line.
--force | -f - Force overwrite of existing module, if any.
--ignore-dependencies - Do not attempt to install dependencies
--module-repository REPO | -r REPO - The module repository to use, as a URL. Defaults to http://forge.puppetlabs.com.
--modulepath MODULEPATH - The directory into which modules are installed; defaults to the first directory in the modulepath. If the dir option is also given, it is prepended to the modulepath.
--version VER | -v VER - Module version to install; can be an exact version or a requirement string, eg '>= 1.0.3'. Defaults to latest version.
RETURNS
Pathname object representing the path to the installed module.
list
- List installed modulesSYNOPSIS
puppet module list [--env ENVIRONMENT] [--modulepath MODULEPATH] [--tree]
DESCRIPTION
Lists the installed puppet modules. By default, this action scans the modulepath from puppet.conf's
[main]
block; use the --modulepath option to change which directories are scanned.The output of this action includes information from the module's metadata, including version numbers and unmet module dependencies.
OPTIONS
--env ENVIRONMENT - Which environments' modules to list
--modulepath MODULEPATH - Which directories to look for modules in; use the system path separator character (
:
on Unix-like systems) to specify multiple directories.--tree - Whether to show dependencies as a tree view
RETURNS
hash of paths to module objects
search
- Search a repository for a module.SYNOPSIS
puppet module search [--module-repository= | -r=] search_term
DESCRIPTION
Searches a repository for modules whose names, descriptions, or keywords match the provided search term.
OPTIONS
--module-repository= | -r= - The module repository to use. Defaults to http://forge.puppetlabs.com.
RETURNS
Array of module metadata hashes
uninstall
- Uninstall a puppet module.SYNOPSIS
puppet module uninstall [--force | -f] [--environment=NAME | --env=NAME] [--version=] [--modulepath=] name
DESCRIPTION
Uninstalls a puppet module from the modulepath (or a specific target directory).
OPTIONS
--environment=NAME | --env=NAME - The target environment to search for modules.
--force | -f - Force the uninstall of an installed module even if there are local changes or the possibility of causing broken dependencies.
--modulepath= - The target directory to search for modules.
--version= - The version of the module to uninstall. When using this option a module that matches the specified version must be installed or an error is raised.
RETURNS
Hash of module objects representing uninstalled modules and related errors.
upgrade
- Upgrade a puppet module.SYNOPSIS
puppet module upgrade [--force | -f] [--ignore-dependencies] [--environment=NAME | --env=NAME] [--version=] name
DESCRIPTION
Upgrades a puppet module.
OPTIONS
--environment=NAME | --env=NAME - The target environment to search for modules.
--force | -f - Force the upgrade of an installed module even if there are local changes or the possibility of causing broken dependencies.
--ignore-dependencies - Do not attempt to install dependencies
--version= - The version of the module to upgrade to.
RETURNS
Hash
EXAMPLES
build
Build a module release:
$ puppet module build puppetlabs-apache notice: Building /Users/kelseyhightower/puppetlabs-apache for release puppetlabs-apache/pkg/puppetlabs-apache-0.0.1.tar.gz
changes
Show modified files of an installed module:
$ puppet module changes /etc/puppet/modules/vcsrepo/ warning: 1 files modified lib/puppet/provider/vcsrepo.rb
generate
Generate a new module in the current directory:
$ puppet module generate puppetlabs-ssh notice: Generating module at /Users/kelseyhightower/puppetlabs-ssh puppetlabs-ssh puppetlabs-ssh/tests puppetlabs-ssh/tests/init.pp puppetlabs-ssh/spec puppetlabs-ssh/spec/spec_helper.rb puppetlabs-ssh/spec/spec.opts puppetlabs-ssh/README puppetlabs-ssh/Modulefile puppetlabs-ssh/metadata.json puppetlabs-ssh/manifests puppetlabs-ssh/manifests/init.pp
install
Install a module from the default repository:
$ puppet module install puppetlabs/vcsrepo notice: Installing puppetlabs-vcsrepo-0.0.4.tar.gz to /etc/puppet/modules/vcsrepo
Install a specific module version from a repository:
$ puppet module install puppetlabs/vcsrepo -v 0.0.4 notice: Installing puppetlabs-vcsrepo-0.0.4.tar.gz to /etc/puppet/modules/vcsrepo
Install a module into a specific directory:
$ puppet module install puppetlabs/vcsrepo --dir=/usr/share/puppet/modules notice: Installing puppetlabs-vcsrepo-0.0.4.tar.gz to /usr/share/puppet/modules/vcsrepo
Install a module into a specific directory and check for dependencies in other directories:
$ puppet module install puppetlabs/vcsrepo --dir=/usr/share/puppet/modules --modulepath /etc/puppet/modules notice: Installing puppetlabs-vcsrepo-0.0.4.tar.gz to /usr/share/puppet/modules/vcsrepo Install a module from a release archive:
$ puppet module install puppetlabs-vcsrepo-0.0.4.tar.gz notice: Installing puppetlabs-vcsrepo-0.0.4.tar.gz to /etc/puppet/modules/vcsrepo
list
List installed modules:
$ puppet module list /etc/puppet/modules ├── bodepd-create_resources (v0.0.1) ├── puppetlabs-bacula (v0.0.2) ├── puppetlabs-mysql (v0.0.1) ├── puppetlabs-sqlite (v0.0.1) └── puppetlabs-stdlib (v2.2.1) /usr/share/puppet/modules (no modules installed)
List installed modules in a tree view:
$ puppet module list --tree /etc/puppet/modules └─┬ puppetlabs-bacula (v0.0.2)
├── puppetlabs-stdlib (v2.2.1)
├─┬ puppetlabs-mysql (v0.0.1)
│ └── bodepd-create_resources (v0.0.1)
└── puppetlabs-sqlite (v0.0.1)
/usr/share/puppet/modules (no modules installed)
List installed modules from a specified environment:
$ puppet module list --env 'production' /etc/puppet/modules ├── bodepd-create_resources (v0.0.1) ├── puppetlabs-bacula (v0.0.2) ├── puppetlabs-mysql (v0.0.1) ├── puppetlabs-sqlite (v0.0.1) └── puppetlabs-stdlib (v2.2.1) /usr/share/puppet/modules (no modules installed)
List installed modules from a specified modulepath:
$ puppet module list --modulepath /usr/share/puppet/modules /usr/share/puppet/modules (no modules installed)
search
Search the default repository for a module:
$ puppet module search puppetlabs NAME DESCRIPTION AUTHOR KEYWORDS bacula This is a generic Apache module @puppetlabs backups
uninstall
Uninstall a module from all directories in the modulepath:
$ puppet module uninstall ssh Removed /etc/puppet/modules/ssh (v1.0.0)
Uninstall a module from a specific directory:
$ puppet module uninstall --modulepath /usr/share/puppet/modules ssh Removed /usr/share/puppet/modules/ssh (v1.0.0)
Uninstall a module from a specific environment:
$ puppet module uninstall --environment development Removed /etc/puppet/environments/development/modules/ssh (v1.0.0)
Uninstall a specific version of a module:
$ puppet module uninstall --version 2.0.0 ssh Removed /etc/puppet/modules/ssh (v2.0.0)
upgrade
upgrade an installed module to the latest version
$ puppet module upgrade puppetlabs-apache /etc/puppet/modules └── puppetlabs-apache (v1.0.0 -> v2.4.0)
upgrade an installed module to a specific version
$ puppet module upgrade puppetlabs-apache --version 2.1.0 /etc/puppet/modules └── puppetlabs-apache (v1.0.0 -> v2.1.0)
upgrade an installed module for a specific environment
$ puppet module upgrade puppetlabs-apache --env test /usr/share/puppet/environments/test/modules └── puppetlabs-apache (v1.0.0 -> v2.4.0)
COPYRIGHT AND LICENSE
Copyright 2011 by Puppet Labs Apache 2 license; see COPYING


General
Select the default brush size:
Brush Size: 5
Brush Size: 10
Brush Size: 15
Brush Size: 20
Brush Size: 30
Brush Size: 50


ADOBE GURO | Apply filters
ADOBE PS TUTORIALS
You can add quick effects to an image using filters in Adobe Photoshop. Filters can also be combined to create unique results.
-
Browse the Filter Gallery
Apply creative filters using the Filter Gallery.
-
Blur an image with Smart Filters
Apply a blur filter as an editable Smart Filter.


Interesting Pictures
These pictures are from my wallpaper folder. I hope you like them as much as I do.
Avengers Endgame is coming soon.
This is a cool artwork picture of the Avengers that shows a good amount of heroes I personally like, especially Iron Man and Spider-Man.
Because of licensing, or lack of, here's a picture of the country I want to visit the most, Japan.
Digimon > Pokemon
Digimon was one of my favorite shows growing up. If you're unfamiliar with the show, this picture is actually an "all-grown up" version of the original.
Because of licensing, or lack of, here's a picture of the closest thing we have to digimon.
Blizzard is my dream company
My two favorite games all time are Overwatch and WoW, which were both made by Blizzard. To work there for a career would allow me to develop/maintain games so others could enjoy it as much as I did.
Because of licensing, or lack of, here's a picture an actual blizzard


JavaFX bundled
Major version:
Version number:
Distribution:
Operating system:
Libc type:
Architecture:
Archive type:
-
Download


this class represents a set of SQL operations that operate on the same data
object that generats stats to be passed to the end user for generating basic ailibility stats
object that generats stats to be passed to the end user for generating basic ailibility stats
29th July 2015
class to allow represntation of SQL create table statements
class to allow represntation of SQL create table statements
15th June 2015
Created by jackdavey on 19/06/15.
class to support dropping of tables through the application
class to support dropping of tables through the application
15th June 2015
class that enables management of a record of all the updates floating around the system.
class that enables management of a record of all the updates floating around the system. none of the updates are stored here directly, only text descriptions of them.
30th June 2015
backing machinery for the logger actor to do its work
backing machinery for the logger actor to do its work
16th June 2015
this clas contains various helper methods and functions to support the QueryResultHelper class see below for more details on this
this clas contains various helper methods and functions to support the QueryResultHelper class see below for more details on this
22nd June 2015
wrapper around the main SQLQuery class, mainly needed for things like JSON encoding
wrapper around the main SQLQuery class, mainly needed for things like JSON encoding
8th June 2015
class for representing select statements
class for representing select statements
22nd June 2015
Created by jackdavey on 16/06/15.
this class represents a set of SQL operations that operate on the same data
16th June 2015


{{address.companyName}}
{{address.number}} {{address.street}}, {{address.apartment}}
{{address.city}}, {{address.postcode}}
P:
{{address.phone}}
Update city (from AddressPanel)


Caitie Gorham
Home
Portfolio
Contact
Weather Dashboard
View Live
View on GitHub
Shop Your Pantry
View Live
View on GitHub
Workday Calendar
View Live
View on GitHub


Open the App
Start Workout
Earn Knubs
Get Discounts
Tap it and start walking ,leave the rest to our workout screen where your calories, steps ,distance will be calculated.  Happy Walking !
Monthly records of all the Knubs gained and all the calories lost ,Beat that in next month to keep your self fitter and smarter !
The core activity of Worthy walk is waiting for you to onboard and make the most out of it. The store have all the rewards you might have thought of while walking !


DEE SEE
resize textarea
Some text on the screen
Start Canvas Recording
Stop
Processes & Save
DEE SEE V2
Waiting for participant(s) to join
Open Room
Join Room
Close (admin) or Leave (user) room


COMORIN CONSULTING SERVICE IND PVT LTD.
BLOCKCHAIN
From address:
Transaction hash:
To address:
Gas used:
Ether:
Transfer
Status:
Upload
No file choosen
Address:
getBalance
Ether Balance:


This page lets you specify which dialects are used in your project.
A dialect may be set at the project level, and also at the level of a directory or a file.
If a dialect is not specified explicitly, it is inherited from a higher hierarchical level.
The dialects specified explicitly are shown in black. The inherited values are shown in gray italic.
Click the cell of interest and select the necessary option from the list.
In addition to particular dialects, you can select:


Fans gobsmacked at ‘corrupt’ VAR decision to deny Crystal Palace goal
by Buzz ContributorLiverpool’s Dejan Lovren was deemed to have been pushed by Crystal Palace’s Jordan Ayew as James Tomkins saw his opener from a corner chalked off by VAR.
Liverpool were on the lucky end of another decision from VAR, this time against Crystal Palace at Selhurst Park.
The Eagles thought they had taken the lead just before half time of this afternoon’s Premier League clash.
But the Premier League leaders escaped following the intervention of the technology and officials.
James Tomkins tapped the ball in at the far post from a corner.
However, it was decided that Jordan Ayew had intervened enough in the build up to the goal.
Ayew was deemed to have pushed defender Dejan Lovren over when the ball came in.
Fans of rival clubs were left raging as Jurgen Klopp’s title chasers have been seen to receive some favourable decisions with tight VAR calls this term.
An Arsenal fan tweeted: “liVARpool”.
And another said: “liverpool cheating as per”.
A Man Utd fan said: “Had to be. It just had to be”
A Man City fan: “Name a more iconic duo”.
And another posted: “Let’s not bother. This league is an embarrassment to the sport.”
A Chelsea branded VAR: “Corrupt”.
And another suggested: “See the meeting went well then”.
The call from VAR proved pivotal as Liverpool took the lead shortly after the restart.
Sadio Mane's strike counted at the other end just after the second half.
The Tomkins decision, meanwhile, left Paul Merson seething in the Sky Sports studio as he commentated on the match.


I am a fully professional Software Designer & Developer.
Computer science specialist skilled in math, programming logic & cross-platform coding.
Seeking to leverage solid development skills with focus on communication,
passion and creativity as a programmer.
feel free to contact me.
An opportunity to work and upgrade oneself, as well as being involved in an organization that believes in gaining a competitive edge and giving back to the community. I'm presently expanding my solid experience in programing and web technologies. I focus on using my interpersonal skills to build good solution and create a strong interest in my employers. I hope to develop skills as a programmer and my knowledge of the Web, and become an honest asset to the business. As an individual, I'm self-confident you’ll find me creative and naturally passionate. I’m a forward thinker, which others may find inspiring when working as a team.
GPA:3.91/4.0
Working on my skill sets in programming to achieve much greater tasks. Also a member of Toastmaster international.
GPA: 3.43/4.00
Enjoyed experimenting with integrated circuits. Data processind, computation and modelling was real fun when working for paper publication.
Paper published:"Attenuation due to rain for KU using DSD".
Volounter: Swecha club
I was awesome at arts, and was the basketball team captain for 2 years.
Enjoyed playing violen
Design and embed content into company website using HTML, CSS and PHP for customer services and merchant trades. Designed and maintained the soap factory distribution database using PHP and SQL. Learnt the manufacturing and distribution process of soap plant, gained excellent data acquisition and analytical knowledge. Responsible for daily management of plant operations using PLC technology.


Write a Plugin
A plugin is a child directive of main gantt
directive
transcluded in Template.
-
Copy skeleton file from
docs/skeletons/plugin.js
tosrc/plugins
-
Rename the skeleton copy using the plugin name (dash-delimited notation,
plugin-name.js
) -
Open the plugin file with your favorite editor.
-
Replace
xxxxxx
with the name of the plugin (camelCase notation,pluginName
). Take special care to directive name, that must be camelCase to (ganttPluginName
). There are 5 matches. -
Register plugin in
Gruntfile.js
by adding its dash-delimited name toplugins
variable. -
Add options as binded attributes in the directive
scope
. -
Implement plugin feature using a Template Hook.
-
You can add additional files in a subfolder named as your filename (without
.js
). This folder can contains templates (*.html
), CSS (*.css
) and other JavaScript (*.js
). Those files will be included in the build.


| Package | Description |
|---|---|
| javax.jdo.identity |
This package contains the JDO specification identity interfaces and classes.
|
| javax.jdo.spi |
This package contains the interfaces and classes used by JDO implementations.
|
| Class and Description |
|---|
| I18NHelper
Helper class for constructing messages from bundles.
|
| Class and Description |
|---|
| Detachable
This interface is implemented by classes that can be detached from the
persistence context and later attached.
|
| I18NHelper
Helper class for constructing messages from bundles.
|
| JDOImplHelper
This class is a helper class for JDO implementations.
|
| JDOImplHelper.StateInterrogationBooleanReturn
This is an interface used to interrogate the state of an instance
that does not implement PersistenceCapable.
|
| JDOImplHelper.StateInterrogationObjectReturn
This is an interface used to interrogate the state of an instance
that does not implement PersistenceCapable.
|
| JDOImplHelper.StringConstructor
Construct an instance of a key class using a String as input.
|
| JDOPermission
The
JDOPermission class is for operations that are reserved for
JDO implementations and should not be called by other code. |
| PersistenceCapable
A class that can be managed by a binary-compatible JDO implementation
must implement this interface.
|
| PersistenceCapable.ObjectIdFieldConsumer
This interface is used to store fields from the Object id instance.
|
| PersistenceCapable.ObjectIdFieldSupplier
This interface is used to provide fields to the Object id instance.
|
| RegisterClassEvent
A
RegisterClassEvent event gets delivered whenever a persistence-capable
class registers itself with the JDOImplHelper . |
| RegisterClassListener
A "RegisterClassEvent" event gets fired whenever a persistence-capable class
is loaded and gets registered with the
JDOImplHelper . |
| StateInterrogation
This interface is implemented by a non-binary-compatible JDO implementation
to provide state interrogation for non-enhanced persistent classes.
|
| StateManager
This interface is the point of contact between managed instances of
PersistenceCapable classes and the JDO implementation. |
Copyright © 2005–2020 Apache Software Foundation. All rights reserved.


Research Projects
Object Detection in Video
This is a project i'm working on currently in the lab of Professor Honglak Lee. A state of the art object detection algorithm in images is Faster-RCNN, which uses region proposals combined with convolutional neural networks to detect and classify objects within an image. A video has more information available than just a set of images - each image frame is highly correlated with the frames before and after it. For this reason, we aim to construct a network architecture with an LSTM unit included in the region proposal network, such that the regions proposed for the locations of an object are based not just on the current image but on information from previous frames.
Statistical Approaches to multidrug response of Biological Networks
Estimating responses to any given multi-drug combination is difficult due to the scale and complexity of the biological and chemical interactions involved. However, previous experimental research showed that highly accurate estimates of responses to three- and four-drug combinations can be calculated knowing only the individual and pairwise effects of the drugs involved. In this project we attempted to explain this observation by creating a mechanism-independent network model to approximate biological systems and their response to inhibitors. From this we can derive that we can accurately predict the multi-drug response based only on the pairwise response.
Side Projects
I use side projects as a way to experiment with ideas that i'm interested in. They're not quite as novel or polished as the projects above, but they may be of some interest nonetheless.
Biological Network Simulator
Simulates the growth of random complex biological networks. Used to test the hypothesis that network growth is proportional to eigenvalues of it’s corresponding graph adjacency matrix. Written with Python and C++.
Both versions (V1 with C++, V2 with Python) implement an object-oriented framework. V1 is based on a simpler hypothesis modeling the organism as having growth instead described as a random vector differential equation.
Github Link
Fast Video Object Detector
This project implements a common method for object detection in images (RCNN), adapted to work more quickly on video data by predicting the location and scale of objects detected in a frame of the video using data computed in the previous frame. I used tensorflow for object classification, OpenCV for optical flow calcuation, and a python implementation of selective search in this project.
Github Link
Project Report
Ising 4D
The Ising model is a simple model in statiscal mechanics that describes thae phase transition in a magnetic lattice where each element of the lattice cn be either spin up or spin down, and there is a correlation between the states of adjacent elements of the lattice. I implemented a simulation of this phase transition in 4D, and calculated how key observables varied with temperature and thier associated critical exponents.
Github Link
Quotable
Uses machine learning algorithms (e.g. recurrent neural networks) and API integration (in particular with reddit to collect sample textual data) to make a chat AI with behavior mimicking the style of the text sample. V2 currently being written with Python, V1 being written with Javascript/HTML/CSS.
Version one of quotable is a simple javascript program that imitates the style of a text sample by formulating it as the output of a Markov process.
Version two (currently in development) extends this idea by adding deep learning to the mix. It estimates text as the output of a recurrent neural network with a hidden input "personality" vector calculated by another network. In this way we can leverage much larger samples of text; by mapping a text sample to a lower dimensional point in personality space, we can use text samples with similar qualities to supplement the output expected from the text sample given. Being written using python and the deep learning library Tensorflow.
Github Link (V1)
Basic Strategy AI
A simple exercise in using AI for strategy.
This program implements two strategy modes for playing tic-tac-toe:
A slight modification of a nash-equilibrium algorithm that never loses
A neural network trained to play the game against itself.
The algorithms can actually easily be extended to any other game with discrete states, but these will quickly become too complex for a one-layer neural network to learn, and the state space would be far too large to find a dominant strategy.
Built for personal practice over the course of ~10 hours. Built with Lua and deep learning framework Torch.
Github Link


Home
Events
About
Who Are We?
Our Goal
Get In Touch
Sign Out
Donate
×
Confirm Password to Save
Confirm
Username
Password
First Name
Last Name
Email Address
Address
City
State / Province
Zip
Phone Number
Edit Information
Save
Cancel


Latitude: {{lat}}
Longitude: {{lng}}
Size: {{size}}
Quiet Level: {{qlvl}}
Notes
{{notes}}
{{#if canReview}}
{{#if approved}}
{{else}}
{{/if}}
{{else}}
{{#if ownPending approved}}
Your Nap Spot is currently under review, please check back later!
{{/if}}
{{/if}}


Creating the Page
Letting Yeoman do the work for us
First, we need a specific directory for yo to create its contents. For this, type
mkdir folderName
cd folderName
With all the background pieces assembled, it’s now time to create our website! To begin, we simple type
yo
Before diving in head-first, let's examine the menu options presented
Yeoman’s system menu is fairly simple and straightforward. Selecting “update your generators” will cause Yeoman to fetch, retrieve, and update every generator is has on file.
In the future, if you’re just looking to update a single generator, use
npm install –g generator-_______
The next option is “find some help”. Selecting this will bring you to a shortcut menu. Each option will actually just launch your browser.
Back in the yo main menu:
From this page, you’ll be given a selection of potential projects. For our purpose, select
webapp
On the next menu, we’ll be prompted to select which additional library to include. Rather than play around with this, leave it set to “Bootstrap” and continue.
Yo will now automate the rest of the initialization process.
But what exactly did we create just now? Let's explore.
Part 4: Exploring the Files


@* * Copyright 2023 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *@ @import uk.gov.hmrc.agentsexternalstubsfrontend.models._ @import uk.gov.hmrc.agentsexternalstubsfrontend.views.html.main_template @import uk.gov.hmrc.agentsexternalstubsfrontend.views.html.navigationBar @this(mainTemplate: main_template, navigationBar: navigationBar) @(services:Services, context: PageContext)(implicit request: Request[_], msgs: Messages) @mainTemplate(title = msgs("knownFacts.title"), wide = true) { @navigationBar(context)
@msgs("services.show.description")


Creates custom gene-editing constructs designed to deliver DNA payload to specific genes in malaria parasites, including for knock-out or conditional knock-down in Plasmodium falciparum.
A detailed description of this tool is now published. Command line interface and code available through GitHub. Developed by the Niles Lab at MIT.


Click here to download this week's dataset as a CSV
Click here to download this week's dataset as a Hyper Extract
Data Storytelling and Data Viz Approach
I wanted to look at the number of patents by Primary Subject as well as over time. To meet this desire, I used a clear set of BANs, as well as a stacked bar chart by year. The BANs are interactive - clicking on them will filter the bar chart, as well as the crosstab at the bottom. Similarly, clicking on any part of the stacked bar will filter the crosstab at the bottom - both by Primary Subject and year. Finally, I used URL click actions to drive the user to a PDF of the patent application, courtesy of the wonderful collection on the Rutgers website. This action is dependent on a calculated URL that concatenates the patent number with a base URL.
Nothing else too fancy this week, this was a quick but pretty enjoyable Viz to create.
Data Notes
Some of Edison's patents deal with multiple subject areas. For the purposes of this datasource, I chose the most appropriate, and included it in the datasource as the 'Primary Subject Matter.' These subjects were gleaned from the Rutgers site cited below.
Data Source
This week's data source comes from Rutgers University's School of Arts and Sciences Thomas A. Edison Papers. This site was also used for information in this historical background.


3 tips for smart Black Friday holiday shopping
by Cynthia Bowman GoBankingRates.comNavigating the stores open on Thanksgiving and Black Friday to get the best deal is a great plan — if you don’t get carried away. Here are three tips to shop smart.
1. Set and Stick To a Budget
Before the holiday season gets underway, check out GOBankingRates’ advice for setting up a budget. If you’re short on cash, supplement your holiday budget with a side gig or other creative way to make money. Consider putting your holiday shopping funds on a prepaid credit card and hiding all your other cards to stick to your budget. Make a list of whom you’re shopping for and don’t leave home without it.
2. Compare Prices
Do a little research before you go out hunting for Thanksgiving and Black Friday deals. It’s easy to get excited in the heat of the moment and buy something that doesn’t turn out to be a bargain after all. Shop around in advance to get a general idea of what your wish list items cost — you might find early deals that are better than the holiday ones. Don’t forget to check GOBankingRates for updates to stores open on Thanksgiving and to learn about Black Friday and Cyber Monday deals.
3. Money-Saving Apps
To get the best deals, download money-saving coupon apps and head out with a fully charged phone. You might get additional savings on top of in-store advertised prices using apps like Coupons.com or the Target app.
Is It Worth Shopping at Stores Open on Thanksgiving?
Shopping on Thanksgiving day is a good alternative to beat Black Friday crowds. Not all stores will be open and store hours might be limited, but it could be worth paying a visit to your favorite local store on Thanksgiving for savings. Regardless of what day you shop for the best deals this holiday season, stick to a budget, do some comparison shopping in advance and download money-saving apps from your favorite retailers.
Sean Dennison contributed to the reporting for this article.
This article originally appeared on GOBankingRates.com: These Are the 98 Stores Open on Thanksgiving and Black Friday
More From GOBankingRates


Controller Commands
Selecting the option and clicking the Send button will send the command to the Solar Controller. Use only one option at a time. Pressing the Reset buttion will clear all Selections.
~inc:header.inc~
Selecting the option and clicking the Send button will send the command to the Solar Controller. Use only one option at a time. Pressing the Reset buttion will clear all Selections.


{% load static i18n %} {% load google_analytics_tags %}
Unofficial COVID-19 PH Tracker
More information
disease.sh - Open Disease Data Sourced data from Johns Hopkins University, the New York Times, Worldometers, and Apple reports to give you a comprehensive view of the data.
Developed by Vicente G. Reyes A Self-Directed Learner, a Freelance Web Developer, a Volunteer Developer at Project Website, Moderator at DEV, & a Podcast host. www.vicentereyes.org


The elements can be tuned by simply clicking the spin button on the right side of the textbox displaying its value. The values are incremented /decremented by the current StepSize
To tune Zo/length of the transmission line the user has to select the appropriate Zo/length option.


{% extends "base.html" %} {% block content %}
{{ password }}
Remember to copy this password! It's been deleted from the database and can't be re-accessed.


|
motley-php
Useful PHP utility classes and programs
|
Represent a command line argument. More...
Public Member Functions | |
| __construct (string $name=null, string $desc=null) | |
| Class instance constructor. More... | |
| addValidLiteral (string $lit, string $desc="") | |
| Add a single valid literals. More... | |
| getValidLiterals () | |
| Get the list of valid literal values. More... | |
| getValidLitDescs () | |
| Get associative array mapping literal value to literal description. More... | |
| clearValidLiterals () | |
| Clear all valid literals. More... | |
| checkRegEx (string $regEx) | |
| Check if a candidate regular expression is properly formed. More... | |
| addValidRegEx (string $regEx, string $desc="") | |
| Add a single valid regular expressions. More... | |
| getValidRegExs () | |
| Get the list of valid regex values. More... | |
| getValidRxDescs () | |
| Get associative array mapping regular expressions descriptions. More... | |
| clearValidRegExs () | |
| Clear all valid regexs. More... | |
| setIsFile (bool $flag, bool $exist=null) | |
| Set/unset the requirement that the argument specify an existent file. More... | |
| getIsFile () | |
| Get the true/false setting of the requirement that the argument be a file specification. More... | |
| getFileMustExist () | |
| Get the true/false setting of the file must exist flag. More... | |
| getFileMustNotExist () | |
| Get the true/false setting of the file must not exist flag. More... | |
| validate (string $param) | |
| Test if an actual argument value meets the validation criteria of this command line argument. More... | |
| getDisplayName () | |
| Get the argument display name for syntax help and so forth. More... | |
| setDefaultValue (string $defVal) | |
| Set the argument default value. More... | |
| getDefaultValue () | |
| Get the argument default value.  More... | |
| setDescription (string $desc) | |
| Set the object description. More... | |
| setDisplayName ($dispName) | |
| Set the display name. More... | |
| getLastParamValue () | |
| get the last param value. More... | |
| getLastParamIsValid () | |
| get the last param is valid flag. More... | |
| getLastParamMessage () | |
| get the last param message. More... | |
| getValidParamHistory () | |
| Get the valid params history. More... | |
| resetValidParamHistory () | |
| Reset the valid params history. More... | |
Static Public Member Functions | |
| static | findComponentByName (string $name, array $components) |
| Find component(s) by name from an array of Motley::CommandComponent objects. More... | |
Protected Member Functions | |
| saveLastParam ($param, bool $isValid, string $message) | |
| Save the last command line parameter processed. More... | |
Protected Attributes | |
| $validLiterals = array() | |
| Valid literal arg values. More... | |
| $validLitDescs = array() | |
| Hash array of descriptions for literals. More... | |
| $validRegExs = array() | |
| Valid regular expressions. More... | |
| $validRxDescs = array() | |
| Hash array of reg ex descriptions. More... | |
| $isFilename = false | |
| Arg is a filename. More... | |
| $fileMustExist = false | |
| if file, must it exist. More... | |
| $fileMustNotExist = false | |
| if file, must it not exist. More... | |
| $defaultValue = "" | |
| Argument default value. More... | |
| $name = "" | |
| Object name. More... | |
| $description = "" | |
| Object description. More... | |
| $displayName = null | |
| Object display name. More... | |
| $lastParamValue = "" | |
| The last param value. More... | |
| $lastParamIsValid = false | |
| Was the last param valid. More... | |
| $lastParamMessage = "" | |
| Possible error message about last param. More... | |
| $validParamHist = array() | |
| All valid params validated since reset. More... | |
| $chkW = null | |
| Warning checker. More... | |
| $chkE = null | |
| Error checker. More... | |
Represent a command line argument.
Definition at line 13 of file CommandArg.php.
| Motley\CommandArg::__construct | ( | string | $name = null , |
| string | $desc = null |
||
| ) |
Class instance constructor.
| $name | - The object name. |
| $desc | - The object description. |
Definition at line 27 of file CommandArg.php.
| Motley\CommandArg::addValidLiteral | ( | string | $lit, |
| string | $desc = "" |
||
| ) |
Add a single valid literals.
If the literal value is already on the valid list, then it only the description is updated.
| $lit | - A literal valid value. |
| $desc | - A description associated with this literal. |
Definition at line 37 of file CommandArg.php.
| Motley\CommandArg::getValidLiterals | ( | ) |
Get the list of valid literal values.
Definition at line 48 of file CommandArg.php.
| Motley\CommandArg::getValidLitDescs | ( | ) |
Get associative array mapping literal value to literal description.
Definition at line 54 of file CommandArg.php.
| Motley\CommandArg::clearValidLiterals | ( | ) |
Clear all valid literals.
Definition at line 59 of file CommandArg.php.
| Motley\CommandArg::checkRegEx | ( | string | $regEx | ) |
Check if a candidate regular expression is properly formed.
| $regEx | - A candidate regular expression to check. |
Definition at line 69 of file CommandArg.php.
| Motley\CommandArg::addValidRegEx | ( | string | $regEx, |
| string | $desc = "" |
||
| ) |
Add a single valid regular expressions.
If the regular expression is already on the valid list, then the description is updated.
| $regEx | - a string regex representation. |
| $desc | - A dedcription of the regular expression. |
Definition at line 90 of file CommandArg.php.
| Motley\CommandArg::getValidRegExs | ( | ) |
Get the list of valid regex values.
Definition at line 102 of file CommandArg.php.
| Motley\CommandArg::getValidRxDescs | ( | ) |
Get associative array mapping regular expressions descriptions.
Definition at line 108 of file CommandArg.php.
| Motley\CommandArg::clearValidRegExs | ( | ) |
Clear all valid regexs.
Definition at line 113 of file CommandArg.php.
| Motley\CommandArg::setIsFile | ( | bool | $flag, |
| bool | $exist = null |
||
| ) |
Set/unset the requirement that the argument specify an existent file.
If set to true, the requirement that a file not exist is set to false.
| $flag | - true if argument is a file specification, else false. If false, the $exist parameter is ignored even if specified. |
| $exist | - if not specified it means file existence does not mater, true means file must exist, false means file must not exist. |
Definition at line 124 of file CommandArg.php.
| Motley\CommandArg::getIsFile | ( | ) |
Get the true/false setting of the requirement that the argument be a file specification.
Definition at line 148 of file CommandArg.php.
| Motley\CommandArg::getFileMustExist | ( | ) |
Get the true/false setting of the file must exist flag.
Definition at line 154 of file CommandArg.php.
| Motley\CommandArg::getFileMustNotExist | ( | ) |
Get the true/false setting of the file must not exist flag.
Definition at line 160 of file CommandArg.php.
| Motley\CommandArg::validate | ( | string | $param | ) |
Test if an actual argument value meets the validation criteria of this command line argument.
Also saves the value of the last argument validated and the validation result.
| $param | - A string parameter, typically a specific token from the command line. |
Definition at line 171 of file CommandArg.php.
| Motley\CommandArg::getDisplayName | ( | ) |
Get the argument display name for syntax help and so forth.
Definition at line 241 of file CommandArg.php.
| Motley\CommandArg::setDefaultValue | ( | string | $defVal | ) |
Set the argument default value.
| $defVal | - The argument default value. |
Definition at line 253 of file CommandArg.php.
| Motley\CommandArg::getDefaultValue | ( | ) |
Get the argument default value.
Definition at line 259 of file CommandArg.php.
|
inherited |
Get the object name.
Definition at line 41 of file CommandComponent.php.
Referenced by Motley\CommandOptGrp\addOption().
|
inherited |
Set the object name.
| $name | - The object name. |
Definition at line 47 of file CommandComponent.php.
|
inherited |
Get the object description.
Definition at line 53 of file CommandComponent.php.
|
inherited |
Set the object description.
| $desc | - the object description. |
Definition at line 59 of file CommandComponent.php.
|
inherited |
Set the display name.
| $dispName | - The display name. |
Definition at line 75 of file CommandComponent.php.
|
protectedinherited |
Save the last command line parameter processed.
| $param | - The command line parameter. |
| $isValid | - True if $param meets validation requirements. |
| $message | - Explain why $param is or is not valid. |
Definition at line 83 of file CommandComponent.php.
|
inherited |
get the last param value.
Definition at line 96 of file CommandComponent.php.
|
inherited |
get the last param is valid flag.
Definition at line 102 of file CommandComponent.php.
|
inherited |
get the last param message.
Definition at line 108 of file CommandComponent.php.
|
inherited |
Get the valid params history.
Definition at line 124 of file CommandComponent.php.
|
inherited |
Reset the valid params history.
Definition at line 129 of file CommandComponent.php.
|
staticinherited |
Find component(s) by name from an array of Motley::CommandComponent objects.
| $name | - The name of the component. |
| $components | - An array of Motley::CommandComponent objects. This includes Motley::CommandArg, Motley::CommandOpt, Motley::CommandOptGrp, and Motley::CommandDoubleDash. |
Definition at line 141 of file CommandComponent.php.
Referenced by Motley\Test\CommandComponentTest\testFindComponentByName().
|
protected |
Valid literal arg values.
Definition at line 15 of file CommandArg.php.
|
protected |
Hash array of descriptions for literals.
Definition at line 16 of file CommandArg.php.
|
protected |
Valid regular expressions.
Definition at line 17 of file CommandArg.php.
|
protected |
Hash array of reg ex descriptions.
Definition at line 18 of file CommandArg.php.
|
protected |
Arg is a filename.
Definition at line 19 of file CommandArg.php.
|
protected |
if file, must it exist.
Definition at line 20 of file CommandArg.php.
|
protected |
if file, must it not exist.
Definition at line 21 of file CommandArg.php.
|
protected |
Argument default value.
Definition at line 22 of file CommandArg.php.
|
protectedinherited |
Object name.
Definition at line 15 of file CommandComponent.php.
|
protectedinherited |
Object description.
Definition at line 16 of file CommandComponent.php.
|
protectedinherited |
Object display name.
Definition at line 17 of file CommandComponent.php.
|
protectedinherited |
The last param value.
Definition at line 18 of file CommandComponent.php.
|
protectedinherited |
Was the last param valid.
Definition at line 19 of file CommandComponent.php.
|
protectedinherited |
Possible error message about last param.
Definition at line 20 of file CommandComponent.php.
|
protectedinherited |
All valid params validated since reset.
Definition at line 21 of file CommandComponent.php.
|
protectedinherited |
Warning checker.
Definition at line 22 of file CommandComponent.php.
|
protectedinherited |
Error checker.
Definition at line 23 of file CommandComponent.php.


For clean and green airport
GMR organises ‘Swachhta March’
by Special CorrespondentThe GMR-led Hyderabad International Airport organised a ‘Swachhta March’ at RGIA followed by a clean-up drive of the environs in which the staff and all the other stakeholders of the airport took part.
The event was held as part of ‘Swachh Bharat Pakhwada’, a 15-day cleanliness and sanitation drive till November 30. GHIAL deputy CEO Pradeeep Panicker highlighted the importance of cleanliness, sanitation and hygiene for an airport. He thanked all the stakeholders for their support and cooperation in lending a helping hand in maintaining clean surroundings on par with the global standards at the Hyderabad International Airport.
Compost plant
The GHIAL has the first airport-based captive compost plant to process food waste into organic compost, which not only ensures cleanliness, but nurtures the vast greenery across the airport approach road, said a spokesperson.


"SHIMEA "the hearing prayer. (1.) One of David’s sons by Bathsheba (1 Chronicles 3:5); called also Shammua (14:4). (2.) A Levite of the family of Merari (1 Chronicles 6:30). (3.) Another Levite of the family of Gershon (1 Chronicles 6:39). (4.) One of David’s brothers (1 Samuel 16:9, marg.).
"SHIMEA "the hearing prayer. (1.) One of David’s sons by Bathsheba (1 Chronicles 3:5); called also Shammua (14:4).
(2.) A Levite of the family of Merari (1 Chronicles 6:30).
(3.) Another Levite of the family of Gershon (1 Chronicles 6:39).
(4.) One of David’s brothers (1 Samuel 16:9, marg.).


{% load i18n libya_tags %}
{{ case.citizen.registration.sms.from_number|format_phone_number }}
{% trans "Say to the caller" %}: {% if case.field_staff %}
{% trans "Does the citizen want to update the phone number associated with their registration?" %}{% else %}
{% trans "Do you want to update the phone number associated with your registration?" %}{% endif %}
{% trans "(also select no if they wish to use the same phone)" %}
{% if case.registration.phone_has_maximum_registrations %}{% trans "Please advise the citizen" %}: {% blocktrans trimmed with number=case.citizen.registration.sms.from_number|format_phone_number %} Phone number {{ number }} has been used for the maximum number of registrations. {% endblocktrans %} {% trans "If the citizen registers from another phone, they might not be able to change their registration back to this phone." %}
{% endif %}


Source code for weatherapi
import requests
import multiprocessing
import queue
IP_INFO = 'http://ipinfo.io/json'
API_KEY = 'c67a801854866dfb'
API_ADDRESS = 'http://api.wunderground.com/api/'
API_CONDITIONS = '/conditions/q/'
TEMPERATURE_SCALE = 'c'
[docs]class WeatherApiWrapper:
"""Wunderground api wrapper for performing asynchronous requests.
WeatherApiWrapper uses multiprocessing module to handle
asynchronous wunderground api requests. Request can be started by
calling call_weather_api() and response converted to json file can
be collected with get_weather().
Only one request can be processed at the same time for each
instance of WeatherApiWrapper.
"""
def __init__(self):
self._input_queue = multiprocessing.Queue(maxsize=1)
self._output_queue = multiprocessing.Queue(maxsize=1)
self._api_call_process = multiprocessing.Process(target=weather_api_request,
daemon=True,
args=(self._input_queue,
self._output_queue,))
[docs] def call_weather_api(self, country, region):
"""Starts asynchronous api request.
Only one request can be processed at the same time for each
instance of WeatherApiWrapper.
To obtain results get_weather() has to be called.
Args:
country: country of interest. Either abbreviation or full
english name.
region: region of interest e.g city/province.
Returns:
0 if weather api request was successfully made or 1 if api
request is already processing.
Raises:
ValueError: If impossible behaviour occurred.
"""
if not self._api_call_process.is_alive():
try:
# Request process is not running so we put arguments
# into the input queue.
self._input_queue.put((country, region), block=False)
except queue.Full:
raise ValueError("Input queue was full. This should never happen.")
try:
self._api_call_process.start()
except AssertionError:
# This exception means that our process was already
# started and finished execution so we join it and
# then create and start a new one.
self._api_call_process.join()
self._api_call_process = multiprocessing.Process(target=weather_api_request,
daemon=True,
args=(self._input_queue,
self._output_queue,))
self._api_call_process.start()
return 0
return 1
[docs] def get_weather(self):
"""Return request results and according return code.
Returns:
returncode:
-1 if no request was made with call_weather_api
function, 0 if weather information was successfully
returned or 1 if api request is still being processed.
weather_json: json file containing weather information for
requested region or None (see returncode = -1 or 1).
"""
weather_json = None
if self._api_call_process.is_alive():
returncode = 1
else:
try:
weather_json = self._output_queue.get(block=False)
self._api_call_process.join()
returncode = 0
except queue.Empty:
returncode = -1
return returncode, weather_json
[docs]def weather_api_request(input_queue, output_queue):
"""Callback function performing weather information requests.
Args:
input_queue: queue for passing city and region arguments for
api request. These arguments should be passed in one
tuple.
output_queue: queue for passing request results.
Raises:
ValueError: if no arguments were passed through the input
queue.
"""
try:
location = input_queue.get(block=True, timeout=1)
country = location[0]
region = location[1]
except queue.Empty:
raise ValueError('Input queue empty.')
response = requests.get(API_ADDRESS + API_KEY + API_CONDITIONS + country + '/' + region
+ '.json')
weather_json = response.json()
try:
output_queue.put(weather_json, block=False)
except queue.Full:
# This exception will occur if previous request's results were
# not collected with get_weather(). Replacing old results with
# new.
output_queue.get(block=True, timeout=1)
output_queue.put(weather_json, block=False)


- getCar(int) - Method in class logiclayer.CarLogicImpl
-
This method calls the CarPersistImpl class to gather
a ResultSet containing an entry the car with the id
given as a parameter.
- getCar(int) - Method in class persistlayer.CarPersistImpl
-
This method creates a SQL query that
gather an entry containing the given
id and returns it as a ResultSet.
- getCarId() - Method in class objectlayer.Image
-
This method is the getter for carId.
- getCarID() - Method in class objectlayer.Rental
-
This method is the getter for carID.
- getCars() - Method in class logiclayer.CarLogicImpl
-
This method calls the CarPersistImpl class to gather
a ResultSet of all calls in the database.
- getCars() - Method in class persistlayer.CarPersistImpl
-
This method creates a SQL query that
gathers all cars from the database
and returns them as a ResultSet.
- getCarsFromUser(int) - Method in class logiclayer.CarLogicImpl
-
This method calls the CarPersistImpl class to gather
a ResultSet of all calls belonging to a given user
in the database.
- getCarsFromUser(int) - Method in class persistlayer.CarPersistImpl
-
This method creates a SQL query that
gathers all cars from a given user from
the database and returns them as a ResultSet.
- getCarsWithParams(String, String, String) - Method in class logiclayer.CarLogicImpl
-
This method calls the persist layer to search the
database for cars with the given parameters.
- getCarsWithParams(String, String, String) - Method in class persistlayer.CarPersistImpl
-
Finds cars with specified attributes
- getCarType() - Method in class objectlayer.Car
-
This method is the getter for carType.
- getColor() - Method in class objectlayer.Car
-
This method is the getter for color.
- getDescription() - Method in class objectlayer.Car
-
This method is the getter for description.
- getEmail() - Method in class objectlayer.User
-
This method is the getter for email.
- getEndDate() - Method in class objectlayer.Rental
-
This method is the getter for endDate.
- getFirstName() - Method in class objectlayer.User
-
This method is the getter for firstName.
- getId() - Method in class objectlayer.Car
-
This method is the getter for id.
- getId() - Method in class objectlayer.Image
-
This method is the getter for id.
- getId() - Method in class objectlayer.Rental
-
This method is the getter for id.
- getId() - Method in class objectlayer.User
-
This method is the getter for id.
- getIdFromUsername(String) - Method in class logiclayer.UserLogicImpl
-
This method takes a string parameter that represents
a username.
- getIdFromUsername(String) - Method in class persistlayer.UserPersistImpl
-
This method creates and executes a query
that returns the id of a user given the
username.
- getImage() - Method in class objectlayer.Image
-
This method is the getter for image.
- getImages(int) - Method in class logiclayer.CarLogicImpl
-
This method calls the CarPersistImpl class to
gather all entries in the images table corresponding
to the given carId, process the ResultSet into a
list of Image objects, and return the list.
- getImages() - Method in class objectlayer.Car
-
This method is the getter for images.
- getImages(int) - Method in class persistlayer.CarPersistImpl
-
This method creates and runs a SQL query
that gathers images belonging to the given
car.
- getLastName() - Method in class objectlayer.User
-
This method is the getter for lastName.
- getMake() - Method in class objectlayer.Car
-
This method is the getter for make.
- getMakes() - Method in class logiclayer.CarLogicImpl
-
This method calls the CarPersistImpl class to gather
a ResultSet of all makes in the database.
- getMakes(String) - Method in class logiclayer.CarLogicImpl
-
This method calls the CarPersistImpl class to gather
a ResultSet of all makes in the database filtered by the
parameter content.
- getMakes() - Method in class persistlayer.CarPersistImpl
-
This method creates a SQL query that
gathers all car makes from the database
and returns them as a ResultSet.
- getModel() - Method in class objectlayer.Car
-
This method is the getter for model.
- getModels() - Method in class logiclayer.CarLogicImpl
-
This method calls the CarPersistImpl class to gather
a ResultSet of all models in the database.
- getModels(String) - Method in class logiclayer.CarLogicImpl
-
This method calls the CarPersistImpl class to gather
a ResultSet of all models in the database filtered by the
parameter content.
- getModels() - Method in class persistlayer.CarPersistImpl
-
This method creates a SQL query that
gathers all car models from the database
and returns them as a ResultSet.
- getOwnerId(int) - Method in class logiclayer.CarLogicImpl
-
This method calls the CarPersistImpl class to
gather a ResultSet containing the ownerId of
the car with the given id.
- getOwnerId() - Method in class objectlayer.Car
-
This method is the getter for ownerId.
- getOwnerId(int) - Method in class persistlayer.CarPersistImpl
-
This method creates and runs a SQL query that
gets the id of the owner given the id of a car.
- getOwnerOfImage(int) - Method in class logiclayer.CarLogicImpl
-
This method calls the CarPersistImpl to create a
ResultSet containing car information of a given
image.
- getPassword() - Method in class objectlayer.User
-
This method is the getter for password.
- getPhone() - Method in class objectlayer.User
-
This method is the getter for phone.
- getPrice() - Method in class objectlayer.Car
-
This method is the getter for price.
- getRental(int) - Method in class persistlayer.RentalPersistImpl
-
This method creates and executes a query
that gathers an entry from the database with
the given id.
- getRenterId(int) - Method in class logiclayer.RentalLogicImpl
-
This method takes the id of a rental entry
in the database and returns the user id
of the renter.
- getRenterID() - Method in class objectlayer.Rental
-
This method is the getter for renterID.
- getSingleUser(int) - Method in class logiclayer.UserLogicImpl
-
This method calls the UserPersistImpl class to gather
a ResultSet containing an entry of the user with the id
given as a parameter.
- getStartDate() - Method in class objectlayer.Rental
-
This method is the getter for startDate.
- getSuggestions(String, String) - Method in class persistlayer.CarPersistImpl
-
This method takes two string parameters- a column
and content.
- getTypes() - Method in class logiclayer.CarLogicImpl
-
This method calls the CarPersistImpl class to gather
a ResultSet of all types in the database.
- getTypes(String) - Method in class logiclayer.CarLogicImpl
-
This method calls the CarPersistImpl class to gather
a ResultSet of all types in the database filtered by the
parameter content.
- getTypes() - Method in class persistlayer.CarPersistImpl
-
This method creates a SQL query that
gathers all car types from the database
and returns them as a ResultSet.
- getURL(HttpServletRequest) - Method in class boundary.Servlet
-
This method computes and returns the URL for a given request.
- getUser(int) - Method in class persistlayer.UserPersistImpl
-
This method creates and executes a query
that gathers the entry in the users table
with the given id.
- getUsername() - Method in class objectlayer.User
-
This method id the getter for username.
- getUserRentals(HttpServletRequest, HttpServletResponse) - Method in class boundary.Servlet
-
This method prints all information about a specific user from the
rental_data table.
- getUserRentals(int) - Method in class logiclayer.RentalLogicImpl
-
This method takes a user ID as a parameter.
- getUsers() - Method in class logiclayer.UserLogicImpl
-
This method calls the UserPersistImpl class to gather
a ResultSet of all users in the database.
- getUsers() - Method in class persistlayer.UserPersistImpl
-
This method creates and executes an SQL
query that gathers all entries in the users
table and returns a ResultSet of the results.
- getYear() - Method in class objectlayer.Car
-
This method is the getter for year.


Filtering Requests and Responses
A filter is an object that can transform the header and content (or both) of a request or response. Filters differ from web components in that filters usually do not themselves create a response. Instead, a filter provides functionality that can be “attached” to any kind of web resource. Consequently, a filter should not have any dependencies on a web resource for which it is acting as a filter; this way, it can be composed with more than one type of web resource.
The main tasks that a filter can perform are as follows:
Query the request and act accordingly.
Block the request-and-response pair from passing any further.
Modify the request headers and data. You do this by providing a customized version of the request.
Modify the response headers and data. You do this by providing a customized version of the response.
Interact with external resources.
Applications of filters include authentication, logging, image conversion, data compression, encryption, tokenizing streams, XML transformations, and so on.
You can configure a web resource to be filtered by a chain of zero, one, or more filters in a specific order. This chain is specified when the web application containing the component is deployed and is instantiated when a web container loads the component.
Programming Filters
The filtering API is defined by the Filter, FilterChain, and FilterConfig interfaces in the javax.servlet package. You define a filter by implementing the Filter interface.
Use the @WebFilter annotation to define a filter in a web application. This annotation is specified on a class and contains metadata about the filter being declared. The annotated filter must specify at least one URL pattern. This is done by using the urlPatterns or value attribute on the annotation. All other attributes are optional, with default settings. Use the value attribute when the only attribute on the annotation is the URL pattern; use the urlPatterns attribute when other attributes are also used.
Classes annotated with the @WebFilter annotation must implement the javax.servlet.Filter interface.
To add configuration data to the filter, specify the initParams attribute of the @WebFilter annotation. The initParams attribute contains a @WebInitParam annotation. The following code snippet defines a filter, specifying an initialization parameter:
import javax.servlet.Filter; import javax.servlet.annotation.WebFilter; import javax.servlet.annotation.WebInitParam; @WebFilter(filterName = "TimeOfDayFilter", urlPatterns = {"/*"}, initParams = { @WebInitParam(name = "mood", value = "awake")}) public class TimeOfDayFilter implements Filter { ....
The most important method in the Filter interface is doFilter, which is passed request, response, and filter chain objects. This method can perform the following actions:
Examine the request headers.
Customize the request object if the filter wishes to modify request headers or data.
Customize the response object if the filter wishes to modify response headers or data.
Invoke the next entity in the filter chain. If the current filter is the last filter in the chain that ends with the target web component or static resource, the next entity is the resource at the end of the chain; otherwise, it is the next filter that was configured in the WAR. The filter invokes the next entity by calling the doFilter method on the chain object, passing in the request and response it was called with or the wrapped versions it may have created. Alternatively, the filter can choose to block the request by not making the call to invoke the next entity. In the latter case, the filter is responsible for filling out the response.
Examine response headers after invoking the next filter in the chain.
Throw an exception to indicate an error in processing.
In addition to doFilter, you must implement the init and destroy methods. The init method is called by the container when the filter is instantiated. If you wish to pass initialization parameters to the filter, you retrieve them from the FilterConfig object passed to init.
Programming Customized Requests and Responses
There are many ways for a filter to modify a request or a response. For example, a filter can add an attribute to the request or can insert data in the response.
A filter that modifies a response must usually capture the response before it is returned to the client. To do this, you pass a stand-in stream to the servlet that generates the response. The stand-in stream prevents the servlet from closing the original response stream when it completes and allows the filter to modify the servlet’s response.
To pass this stand-in stream to the servlet, the filter creates a response wrapper that overrides the getWriter or getOutputStream method to return this stand-in stream. The wrapper is passed to the doFilter method of the filter chain. Wrapper methods default to calling through to the wrapped request or response object.
To override request methods, you wrap the request in an object that extends either ServletRequestWrapper or HttpServletRequestWrapper. To override response methods, you wrap the response in an object that extends either ServletResponseWrapper or HttpServletResponseWrapper.
Specifying Filter Mappings
A web container uses filter mappings to decide how to apply filters to web resources. A filter mapping matches a filter to a web component by name or to web resources by URL pattern. The filters are invoked in the order in which filter mappings appear in the filter mapping list of a WAR. You specify a filter mapping list for a WAR in its deployment descriptor by either using NetBeans IDE or coding the list by hand with XML.
If you want to log every request to a web application, you map the hit counter filter to the URL pattern /*.
You can map a filter to one or more web resources, and you can map more than one filter to a web resource. This is illustrated in Figure 15-1, where filter F1 is mapped to servlets S1, S2, and S3; filter F2 is mapped to servlet S2; and filter F3 is mapped to servlets S1 and S2.
Recall that a filter chain is one of the objects passed to the doFilter method of a filter. This chain is formed indirectly by means of filter mappings. The order of the filters in the chain is the same as the order in which filter mappings appear in the web application deployment descriptor.
When a filter is mapped to servlet S1, the web container invokes the doFilter method of F1. The doFilter method of each filter in S1’s filter chain is invoked by the preceding filter in the chain by means of the chain.doFilter method. Because S1’s filter chain contains filters F1 and F3, F1’s call to chain.doFilter invokes the doFilter method of filter F3. When F3’s doFilter method completes, control returns to F1’s doFilter method.
To Specify Filter Mappings Using NetBeans IDE
- Expand the application’s project node in the Project pane.
- Expand the Web Pages and WEB-INF nodes under the project node.
- Double-click web.xml.
- Click Filters at the top of the editor pane.
- Expand the Servlet Filters node in the editor pane.
- Click Add Filter Element to map the filter to a web resource by name or by URL pattern.
- In the Add Servlet Filter dialog, enter the name of the filter in the Filter Name field.
- Click Browse to locate the servlet class to which the filter applies.
You can include wildcard characters so that you can apply the filter to more than one servlet.
- Click OK.
- To constrain how the filter is applied to requests, follow these steps.
- Expand the Filter Mappings node.
- Select the filter from the list of filters.
- Click Add.
- In the Add Filter Mapping dialog, select one of the following dispatcher types:
REQUEST: Only when the request comes directly from the client
ASYNC: Only when the asynchronous request comes from the client
FORWARD: Only when the request has been forwarded to a component (see Transferring Control to Another Web Component)
INCLUDE: Only when the request is being processed by a component that has been included (see Including Other Resources in the Response)
ERROR: Only when the request is being processed with the error page mechanism (see Handling Servlet Errors)
You can direct the filter to be applied to any combination of the preceding situations by selecting multiple dispatcher types. If no types are specified, the default option is REQUEST.


Reads and writes THREDDS Dataset Inventory Catalog XML documents. To read and write XML files, see InvCatalogFactory class.


VIVEKANAND MANCH
Home
Events
Gallery
Video Gallery
Members
VM Library
Fun-Zone
Vivekanand Manch
Video Gallery
Contact Now
3A Workshop Games
Holi Mastiii..
3A Workshop Games
Old Age Home visit
Holi Mastiii...
Mission Panchi
Anurag Ji
Harshul Ji
Holi Mastii...


{% if form.email_address.value == "MissingField" %}
Two Factor Auth Plugin
Internal server error. This incident has been logged.
{% else %}
Please scan this QRCode to add a new soft-token.
Attention!
If you have problems with authentication/verification, make sure your device time is synced with an NTP server and let 30 seconds pass before retrying.


{include file="public/link" /}
{include file="public/header" /}
{include file="public/left" /}
首页
教师管理
列表
密码
提交
{include file="public/footer" /} {include file="public/js" /}


|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xml.sax.helpers.DefaultHandler de.uni.bamberg.wiai.minf.forflow.datagenerator.controller.io.CustomizedParseHandler
public class CustomizedParseHandler
The job of this class is to extend the default handler for SAX events and is an customized event handler class. The SAX API defines a number of events. With this class we make sure to handle those events properly.
Notice, that SAX event are stateless events. In other words, you can't look at an event and figure out its context. The events we use here are:
| Field Summary | |
|---|---|
private boolean |
artefact
indicates when Artefact has been parsed |
private java.util.List<java.lang.String> |
artefactTypes
here are the parsed artefact types. |
private boolean |
content
indicates the Content tag |
private boolean |
currency
tells when SAX parser finds Currency element |
private boolean |
custom
indicates the Custom tag |
private Custom |
customTemp
temporary custom element |
private boolean |
length
indicates the Length tag |
private boolean |
mass
indicates when Mass has been parsed |
private boolean |
math
indicates when Math has been found |
private boolean |
misc
tells that SAX parser has Miscellaneous has found |
private Miscellaneous |
miscTemp
temp misc object |
private boolean |
name
indicates the Name tag |
private boolean |
temperature
tells that Temperature tag has been found |
private boolean |
time
tells when Time tag has been parsed |
private boolean |
type
flag, telling when SAX parser parses Type |
private boolean |
unit
flag, telling when Unit has been parsed. |
private java.util.List<Unit> |
units
holds the different units, that's weight and measurements. |
private Unit |
unitTemp
temporary unit element |
| Constructor Summary | |
|---|---|
CustomizedParseHandler()
sole default constructor |
| Method Summary | |
|---|---|
void |
characters(char[] ch,
int start,
int length)
contains the characters that the parser has found in the source file. |
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String name)
the SAX driver will signal the end of an element and passes some parameters to the method. |
java.util.List<java.lang.String> |
getArtefactType()
gets the set of parsed artefact types. |
java.util.List<Unit> |
getUnits()
gets the parsed set of units found in the startup XML file. |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String name,
org.xml.sax.Attributes attributes)
the SAX driver will signal the start of an element and passes some parameters to the method. |
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
|---|
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.util.List<java.lang.String> artefactTypes
private java.util.List<Unit> units
private boolean artefact
private boolean type
private boolean unit
private boolean currency
private boolean length
private boolean mass
private boolean math
private boolean temperature
private boolean time
private boolean misc
private boolean custom
private boolean name
private boolean content
private Unit unitTemp
private Miscellaneous miscTemp
private Custom customTemp
| Constructor Detail |
|---|
public CustomizedParseHandler()
| Method Detail |
|---|
public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String name, org.xml.sax.Attributes attributes) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
uri
- the namespace URI.localName
- the unqualified name of the elementname
- the qualified name of the element.
This is the namespace prefix combined with the local
name of the element.attributes
- An object, contains all of the attributes for an element.
This object provides several methods to get the name and value
of its attributes, along with the number of attributes the
element has.
org.xml.sax.SAXException
public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String name) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
uri
- the namespace URI.localName
- the unqualified name of the element.name
- the qualified name of the element.
This is the namespace prefix combined with the local name
of the element.
org.xml.sax.SAXException
public void characters(char[] ch, int start, int length) throws org.xml.sax.SAXException
characters
in interface org.xml.sax.ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
ch
- an array of characters found by the parser.
The start & length parameters indicate the portion
of the array that generated this event.start
- the index of the first character in the array that
belongs to this event.length
- the number of characters in this event.
org.xml.sax.SAXException
public java.util.List<java.lang.String> getArtefactType()
public java.util.List<Unit> getUnits()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |


-
MIT Students Battle State's Demand for Their Bitcoin Miner's Source Code | ...
www.wired.com
Four MIT students behind an award-winning Bitcoin mining tool will face off against New Jersey state authorities in court today when they attempt to ...
-
Entrepreneurs anonymous
www.economist.com
SEVEN years ago Joe Jones (not his real name) left his job with a big NASDAQ-listed company to strike out on his own.
-
Apple's "warrant canary" disappears, suggesting new Patriot Act demands
gigaom.com
Apple included language in its first Transparency Report to say that it had not been subject to a Section 215 Patriot Act request. That language is ...
-
Ex-Employees Say Home Depot Left Data Vulnerable
www.nytimes.com
Before a major data breach, Home Depot was slow to raise its defenses against hackers despite alarms from security experts as far back as 2008.
-
SD CrowdFunding Round One
freedom.press
SecureDrop is an open-source whistleblower submission system any news organization can install to securely receive information and documents from ...
-
Hackers Are Already Using the Shellshock Bug to Launch Botnet Attacks | ...
www.wired.com
With a bug as dangerous as the "shellshock" security vulnerability discovered yesterday, it takes less than 24 hours to go from proof-of-concept to ...
-
Eric Holder To Step Down As Attorney General
www.npr.org
The nation's first black U.S. attorney general had a tumultuous tenure marked by civil rights advances, national security threats, sentencing reforms ...
-
Miss a Payment? Good Luck Moving That Car - NYTimes.com
dealbook.nytimes.com
The thermometer showed a 103.5-degree fever, and her 10-year-old’s asthma was flaring up. Mary Bolender, who lives in Las Vegas, needed to get her ...
-
The Official PayPal 14 Homepage
thepaypal14.com
On December 4th, The PayPal14 signed a plea agreeing to pay $86,000 (collectively) in restitution to PayPal. This leaves each defendant with about ...
-
Known Unknowns Fund | Courage Foundation
couragefound.org
Keeps sources protected and free ($200k of prevention is worth $2m of cure)
-
Press release: Known Unknowns Fund launched to protect alleged sources ...
couragefound.org
Courage, the international organisation dedicated to the protection of truthtellers, today announces the launch of the Known Unknowns Fund to support ...
-
Station Crew Docks Dragon Capsule to ISS
www.nasa.gov
International Space Station crewmembers successfully berthed the SpaceX CRS-4 Dragon cargo craft (seen left in a screen grab of NASA Television ...
-
Israel’s N.S.A. Scandal - NYTimes.com
www.nytimes.com
WASHINGTON — IN Moscow this summer, while reporting a story for Wired magazine , I had the rare opportunity to hang out for three days with Edward J. ...
-
New smartphone app gives sight to the blind | Reuters
in.reuters.com
SAN FRANCISCO (Reuters) - Jonathan Mosen, who has been blind since birth, spent his evening snapping photos of packages in the mail, his son's school ...
-
Illinois judge rules police entitled to Swat raid over parody Twitter ...
www.theguardian.com
Swat team burst into Peoria house looking for source of parody Twitter account that had upset town’s mayor
-
How Many Women are in Prison for Defending Themselves Against Domestic ...
bitchmagazine.org
All too often, women who fight back against abuse wind up in jail.
-
The Secret Goldman Sachs Tapes
www.bloombergview.com
The public doesn't seem to understand just how dysfunctional our financial regulatory system is, Michael Lewis writes. That may change today with a ...
-
Shellshock DHCP RCE Proof of Concept -
www.trustedsec.com
DHCP bash shellshock POC: 1) Just about any DHCP string value should work for the exploit. Value 114 is URL, which is a string and should be reliable ...
-
Police officers using controversial network to keep tabs on motorists ...
www.autoblog.com
According to The Washington Post, law enforcement officers across the country have been using a private intelligence network to compile and share ...
-
First U.S. Stealth Jet Attack on Syria Cost More Than Indian Mission to ...
www.thedailybeast.com
F-22 Raptor stealth fighters were needed in case the Syrians used their sophisticated air defenses. But Raptors don't come cheap.
-
Yinette sur Twitter : "https://t.co/CO9AOtHglO Shit is real now. First ...
twitter.com
Mot de passe oublié ? Vous utilisez déjà Twitter via SMS ?
-
New Software Bug May Be Worse Than 'Heartbleed'
www.huffingtonpost.com
By Jim Finkle BOSTON (Reuters) - A newly discovered security bug in a widely used piece of Linux software, known as "Bash," could pose a bigger ...
-
Troy Hunt: Everything you need to know about the Shellshock Bash bug
www.troyhunt.com
Observations, musings and conjecture about the world of software and technology
-
ASIO to hide your freedom so the baddies can't get it
www.theage.com.au
The news of the day, reduced to a cranky rant by Andrew P Street.
-
Spies given new powers under the toughest anti-terror laws ever seen
www.dailymail.co.uk
A bill passed in the Australian senate on Thursday evening means ASIO operatives will have unprecedented powers to monitor people on various devices ...
-
Terror laws clear Senate, enabling entire Australian web to be monitored ...
www.smh.com.au
Australian spies will soon have the power to monitor the entire Australian internet with just one warrant, and journalists and whistleblowers will ...
-
Senate passes new counter-terrorism laws giving stronger powers to ...
www.abc.net.au
Attorney-General George Brandis said the national security agencies had supported the new laws.


--- layout: default footerlogos: yes title: "Agenda – Day 1" lang: en ---
28.04.2017
Friday at BMVI
We are excited to receive you at the Federal Ministry of Transport and Digital Infrastructure on the first day.
| 09:00 | Registration |
| Welcome Christian Heise, Chairman of the board, Open Knowledge Foundation Deutschland |
|
| Opening Dorothee Bär, Parliamentary State Secretary to the Federal Minister for Transport and Digital Infrastructure |
|
| »Global Challenges for Open Data, Transparency and Civic Tech« The challenges are manifold - whether socially, economically or politically. OpenData, transparency and Civic Tech open up completely new possibilities for us to solve these challenges. |
|
|
Anne Berner, Minister of Transport and Communications, Finland (tbc) N.N. |
|
| Moderation Julia Kloiber, Project Lead, Code for Germany and Prototype Fund, Open Knowledge Foundation Deutschland |
|
| Break | |
| Civic Tech Inspirations The Civic Tech Community grows year after year in Germany. It presents your most exciting projects and most useful applications here. München Transparent – Tobias Hößl luftdaten.info – Jan Lutz Oparl – Ernesto Ruge Gentrimap – Melanie Thewes |
|
| Moderation Elisa Lindinger, Project Lead, Prototype Fund, Open Knowledge Foundation Deutschland |
|
| DataRun: Converting Mobility Concepts with Open Data The Civic Tech Community grows year after year in Germany. It presents your most exciting projects and most useful applications here. Truckoo – Marko Jeftic waterRUNers – Alexander Schmid & Robert R. Biene FreeMobility – Valentin Jahn | |
| Moderation Alexandra Mause, Legal Secretary, Federal Ministry of Transport and Digital Infrastructure |
|
| Lunchbreak | |
| »Dear Data« Stefanie Posavec, Information designer, Co-author of Dear Data |
|
| »Civil society as a driver for open data« Governmental Authorities publish data that provides citizens with key information and enable the development of useful applications, benefiting not only the society, but administrations themselves. The lectures illustrate how constructive interplay between civil society and public administration can produce Open Data projects. Fiona Krakenbürger, Community Organizer Code for Germany, Open Knowledge Foundation Deutschland Maxi Richt, Developer and Project Lead, kleineAnfragen.de, Open Knowledge Foundation Germany Arne Semsrott, Project Lead, FragdenStaat, Open Knowledge Foundation Deutschland |
|
| Coffeebreak | |
| »Data-Storytelling for Social Change«
Governmental Authorities publish data that provides citizens with key information and enable the development of useful applications, benefiting not only the society, but administrations themselves. The lectures illustrate how constructive interplay between civil society and public administration can produce Open Data projects. |
|
| Talk »Fighting human rights atrocities with data« Milena Marin, Senior Innovations Campaigner, Amnesty International |
|
| Talk »Making knowledge accessible to all« Vanessa Wormer, Data Journalist, Süddeutsche Zeitung |
|
| Moderation Stefan Wehrmeyer, Data Journalist, Correctiv.org |
|
| Break | |
| »Promoting Data Literacy« The German School of Data discusses data literacy approaches and digital NGO projects with representatives from the international School of Data Network. |
|
|
Bardhyl Jashari
Executive Director, Metamorphosis Foundation, Macedonia Sylvia Fredriksson Designer-Researcher at the Cité du Design in Sainte-Etienne |
|
| Moderation Helene Hahn, Poject Lead, School of Data, Open Knowledge Foundation Deutschland |
|
|
Keynote »Responsible Data« Zara Rahman, Research Lead, The Engine Room |
|
At the end of the first day we want to use the opportunity that so many smart minds with experience in open data are gathered at in one place and ask you to think of ideas on how to increase Open Data in Germany. These ideas can be further discussed on the second day.
Program for the second day


{% extends "messages/email/base.html" %}
{% load i18n %}
{% block content %}{% blocktrans with title=source.page.specific.title %}We appreciate your {{ title }} application submission to the {{ ORG_LONG_NAME }}. We will review and reply to your submission as quickly as possible.
Our reply will have the next steps for your {{ title }} application. You can find more information about our support options, review process and selection criteria on our website.{% endblocktrans %}
{% with email_context=source.page.specific %}{{ email_context.confirmation_text_extra }}{% endwith %}
{% trans "Project name" %}: {{ title }}
{% trans "Contact name" %}: {{ source.user.get_full_name }}
{% trans "Contact email" %}: {{ source.user.email }}{% endblock %}


--- layout: page title: "About" description: "I try Science. At least thats what I think." header-img: "img/about-bg.jpg" ---
I was taught Machine Learning @ Georgia Institute of Technology.
Currently working as a Applied Researcher at eBay on the Search Data Science team.
I am a co-organizer for the Bay-Area-Search meetup where bunch of Search geeks meet every 4th Wednesday of the month to discuss all things Search. We have some badass speakers usually.
I am interested in Data Science, Machine Learning, Recommender Systems, Graph algorithms and Functional programming languages.
When I am away from my computer, I will be either at the local Climbing wall or playing Cricket for the Stanford Cricket Club.


vignettes/parsing-an-sps-or-sas-file.Rmd
parsing-an-sps-or-sas-file.Rmd
The parse_setup
function is what this packages uses to convert the .sps or .sas setup files into an usable format for R.
This will return a list of length 3 containing the objects “setup”, “value_labels”, and “missing”.
# Using the example .sps setup file included with the package
sps_name <- system.file("extdata", "example_setup.sps",
package = "asciiSetupReader")
example <- asciiSetupReader::parse_setup(sps_name)
The first object in the returned list is a data.frame with 4 columns and as many rows as there are columns in the data. The “column_number” column is the non-descriptive name of the column while the “column_name” is the descriptive name of the column. In read_ascii_setup
, setting use_clean_names
to TRUE will set the data column names to the “column_name” names, otherwise it will remain as the “column_number” names. Since the data is in fixed-width format, you need to know the location of each column. The “begin” and “end” columns in this object provide that location for each column in the data.
head(example$setup)
#> column_number column_name begin end
#> 1 V1 IDENTIFIER_CODE 1 1
#> 2 V2 NUMERIC_STATE_CODE 2 3
#> 3 V3 ORI_CODE 4 10
#> 4 V4 GROUP 11 12
#> 5 V5 GEOGRAPHIC_DIVISION 13 13
#> 6 V6 YEAR 14 17
To make the data more compact, the data often provides values that represent a label. For example, in a column about participant’s gender it may only include “M” and “F” which stands for “Male” and “Female”. The setup file will say the M = Male and F = Female. The value labels tell us that we need to convert M to Male in the given column. This is a list of named vectors indicating the value and its corresponding label. If there are no value labels this object will be NULL.
example$value_labels[1:3]
#> $V1
#> SHR master file
#> "6"
#>
#> $V2
#> Alabama Arizona Arkansas California Colorado
#> "1" "2" "3" "4" "5"
#> Connecticut Delaware Washington, D.C Florida Georgia
#> "6" "7" "8" "9" "10"
#> Idaho Illinois Indiana Iowa Kansas
#> "11" "12" "13" "14" "15"
#> Kentucky Louisiana Maine Maryland Massachusetts
#> "16" "17" "18" "19" "20"
#> Michigan Minnesota Mississippi Missouri Montana
#> "21" "22" "23" "24" "25"
#> Nebraska Nevada New Hampshire New Jersey New Mexico
#> "26" "27" "28" "29" "30"
#> New York North Carolina North Dakota Ohio Oklahoma
#> "31" "32" "33" "34" "35"
#> Oregon Pennsylvania Rhode Island South Carolina South Dakota
#> "36" "37" "38" "39" "40"
#> Tennessee Texas Utah Vermont Virginia
#> "41" "42" "43" "44" "45"
#> Washington West Virginia Wisconsin Wyoming Alaska
#> "46" "47" "48" "49" "50"
#> Hawaii Canal Zone Puerto Rico American Samoa Guam
#> "51" "52" "53" "54" "55"
#> Virgin Islands
#> "62"
#>
#> $V4
#> Possessions ALL cit 250,000 + Cit 100,000-249,999
#> "0" "1" "2"
#> Cit 50,000-99,999 Cit 25,000-49,999 Cit 10,000-24,999
#> "3" "4" "5"
#> Cit 2,500-9,999 Cit < 2,500 Non-MSA co.
#> "6" "7" "8"
#> MSA counties Cit 1,000,000 + Cit 500,000-999,999
#> "9" "1A" "1B"
#> Cit 250,000-499,999 Non-MSA co. 100,000 + Non-MSA co. 25,000-99,999
#> "1C" "8A" "8B"
#> Non-MSA co. 10,000-24,999 Non-MSA co. < 10,000 Non-MSA St Police
#> "8C" "8D" "8E"
#> MSA co. 100,000 + MSA co. 25,000-99,999 MSA co. 10,000-24,999
#> "9A" "9B" "9C"
#> MSA co. < 10,000 MSA St Police
#> "9D" "9E"
There is one named vector for each column in the data that has value labels. We can see how many there are using length()
.
length(example$value_labels)
#> [1] 141
The final object in the list a data.frame with two columns and as many rows as there are missing values in the data. The column “variable” indicates the column in the data and the column “values” says that the value in that row is to be replaced with NA. For example, if there are 10 columns in the data with missing values and each column has two missing values (e.g. -8 and -9) there will be 20 rows in this data.frame. A missing value is when the data includes a value that should be replaced with NA. For example, data often includes negative values such as -8 or -9 mean that that value is missing and should be NA. If there are no missing values this object will be NULL.
head(example$missing)
#> NULL


Pew Pew ...
The Amazon Fire TV Blaster blasts infrared commands if you couldn't already
This 2-inch box fills the gap between Fire TV Sticks and the new Fire TV Cube.
by Phil NickinsonAmazon today unceremoniously announced (really it just slapped up a product page) the new Fire TV Blaster. It's an "IR blaster" that lets you control a TV via your voice — but it also requires you to also have another Amazon device connected to your TV.
Here's the gist: Say you have some part of your home entertainment system that you'd like to control with your voice, but it currently doesn't allow for that. A cable box is a perfect example. You tell the Fire TV Blaster what to do — play or pause or change volume or whatever — and it'll shoot infrared commands to the corresponding device.
But it doesn't actually do this on its own. It's an IR blaster, not an Alexa-enabled device with microphones for listening for your commands. So you'll need either a Fire TV Stick or Fire TV Stick 4K, or a third-generation Amazon Fire TV (that's the pendant), or any Amazon Echo speaker or smart display.
So it goes like this: You issue the command. The Fire TV Stick or Echo speaker processes that command, and tells the Fire TV Blaster to shoot the infrared beam to the device.
Yeah, it's a little complicated. And it's something that a new Amazon Fire TV Cube would do out of the box. But that's kind of the point here. The Fire TV Blaster is just $35. So if you already have a Fire TV Stick of some kind, or an Amazon Echo Speaker, you don't need to spend four times as much on a Fire TV Cube, which has its own infrared emitters.
It's a little clunky, yeah. (Even though the device itself is just a couple inches tall.) But it also fills a niche for Amazon.
Infrared emitter
Fire TV Blaster
It solves a particular problem
If your Amazon Fire TV setup is lacking any sort of infrared control that you desparately need, this'll solve that problem at under $40.
We may earn a commission for purchases using our links. Learn more.


+ create a hacks project + build mvc scaffold + setup hacks app configuration + automatically install extensions
+ implement a full crud restful api as well as search and pagination stuff
+ boot the debug server:)