| Package | Description |
|---|---|
| io.swagger | |
| io.swagger.api | |
| io.swagger.api.calc | |
| io.swagger.api.calc.test | |
| io.swagger.model | |
| mapping |
This package contains the mapping layer.
|
| mapping.get |
This package contains the functionality to read values
retrieved from FHEM via 'jsonlist2' command or websocket
message and map it to models.
|
| mapping.get.functionMapper |
This package provides functionality to parse FHEM values to function models (OnOff, Dimmer, ...).
|
| mapping.set |
This package provides the functionality to send FHEM commands to FHEM based on retrieved function object at 'PATCH /devices' endpoint.
|
| Class and Description |
|---|
| Device
Device
|
| Function
Base Class for all functions
|
| Class and Description |
|---|
| Devices
Devices
|
| Filter
Filter
|
| Ids
Ids
|
| Patcher
Patcher
|
| Class and Description |
|---|
| Device
Device
|
| Filter
Filter
|
| Function
Base Class for all functions
|
| Class and Description |
|---|
| Device
Device
|
| Filter
Filter
|
| Function
Base Class for all functions
|
| Class and Description |
|---|
| ColorDimmer
Generic color dimmer using the hsv color model
|
| ColorTemperature
Generic color temperature
|
| Device
Device
|
| Devices
Devices
|
| Dimmer
Generic slider switch
|
| Error
Error
|
| Filter
Filter
|
| Function
Base Class for all functions
|
| Ids
Ids
|
| OnOff
Generic On-Off switch
|
| Patcher
Patcher
|
| Temperature
Generic temperature
|
| Class and Description |
|---|
| Device
Device
|
| Function
Base Class for all functions
|
| Class and Description |
|---|
| Device
Device
|
| Class and Description |
|---|
| Device
Device
|
| Function
Base Class for all functions
|
| Class and Description |
|---|
| Device
Device
|
| Function
Base Class for all functions
|


Toggle navigation
Home
about
howtouse
support
(current)
register
forgot password
Support-Ticket
Geschlecht
Weiblich
Männlich
Enter...


Return to main page
THIS PROJECT IS STILL UNDER DEVELOPMENT
Source code available at GitHub
This example uses old classes for sample generation. They will be deprecated soon!
This example is developer's sandbox for carrier generate and recovery. I was testing here
ability to restore carrier's phase and power from raw data samples that contains couple of others
frequencies. This example will have more features and description in future releases.
Remember to init first!!


Tu napisac cos
The kit comes with three pre-built pages to help you get started faster.
You can change the text and images and you're good to go. More importantly, looking at them
will give you a picture of what you can built with this powerful Bootstrap 4 ui kit.


SemiSupModel
-
class
packnet_sfm.models.SemiSupModel.
SemiSupModel
(supervised_loss_weight=0.9, **kwargs)[source] Bases:
packnet_sfm.models.SelfSupModel.SelfSupModel
Model that inherits a depth and pose networks, plus the self-supervised loss from SelfSupModel and includes a supervised loss for semi-supervision.
- Parameters
supervised_loss_weight (float) – Weight for the supervised loss
kwargs (dict) – Extra parameters
-
forward
(batch, return_logs=False, progress=0.0)[source] Processes a batch.
- Parameters
batch (dict) – Input batch
return_logs (bool) – True if logs are stored
progress – Training progress percentage
- Returns
output – Dictionary containing a “loss” scalar and different metrics and predictions for logging and downstream usage.
- Return type
dict
-
property
logs
Return logs.
-
supervised_loss
(inv_depths, gt_inv_depths, return_logs=False, progress=0.0)[source] Calculates the supervised loss.
- Parameters
inv_depths (torch.Tensor [B,1,H,W]) – Predicted inverse depth maps from the original image
gt_inv_depths (torch.Tensor [B,1,H,W]) – Ground-truth inverse depth maps from the original image
return_logs (bool) – True if logs are stored
progress – Training progress percentage
- Returns
output – Dictionary containing a “loss” scalar a “metrics” dictionary
- Return type
dict


|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensocial.Client
public class Client
OpenSocial RESTful client supporting both the RPC and REST protocols defined in the OpenSocial specification as well as two- and three-legged OAuth for authentication. This class handles the transmission of requests to OpenSocial containers such as orkut and MySpace. Typical usage:
Client client = new Client(new OrkutProvider(), new OAuth2LeggedScheme(ORKUT_KEY, ORKUT_SECRET, ORKUT_ID)); Response response = client.send(PeopleService.getViewer());The send method either returns a single
Response
or a Map
of
Response objects mapped to ID strings. The data returned from the container
can be extracted from these objects.
| Constructor Summary | |
|---|---|
Client(Provider provider,
AuthScheme authScheme)
Creates and returns a new Client associated with the passed
Provider and AuthScheme . |
| Method Summary | |
|---|---|
AuthScheme |
getAuthScheme()
Returns the associated AuthScheme . |
Provider |
getProvider()
Returns the associated Provider . |
java.util.Map<java.lang.String,Response> |
send(java.util.Map<java.lang.String,Request> requests)
Submits the passed Map of Request s to the associated
Provider and returns the container's response data as a Map of
Response objects mapped to the same IDs as the passed requests. |
Response |
send(Request request)
Submits the passed Request to the associated Provider and
returns the container's response data as a Response object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Client(Provider provider, AuthScheme authScheme)
Client
associated with the passed
Provider
and AuthScheme
.
provider
- Provider to associate with new ClientauthScheme
- AuthScheme to associate with new Client| Method Detail |
|---|
public Provider getProvider()
Provider
.
public AuthScheme getAuthScheme()
AuthScheme
.
public Response send(Request request) throws RequestException, java.io.IOException
Request
to the associated Provider
and
returns the container's response data as a Response
object.
request
- Request object (typically returned from static methods in
service classes) encapsulating all request data including
endpoint, HTTP method, and any required parameters
RequestException
- if the passed request cannot be serialized, the
container returns an error code, or the response
cannot be parsed
java.io.IOException
- if an I/O error prevents a connection from being
opened or otherwise causes request transmission
to failpublic java.util.Map<java.lang.String,Response> send(java.util.Map<java.lang.String,Request> requests) throws RequestException, java.io.IOException
Map
of Request
s to the associated
Provider
and returns the container's response data as a Map of
Response
objects mapped to the same IDs as the passed requests. If
the associated provider supports the OpenSocial RPC protocol, only one
HTTP request is sent; otherwise, one HTTP request is executed per
container request.
requests
- Map of Request objects (typically returned from static
methods in service classes) to ID strings; each object
encapsulates the data for a single container request
such as fetching the viewer or creating an activity.
RequestException
- if the passed request cannot be serialized, the
container returns an error code, or the response
cannot be parsed
java.io.IOException
- if an I/O error prevents a connection from being
opened or otherwise causes request transmission
to fail
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |


An SNTP v4 client (RFC4330) for node. Simpy connects to the NTP or SNTP server requested and returns the server time
along with the roundtrip duration and clock offset. To adjust the local time to the NTP time, add the returned t
offset
to the local time.
var Sntp = require('sntp');
// All options are optional
var options = {
host: 'nist1-sj.ustiming.org', // Defaults to pool.ntp.org
port: 123, // Defaults to 123 (NTP)
resolveReference: true, // Default to false (not resolving)
timeout: 1000 // Defaults to zero (no timeout)
};
// Request server time
Sntp.time(options, function (err, time) {
if (err) {
console.log('Failed: ' + err.message);
process.exit(1);
}
console.log('Local clock is off by: ' + time.t + ' milliseconds');
process.exit(0);
});
If an application needs to maintain continuous time synchronization, the module provides a stateful method for querying the current offset only when the last one is too old (defaults to daily).
// Request offset once
Sntp.offset(function (err, offset) {
console.log(offset); // New (served fresh)
// Request offset again
Sntp.offset(function (err, offset) {
console.log(offset); // Identical (served from cache)
});
});
To set a background offset refresh, start the interval and use the provided now() method. If for any reason the client fails to obtain an up-to-date offset, the current system clock is used.
var before = Sntp.now(); // System time without offset
Sntp.start(function () {
var now = Sntp.now(); // With offset
Sntp.stop();
});


Typechecklib
Program
Enter an expression here.
Type check
Type check result
Derivation Tree
Constraint Solver
‹
›
×
Information


|
Loads the complete x87 FPU operating environment from memory into the FPU registers. The source operand specifies the first byte of the operating-environment data in memory. This data is typically written to the specified memory location by a FSTENV or FNSTENV instruction.
The FPU operating environment consists of the FPU control word, status word, tag word, instruction pointer, data pointer, and last opcode. Figures 8-9 through 8-12 in the IA-32 Intel Architecture Software Developer's Manual, Volume 1, show the layout in memory of the loaded environment, depending on the operating mode of the processor (protected or real) and the current operand-size attribute (16-bit or 32-bit). In virtual-8086 mode, the real mode layouts are used.
The FLDENV instruction should be executed in the same operating mode as the corresponding FSTENV/FNSTENV instruction.
FLDENV: Load x87 FPU Environment (x86 Instruction Set Reference)
If a page or limit fault occurs during the execution of this instruction, the state of the x87 FPU registers as seen by the fault handler may be different than the state being loaded from memory.
In such situations, the fault handler should ignore the status of the x87 FPU registers, handle the fault, and return. The FLDENV instruction will then complete the loading of the x87 FPU registers with no resulting context inconsistency.
|


@(team: model.points.PlayerTeam)(cyclists: List[model.points.CyclistRace])(race: model.races.Race)(player: model.users.Player) @skeleton("Team for " + race.getName().toCamelCase() + " " + race.getYear(),"playerteams","playerteams,sprintf.min") {


ALSACTL
Section: User Commands (1)Updated: 15 May 2001
Index Return to Main Contents
NAME
alsactl - advanced controls for ALSA soundcard driverSYNOPSIS
alsactl [options] [store|restore|init] <card # or id or device>
DESCRIPTION
alsactl is used to control advanced settings for the ALSA soundcard drivers. It supports multiple soundcards. If your card has features that you can't seem to control from a mixer application, you have come to the right place.COMMANDS
store saves the current driver state for the selected soundcard to the configuration file.
restore loads driver state for the selected soundcard from the configuration file. If restoring fails (eventually partly), the init action is called.
init tries to initialize all devices to a default state. If device is not known, error code 99 is returned.
If no soundcards are specified, setup for all cards will be saved or loaded.
OPTIONS
- -h, --help
-
Help: show available flags and commands.
- -d, --debug
-
Use debug mode: a bit more verbose.
- -v, --version
-
Print alsactl version number.
- -f, --file
-
Select the configuration file to use. The default is /etc/asound.state.
- -F, --force
-
Used with restore command. Try to restore the matching control elements
as much as possible. This option is set as default now.
- -g, --ignore
-
Used with store and restore commands. Do not show 'No soundcards found'
and do not set an error exit code when soundcards are not installed.
- -P, --pedantic
-
Used with restore command. Don't restore mismatching control elements.
This option was the old default behavior.
- -I, --no-init-fallback
-
Don't initialize cards if restore fails. Since version 1.0.18,
alsactl tries to initialize the card with the restore operation
as default. But this can cause incompatibility with the older version.
The caller may expect that the state won't be touched if no state file
exists. This option takes the restore behavior back to the older
version by suppressing the initialization.
- -r, --runstate
-
Save restore and init state to this file. The file will contain only errors.
Errors are appended with the soundcard id to the end of file.
- -R, --remove
-
Remove runstate file at first.
- -E, --env #=#
-
Set environment variable (useful for init action or you may override
ALSA_CONFIG_PATH to read different or optimized configuration - may be
useful for "boot" scripts).
- -i, --initfile #=#
-
The configuration file for init. By default, PREFIX/share/alsa/init/00main
is used.
FILES
/etc/asound.state (or whatever file you specify with the -f flag) is used to store current settings for your soundcards. The settings include all the usual soundcard mixer settings. More importantly, alsactl is capable of controlling other card-specific features that mixer apps usually don't know about.The configuration file is generated automatically by running alsactl store. Editing the configuration file by hand may be necessary for some soundcard features (e.g. enabling/disabling automatic mic gain, digital output, joystick/game ports, some future MIDI routing options, etc).
SEE ALSO
amixer(1), alsamixer(1), aplay(1)BUGS
None known.AUTHOR
alsactl is by Jaroslav Kysela<EMAIL_ADDRESS>and Abramo Bagnara<EMAIL_ADDRESS>This document is by Paul Winkler<EMAIL_ADDRESS>Index
This document was created by man2html, using the manual pages.
Time: 05:29:01 GMT, December 24, 2015


ImageQuiz
level
Memorize the name of each face
Start the Game !
My name is
arrow_left
Prev
arrow_right
Next


--- layout: post title: Pumpkin Streusel Breakfast Bars date: 2010-02-24 18:16:05.000000000 -05:00 type: post published: true status: publish categories: - breakfast & brunch - cookies - recipes tags: - cinnamon - fat free - healthy - oatmeal - pumpkin - pumpkin poppers - pumpkin streusel breakfast bars - recipe - streusel - vegan meta: _oembed_3c43f84e1da5a19e3ec6a6861f9a096b: author: login: sophie email<EMAIL_ADDRESS>display_name: Pika first_name: '' last_name: '' ---
I’m getting a little tired of eating oatmeal every morning so I decided to shake it up. I created these pumpkin-filled bars, inspired by the ones found here. The verdict? No more boring breakfast! These are quite healthy, vegan and fat free, made with whole wheat, pumpkin, and oats, and are more of a breakfast than dessert bar. The crust is soft, sweet, and cinnamony (so don’t expect a shortbread texture) and the topping doesn’t have the traditional crunchy “streusel” texture (since there’s no oil or butter) but it is delicious nonetheless.
Pumpkin Streusel Breakfast Bars (makes 9 squares)
* I was lazy and used a 6x6” Pyrex pan, so I made pumpkin pie poppers with the leftovers.


TSB to close 82 branches across the UK
The move involves up to 400 staff
by Neil ShawUp to 400 jobs could be at risk as more than 80 TSB branches across the country are set to close their doors next year, the bank announced in another blow to the UK high street.
TSB said that it was cutting back its locations to refocus on profits, and will replace workers' tasks with automated processes.
As part of the plan, 82 branches will be shut next year.
Staff will be told if their bank is affected in the coming days, and a full list of sites slated for closure will be published on Thursday.
Around 300 to 400 members of staff are understood to be employed in these branches.
TSB said it will try to find new roles for them elsewhere in the group.
They are understood to be the bank's less busy branches.
It is part of a plan to save around £100 million by 2022, and turn a profit of between £130 million and £140 million.
"The plan we're sharing today involves some difficult decisions, but it sets TSB up to succeed in the future," said TSB boss Debbie Crosbie, as she set out the three-year plan.
"Taken together, these changes will help us to serve more customers, better, for the long-term."
It also includes a push to invest another £120 million in digital products.
The bank said it expects 70% to 80% of its sales to come from digital channels by 2022, up from 46% in September this year.
It comes in a tough retail environment for British banks, with high streets suffering while online-only challengers are tempting customers with new types of accounts.
TSB said it had around twice the number of stores per 10,000 customers in 2018 as the average in the UK.
"With a trusted brand, modern platform, and national presence, TSB is well placed to deliver - but we need to make changes to enable us to compete," Ms Crosbie said.
"Our new strategy positions TSB to succeed in a challenging external environment at a time when we know customers want something different and better from their bank."
Gareth Shaw, Head of Money, Which?, said: "TSB’s plan to close almost one in five of its branches will be a huge blow to many customers and goes against what millions of consumers say they want from their bank. Our research has found two thirds of people would find life difficult without convenient access to a branch, while 11 million people lack the confidence to carry out basic banking tasks online.
"Bank customers are still enduring almost daily IT glitches, which is why everyday banking services and access to cash – which is a vital back-up – must be protected. The next government should urgently intervene with legislation that protects access to cash for as long as it is needed."


 ## S4 method for signature 'Column' n_distinct(x, ...) ## S4 method for signature 'Column' collect_list(x) ## S4 method for signature 'Column' collect_set(x) ## S4 method for signature 'Column' grouping_bit(x) ## S4 method for signature 'Column' grouping_id(x, ...)
x |
Column to compute on. |
... |
additional argument(s). For example, it could be used to pass additional Columns. |
y, na.rm, use |
currently not used. |
rsd |
maximum relative standard deviation allowed (default = 0.05). |
approx_count_distinct
: Returns the approximate number of distinct items in a group.
approxCountDistinct
: Returns the approximate number of distinct items in a group.
kurtosis
: Returns the kurtosis of the values in a group.
max
: Returns the maximum value of the expression in a group.
mean
: Returns the average of the values in a group. Alias for avg
.
min
: Returns the minimum value of the expression in a group.
sd
: Alias for stddev_samp
.
skewness
: Returns the skewness of the values in a group.
stddev
: Alias for std_dev
.
stddev_pop
: Returns the population standard deviation of the expression in a group.
stddev_samp
: Returns the unbiased sample standard deviation of the expression in a group.
sum
: Returns the sum of all values in the expression.
sumDistinct
: Returns the sum of distinct values in the expression.
var
: Alias for var_samp
.
var_pop
: Returns the population variance of the values in a group.
var_samp
: Returns the unbiased variance of the values in a group.
countDistinct
: Returns the number of distinct items in a group.
n_distinct
: Returns the number of distinct items in a group.
collect_list
: Creates a list of objects with duplicates.
Note: the function is non-deterministic because the order of collected results depends
on the order of the rows which may be non-deterministic after a shuffle.
collect_set
: Creates a list of objects with duplicate elements eliminated.
Note: the function is non-deterministic because the order of collected results depends
on the order of the rows which may be non-deterministic after a shuffle.
grouping_bit
: Indicates whether a specified column in a GROUP BY list is aggregated or
not, returns 1 for aggregated or 0 for not aggregated in the result set. Same as GROUPING
in SQL and grouping
function in Scala.
grouping_id
: Returns the level of grouping.
Equals to
grouping_bit(c1) * 2^(n - 1) + grouping_bit(c2) * 2^(n - 2) + ... + grouping_bit(cn)
.
approx_count_distinct(Column) since 3.0.0
approxCountDistinct(Column) since 1.4.0
kurtosis since 1.6.0
max since 1.5.0
mean since 1.5.0
min since 1.5.0
sd since 1.6.0
skewness since 1.6.0
stddev since 1.6.0
stddev_pop since 1.6.0
stddev_samp since 1.6.0
sum since 1.5.0
sumDistinct since 1.4.0
var since 1.6.0
variance since 1.6.0
var_pop since 1.5.0
var_samp since 1.6.0
approx_count_distinct(Column, numeric) since 3.0.0
approxCountDistinct(Column, numeric) since 1.4.0
countDistinct since 1.4.0
n_distinct since 1.4.0
collect_list since 2.3.0
collect_set since 2.3.0
grouping_bit since 2.3.0
grouping_id since 2.3.0
Other aggregate functions:
avg()
,
corr()
,
count()
,
cov()
,
first()
,
last()
## Not run:
##D # Dataframe used throughout this doc
##D df <- createDataFrame(cbind(model = rownames(mtcars), mtcars))
## End(Not run)
## Not run:
##D head(select(df, approx_count_distinct(df$gear)))
##D head(select(df, approx_count_distinct(df$gear, 0.02)))
##D head(select(df, countDistinct(df$gear, df$cyl)))
##D head(select(df, n_distinct(df$gear)))
##D head(distinct(select(df, "gear")))
## End(Not run)
## Not run:
##D head(select(df, mean(df$mpg), sd(df$mpg), skewness(df$mpg), kurtosis(df$mpg)))
## End(Not run)
## Not run:
##D head(select(df, avg(df$mpg), mean(df$mpg), sum(df$mpg), min(df$wt), max(df$qsec)))
##D
##D # metrics by num of cylinders
##D tmp <- agg(groupBy(df, "cyl"), avg(df$mpg), avg(df$hp), avg(df$wt), avg(df$qsec))
##D head(orderBy(tmp, "cyl"))
##D
##D # car with the max mpg
##D mpg_max <- as.numeric(collect(agg(df, max(df$mpg))))
##D head(where(df, df$mpg == mpg_max))
## End(Not run)
## Not run:
##D head(select(df, sd(df$mpg), stddev(df$mpg), stddev_pop(df$wt), stddev_samp(df$qsec)))
## End(Not run)
## Not run:
##D head(select(df, sumDistinct(df$gear)))
##D head(distinct(select(df, "gear")))
## End(Not run)
## Not run:
##D head(agg(df, var(df$mpg), variance(df$mpg), var_pop(df$mpg), var_samp(df$mpg)))
## End(Not run)
## Not run:
##D df2 = df[df$mpg > 20, ]
##D collect(select(df2, collect_list(df2$gear)))
##D collect(select(df2, collect_set(df2$gear)))
## End(Not run)
## Not run:
##D # With cube
##D agg(
##D cube(df, "cyl", "gear", "am"),
##D mean(df$mpg),
##D grouping_bit(df$cyl), grouping_bit(df$gear), grouping_bit(df$am)
##D )
##D
##D # With rollup
##D agg(
##D rollup(df, "cyl", "gear", "am"),
##D mean(df$mpg),
##D grouping_bit(df$cyl), grouping_bit(df$gear), grouping_bit(df$am)
##D )
## End(Not run)
## Not run:
##D # With cube
##D agg(
##D cube(df, "cyl", "gear", "am"),
##D mean(df$mpg),
##D grouping_id(df$cyl, df$gear, df$am)
##D )
##D
##D # With rollup
##D agg(
##D rollup(df, "cyl", "gear", "am"),
##D mean(df$mpg),
##D grouping_id(df$cyl, df$gear, df$am)
##D )
## End(Not run)


Object-Oriented Programming (OOP) Assessment
Q1. What is an example of dynamic binding?
- any method
- method overloading
- method overriding <<– correct
- compiling
Q2. For which case would the use of a static attribute be appropriate?
- the number of people in each house in a small neighborhood
- the lot size for each house in a small neighborhood
- the color of each house in a small neighborhood
- the weather conditions for each house in a small neighborhood <<– correct
Q3.1 Why would you create an abstract class, if it can have no real instances?
- to avoid redundant coding in children << – correct
- to explore a hypothetical class
- to prevent unwanted method implementation
- to reserve memory for an unspecified class type
Q3.2 Why would you create an abstract class, if it can have no real instances?
- to have common behavior in derived classes << – correct
- to explore a hypothetical class
- to prevent unwanted method implementation
- to reserve memory for an unspecified class type
Q4. When does static binding happen?
- only when you export
- both at compile time and runtime
- at compile time <<– correct
- at runtime
Q5. What is the best reason to use a design pattern?
- It will result in code that is more extensible and maintainable. <<– correct
- It will result in a more compact product.
- It will speed initial development.
- It will allow you to add that design pattern to your resume.
Q6. What is encapsulation?
- defining classes by focusing on what is important for a purpose
- hiding the data and implementation details within a class <<– correct
- making all methods private
- using words to define classes
Q7. What is an IS-A relationship?
- It implies encapsulation.
- A superclass object has an IS-A relationship with its subclass.
- It implies a virtual method.
- A subclass object has an IS-A relationship with its superclass or interface <<– correct
Q8. You want a method with behavior similar to a virtual method–it is meant to be overridden –expect that it does not have a mthod body. It just has a method signature. What kind of method should you use?
- an abstract method
- a public internal method <<– correct
- an internal method
- a protected internal method
Q9. Which code creates a new object from the Employee class?
- Employee current Employee = Employee.Create();
- Employee current Employee = new Employee(); <<– correct
- Employee currentEmployee;
- Employee currentEmployee = Employee.New();
Q10. Which type of constructor cannot have a return type?
- default
- copy
- parameterized
- Constructors do not have a return type <<– correct
Q11.1 When is a constructor executed?
- when an object is created from a class using the new keyword <<– correct
- when an class is defined using the class keyword
- every time an object is referenced
- when an object is created from a class using the create keyword
Q11.2 When is a constructor executed?
- when an object is created from a class <<– correct
- when an class is defined using the class keyword
- every time an object is referenced
- when an object is created from a class using the create keyword
Q12. If a local class is defined in a function, what is true for an object of that class?
- The object can be accessed, declared, and used locally in that function. <<– correct
- The object must be declared inside any other function.
- The object is temporarily accessible outside the function.
- The object can call all the other class members anywhere in the program.
Q13. Which two blocks are used to handle and check errors?
- do and check
- catching and trying
- try and catch <<– correct
- do and while
Q14. Why would you implement composition using an id instead of a reference?
- It makes it easier to save the entity.
- all of these answers <<– correct
- It can make the entity retrieval more efficient
- It minimizes coupling.
Q15. Which statement best describes the method of inheritance in OOP?
- Inheritance describes the ability to create new classes based on an existing class. <<– correct
- Inheritance means that a group of related properties, methods, and other members are treated as a single unit or object.
- Inheritance forces a class to have a single repsonsibilitly from only one parent.
- Inheritance means that you will never have multiple classes that can be used interchangeably, even though each class implements the same properties or methods in different ways.
Q16 Which type of inheritance ,when done continuously, is similar to a tree structure?
- multilevel
- hierarchical and multiple
- hierarchical **<<–correct
- multiple
Q17. Which statement is true?
- A default parameter’s constructor is not equivalent to the default constructor
- A default constructor is inherited from a parent class
- A default constructor can be called explicitly
- A default constructor cannot be defined by the coder <<– correct
Q18. Which of the following is NOT an advantage of using getters and setters?
- Getters and setters can speed up compilation.
- Getters and setters provide encapsulation of behavior.
- Getters and setters provide a debugging point for when a property changes at runtime. <<— picked this one not sure if its correct!
- Getters and setters permit different access levels.
Q19. In context of OOP, what is association?
- Association is a relationship where all objects have their own life cycle and there is no owner. <<– correct
- Association is the procecss where model elements cooperate to proide higher-level behavior. Association is whole/part relationship where one object is composed of one or more other objects, each of which is considered a part of the whole.
- Association is where all objects have their own life cycle, but there is ownerhip, and child objects can not belong to another parent object.
Q20. How are user stories different from use cases?
- User Stories are shorter and less detailed. <<– correct
- User stories are more accurate.
- User stories are more detailed and structured.
- User storised are more anecdotal and personal.
Q21. Which type of inheritance must be used so that the resultant is hybrid?
- multiple
- any type of inheritance
- multilevel <<— picked this one,
- hierarchical
Q22. A language that does not support polymorphism but supports classes is considered what?
- an object-based language <<— picked this one
- a class-based language
- a procedure-oriented language
- if classes are supported, polymorphism will be supported
Q23. If two classes combine some private data members and provides public member functions to access and manipulate those data members. Where is abstraction used?
- Abstraction is using a private access specifier for data members
- Abstraction is using public member functions to access and manipulate the data members <<– correct
- Abstraction is using the class concept with both data members and member functions
- There is insufficient information to decide where abstraction is being used.
Q24. What are the five Creational Design patterns by the Gang of Four ?
- Observer, State, Strategy, Template Method, and Visitor.
- Composite, Visitor, State, Prototype, and Singleton.
- Composite, Builder, Factory Method, Prototype, and Singleton.
- Abstract Factory, Builder, Factory Method, Prototype, and Singleton. <<– correct
Q25. In multilevel inheritence, one class inherits how many classes?
- one class only <<– correct
- two classes
- as many classes as required
- at least two classes
Q26. if an object is passed by reference, the changes made in the function are reflected ___.
- to the main object of the caller function, too <<– correct
- on the caller function object and also the called function object
- on the copy of the object that is made during the pass
- only in the local scope of the called function
Q27. What is a method?
- a set of instructions designed to perform a frequently used operation within a program and return no values
- the exact same thing as a function and subroutine <<– correct
- a set of variables that can change over time
- a procedure associated with data and behaviour
Q28. A mobile phone is made up of components such as a motherboard, camera, and sensors. The motherboard represents all the functions of a phone, the display shows the display only, and the phone is represented as a whole. Which of the following has the highest level of abstraction?
- camera
- display
- motherboard
- mobile phone <<– correct
Q29. Which class has the highest degree of abstraction in a multilevel inheritance relationship of five levels?
- the class at the third level
- the class at the first level <<– correct
- All have the same degree of abstraction.
- the class at the second level
Q30. In the contex of OOP, what is association?
- Association is a whole/part relationship where one object is composed of one or more other objects, each of which is considered a part of the whole.
- Association is where all objects have their own life cycle, but there is ownership, and child objects can not belong to another parent object.
- Association is the process where model elements cooperate to provide higher-level behavior.
- Association is a relationship where all objects have their own life cycles and there is no owner. <<– correct
Q31. Which is NOT one of the basic types of inheritance?
- multilevel inheritance
- double inheritance <<– correct
- single inheritance
- hierarchical inheritance
Q32. Why is code duplication so insidious?
- The duplication uses unnecessary space.
- One has to maintain all the duplicates. <<– correct
- Duplication can cause intellectual property concerns.
- Duplication is easy to hide.
Q33. When and how often is a static constructor called?
- It is called initially when an object is created and called with every new object instance.
- It is called when an object is destroyed and only one time.
- It is called initially when an object is created and only one time. <<– correct
- It is created at time when the object is discarded.
Q34. What does the code shown below demonstrate, and why?
static void Multiply(int num1, int num2) {};
static void Multiply(double num1, double num2, double num3) {};
static void Multiply(float num1, float num2) {};
- polymorphism, because each method can perform different task
- method overriding, because it display the same method name, different or same parameters, and same return type
- method overloading, because it allows the creation of several methods with the same name, wich differ by the type of input via parameter <<– correct
- method overriding, because it display the same method name, different parameters, and same return type
Q35. What is the purpose os static constructor?
- to initialize all the members with static value <<– correct
- to delete the static members when not required
- to initialize the static members of class
- to clear all the static members’ initialized values
Q36. What are CRC Cards?
- [] Code Responsibility Collection cards are a brainstorming tool used in the design of procedural software
- [x] Class responsible collaboration cards are a brainstorming tool used in the design of oop software
- [] Code Responsibility Correction cards are tools used for debugging
- [] Code Responsibility Correction cards are tools for modeling
Q37.1 How are contents of a composition different from those of aggregation?
- [] if one element of an aggregation is dereferenced, all its elements are eligible for garbage collection
- [x] if a composition dies, the contents die
- [] the contents of a composition are all siblings
- [] an aggregation contains only abstract classes
Q37.2 Which statement about compositions and aggregations is true?
- [] if one element of an aggregation is dereferenced, all its elements are eligible for garbage collection
- [x] if a composition dies, the contents die
- [] the contents of a composition are all siblings
- [] an aggregation contains only abstract classes
Q38. What is the result of using more abstraction?
- [] it can increase code vulnerability
- [] it can make code unsafe
- [] it can limit code readability
- [] it can be safer for coding
Q39. Which is false for a member function of a class?
- [] they can be defined only inside or outside the class body
- [x] the can be made to be friends of another class
- [] they do not need to be declared inside the class definiton
- [] they need to be defined
Q40. Why is inheritance used when creating a new class?
- [] to protect attributes from unwanted changes
- [] to delegate coding responsibility more efficiently
- [] to conserve memory
- [x] to avoid writing duplicate code
Q41. In addition to attributes and behaviours, what quality must a class possess?
- a name <<– correct
- a state
- a color
- an object
Q42. Which type of function among the following shows polymorphism?
- inline function
- undefined function
- virtual function <<– correct
- class member function
Q43. Which words in the following list are candidates for objects: trumpet, clean, enrage, leaf, tree, collapse, active, and lively?
- leaf and tree
- clean, enrage, and collapse
- clean, active, and lively
- leaf, tree, and trumpet <<– correct
Q44. What best describes what object-oriented programming does?
- It focuses on objects that interact cleanly with one another. <<– correct
- It programs exclusively to interfaces.
- It programs exclusively to classes.
- It creates one class for all business logic.
Q45. Can abstract classes be used in multilevel inheritance?
- No, abstract classes can be used only in single-level inheritance since they must be immediately implemented.
- yes, always <<– correct
- yes, but with only one abstract class
- No, abstract classes do not have constructors.
Q46. What type of inheritance may lead to the diamond problem?
- single level
- multilevel
- hierarchical
- multiple <<– correct
Q47. How are the contents of a composition different from those of an aggregation?
- The contents of a composition are all siblings. <<– correct
- An aggregation contains only abstract classes.
- If a composition dies, the contents die.
- If one element of an aggregation is dereferenced, all its elements are eligible for garbage collection.
Q48. What is the relationship between abstraction and encapsulation?
- Abstraction is about making relevant information visible, while encapsulation enables a programmer to implement the desired level of abstraction. <<– correct
- Abstraction and encapsulation are essentially the same.
- Abstraction and encapsulation are unrelated.
- Encapsulation is about making relevant information visible, while abstraction enables a programmer to implement the desired level of encapsulation.
Q49. Which of these keywords are access specifiers?
- abstract and public
- public and private <<– correct
- this and final
- final and abstract
Q50. Why is inheritance used when creating a new class?
- [] to conserve memory
- [] to protect attributes from unwanted changes
- [x] to separate class behaviour from the more general to the more specific
- [] to delegate coding responsibility more efficiently


| Admissions |<PHONE_NUMBER> |
|---|---|
| Bookstore |<PHONE_NUMBER> |
| Career Services |<PHONE_NUMBER> |
| Computer Help Desk |<PHONE_NUMBER> |
| Crisis Hotline |<PHONE_NUMBER> |
| Facilities Services |<PHONE_NUMBER> |
| Financial Aid |<PHONE_NUMBER> |
| Health & Counseling |<PHONE_NUMBER> |
| HUB Info Desk |<PHONE_NUMBER> |
| Registrar's Office |<PHONE_NUMBER> |
| Residence Life and Housing |<PHONE_NUMBER> |
| Security |<PHONE_NUMBER> |
| Student Life |<PHONE_NUMBER> |


About Me
I am a University of St. Edward's graduate currently working as a junior level associate with Infosys
LLC. After
hearing about good prospects
in the market and potential for collaboration from close friends, I found passion for Software
Development in figuring out technical problems, the
logic behind coding, and the feeling of community that comes from it's collaborative nature in bigger
projects. In the industry for about 1 year, I've acquired familiarity with the following technologies:
HTML, CSS, Bootstrap, Bulma, Javascript, Node.js, Angular 10, React, Java, PHP, Wordpress, SQL,
MySQL, PostgreSQL, MongoDB, Hibernate, Spring Boot, Github, Heroku, AWS RDS/EC2/Lambda/S3, API Gateways,
Security and Session Storage, and User Authentication.
✦
Resume
✦
Served allows users to input current ingredients to generate recipes based on what they
already have at home. Each recipe generated from their selected ingredients shows a
thumbnail of the recipe, the percentage of which it matches the ingredients the user has
listed and a heart button at the bottom of the card to "save" their favorite recipes for
later use.
Saved recipes are reachable with the button in the upper right section of the page.
There
are also buttons in the navigation menu to see the developers and report bugs/issues
with
the site.
Served: a recipe generator powered by Spoonacular
API
Link to repository
✦
This app is a simulated bookstore run on a Java console window, making prolific use of
the java.util.Scanner class. Users can register new accounts, login, make offers on
books, view owned items, and make payments. Employees can add/remove items, edit item
details, and view payments.
It implements the DAO interface pattern for service layers and
business logic, and uses the JDBC Java API to interface with a PostgreSQL database.
Persisted data such as offer, book, customer, employee, and system details are stored in five relational tables.
The Bookstore: A console line interface software
Link to repository
✦
This is an AWS RDS-powered reimbursement application, featuring multiple user
roles, pages, HttpServlet middleware, HttpSession objects, HTML/CSS/JS frontend, and server-side Java. Routing exceptions are handled with customized error and 404 pages.
It features event logging and unit testing with log4j and JUnit, object date-mapping
with Jackson databinding, and package management with Maven. It is configured to port 8080 with Apache Tomcat 8.5.
ERS: A full stack reimbursement solution
Link to repository
✦
This is a CLI app using Node.js, inquirer, and MySQL, to create a writable interface
presenting question prompts made using async/await promises with the inquirer package,
and
which connects to a local MySQL server to run queries.
As a hypothetical business, users can view and add departments, job positions, and
employees, so as to better organize the business.
Employee Database CLI
Link to repository
✦
This app is a wedding budget planner, allowing the user to create budget items, budget
categories, to-do lists, and see their data displayed as estimated/actual costs through
pie,
bar and line graphs. Users can edit, delete, and add these items, which route to an API
built with Express, Node, and Sequelize.
The MySQL database holding user data is run on my computer through MySQL Workbench, and
deployed to Heroku with JawsDB. The graphs are built using Chart.js, accounts are
created
with user authentication via Passport.js, and repository updates are screened by ESlint
and
Travis CI before being pushed to the main branch.
✦
In Monnaie 2.0, we bootstrapped most of the HTML with Create React App, replaced
the
database with
MongoDB/Mongoose ORM, and used Material UI for new CSS. In addition to the features
already
present from the previous version,
we have a community forum where users can communicate with each other, a place to add
vendor
details.


Gems-Over-SASS is a small framework that helps you when you start coding up your Web Designs using a set
of HAML, SASS, and Javascript files and libraries to get the job done faster and easier.
Quick start
Download the stable release, or clone this repository:
- Download the latest stable release from
gos.gemy.me.
- Clone this git repository �
git clone
https://github.com/MohamedGamil/gos
.
Features
- Solid yet Easy-To-Deal-With files structure.
- Build all -or most- of your final CSS into 1 file.
- Wide array of SASS Mixins and Functions that will save you hours of work.
- New SASS functions that will help you to easily manipulate strings -Read the Documentation-.
- Deal with Web Fonts even more easily.
- Easily structure your document using either Bootstrap Fixed, or Responsive Grid systems -Supports Fluid Grid Too-.
- Easily include your Responsive styles.
- Easily create your Typography styles.
- Easily create Right-To-Left styles.
- Easily implement Multi-Colored Themes.
- Apply Bootstrap Icons styles -Glyphicons- directly to any element.
- Comes with a Powerful -Reset.css-.
- Cross-Browser Compatibility.
- Licensed under the MIT License.
Getting Started
- The best way to use GOS, is to use PrePros to compile your source code.
- After installing PrePros, Drag and Drop your cloned repository to PrePros Application.
- Make sure to uncheck "Full Compass Support" for "css/main.scss".
- Open "index.haml", "css/main.scss", and all files in "css/sass-user/".
- Type your name, and copyrights at the top of "css/main.scss", and you're ready to go..
Development Extras, like Demos or Documentation are licensed under MIT License too. Feel free to use anything however you like.


About VObject
VObject is intended to be a full-featured Python package for parsing and generating vCard and vCalendar files. It was originally developed in concert with the Open Source Application Foundation's Chandler project by Jeffrey Harris. Many thanks to all the contributors for their dedication and support. The project is currently being maintained by Eventable and Sameen Karim.
Currently, iCalendar files are supported and well tested. vCard 3.0 files are supported, and all data should be imported, but only a few components are understood in a sophisticated way. The Calendar Server team has added VAVAILABILITY support to VObject's iCalendar parsing. Please report bugs and issues directly on GitHub.
VObject is licensed under the Apache 2.0 license.
Useful scripts included with VObject:
- ics_diff: order is irrelevant in iCalendar files, return a diff of meaningful changes between icalendar files
- change_tz: Take an iCalendar file with events in the wrong timezone, change all events or just UTC events into one of the timezones PyICU supports. Requires PyICU.
Installation
To install with pip, run:
pip install vobject
Or download the package and run:
python setup.py install
VObject requires Python 2.7 or higher, along with the dateutil and six packages.
Running tests
To run all tests, use:
python tests/tests.py
Usage
iCalendar
Creating iCalendar objects
VObject has a basic datastructure for working with iCalendar-like syntaxes. Additionally, it defines specialized behaviors for many of the commonly used iCalendar objects.
To create an object that already has a behavior defined, run:
>>> import vobject
>>> cal = vobject.newFromBehavior('vcalendar')
>>> cal.behavior
<class 'vobject.icalendar.VCalendar2_0'>
Convenience functions exist to create iCalendar and vCard objects:
>>> cal = vobject.iCalendar()
>>> cal.behavior
<class 'vobject.icalendar.VCalendar2_0'>
>>> card = vobject.vCard()
>>> card.behavior
<class 'vobject.vcard.VCard3_0'>
Once you have an object, you can use the add method to create children:
>>> cal.add('vevent')
<VEVENT| []>
>>> cal.vevent.add('summary').value = "This is a note"
>>> cal.prettyPrint()
VCALENDAR
VEVENT
SUMMARY: This is a note
Note that summary is a little different from vevent, it's a ContentLine, not a Component. It can't have children, and it has a special value attribute.
ContentLines can also have parameters. They can be accessed with
regular attribute names with _param
appended:
>>> cal.vevent.summary.x_random_param = 'Random parameter'
>>> cal.prettyPrint()
VCALENDAR
VEVENT
SUMMARY: This is a note
params for SUMMARY:
X-RANDOM ['Random parameter']
There are a few things to note about this example
- The underscore in x_random is converted to a dash (dashes are legal in iCalendar, underscores legal in Python)
- X-RANDOM's value is a list.
If you want to access the full list of parameters, not just the first, use <paramname>_paramlist:
>>> cal.vevent.summary.x_random_paramlist
['Random parameter']
>>> cal.vevent.summary.x_random_paramlist.append('Other param')
>>> cal.vevent.summary
<SUMMARY{'X-RANDOM': ['Random parameter', 'Other param']}This is a note>
Similar to parameters, If you want to access more than just the first child of a Component, you can access the full list of children of a given name by appending _list to the attribute name:
>>> cal.add('vevent').add('summary').value = "Second VEVENT"
>>> for ev in cal.vevent_list:
... print ev.summary.value
This is a note
Second VEVENT
The interaction between the del operator and the hiding of the
underlying list is a little tricky, both del cal.vevent
and
del cal.vevent_list
delete all vevent children:
>>> first_ev = cal.vevent
>>> del cal.vevent
>>> cal
<VCALENDAR| []>
>>> cal.vevent = first_ev
VObject understands Python's datetime module and tzinfo classes.
>>> import datetime
>>> utc = vobject.icalendar.utc
>>> start = cal.vevent.add('dtstart')
>>> start.value = datetime.datetime(2006, 2, 16, tzinfo = utc)
>>> first_ev.prettyPrint()
VEVENT
DTSTART: 2006-02-16 00:00:00+00:00
SUMMARY: This is a note
params for SUMMARY:
X-RANDOM ['Random parameter', 'Other param']
Components and ContentLines have serialize methods:
>>> cal.vevent.add('uid').value = 'Sample UID'
>>> icalstream = cal.serialize()
>>> print icalstream
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//PYVOBJECT//NONSGML Version 1//EN
BEGIN:VEVENT
UID:Sample UID
DTSTART:20060216T000000Z
SUMMARY;X-RANDOM=Random parameter,Other param:This is a note
END:VEVENT
END:VCALENDAR
Observe that serializing adds missing required lines like version and prodid. A random UID would be generated, too, if one didn't exist.
If dtstart's tzinfo had been something other than UTC, an appropriate vtimezone would be created for it.
Parsing iCalendar objects
To parse one top level component from an existing iCalendar stream or string, use the readOne function:
>>> parsedCal = vobject.readOne(icalstream)
>>> parsedCal.vevent.dtstart.value
datetime.datetime(2006, 2, 16, 0, 0, tzinfo=tzutc())
Similarly, readComponents is a generator yielding one top level component at a time from a stream or string.
>>> vobject.readComponents(icalstream).next().vevent.dtstart.value
datetime.datetime(2006, 2, 16, 0, 0, tzinfo=tzutc())
More examples can be found in source code doctests.
vCards
Creating vCard objects
Making vCards proceeds in much the same way. Note that the 'FN' attribute is required.
>>> j = vobject.vCard()
>>> j.add('n')
<N{} >
>>> j.n.value = vobject.vcard.Name( family='Harris', given='Jeffrey' )
>>> j.add('fn')
<FN{}>
>>> j.fn.value ='Jeffrey Harris'
>>> j.add('email')
<EMAIL{}>
>>> j.email.value =<EMAIL_ADDRESS>>>> j.email.type_param = 'INTERNET'
>>> j.prettyPrint()
VCARD
EMAIL<EMAIL_ADDRESS>params for EMAIL:
TYPE ['INTERNET']
FN: Jeffrey Harris
N: Jeffrey Harris
serializing will add any required computable attributes (like 'VERSION')
>>> j.serialize()
'BEGIN:VCARD\r\nVERSION:3.0\r\nEMAIL;TYPE=INTERNET:jeffrey@osafoundation.org\r\nFN:Jeffrey Harris\r\nN:Harris;Jeffrey;;;\r\nEND:VCARD\r\n'
>>> j.prettyPrint()
VCARD
VERSION: 3.0
EMAIL<EMAIL_ADDRESS>params for EMAIL:
TYPE ['INTERNET']
FN: Jeffrey Harris
N: Jeffrey Harris
Parsing vCard objects
>>> s = """
... BEGIN:VCARD
... VERSION:3.0
<EMAIL_ADDRESS>... FN:Jeffrey Harris
... N:Harris;Jeffrey;;;
... END:VCARD
... """
>>> v = vobject.readOne( s )
>>> v.prettyPrint()
VCARD
VERSION: 3.0
EMAIL<EMAIL_ADDRESS>params for EMAIL:
TYPE [u'INTERNET']
FN: Jeffrey Harris
N: Jeffrey Harris
>>> v.n.value.family
u'Harris'
Multi-Value Properties
Multi-value properties are properties of a component that can contain multiple values. An easy example would be email. A vCard can contain both someone's work email address and their home email address. When dealing with multi-value properties, the getting and setting of values happens slightly differentely than singleton properties.
Adding Multi-Value Properties
You should add multi-value properties by creating multiple ContentLines and giving each a value. You can also set the property list explicitly, but this is not advised.
>>> v = vobject.vCard()
>>> v.add('fn').value = "Jeffery Harris"
>>> v.add('email').value =<EMAIL_ADDRESS>>>> v.add('email').value =<EMAIL_ADDRESS>>>> print v.email_list
<EMAIL_ADDRESS><EMAIL_ADDRESS>>>> print v.serialize()
BEGIN:VCARD
VERSION:3.0
<EMAIL_ADDRESS><EMAIL_ADDRESS>FN:Jeffery Harris
END:VCARD
Accessing Multi-Value Properties
You can access multi-value entries either by grabbing the relevent entry in the `contents` dictionary or by directly accessing the attribute and appending _list
to the property name.
>>> s = """
... BEGIN:VCARD
... VERSION:3.0
<EMAIL_ADDRESS>... FN:Jeffrey Harris
... N:Harris;Jeffrey;;;
... TEL;TYPE=WORK,VOICE:(111) 555-1212
... TEL;TYPE=HOME,VOICE:(404) 555-1212
... END:VCARD
... """
>>> v = vobject.readOne( s )
>>> for tel in v.contents['tel']:
... print tel
<TEL{u'TYPE': [u'WORK', u'VOICE']}(111) 555-1212>
<TEL{u'TYPE': [u'HOME', u'VOICE']}(404) 555-1212>
>>> for tel in v.contents['tel']:
... print tel.value
(111) 555-1212
(404) 555-1212
>>> v.tel_list
[<TEL{'TYPE': ['WORK', 'VOICE']}(111) 555-1212>,
<TEL{'TYPE': ['HOME', 'VOICE']}(404) 555-1212>]
Release History
7 July 2018
vobject 0.9.6 released (view).
To install, use pip install vobject
, or download the archive and untar, run python setup.py install. Tests can be run via python setup.py test. dateutil and six are required. Python 2.7 or higher is required.
Release Notes
- Correctly order calendar properties before calendar components
- Correctly serialize timestamp values (i.e. `REV`)
- Pass correct formatting string to logger
- RRULE: Fix floating UNTIL with dateutil > 2.6.1
- Encode params if necessary in serialization
- Ignore escaped semi-colons in UNTIL value
- RRULE: Fix VTODO without DTSTART
- Fixed regexp for VCF Version 2.1
- repr() changed for datetime.timedelta in python 3.7
29 June 2017
vobject 0.9.5 released (view).
To install, use pip install vobject
, or download the archive and untar, run python setup.py install. Tests can be run via python setup.py test. dateutil and six are required. Python 2.7 or higher is required.
Release Notes
- Make ics_diff.py work with Python 3
- Huge changes to text encoding for Python 2/3 compatibility
- Autogenerate DTSTAMP if not provided
- Fix getrruleset() for Python 3 and in the case that addRDate=True
- Update vCard property validation to match specifications
- Handle offset-naive and offset-aware datetimes in recurrence rules
- Improved documentation for multi-value properties
22 January 2017
vobject <IP_ADDRESS> released (view).
To install, use pip install vobject
, or download the archive and untar, run python setup.py install. Tests can be run via python setup.py test. dateutil and six are required. Python 2.7 or higher is required.
Release Notes
- Pickling/deepcopy hotfix
20 January 2017
vobject 0.9.4 released (view).
To install, use pip install vobject
, or download the archive and untar, run python setup.py install. Tests can be run via python setup.py test. dateutil and six are required. Python 2.7 or higher is required.
Release Notes
- Improved PEP8 compliance
- Improved Python 3 compatibility
- Improved encoding/decoding
- Correct handling of pytz timezones
26 August 2016
vobject 0.9.3 released (view).
To install, use pip install vobject
, or download the archive and untar, run python setup.py install. Tests can be run via python setup.py test. dateutil and six are required. Python 2.7 or higher is required.
Release Notes
- Fixed use of doc in setup.py for -OO mode
- Added python3 compatibility for base64 encoding
- Fixed ORG fields with multiple components
- Handle pytz timezones in iCalendar serialization
- Use logging instead of printing to stdout
13 March 2016
vobject 0.9.2 released (view).
To install, use pip install vobject
, or download the archive and untar, run python setup.py install. Tests can be run via python setup.py test. dateutil and six are required. Python 2.7 or higher is required.
Release Notes
- Better line folding for utf-8 strings
- Convert unicode to utf-8 to be StringIO compatible
16 February 2016
vobject 0.9.1 released (view).
To install, use pip install vobject
, or download the archive and untar, run python setup.py install. Tests can be run via python setup.py test. dateutil and six are required. Python 2.7 or higher is now required.
Release Notes
- Removed lock on dateutil version (>=2.4.0 now works)
3 February 2016
vobject 0.9.0 released (view).
To install, use pip install vobject
, or download the archive and untar, run python setup.py install. Tests can be run via python setup.py test. dateutil 2.4.0 and six are required. Python 2.7 or higher is now required.
Release Notes
- Python 3 compatible
- Updated version of dateutil (2.4.0)
- More comprehensive unit tests available in tests.py
- Performance improvements in iteration
- Test files are included in PyPI download package
28 January 2016
vobject 0.8.2 released (view).
To install, use pip install vobject
, or download the archive and untar, run python setup.py install. Tests can be run via python setup.py test. dateutil 1.1 or later is required. Python 2.4 is also required.
Release Notes
- Removed unnecessary ez_setup call from setup.py
27 February 2009
vobject 0.8.1c released (SVN revision 217).
To install, use easy_install, or download the archive and untar, run python setup.py install. Tests can be run via python setup.py test. dateutil 1.1 or later is required. Python 2.4 is also required.
Release Notes
- Tweaked change_tz.py to keep it 2.4 compatible
12 January 2009
vobject 0.8.1b released (SVN revision 216).
To install, use easy_install, or download the archive and untar, run python setup.py install. Tests can be run via python setup.py test. dateutil 1.1 or later is required. Python 2.4 is also required.
Release Notes
- Change behavior when import a VCALENDAR or VCARD with an older or absent VERSION line, now the most recent behavior (i.e., VCARD 3.0 and iCalendar, VCALENDAR 2.0) is used
29 December 2008
vobject 0.8.0 released (SVN revision 213).
To install, use easy_install, or download the archive and untar, run python setup.py install. Tests can be run via python setup.py test. dateutil 1.1 or later is required. Python 2.4 is also required.
Release Notes
- Changed license to Apache 2.0 from Apache 1.1
- Fixed a major performance bug in backslash decoding large text bodies
- Added workaround for strange Apple Address Book parsing of vcard PHOTO, don't wrap PHOTO by default. To disable this behavior, set vobject.vcard.wacky_apple_photo_serialize to False.
25 July 2008
vobject 0.7.1 released (SVN revision 208).
To install, use easy_install, or download the archive and untar, run python setup.py install. Tests can be run via python setup.py test. dateutil 1.1 or later is required. Python 2.4 is also required.
Release Notes
- Add change_tz script for converting timezones in iCalendar files
16 July 2008
vobject 0.7.0 released (SVN revision 206).
To install, use easy_install, or download the archive and untar, run python setup.py install. Tests can be run via python setup.py test. dateutil 1.1 or later is required. Python 2.4 is also required.
Release Notes
- Allow Outlook's technically illegal use of commas in TZIDs
- Added introspection help for IPython so tab completion works with vobject's custom getattr
- Made vobjects pickle-able
- Added tolerance for the escaped semi-colons in RRULEs a Ruby iCalendar library generates
- Fixed Bug 12245, setting an rrule from a dateutil instance missed BYMONTHDAY when the number used is negative
30 May 2008
vobject 0.6.6 released (SVN revision 201).
To install, use easy_install, or download the archive and untar, run python setup.py install. Tests can be run via python setup.py test. dateutil 1.1 or later is required. Python 2.4 is also required.
Release Notes
- Fixed bug 12120, unicode TZIDs were failing to parse.
28 May 2008
vobject 0.6.5 released (SVN revision 200).
To install, use easy_install, or download the archive and untar, run python setup.py install. Tests can be run via python setup.py test. dateutil 1.1 or later is required. Python 2.4 is also required.
Release Notes
- Fixed bug 9814, quoted-printable data wasn't being decoded into unicode, thanks to Ilpo Nyyssönen for the fix.
- Fixed bug 12008, silently translate buggy Lotus Notes names with underscores into dashes.
21 February 2008
vobject 0.6.0 released (SVN revision 193).
To install, use easy_install, or download the archive and untar, run python setup.py install. dateutil 1.1 or later is required. Python 2.4 is also required.
Release Notes
- Added VAVAILABILITY support, thanks to the Calendar Server team.
- Improved unicode line folding.
14 January 2008
vobject 0.5.0 released (SVN revision 189).
To install, use easy_install, or download the archive and untar, run python setup.py install. dateutil 1.1 or later is required. Python 2.4 is also required.
Release Notes
- Updated to more recent ez_setup, vobject wasn't successfully installing.
19 November 2007
vobject 0.4.9 released (SVN revision 187).
To install, use easy_install, or download the archive and untar, run python setup.py install. dateutil 1.1 or later is required. Python 2.4 is also required.
Release Notes
- Tolerate invalid UNTIL values for recurring events
- Minor improvements to logging and tracebacks
- Fix serialization of zero-delta durations
- Treat different tzinfo classes that represent UTC as equal
- Added ORG behavior to vCard handling, native value for ORG is now a list.
7 January 2007
vobject 0.4.8 released (SVN revision 180).
To install, use easy_install, or download the archive and untar, run python setup.py install. dateutil 1.1 or later is required. Python 2.4 is also required.
Release Notes
- Fixed problem with the UNTIL time used when creating a dateutil rruleset.
21 December 2006
vobject 0.4.7 released (SVN revision 172), hot on the heals of yesterday's 0.4.6.
To install, use easy_install, or download the archive and untar, run python setup.py install. dateutil 1.1 or later is required. Python 2.4 is also required.
Release Notes
- Fixed a problem causing DATE valued RDATEs and EXDATEs to be ignored when interpreting recurrence rules
- And, from the short lived vobject 0.4.6, added an ics_diff module and an ics_diff command line script for comparing similar iCalendar files
20 December 2006
vobject 0.4.6 released (SVN revision 171)
To install, use easy_install, or download the archive and untar, run python setup.py install. dateutil 1.1 or later is required. Python 2.4 is also required.
Release Notes
- Added an ics_diff module and an ics_diff command line script for comparing similar iCalendar files
8 December 2006
vobject 0.4.5 released (SVN revision 168)
To install, use easy_install, or download the archive and untar, run python setup.py install. dateutil 1.1 or later is required. Python 2.4 is also required.
Release Notes
- Added ignoreUnreadable flag to readOne and readComponents
- Tolerate date-time or date fields incorrectly failing to set VALUE=DATE for date values
- Cause unrecognized lines to default to use a text behavior, so commas, carriage returns, and semi-colons are escaped properly in unrecognized lines
9 October 2006
vobject 0.4.4 released (SVN revision 159)
To install, use easy_install, or download the archive and untar, run python setup.py install. dateutil 1.1 or later is required. Python 2.4 is also required.
Release Notes
- Merged in Apple CalendarServer patches as of CalendarServer-r191
- Added copy and duplicate code to base module
- Improved recurring VTODO handling
- Save TZIDs when parsed and use them as back up TZIDs when serializing
22 September 2006
vobject 0.4.3 released (SVN revision 157)
To install, use easy_install, or download the archive and untar, run python setup.py install. dateutil 0.9 or later is required. Python 2.4 is also required.
Release Notes
- Added support for PyTZ tzinfo classes.
29 August 2006
vobject 0.4.2 released (SVN revision 153)
To install, use easy_install, or download the archive and untar, run python setup.py install. dateutil 0.9 or later is required. Python 2.4 is also required.
Release Notes
- Updated ez_setup.py to use the latest setuptools.
4 August 2006
vobject 0.4.1 released (SVN revision 152)
To install, use easy_install, or download the archive and untar, run python setup.py install. dateutil 0.9 or later is required. Python 2.4 is also required.
Release Notes
- When vobject encounters ascii, it now tries utf-8, then utf-16 with either LE or BE byte orders, searching for BEGIN in the decoded string to determine if it's found an encoding match. readOne and readComponents will no longer work on arbitrary Versit style ascii streams unless the optional findBegin flag is set to False
2 August 2006
vobject 0.4.0 released (SVN revision 151)
To install, use easy_install, or download the archive and untar, run python setup.py install. dateutil 0.9 or later is required. Python 2.4 is also required.
Release Notes
- Workarounds for common invalid files produced by Apple's iCal and AddressBook
- Added getChildValue convenience method
- Added experimental hCalendar serialization
- Handle DATE valued EXDATE and RRULEs better
17 February 2006
vobject 0.3.0 released (SVN revision 129)
To install, untar the archive, run python setup.py install. dateutil 0.9 or later is required. Python 2.4 is also required.
Release Notes
- Changed API for accessing children and parameters, attributes now return the first child or parameter, not a list. See usage for examples
- Added support for groups, a vcard feature
- Added behavior for FREEBUSY lines
- Worked around problem with dateutil's treatment of experimental properties (bug 4978)
- Fixed bug 4992, problem with rruleset when addRDate is set
9 January 2006
vobject 0.2.3 released (SVN revision 104)
To install, untar the archive, run python setup.py install. dateutil 0.9 or later is required. Python 2.4 is also required.
Release Notes
- Added VERSION line back into native iCalendar objects
- Added a first stab at a vcard module, parsing of vCard 3.0 files now gives structured values for N and ADR properties
- Fix bug in regular expression causing the '^' character to not parse
4 November 2005
vobject 0.2.2 released (SVN revision 101)
To install, untar the archive, run python setup.py install. dateutil 0.9 or later is required. Python 2.4 is also required.
Release Notes
- Fixed problem with add('duration')
- Fixed serialization of EXDATEs which are dates or have floating timezone
- Fixed problem serializing timezones with no daylight savings time
10 October 2005
vobject 0.2.0 released (SVN revision 97)
To install, untar the archive, run python setup.py install. dateutil 0.9 or later is required. Python 2.4 is also required.
Release Notes
- Added serialization of arbitrary tzinfo classes as VTIMEZONEs
- Removed unused methods
- Changed getLogicalLines to use regular expressions, dramatically speeding it up
- Changed rruleset behavior to use a property for rruleset
30 September 2005
vobject 0.1.4 released (SVN revision 93)
To install, untar the archive, run python setup.py install. dateutil 0.9 or later is required. As of this release, Python 2.4 is also required.
Release Notes
- Changed parseLine to use regular expression instead of a state machine, reducing parse time dramatically
1 July 2005
vobject 0.1.3 released (SVN revision 88)
To install, untar the archive, run python setup.py install. dateutil 0.9 or later is required. As of this release, Python 2.4 is also required.
Release Notes
- Added license and acknowledgements.
- Fixed the fact that defaultSerialize wasn't escaping linefeeds
- Updated backslashEscape to encode CRLF's and bare CR's as linefeeds, which seems to be what RFC2445 requires
24 March 2005
vobject 0.1.2 released (SVN revision 83)
To install, untar the archive, run python setup.py install. dateutil is required. You'll need to apply this patch to be able to read certain VTIMEZONEs exported by Apple iCal, or if you happen to be in Europe!
patch -R $PYTHONLIB/site-packages/dateutil/tz.py dateutil-0.5-tzoffset-bug.patch
Release Notes
- Fixed printing of non-ascii unicode.
- Fixed bug preventing content lines with empty contents from parsing.
25 January 2005
vobject 0.1.1 released (SVN revision 82)
To install, untar the archive, run python setup.py install. dateutil is required. You'll need to apply this patch to be able to read certain VTIMEZONEs exported by Apple iCal, or if you happen to be in Europe!
patch -R $PYTHONLIB/site-packages/dateutil/tz.py dateutil-0.5-tzoffset-bug.patch
Release Notes
- Various bug fixes involving recurrence.
- TRIGGER and VALARM behaviors set up.
13 December 2004
vobject 0.1 released (SVN revision 70)
Release Notes
- Parsing all iCalendar files should be working, please file a bug if you can't read one!
- Timezones can be set for datetimes, but currently they'll be converted to UTC for serializing, because VTIMEZONE serialization isn't yet working.
- RRULEs can be parsed, but when they're serialized, they'll be converted to a maximum of 500 RDATEs, because RRULE serialization isn't yet working.
- To parse unicode, see issue 4.
- Much more testing is needed, of course!


Description
This program uses the default deque class, IDeque, to create a deque. It fills the deque with characters by adding them to the back end. The program then removes the characters from alternating ends of the deque (beginning with the front end) until the deque is empty.
Concept
This program is a sample to demonstrate the use of the default class IDeque.
Task
This program uses a deque to add elements at its back end and remove them from alternating ends.


Rajasthan Tourism Welcomes You!
Rajasthan is well known for its heritage and monuments.I t is the largest heritage state in INDIA
Know MoreAjmer
Ajmer is one of the major cities in the Indian state of Rajasthan and is the centre of the eponymous Ajmer District. According to the 2011 census, Ajmer had a population of 542,321 in the city, 551,101 including its suburbs.
BookJodhpur
Jodhpur is the second largest city in the Indian state of Rajasthan and officially the second metropolitan city of the state.it is a very beautiful city of Rajasthan and famous for forts and monuments.
BookJaipur
Jaipur is the capital and the largest city of the Indian state of Rajasthan in Northern India. It was founded on 18 November 1727 by Jai Singh II, the ruler of Amer after whom the city is named.
Book


Now that you are a Python Ninja,
pygame
Otherwise, refer to this slide
Screen(Canvas)
Width: 900
Height: 600
Color: Black
Ball
Radius: 20
Initial position: X=(width/2), Y=(height/2)
Velocity: random value [Use random.choice() in form of (x, y)]
Color: Red
Pad
Width: 10
Height: 100
Color: Green
Boundary for pad
Color: White
Refer back to this while coding this later
import pygame
# '#' symbol is used for comments
#always call this before using pygame functions
pygame.init()
Use this link to see the documentation of Pygame!
Documentations might be boring, but no better alternatives exist till date :/
WHITE = (255,255,255)
RED = (255,255,0)
GREEN = (0,255,0)
BLACK = (0,0,0)
Colors are defined in RGB (Red, Green, Blue) format
SCREEN_SIZE = SCREEN_WIDTH, SCREEN_HEIGHT = (900, 600)
screen = pygame.display.set_mode(SCREEN_SIZE)
screen.fill(BLACK)
pygame.display.set_mode()
takes a tuple as an argument. That tuple is the width and height.
ball_centre = (SCREEN_WIDTH/2, SCREEN_HEIGHT/2)
ball_radius = 20
ball = pygame.draw.circle(screen, RED, ball_centre, ball_radius)
pygame.draw.circle()
takes in 4 arguments: canvas, color, position and radius
Understanding the math behind the pads
Conditional Statements
Enhancing the if-conditions
PADDLE_LENGTH = 100
PADDLE_WIDTH = 10
paddle_1_top = (4, (SCREEN_HEIGHT/2) - (PADDLE_LENGTH/2))
paddle_1_bottom = (4, (SCREEN_HEIGHT/2) + (PADDLE_LENGTH/2))
paddle1 = pygame.draw.line(screen, GREEN, paddle_1_top, paddle_1_bottom, PADDLE_WIDTH)
pygame.draw.line()
has 4 mandatory arguments: screen, color, top position, bottom position and 1 optional argument: width
Write the code for paddle 2 and boundary lines
Run your python code... A new static game screen should load
To exit the game, go to terminal again and press Ctrl + C
Hopefully you have made a screen something that looks like this:
In case you don't have the file you made, here's the starter code for you :)
Click here to download the starter code
Say hi to Newton!!
Let's get the Physics of the game
Ball
Velocity: (x1, y1)
Every few milliseconds the position of the ball
changes by x1 units in X axis and y1 unit in Y axis
Paddle
Velocity: (0, y2)
Every keystroke the position of the paddle changes vertically
Some initial velocities:
ball_velocity = (1, random.choice(range(-10, 10)))
paddle1_velocity = (0,0)
paddle2_velocity = (0,0)
Hope you know how to write functions
#function to calculate new position
def get_new_position(pos, vel):
return (pos[0] + vel[0], pos[1] + vel[1]
Pay special attention to indentation and colon (:)
Type this code inside the while loop
#ball_center changes based on the current ball_center
#and ball velocity specified
ball_center = get_new_position(ball_center, ball_velocity)
#draw the new ball
ball = pygame.draw.circle(screen, RED, ball_center, BALL_RADIUS)
#update the changes on the screen
python.display.update()
Changing the position means changing the coordinates of the centre of the ball
How to train your dragon? :P
Controlling collisions
# Checking for bottom and top of the screen
if (ball_center[1]+BALL_RADIUS > SCREEN_HEIGHT
or ball_center[1]-BALL_RADIUS < 0):
ball_velocity = (ball_velocity[0], -ball_velocity[1])
Taking care in the Y-axis
Controlling collisions
if (ball_center[0] + BALL_RADIUS > BOUNDARY_RIGHT_TOP[0]
or ball_center[0] - BALL_RADIUS < BOUNDARY_LEFT_TOP[0]):
ball_velocity = (-ball_velocity[0], ball_velocity[1])
Taking care in the X-axis
BOUNDARY_LEFT_TOP and BOUNDARY_RIGHT_TOP are defined in the starter code
Events
Examples of Events:
KEYDOWN
KEYUP
QUIT
MOUSECLICK
...
All these are inbuilt in Pygame :)
To know more about our events, click here :P
pygame.event.get()
-> Returns a list of events
Activating the 'close' button of the window
for event in pygame.event.get():
if event.type == pygame.QUIT:
pygame.quit()
sys.exit()
Let's make the paddle move
#.... Continued from if statement after pygame.QUIT
elif event.type == pygame.KEYDOWN:
if event.key == pygame.K_UP:
paddle2_velocity = (0, -1)
elif event.key == pygame.K_DOWN:
paddle2_velocity = (0,1)
elif event.key == pygame.K_w:
paddle1_velocity = (0, -1)
elif event.key == pygame.K_s:
paddle1_velocity = (0, 1)
#... Continued from the elif statement after pygame.KEYDOWN
elif event.type == pygame.KEYUP:
if event.key == pygame.K_UP or pygame.K_DOWN:
paddle2_velocity = (0,0)
#add KEYUP handler for paddle 1
paddle2_top = get_new_position(paddle2_top, paddle2_velocity)
paddle2_bottom = get_new_position(paddle2_bottom, paddle2_velocity)
Note: We are using the same function that we made for the ball. Most important use of functions: reusability
Did you notice something?
Your paddle goes beyond the screen. Let's fix that!
Modify the previous code
p2_new_top = get_new_position(paddle2_top, paddle2_velocity)
p2_new_bottom = get_new_position(paddle2_bottom, paddle2_velocity)
if (p2_new_top[1] > 0 and p2_new_bottom[1] < SCREEN_HEIGHT):
paddle2_top = p2_new_top
paddle2_bottom = p2_new_bottom
# Do the same for paddle 1
Bounding the statements by an if
statement
Take a minute to revisit the slides
Now let's add interaction between the paddle and the ball
One final thing before the game can be played...
if ball_center[0] + BALL_RADIUS > BOUNDARY_RIGHT_TOP[0]:
if (paddle2_top[1] < ball_center[1]
and paddle2_bottom[1] > ball_center[1]):
ball_velocity = (-ball_velocity[0], ball_velocity[1])
else:
ball_center = (SCREEN_WIDTH/2, SCREEN_HEIGHT/2)
ball_velocity = (-1, random.choice(range(-10, 10)))
Compare your game with ours
There are few good coding practices we have followed :)
Show your running code to your friends and volunteers!
That's the complete game for you :)
Additional task : Add a score feature for both the players
If you have doubts, feel free to ask us. We are here to help you :)
Click here to five us a feedback. We will try to improve


--- layout: default ---
Providing STEP-ON GUIDE and TOUR DIRECTOR services
to DMCs andTour Companies since 2010
{{ site.t['contact_line_1'][page.language] }}
{{ site.t['contact_line_2'][page.language] }}
info (at) ubiquitours.ca


Issuers
Why should you create a security token?
Here are the top 3 reasons:
Liquidity
Security tokens represent a massive breakthrough in liquidity for private securities. With built-in programmatic ownership restrictions, you can sell private securities to a global pool of investors while allowing a liquid secondary market to develop on a number of trading venues.
Efficiency
Raise funds in cryptocurrency where your investors automatically receive the correct allocation of securities. Pay dividends automatically, create and distribute securities effortlessly, and reduce back-office administrative overhead. No more bank wires, waiting 3-5 business days, and manually updating spreadsheets.
Transparency
As a security token issuer, you can conduct your: fundraising, cap table management, dividend payments, and financial dealings in a fully transparent manner, on the Ethereum blockchain. From the standpoint of smart contracts, security, and software development, Polymath’s code is open-source and available for all to review and audit.
“What a lot of people don't know is that being compliant in your primary issuance is one thing, but staying compliant on secondary markets is completely a different thing. That's why we chose Polymath. Polymath allows us to capture all the rules related to tokenizing and democratizing a security while staying compliant at the same time.”
Sam Kawtharani, CEO at CORL
“Polymath is a clear leader in streamlining the creation of security tokens, and offers a flexible and customizable platform that makes STOs more accessible and less complex for both entrepreneurs and issuers alike. Working with them is allowing us to create our ideal security token for the global legal cannabis sector, thereby opening up a multi-billion dollar market to accredited investors and innovators across the globe.”


Rails Behaviors
Rails Behaviors implements the data-*
behaviors generated by Rails 3.x.
See more about setup and installation steps at https://github.com/josh/rails-behaviors.
Remote
#= require rails/remote
Implements data-remote
for forms and links.
Markup

Attribute |
Description |
|---|---|
|
Enables remote behavior on the element if set to anything. |
|
Changes the method of the AJAX request. Defaults to |
|
URL for AJAX request. Defaults to the current url. Maps to jQuery's
|
|
Specify the data type of the response. Can be |
Toggle
<form>
Attribute |
Description |
|---|---|
|
Enables remote behavior on the element if set to anything. |
|
Changes the method of the AJAX request. Defaults to |
|
URL for AJAX request. Defaults to the current url. Maps to jQuery's
|
|
Specify the data type of the response. Can be |
<form action="/comment" method="post" data-remote></form>
Events
Use delegated jQuery's global AJAX events to handle successful and error states. See jQuery's AJAX event documentation for a complete reference.
ajaxBeforeSend
This event, which is triggered before an Ajax request is started, allows you to modify the XMLHttpRequest object (setting additional headers, if need be.)
Property |
Value |
||||
|---|---|---|---|---|---|
Synchronicity |
Sync |
||||
Bubbles |
Yes |
||||
Cancelable |
Yes |
||||
Default action |
Sends request |
||||
Target |
|
||||
Extra arguments |
|
ajaxSuccess
This event is only called if the request was successful (no errors from the server, no errors with the data).
Property |
Value |
||||||
|---|---|---|---|---|---|---|---|
Synchronicity |
Sync |
||||||
Bubbles |
Yes |
||||||
Cancelable |
No |
||||||
Target |
|
||||||
Extra arguments |
|
ajaxError
This event is only called if an error occurred with the request (you can never have both an error and a success callback with a request).
Property |
Value |
||||||
|---|---|---|---|---|---|---|---|
Synchronicity |
Sync |
||||||
Bubbles |
Yes |
||||||
Cancelable |
No |
||||||
Target |
|
||||||
Extra arguments |
|
ajaxComplete
This event is called regardless of if the request was successful, or not. You will always receive a complete callback, even for synchronous requests.
Property |
Value |
||||
|---|---|---|---|---|---|
Synchronicity |
Sync |
||||
Bubbles |
Yes |
||||
Cancelable |
No |
||||
Target |
|
||||
Extra arguments |
|
$(document).on 'ajaxBeforeSend', '.new-comment', ->
$(this).addClass 'loading'
$(document).on 'ajaxComplete', '.new-comment', ->
$(this).removeClass 'loading'
$(document).on 'ajaxSuccess', '.new-comment', (event, xhr, settings, data) ->
$('.comments').append data.commentHTML
$(document).on 'ajaxError', '.new-comment', ->
alert "Something went wrong!"
Method
#= require rails/method
Allow links to be followed with an alternate method
using data-method
.
To fake this, a hidden form element is created on the fly and is submitted.
Markup

Attribute |
Description |
|---|---|
|
Method for following |
Delete
Confirm
#= require rails/confirm
Prompts native confirm dialog before activating link.
Markup

Attribute |
Description |
|---|---|
|
Message to pass to |
Delete
Disable
#= require rails/disable
Disables clicked buttons with text in data-disable-with
.
Markup
<input type=submit>
or <button type=submit>
Attribute |
Description |
|---|---|
|
Message to set |
<input type="submit" data-disable-with="Submitting...">
Accept
#= require rails/accept
Make default Accept header prefer JS.
jQuery's default Accept header is just "*/*"
, which means accept
anything back. To make AJAX requests work nicer with Rails'
respond_to
block, this prioritizes JS responds over others.
For an example:
respond_to do |format|
format.html
format.js
end
Would return html
for "*/*"
just because its first in the list.
Adjusting the Accept header makes it work as expected.
Otherwise, if there is no format.js
, the first responder will be used.
The new Accept value is:
"*/*;q=0.5, text/javascript, application/javascript,
application/ecmascript, application/x-ecmascript"
CSRF
#= require rails/csrf
Adds CSRF tokens to AJAX requests and forms missing them.
CSRF tokens must be set in the document head as meta tags.
<meta name="csrf-param" content="authenticity_token">
<meta name="csrf-token" content="5b404f7b7f90dc67708635fc8dd3">


THE RELIC (1997) A film review by Nick Schaden Copyright 1997 Nick Schaden
What is with the horror/thriller genre of today? Either we have movies that try to spoof horror (i.e. "Scream") with moderately enjoyable results, or the countless number of movies that actually try to freak us out, with for the most part, far too predictable and almost laughable results. "The Relic" throws us an interesting plot and pretty sweet special effects - big potential. However, by the end of the movie, all the glory that "The Relic" tries to achieve nose dives.
The plot of "The Relic" (contrary to all the scientific mumbo jumbo you hear throughout the movie) is rather simple: A mutated monster that kills humans to stay alive has been accidentally sent to the Field Museum in Chicago with disastrous results. An attractive evolutionary biologist (Penelope Ann Miller) and a veteran homicide cop (Tom Sizemore) both work apart, then together to stop and destroy this monster. The plot actually stays intact pretty well for a horror flick, and I enjoyed it, it was quite original. To boot, the "scariness" of the movie starts slow and picks up speed gradually, with satisfying results. In addition, a few of the "nail biting" hooks work relatively well, and the cinematography does these sparse scenes justice.
Unfortunately, about halfway through the movie when the tension really heats up, the movie tanks. First problem: the acting. Penelope Ann Miller turns suddenly from a good role as bad boy biologist into yet another stereotyped "woman-victim", meaning she spends the rest of the movie screaming and running in high heels and a tight black dress. The other star, Tom Sizemore hits rock bottom too. Sizemore starts as the hard-boiled cop he seems to play well in many movies (i.e. "True Romance") but soon goes WAY over the top, reduced to doing little but barking orders and using the "f" word a lot.   Even the two stars don't exactly have a winning formula: Instead of just trying to escape right away from the museum, they decide that "this f**king thing has to be DESTROYED first" and spend much of the movie trying to find the origin of this monster. It all seemed quite trivial to me, just a pretty lame plot excuse to have some more "near-miss" thriller scenes. Last problem: The ending. After what seemed to be a very confusing and overblown "special effects extravaganza" final showdown, in what seems a matter of seconds the entire movie wraps itself up far too quickly.
In the end, "The Relic" seemed like a horror/thriller movie almost ready to crack out of its shell, but unfortunately became another heavily flawed flick that dies half way out of the starting gate.
Nick's Rating: -2
*** Movies rated from -4 (worst) to +4 (best), 0 = average movie ***
-- Nick Schaden Send your comments to<EMAIL_ADDRESS>Check out all of Nick's reviews at: http://uslink.net/~cpunut/movies.html
The review above was posted to the
rec.arts.movies.reviews newsgroup (de.rec.film.kritiken for German reviews).
The Internet Movie Database accepts no responsibility for the contents of the
review and has no editorial control. Unless stated otherwise, the copyright
belongs to the author.
Please direct comments/criticisms of the review to relevant newsgroups.
Broken URLs inthe reviews are the responsibility of the author.
The formatting of the review is likely to differ from the original due
to ASCII to HTML conversion.
Related links: index of all rec.arts.movies.reviews reviews


public class EntityList extends ObjectList
In addition to the inherited indexed collection, this class also includes access to the contents sorted by the x-coordinate of their location.
This class makes use of the Logger class to report errors.
| Modifier and Type | Field and Description |
|---|---|
private java.util.HashMap<java.lang.String,java.lang.Integer> |
entityHash |
private java.util.Vector<Entity> |
entityVector |
private int |
testNumberOfEntities |
private double |
testRadius |
private double |
testXcentre |
private double |
testXmax |
private double |
testXmin |
private double |
testYcentre |
private double |
testYmax |
private double |
testYmin |
private java.util.ArrayList<Entity> |
xarray |
list
| Constructor and Description |
|---|
EntityList() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Entity entity)
Add an entity to the collection.
|
private void |
doArgs(java.lang.String[] args) |
java.util.Vector<Entity> |
findBetween(double low,
double high)
Find all entities with a x coordinate between the low and high
values supplied (inclusive).
|
Entity |
findHighestX(double x)
Find the entity with the highest x coordinate that is
lower than the supplied x value.
|
Entity |
findLowestX(double x)
Find the entity with the lowest x coordinate that is
greater than the supplied x value.
|
java.util.Vector<Entity> |
findWithin(Coordinate coordinate,
double radius)
Find all entities with a circle centred on the supplied coordinate.
|
java.util.Vector<Entity> |
getEntities(double xmin,
double xmax)
Return a set of entities that are within the minimum and maximum x values (inclusive).
|
Entity |
getEntity(java.lang.String name)
Get an Entity from the collection using its name as an index key.
|
int |
getIndex(java.lang.String name) |
Entity |
getNext(int index) |
java.lang.String |
listDetails() |
static void |
main(java.lang.String[] args)
The class is executable and will run a simple test.
|
private void |
shuffle(Entity entity)
Shuffle sort the entity through the array to its correct location.
|
private void |
test()
Perform a simple test.
|
private void |
testBetween(double low,
double high) |
private void |
testCircle(Coordinate coordinate,
double radius) |
private void |
testLowHigh(double x) |
private java.util.ArrayList<Entity> xarray
private java.util.Vector<Entity> entityVector
private java.util.HashMap<java.lang.String,java.lang.Integer> entityHash
private int testNumberOfEntities
private double testXmin
private double testXmax
private double testYmin
private double testYmax
private double testXcentre
private double testYcentre
private double testRadius
public Entity getEntity(java.lang.String name)
name
- The name of the entity to find.public Entity getNext(int index)
public boolean add(Entity entity)
entity
- The Entity to add.public int getIndex(java.lang.String name)
private void shuffle(Entity entity)
entity
- public java.util.Vector<Entity> getEntities(double xmin, double xmax)
xmin
- The minimum value.xmax
- The maximum value.public Entity findLowestX(double x)
x
- The x comparison value.public Entity findHighestX(double x)
x
- The x comparison value.public java.util.Vector<Entity> findBetween(double low, double high)
low
- The lowest or most westerly x value.high
- The highest or most easterly x value.public java.util.Vector<Entity> findWithin(Coordinate coordinate, double radius)
coordinate
- The coordinate denoting the centre of the circle.radius
- The radius of the circle in km.public java.lang.String listDetails()
public static void main(java.lang.String[] args)
args
- Not used.private void doArgs(java.lang.String[] args)
private void test()
private void testBetween(double low, double high)
private void testLowHigh(double x)
private void testCircle(Coordinate coordinate, double radius)


Field:
×
px.
Cell:
×
.
Margins:
px.
Emtry:
First
,
Last
,
Random
.
Image:
image 1
image 2
image 3
image 4
custom
.
Link:
.
Emtry cell:
color
image 2
custom image
.
Link:
.


BanG Dream! (バンドリ!, Bandori!) is a Japanese multimedia project developed by Bushiroad. BanG Dream! has released music CD's, anime music videos, live concert videos, manga adaptions, games, card games, and an anime series.
Bushiroad launched the project in January 2015. Poppin'Party was formed in February 2015. With the creation of the mobile game, four other bands were created namely Afterglow, Pastel*Palettes, Roselia, and Hello, Happy World!
An all-girl band project, THE THIRD, was announced in January of 2018 later renamed to RAISE A SUILEN. RAISE A SUILEN is not a part of the mobile game however they do have a role in in season 2 of the show.
Currently the the mobile application game, "BanG Dream! Girls Band Party!" ranked No. 38 in Japan for Top Grossing in 2018.
A girl band always searching for that sparkling, heart-pounding beat, based on Toyama Kasumi's (guitar and vocals) childhood observation of the stars shining in the night sky. The other four members are music-lover Hanazono Tae (lead guitar), shy but confident girl Ushigome Rimi (bass), kind and family-oriented Yamabuki Saaya (drums), and constant contrarian Ichigaya Arisa (keyboard). They have band practice in Arisa's basement, and what they lack in skill and experience, they more than make up for in enthusiasm.
The group consists of five members, namely Mitake Ran (guitar and vocals), Aoba Moca (guitar), Uehara Himari (bass), Udagawa Tomoe (drums), and Hazawa Tsugumi (keyboard). A girl band made up of childhood friends. When Ran moved to a different class, the girls made a band so they could still see each other. Now in high school, they love playing in their band, practicing after school and playing live shows. They get along famously and almost never fight. Though they're still fairly inexperienced, they gained popularity for their powerful performances and strong vocals.
An idol band formed by a talent agency. The band is made up of Maruyama Aya (vocals), who has spent huge amounts of time training for her debut; celebrity and child actor Shirasagi Chisato (bass), and modeling sensation Wakamiya Eve (keyboard). They were later joined by Hikawa Hina (guitar), who passed the band's auditions and then studio musician Yamato Maya (drums). The five of them are using this experience to bolster their very own definition of an "idol" and what is it to be one.
A highly talented band.  Minato Yukina (vocals) started the band with a special certain goal in mind. The other members are the like-minded Hikawa Sayo (guitar), childhood friend Imai Lisa (bass), youngest and most talented Udagawa Ako (drums), and the award-winning Shirokane Rinko (keyboard). They play at a well-known live house and hope someday to make it to the big time.
A band formed on the concept of "Making the world smile." The super optimist and crazy rich Tsurumaki Kokoro (vocals), the beautiful and ever-popular Setou Kaoru (guitar), sporty Kitazawa Hagumi (bass), the kind-hearted and girly Matsubara Kanon (drums), and calm, cool and collected Okusawa Misaki (DJ) make up this band. They often perform at pre-schools and children's hospitals, making them popular with the youngsters.
Since the voice actresses of Afterglow, Pastel*Palettes or Hello, Happy World! are unable to play their characters' instrument, RAISE A SUILEN was created to allow the vocalists to have a chance to perform. However, the band also has their own original songs. The band members play roles of characters within the Bang Dream anime.
The group consists of four members, namely Ushigome Yuri on guitar and vocals, Uzawa Rii on bass, Wanibe Nanana on keyboard and Nijikki Hinako on drums. The band played a minor role within the anime however their songs do appear in the mobile game.


THE WILBY CONSPIRACY A Film Review Copyright Dragan Antulov 1998
Apartheid in South Africa, one of the more shameful episodes in the last half of this century, seemed to be mostly ignored by Hollywood until late 1980s. Before that time, American mainstream producers didn't dare to tackle the subject of the country that was nominally capitalist democracy and Western ally, yet with the regime that made Communism look good. Instead of them, that task was carried out by movie authors in Commonwealth countries, less troubled with cheap Cold War politics. One of such projects is 1975 British production THE WILBY CONSPIRACY, directed by Ralph Nelson and based on Peter Driscoll's novel.
The movie begins in Cape Town courtroom, where Rina van Niekirk (Prunella Gee), liberal white lawyer, tries to win freedom for her client Shack Twala (Sydney Poitier), black anti-apartheid activist who spent ten years in prison. To her own big surprise, the government decides to let Twala go, but only hours after the release he gets again in trouble with police, this time together with Rina's boyfriend Jim Keogh (Michael Caine), British engineer. Two men become fugitives and are forced to drive to Johannesburg, where Twala seeks help by Doctor Mukharjee (Saeed Jaffrey), Hindu dentist and fellow member of Black Congress. In the mean time, sadistical Major Horn (Nicol Williamson) from the secret police is on their trail.
Like many thrillers from the 1970s, THE WILBY CONSPIRACY has a rather complicated plot and some of today's viewers might even get lost in a quagmire of political intrigue and endless double-crossings between the movie's protagonists. But, Ralph Nelson wraps it up as a solid piece of entertainment, using political reality of contemporary South Africa mostly as a background for conventional action thriller.  Some might argue that the subject of racial inequality and totalitarian oppression would be inappropriate for the use in a such mainstream product. Anyway, the actors did a really good job - Michael Caine brings a lot of charm to his role, unlike Sidney Poitier, whose almost solemn presence gives a rather nice contrast to Caine and establishes "buddy buddy" chemistry between the two. Other performances seems bland, except for Nicol Williamson as very convincing and intelligent villain. The end of the movie is perhaps slightly disappointing, but nevertheless THE WHILBY CONSPIRACY as a whole is worth watching, especially compared with today's "politically correct" movies.
RATING: 6/10 (++)
Review written on October 1st 1998
Dragan Antulov a.k.a. Drax Fido: 2:381/100 E-Mail<EMAIL_ADDRESS><EMAIL_ADDRESS>The review above was posted to the
rec.arts.movies.reviews newsgroup (de.rec.film.kritiken for German reviews).
The Internet Movie Database accepts no responsibility for the contents of the
review and has no editorial control. Unless stated otherwise, the copyright
belongs to the author.
Please direct comments/criticisms of the review to relevant newsgroups.
Broken URLs inthe reviews are the responsibility of the author.
The formatting of the review is likely to differ from the original due
to ASCII to HTML conversion.
Related links: index of all rec.arts.movies.reviews reviews


Dev Bootcamp Technical Blog
Brian Anthony Junio
Week 3 - JavaScript Favoritism
Why is JavaScript so popular in Web Development?
JavaScript is a lightweight, dynamic, and easy to use language. That ease of use is the leading reason many businesses are turning to JS to power their applications. In today's world, the market is constantly changing. In order to remain competitive one must have a product that can be altered to take advantage of the most current trends. JavaScript is the very language to facilitate this adapative nature.
With the recent popularity of Cloud Computing, JavaScript has seen a bit more server-side esposure. When implemented using the Node.js platform (based on Google's V8 JavaScript engine), JS can be used as an easily adaptable backend language. The popularity of this trend continues to grow as more and more established names hop on the bandwagon.
We should not overlook JavaScript being a Object Oriented Programming language. This is the reason for this language being so dynamic in our deployments. Our ability to construct objects and then manipulate them allows for much more flexibility when adding content to our sites.


S
teev
J
ames
-
The Official Site
Welcome
Blog
Source Code
Github
FB Page
X
Tech Enthusiast | Crazy Guy | Blogger
Studying at Govt. Model Engineering College
Studied at Carmel HSS Chalakudy
Studied at CMI Public School
Featured Links
THE TYPING GAME
The Typing Game is an android game that tests how fast you can type.
Official Blog
This is My Official Blog Where I often post images.
TINGE
Try to identify Colors from a few given colors using its RGB value.
Hoop Web
This is a general Content Website with various types of posts.
SWIFT STREAK
This is all about how Swiftly you can keep up the streak !
Steev Entertainment
A Facebook page with Large number of followers.
NoteClip
Website made in Django that is used to store notes online.
Virus
Courageous ? Run this on your windows PC. Works best if theres no Antivirus. Its not harmful & its made by me, so feel free to try
Social Media Profiles
Facebook
Play Store
Github
Twitter
Google+
Instagram
Youtube
LinkedIn
Social Media Profiles


Your recipes
Smoky Sweet-Potato Soup
Lalalalala
Kale and feta salad
Creamy blue cheese dressing
Cheddar beer soup
Mushroom soup
Potato hash with spinach and eggs
The best angel food cake
Blood Oxygen Smoothie
Gluten-free chocolate chips cookies
Pumpkin chocolate whoopie pies