Introduction to Data¶
While many scientific investigations may begin with an abstract question, this is usually revised in terms of constraints on available information and resources. In this class, we will often be limited to available data in semi or well structured formats. Accordingly, we want to be good at asking two different kinds of questions; Descriptive and Inferential.
Example I: Ames Housing¶
This dataset represents information about houses in Ames Iowa. Here is a link to the description of the dataset:
Your goal is to consider the different kinds of information available, and to generate at least two descriptive and two inferential questions about the dataset. Is there any data that you anticipate being problematic?
Example II: Donors Choose¶
A popular website for learning data science is kaggle.com. A recent competition involved a dataset from the organization Donors Choose that supports grants to teachers. They framed the problem as follows:
Next year, DonorsChoose.org expects to receive close to 500,000 project proposals. As a result, there are three main problems they need to solve:
- How to scale current manual processes and resources to screen 500,000 projects so that they can be posted as quickly and as efficiently as possible
- How to increase the consistency of project vetting across different volunteers to improve the experience for teachers
- How to focus volunteer time on the applications that need the most assistance
The goal of the competition is to predict whether or not a DonorsChoose.org project proposal submitted by a teacher will be approved, using the text of project descriptions as well as additional metadata about the project, teacher, and school. DonorsChoose.org can then use this information to identify projects most likely to need further review before approval.
See the full data description here. Again, your goal is to identify at least two inferential and two descriptive questions around this dataset.
Example III: NYC Open Data¶
Many city and state agencies have begun providing access to data through API’s. One example is the NYC Open Data located here. For example, if we wanted to use the dataset with information about restaurant meal information we find the code necessary to import the data. Quickly, we have this up and running in a Jupyter notebook and are ready to explore.
- Load the libraries:
pandas
,matplotlib
, andnumpy
In [1]:
%matplotlib inline
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
- Load in the data as a
DataFrame
In [2]:
nyc_311 = pd.read_json('https://data.cityofnewyork.us/resource/xk2u-49gx.json')
In [4]:
nyc_311.head()
Out[4]:
| address_type | agency | agency_name | borough | bridge_highway_direction | city | closed_date | community_board | complaint_type | created_date | ... | school_number | school_or_citywide_complaint | school_phone_number | school_region | school_state | school_zip | status | street_name | taxi_pick_up_location | unique_key | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | NaN | TLC | Correspondence - Taxi and Limousine Commission | Unspecified | NaN | NaN | 2005-01-12T00:00:00.000 | 0 Unspecified | Taxi Compliment | 2005-01-04T00:00:00.000 | ... | Unspecified | NaN | Unspecified | Unspecified | Unspecified | Unspecified | Closed | NaN | NaN | 33827 |
| 1 | NaN | DPR | Department of Parks and Recreation | MANHATTAN | NaN | NEW YORK | 2005-01-03T00:00:00.000 | 10 MANHATTAN | Animal in a Park | 2005-01-03T00:00:00.000 | ... | Unspecified | NaN | Unspecified | Unspecified | Unspecified | Unspecified | Closed | NaN | NaN | 33840 |
| 2 | NaN | DPR | Department of Parks and Recreation | BROOKLYN | NaN | BROOKLYN | 2005-01-07T00:00:00.000 | 06 BROOKLYN | Maintenance or Facility | 2005-01-04T00:00:00.000 | ... | Unspecified | NaN | Unspecified | Unspecified | Unspecified | Unspecified | Closed | NaN | NaN | 33845 |
| 3 | NaN | DPR | Department of Parks and Recreation | BROOKLYN | NaN | BROOKLYN | 2005-01-07T00:00:00.000 | 16 BROOKLYN | Maintenance or Facility | 2005-01-04T00:00:00.000 | ... | Unspecified | NaN | Unspecified | Unspecified | Unspecified | Unspecified | Closed | NaN | NaN | 33846 |
| 4 | NaN | DOT | Department of Transportation | MANHATTAN | NaN | NaN | 2005-01-04T00:00:00.000 | Unspecified MANHATTAN | Highway Condition | 2005-01-04T00:00:00.000 | ... | Unspecified | NaN | Unspecified | Unspecified | Unspecified | Unspecified | Closed | NaN | NaN | 34152 |
5 rows × 38 columns
In [6]:
nyc_311.info()
<class 'pandas.core.frame.DataFrame'>
Int64Index: 1000 entries, 0 to 999
Data columns (total 38 columns):
address_type 52 non-null object
agency 1000 non-null object
agency_name 1000 non-null object
borough 1000 non-null object
bridge_highway_direction 70 non-null object
city 291 non-null object
closed_date 998 non-null object
community_board 1000 non-null object
complaint_type 1000 non-null object
created_date 1000 non-null object
cross_street_1 136 non-null object
cross_street_2 133 non-null object
descriptor 1000 non-null object
facility_type 990 non-null object
ferry_direction 83 non-null object
incident_address 224 non-null object
incident_zip 220 non-null object
intersection_street_1 224 non-null object
intersection_street_2 224 non-null object
landmark 10 non-null object
location_type 621 non-null object
park_borough 1000 non-null object
park_facility_name 1000 non-null object
resolution_action_updated_date 326 non-null object
school_address 1000 non-null object
school_city 1000 non-null object
school_code 1000 non-null object
school_name 1000 non-null object
school_number 1000 non-null object
school_or_citywide_complaint 26 non-null object
school_phone_number 1000 non-null object
school_region 1000 non-null object
school_state 1000 non-null object
school_zip 1000 non-null object
status 1000 non-null object
street_name 224 non-null object
taxi_pick_up_location 125 non-null object
unique_key 1000 non-null int64
dtypes: int64(1), object(37)
memory usage: 304.7+ KB
In [9]:
#select a column
nyc_311['complaint_type']
Out[9]:
0 Taxi Compliment
1 Animal in a Park
2 Maintenance or Facility
3 Maintenance or Facility
4 Highway Condition
5 Maintenance or Facility
6 Ferry Inquiry
7 DCA / DOH New License Application Request
8 Taxi Compliment
9 Street Sign - Damaged
10 Ferry Inquiry
11 Street Condition
12 Street Sign - Damaged
13 Taxi Compliment
14 Maintenance or Facility
15 DCA / DOH New License Application Request
16 Maintenance or Facility
17 Street Condition
18 Highway Condition
19 Highway Condition
20 Taxi Complaint
21 Animal in a Park
22 Taxi Complaint
23 Taxi Complaint
24 Highway Condition
25 Street Condition
26 Ferry Inquiry
27 Taxi Complaint
28 Highway Condition
29 Taxi Compliment
...
970 Street Condition
971 DOE Complaint or Compliment
972 Animal in a Park
973 Taxi Complaint
974 Street Condition
975 Maintenance or Facility
976 Traffic Signal Condition
977 Ferry Inquiry
978 Ferry Inquiry
979 Ferry Inquiry
980 Street Condition
981 Street Condition
982 Ferry Inquiry
983 Taxi Compliment
984 Animal in a Park
985 Taxi Complaint
986 DCA / DOH New License Application Request
987 Taxi Compliment
988 Street Light Condition
989 Taxi Compliment
990 DCA / DOH New License Application Request
991 Highway Condition
992 Street Condition
993 DCA / DOH New License Application Request
994 Taxi Compliment
995 Street Light Condition
996 DCA / DOH New License Application Request
997 Street Light Condition
998 Taxi Compliment
999 Street Light Condition
Name: complaint_type, Length: 1000, dtype: object
In [10]:
#get value counts
nyc_311['complaint_type'].value_counts()
Out[10]:
Street Condition 152
DCA / DOH New License Application Request 134
Taxi Complaint 122
Maintenance or Facility 109
Taxi Compliment 105
Ferry Inquiry 83
Animal in a Park 68
Street Sign - Damaged 65
Highway Condition 62
Violation of Park Rules 21
DOE Complaint or Compliment 21
Drinking 8
Food Establishment 7
Volunteer Placement Request 7
Street Light Condition 5
Homeless Encampment 5
Overgrown Tree/Branches 5
Found Property 3
Rodent 3
Discipline and Suspension 3
Sidewalk Condition 2
Traffic Signal Condition 2
Health and Safety 2
Public Payphone Complaint 1
Bus Stop Shelter Placement 1
TLC Medallion Request 1
Window Guard 1
Root/Sewer/Sidewalk Condition 1
Street Sign - Missing 1
Name: complaint_type, dtype: int64
In [14]:
nyc_311['borough'] == 'BROOKLYN'
Out[14]:
0 False
1 False
2 True
3 True
4 False
5 False
6 False
7 False
8 False
9 True
10 False
11 False
12 False
13 False
14 True
15 False
16 False
17 False
18 False
19 False
20 False
21 False
22 False
23 False
24 False
25 False
26 False
27 False
28 False
29 False
...
970 False
971 False
972 False
973 False
974 False
975 False
976 False
977 False
978 False
979 False
980 False
981 False
982 False
983 False
984 False
985 False
986 False
987 False
988 False
989 False
990 False
991 False
992 False
993 False
994 False
995 False
996 False
997 False
998 False
999 False
Name: borough, Length: 1000, dtype: bool
In [16]:
bk = nyc_311[nyc_311['borough'] == 'BROOKLYN']
In [17]:
bk['complaint_type'].value_counts()
Out[17]:
Maintenance or Facility 26
Street Sign - Damaged 19
Street Condition 17
Animal in a Park 13
Highway Condition 12
Taxi Complaint 4
Drinking 3
Violation of Park Rules 3
Overgrown Tree/Branches 2
Homeless Encampment 2
Sidewalk Condition 1
Food Establishment 1
Rodent 1
Window Guard 1
Name: complaint_type, dtype: int64
In [18]:
bkplot = bk['complaint_type'].value_counts()
In [19]:
plt.plot([1, 3, 2, 5])
Out[19]:
[<matplotlib.lines.Line2D at 0x1178c3e10>]
In [20]:
bkplot
Out[20]:
Maintenance or Facility 26
Street Sign - Damaged 19
Street Condition 17
Animal in a Park 13
Highway Condition 12
Taxi Complaint 4
Drinking 3
Violation of Park Rules 3
Overgrown Tree/Branches 2
Homeless Encampment 2
Sidewalk Condition 1
Food Establishment 1
Rodent 1
Window Guard 1
Name: complaint_type, dtype: int64
In [23]:
bkplot.shape
Out[23]:
(14,)
In [25]:
bkplot.index[:5]
Out[25]:
Index(['Maintenance or Facility', 'Street Sign - Damaged', 'Street Condition',
'Animal in a Park', 'Highway Condition'],
dtype='object')
In [26]:
bkplot[:5]
Out[26]:
Maintenance or Facility 26
Street Sign - Damaged 19
Street Condition 17
Animal in a Park 13
Highway Condition 12
Name: complaint_type, dtype: int64
In [29]:
plt.bar(bkplot.index[:5], bkplot[:5])
plt.xticks(rotation = 80)
Out[29]:
([0, 1, 2, 3, 4], <a list of 5 Text xticklabel objects>)
In [30]:
plt.savefig('bkplainers.png')
daniel
dahee
becks
ash
<matplotlib.figure.Figure at 0x117b8d518>
import pandas as pd
from sodapy import Socrata
# Unauthenticated client only works with public data sets.


Libraries & Shapes
All Shapes
Registered Libraries
Shapes in Canvas2D library
Shapes in Aliasses library


Enum PatternModifiers
Pattern modifiers specify arbitrary extensions or modifications to the behavior specified by the handshake pattern.
Namespace: Noise
Assembly: Noise.dll
Syntax
[Flags]
public enum PatternModifiers
Fields
| Name | Description |
|---|---|
| Fallback | The fallback modifier converts an Alice-initiated pattern to a Bob-initiated pattern by converting Alice's initial message to a pre-message that Bob must receive through some other means (e.g. as the initial field in an initial IK message from Alice). After this conversion, the rest of the handshake pattern is interpreted as a Bob-initiated handshake pattern. |
| None | No pattern modifiers were selected. |
| Psk0 | The modifier psk0 places a "psk" token at the beginning of the first handshake message. |
| Psk1 | The modifier psk1 places a "psk" token at the end of the first handshake message. |
| Psk2 | The modifier psk2 places a "psk" token at the end of the second handshake message. |
| Psk3 | The modifier psk0 places a "psk" token at the end of the third handshake message. |


{{'Removing this component will also' | translate}} {{'remove all of its children' | translate}}! {{'Are you sure you want to do this' | translate}}?


Credit Suisse says investors should buy Virgin Galactic because of its 'near-term monopoly' in commercial space tourism, Business Insider - Business Insider Singapore
by Daniel Strauss, Business Insider US- Credit Suisse is recommending investors buy shares in the newly public space tourism company Virgin Galactic.
- The firm’s analysts initiated coverage of the company on Thursday with and “outperform” rating, citing its “near-term monopoly” in the commercial space industry.
- Virgin Galactic entered the public markets in late October through a merger with Social Capital Hedosophia, a venture capital firm run by Chamath Palihapitiya.
- Watch Virgin Galactic trade live on Markets Insider.
Investors should buy newly public Virgin Galactic because of its “near-term monopoly” in the budding space tourism industry, Credit Suisse analyst wrote in a note to clients on Thursday.
“Our bullish view reflects the near-term monopoly SPCE offers in an industry (commercial space tourism) where public investment opportunities are scarce,” the firm wrote. “We view this as a classic tech-driven high demand, low supply story with high barriers to entry.”
Credit Suisse initiated coverage of Virgin Galactic with an “outperform rating and $12.43 price target. That figure represents around a 39% premium from where shares traded on Thursday afternoon.
The lack of current offerings for space tourism enables “sticky pricing,” as well as the potential for price discrimination, the analysts found. That dynamic – in combination with low-operating costs thanks to the firm already having invested in the required infrastructure – creates strong economics for its business model.
“With no near-term competition, growth should be fueled by expanding supply,” the analysts wrote.
The firm determined its price target for Virgin Galactic through a blended valuation including an equally-weighted enterprise multiple and discounted cash flow.
The valuation also includes a 5% weighting for a potential catastrophic event such as a fatal crash, which was assigned a dollar-value of zero.
According to the bank’s forecast, Virgin Galactic could generate $278 million in EBITDA in 2024 on revenue of $576 million.
“Losses should dissipate rapidly as flight activity rises. Per flight ticket revenue is around 3x variable mission cost, which would drive very attractive incremental margins,” the analyst added.
Credit Suisse is the second firm behind Vertical Research Partners to initiate coverage on Virgin Galactic. Vertical Research has a $20 price target and “buy” rating on the stock, according to Bloomberg data.
Virgin Galactic became the first publicly-traded space tourism company in late October by merging with Social Capital Hedosophia, a venture capital firm run by Chamath Palihapitiya.


jQuery
>
Assignment - 1
Hello World! How are you?
I'm fine
Hello World! How are you?
I'm fine
Hello World! How are you?
I'm fine
Hello World! How are you?
I'm fine
Hello World! How are you?
I'm fine
Hello World! How are you?
I'm fine


Machine Learning Metode Bayes
Data Training
No.
Outlook
Temperature
Humidity
Wind
Enjoy Sport
1
Rainy
Sunny
Cold
Warm
High
Normal
Strong
Normal
Yes
No
+1 row
Data Testing
Sky
Temperature
Humidity
Wind
Enjoy Sport
Rainy
Sunny
Cold
Warm
High
Normal
Strong
Normal
Yes
No
Cari Hasil


--- layout: post title: The Barefoot Running Debate date: 2011-02-17 11:10:00.000000000 +00:00 tags: - running - barefoot - Christopher McDougall - debate type: post published: true ---
I can't believe I missed this. Christopher McDougall (author of Born to Run) has a good discussion on the barefoot running debate that is worth a read. Ultimately, I think it all comes down to a single quote:
But ultimately, the debate isn't about Bare Soles vs. Shoes. It's about learning to run gently. Master that, and you can wear — or not wear — anything you please.
— Christopher McDougall
This is essentially what I've been telling everyone who asks me why I run barefoot.


Crazy Wasm Compose Area
Compose some content, if you dare!
Clear selection ranges
Focus compose area
Select word
Selection
Word at Caret
Extracted Text
Raw HTML
Log
[[VERSION]]
Links:
Benchmarks
|
GitHub


---
layout: page
title: Hire me
subtitle: Considering hiring me, here you can find more info
permalink: /hire-me/
---
My expertise is based on a combination of two things – a deep understanding of technology and experience on how it works in reality. For me expetise means extensive experience and working with some of the most trusted and widely used technologies and platforms available.
I undestand that resources will always be limited so my goal is always to focus on getting the most return.
My services include full software development proccess from requirements gathering, analysis and design to the development and support of the solution.
As a developer I’m dedicated to write highly maintainable and reliable code while following best coding practices. I'm in this job more than five years and some details of my work you can find on projects page.
I work closely with my clients to identify and build the differentiating technologies they need to outperform their competitors and succeed in their target market.
I undestand that resources will always be limited so my goal is always to focus on getting the most return.


Home
About
Services
Web Development
Android Development
Machine Learning
SEO
Blog
HTMl
22 Post
Pyhton
2 Post
CSS
16 Post
Ruby
11 Post
Java
28 Post
Dart
13 Post
Contact
Your Website Here


0.13.2 Release : Jailbreak (out of Deadlock City)
The PiTiVi team is proud to announce the second release in the unstable 0.13 PiTiVi series.
Due to its dependency on GStreamer, The PiTiVi team strongly recommends users have all official latest gstreamer libraries and plugins installed for the best user experience.
Features of this release
- Undo/Redo support
- Audio mixing
- Ripple/Roll edit
- misc fixes everywhere
Requirements
- gstreamer >= 0.10.24
- gst-python >= 0.10.16
- gnonlin >= 0.10.12
- pygtk >= 2.14.0
- Python >= 2.5
- zope-interface
- python setuptools
- pygoocanvas (http://live.gnome.org/GooCanvas)
- dbus and HAL for capture support
Contributors
Ranked by commits:
148 Alessandro Decina
102 Brandon Lewis
61 Edward Hervey
7 Claude Paroz
5 Mario Blättermann
4 Per Kongstad
3 António Lima
2 Daniel Nylander
2 Jan Gerber
1 Bruce Cowan
1 Gianvito Cavasoli
1 Gil Forcada
1 Jesse Aviles
1 Jesse Avilés
Download
PiTiVi source tarballs are available on gnome FTP: http://ftp.gnome.org/pub/GNOME/sources/pitivi/0.13/
Packages for Ubuntu 9.04 (Jaunty Jackalope) are available on this PPA repository.
Information and Feedback
- Information for users and developers can be found on the PiTiVi website : http://www.pitivi.org/
- Comments and feedback are welcome.
- Mailing-list<EMAIL_ADDRESS>- PiTiVi bug-tracker : http://bugzilla.gnome.org/browse.cgi?product=pitivi
Bugs Fixed
- 584023 : Import Folder of Clips menu item not working
- 589814 : [keyframe] should have percentage labels
- 566486 : [Segmentation fault] (py)goocanvas 0.13 and python 2.6
- 576276 : contextual toolbar buttons should be insensitive when not...
- 579536 : source list thumbnails are not shown when loading a project
- 583637 : Change command line interface to be more compatible with ...
- 584049 : PiTiVi doesn't keep the " Nothing yet " status on render wi...
- 584093 : selecting overlapping clips selected clips moves to top
- 584899 : [Formatter] Fix .pls/.m3u Formatters
- 585181 : no thumbnails for existing sources after loading .xptv
- 586786 : Trying to dispose element pngenc0, but it is not in the N...
- 587332 : undo forgets about volume keyframes
- 587333 : no way to remove volume node/keyframe
- 587334 : volume operations can not be undone
- 587371 : crash on start if ~/.local does not exist
- 587377 : Command line -i flag broken
- 587411 : keyframes broken with trimmed clips
- 587945 : editing_context and advanced_editing_modes branches
- 588258 : undo and redo should be in the main toolbar
- 588415 : Traceback after dropping new clips onto the timeline
- 589694 : trimmed clips can be extended under/over clips next to them
- 589695 : adding several clips with mouse, they overlap if moving t...
- 589725 : don't block the user from overlapping clips
- 589784 : default pane positions are fail sauce
- 589803 : Problems while moving a clip to a different layer
- 589807 : Double-clicking a clip in source-list has no effect
- 378597 : Multiple-resolution logo
- 518689 : " Internal data stream error " with OGG video
- 568749 : Choppy Audio with some .avi files
- 575945 : mix concurrent audio clips on different layers
- 575952 : better spacing around thumbnail frames in the timeline
- 576575 : clips can only be added to first layer
- 577451 : Text doesn't fit into the box
- 583226 : can't render, clowns will eat me
- 583241 : better default filechooser size for the " missing media " d...
- 583474 : Use named placeholders when string contains more than one
- 583861 : Translation of /pitivi/utils.py:234
- 584056 : Minor string fixes
- 584084 : File filter menu not translated in open dialog
- 584086 : Button labels not translatable
- 584123 : Some strings in encoding dialog are not translatable
- 584128 : Most labels in Preferences are untranslatable
- 584415 : Cairo - > cairo
- 584416 : Ambiguous string
- 586184 : formatter can't find all streams on project load
- 587327 : write all temp files into one folder in /tmp
- 587378 : Ctrl + Click broken
- 589513 : timeline requests too much space when loading files
- 589628 : Media clip thumbnails not loaded if you re-open a project
- 589689 : keyframe curves go through the roof
- 589715 : implement ripple trims
- 589799 : Sound cuts out replaying mp4
- 589820 : [keyframes] audio volume curves don't allow amplifying th...
- 590195 : <IP_ADDRESS> - > <IP_ADDRESS> needs newer python-gtk
- 591149 : regression in the project settings dialog
- 579323 : save button should be insensitive when no changes have be...
- 579531 : warn about unsaved changes on close
- 580680 : toolbar settings not applied on startup
- 585653 : regression: simple save has been replaced by save as
- 585794 : regression: render button/menu item is insensitive
- 582327 : playhead resets the timeline scroll position on clicking ...
- 575364 : [LGM2009] first 4 seconds of OGV (theora) clips cannot be...
- 579237 : search as you type doesn't work in the media library
- 585926 : importing a DV-in-avi file fails
- 587008 : keyframes not saved
- 589812 : the mouse cursor should change when over a curve/keyframe
- 589813 : [keyframe] dragging a curve segment between two keyframes...
- 589817 : cancel accidental movement when double-clicking on a curve
The results of the search are


pip_services3_mongodb.persistence.MongoDbPersistence module¶
pip_services3_mongodb.persistence.MongoDbPersistence¶
MongoDb persistence implementation
| copyright: | Conceptual Vision Consulting LLC 2018-2019, see AUTHORS for more details. |
|---|---|
| license: | MIT, see LICENSE for more details. |
-
class
pip_services3_mongodb.persistence.MongoDbPersistence.
MongoDbPersistence
(collection=None)¶ Bases:
pip_services3_commons.refer.IReferenceable.IReferenceable
,pip_services3_commons.config.IConfigurable.IConfigurable
,pip_services3_commons.run.IOpenable.IOpenable
,pip_services3_commons.run.ICleanable.ICleanable
Abstract persistence component that stores data in MongoDB and is based using Mongoose object relational mapping.
This is the most basic persistence component that is only able to store data items of any type. Specific CRUD operations over the data items must be implemented in child classes by accessing this._collection or this._model properties.
### Configuration parameters ###
- collection: (optional) MongoDB collection name
- connection(s):
- discovery_key: (optional) a key to retrieve the connection from IDiscovery
- host: host name or IP address
- port: port number (default: 27017)
- uri: resource URI or connection string with all parameters in it
- credential(s):
- store_key: (optional) a key to retrieve the credentials from ICredentialStore
- username: (optional) user name
- password: (optional) user password
- options:
- max_pool_size: (optional) maximum connection pool size (default: 2)
- keep_alive: (optional) enable connection keep alive (default: true)
- connect_timeout: (optional) connection timeout in milliseconds (default: 5 sec)
- auto_reconnect: (optional) enable auto reconnection (default: true)
- max_page_size: (optional) maximum page size (default: 100)
- debug: (optional) enable debug output (default: false).
### References ###
- Example:
- class MyMongoDbPersistence(MongoDbPersistence):
- def __init__(self):
- super(MyMongoDbPersistence, self).__init__(“mydata”, MyData)
- def get_by_name(self, correlationId, name):
- item = self._collection.find_one({ ‘name’: name }) return item
- def set(self, correlationId, item):
- item = self._collection.find_one_and_update( { ‘_id’: item.id }, { ‘$set’: item }, return_document = pymongo.ReturnDocument.AFTER, upsert = True )
persistence = MyMongoDbPersistence() persistence.configure(ConfigParams.from_tuples(“host”, “localhost”, “port”, 27017))
persitence.open(“123”)
persistence.set(“123”, { name: “ABC” }) item = persistence.get_by_name(“123”, “ABC”)
print item
-
clear
(correlation_id)¶ Clears component state.
Parameters: correlation_id – (optional) transaction id to trace execution through call chain.
-
close
(correlation_id)¶ Closes component and frees used resources.
Parameters: correlation_id – (optional) transaction id to trace execution through call chain.
-
configure
(config)¶ Configures component by passing configuration parameters.
Parameters: config – configuration parameters to be set.
-
is_opened
()¶ Checks if the component is opened.
Returns: true if the component has been opened and false otherwise.
-
open
(correlation_id)¶ Opens the component.
Parameters: correlation_id – (optional) transaction id to trace execution through call chain.
-
set_references
(references)¶ Sets references to dependent components.
Parameters: references – references to locate the component dependencies.


Massachusetts reports 3rd death linked to vaping
BOSTON (AP) - Massachusetts health officials say a third state resident has died from a vaping-related lung illness.
The state Department of Public Health announced Wednesday that a man in his 50s from Worcester County died, after telling officials he vaped both nicotine and the marijuana compound THC.
Officials say more than 200 suspected cases of vaping-associated lung injury have been reported to the health department since September.
The agency reported the first two deaths last month - a woman in her 40s from Middlesex County and a woman in her 60s from Hampshire County.
Federal health officials have tallied nearly 1,900 cases of vaping-related lung illness nationwide, including nearly 40 deaths.
Republican Gov. Charlie Baker issued an emergency ban on vaping products in September in response to the lung illnesses.
Sign up for Daily Newsletters
Copyright © 2019 The Washington Times, LLC.
Please read our comment policy before commenting.


When, How, and Why do we use Classes?
July 20, 2015
July 20, 2015
A brief history of classes and why they exist
There are two programming styles: procedural and object-oriented. In the procedural style, you think of the solution as a series of steps, which when executed in the correct sequence, will solve your problem. This is much like a cooking recipe, i.e. “Step 1 chop up ingredients; Step 2 heat oil in pan; Step 3…”
Programmers originally adopted such a procedural style, and the programming languages themselves encouraged the procedural style. However, as programs become larger and more complex, it become difficult to write and maintain such programs.
A new type of style merged: object-oriented design. In object-oriented programming, you think of problem as a series of entities which interact with each other. For example, I was using a Google Hangout this morning, and such a complex piece of functionality could surely be modeled as a set of objects which interact with each other. For example, you have a “User” object, a “Chat Window” object, a “Video Stream” object, and so on.
Each of the above objects can be modeled as a “class”.
What is a class?
A class in Ruby can consist of data attributes and methods. To continue the Google Hangout example above, the User object can be modeled as a class with the following attributes: name icon
It can have methods such as: mute_audio unmute_audio
An important concept in understanding classes is the difference between the class declaration vs. an instance of the class. The declaration serves as a blueprint for the class, while the class instances are specific “instances” of the class. There is only one blueprint but there can be many instances. In the above example, we have shown the class decleration. An instance of the class might be a specific User with name=”Utsab”How to use a class?
In the “User” example above, the class declaration in Ruby might look like the following:
class User
def initialize (name, icon)
@name = name
@icon = icon
end
def mute_audio
#do something
end
end
utsab = User.new(“Utsab”, “utsab.png”)
utsab.mute_audio
A couple of few points from the above code sample: First the “initialize” function will run initial setup code for the class. Second, the instance variables are distinguished by the “@” symbols preceding the variable name. Finally, we create an instance of the class and call the “mute_audio” method.


Our 20 Favorite Car Toys for Kids 22 Nov 2019, 20:34 by Popular Mechanics And they aren’t just your grandparents’ Hot Wheels (but yes, there are a couple of those). From Popular Mechanics


12 LGUs receive DOH-Calabarzon’s Gintong DALOY award
by Analou De VeraThe Department of Health (DOH)-Calabarzon recently awarded the first “Gintong DALOY” (Damayan para sa Aksyong Linis, Oportunidad at Yamang pangkalusugan) Award to 12 local government units (LGUs) in Quezon province.
Regional Director Eduardo Janairo said the “Gintong DALOY” highlights the importance and benefits of having and using sanitary toilets, adequate, and safe water supply in the community.
“[It] also encourages local governments to showcase their best practices on sanitation, safe water supply, and other local initiatives and innovations related to environmental health,” he said.
“It is an Environmental Sanitation initiative of Quezon Provincial DOH Office in meeting the target in the Philippine Sustainable Sanitation Sector Roadmap by 2025 for water (100 percent) and by 2028 for sanitation (100 percent),” he added.
The winners at the barangay level for Category A were barangays Angeles in Alabat, Quezon (1st place), Pinaglubayan in Polilio, Quezon (2nd place), and Bagupaye in Mulanay, Quezon (3rd place). Caregory B winners were barangays Pambilan Sur in Alabat, Quezon (1st place), Mapagmahal in Perez, Quezon (2nd place), and Bato in Panukulan (3rd place).
The winners at the city/municipal level were the municipalities of Atimonan (1st place category A), Quezon and Lucban (1st and 2nd place respectively, for category B); and Alabat (1st), Panukulan (2nd) and San Antonio (3rd) for category C.
The DOH- Calabarzon said the “Gintong DALOY” project “calls for the provision of incentives for Zero Open Defecation (ZOD) communities with effective hygiene promotion and advocacy on environmental sanitation.”
“It also aims to raise awareness on the importance of sanitation, encourage LGUs to promote and implement policies and actions to meet sanitation target and to mobilize communities towards changing sanitation and hygiene practices through sanitation-health-education campaign,” it added.


1. I, , I/C No , declare that my child / children / ward (s) is/are currently NOT receiving The Straits Times School Pocket Money Fund (STSPMF) from any other STSPMF disbursing agency/school and have not applied for STSPMF at another disbursing agency/school.
2. I declare that the beneficiary / beneficiaries is/are NOT receiving other similar monthly pocket money schemes excluding MOE FAS.
3. I acknowledge that for the purpose of facilitating my application for the STSPMF, that is administered by the STSPMF through disbursing agencies and schools,
4. I acknowledge that the information I have provided is accurate. I understand that my/ my child / my children / my ward(s) data will be stored in the electronic Case Management System (and in future, any replacement system developed by STSPMF) and consent for the data to be shared with STSPMF and across other agencies for analysis and enhancement of service delivery.
5. I am aware that the STSPMF has the right to recover in full the STSPMF that was given to me, if I have provided inaccurate information, or withheld any relevant information from the school.
6. I am aware that the STSPMF assistance is given for the benefit of my child/ children/ ward(s), for use as pocket money in school.
This section seeks the consent of the STSPMF applicant to be featured and interviewed for articles on STSPMF. I, Parent/Guardian, NRIC No , consent to my Family/me being featured.


The JavaScript-based simulator OESjs implements the Object Event Simulation paradigm, and, consequently, allows a straight-forward coding of OE class models and DPMN process models.
For implementing the OE class design model with OESjs, we have to code all object types, event types and activity types specified in the model in the form of JavaScript classes.
The
Truck
object class can be coded with OESjs-Core2 in the
following way:
class Truck extends oBJECT { constructor({ id, name, status}) { super( id, name); // invoke the oBJECT constructor this.status = status; } } // a class-level attribute Truck.capacity = 15; // m3
All object classes inherit an
id
attribute and a name
attribute from the
pre-defined OES foundation class oBJECT
. Since trucks are
resource objects, we need to define a status
property for them.
We also define a class-level attribute capacity
for modeling
their load capacity, assuming that all trucks have the same
capacity.
The WheelLoader object class is coded in the same way as Truck.
The
HaulRequest
event class can be coded in the following
way:
class HaulRequest extends eVENT { constructor({ occTime, delay, quantity}) { super({occTime, delay}); this.quantity = quantity; } onEvent() { ... } }
All event classes inherit an occTime
attribute and a
delay
attribute from the pre-defined OES foundation class
eVENT
. Any event in OES can be created either with a value for
the attribute occTime
(standing for occurrence time)
or with a value for the attribute delay
. In the latter case,
the event's occurrence time is automatically derived by adding the value of
delay
to the current simulation time. In addition, the
HaulRequest event class has a property quantity
for
specifying the quantity to be hauled.
The onEvent
method
of the HaulRequest event class is not part of the information design
model. Rather, it is implementing an event rule specified in the process
design model. Consequently, it will be discussed below.
The GoToLoadingSite activity class can be coded in the following way:
class GoToLoadingSite extends aCTIVITY { constructor({id, startTime, duration}={}) { super({id, startTime, duration}); } static duration() {return rand.triangular( 30, 50, 40);} } GoToLoadingSite.resourceRoles = { "truck": {range: Truck} }
All activity classes inherit the attributes id
,
startTime
and duration
from the pre-defined OES
foundation class aCTIVITY
. When an activity is created as a JS
object during a simulation run, the value of its duration
property is obtained by invoking the duration()
function
defined as a class-level ("static") function for its activity class. These
activity duration functions typically implement a random variable by
invoking a random variate sampling function, such as
rand.triangular(30,50,40)
, which samples from the triangular
probability distribution function (with min/max=30/50 and
mode=40).
Notice how the resource role association between
GoToLoadingSite and Truck, which defines the resource
reference property GoToLoadingSite::truck, is coded by a
corresponding entry in the map-valued class-level property
resourceRoles
.
A
DPMN process design model can be decomposed into a set of event rule design
models, one for each type of event specified in the design model. Starting
with the HaulRequest
event rule design model, we show how the
event rules specified by each of these event rule design models can be coded
in the form of an onEvent
method.
In the following HaulRequest
event
rule method onEvent
, all available trucks are allocated to the
current haul request, and, after computing the number of loads, for each of
the allocated trucks a new GoToLoadingSite
activity is
started:
class HaulRequest extends eVENT { ... onEvent() { const followupEvents=[], allocatedTrucks = sim.resourcePools["trucks"].allocateAll(); // assign model variable sim.model.v.nmrOfLoads = Math.ceil( this.quantity / Truck.capacity); for (const t of allocatedTrucks) { const goActy = new GoToLoadingSite(); // assign truck as required resource goActy.truck = t; // start GoToLoadingSite activity followupEvents.push( new aCTIVITYsTART({plannedActivity: goActy})); } return followupEvents; } }
Since activities are composite events, we also have event rules for them. The following GoToLoadingSite event rule is triggered whenever a GoToLoadingSite activity is completed, since the completion of an activity counts as its occurrence event.
This rule states that whenever a GoToLoadingSite activity ends (or is completed), then a new planned Load activity is enqueued, if no wheel loader is available, or, otherwise, a new Load activity is started. In OESjs, it is coded in the following declarative way:
GoToLoadingSite.successorActivity = "Load"
Such a successor activity assignment allows the simulator to check if the required resources are available and then start the successor activity, or, otherwise, enqueue a new planned successor activity.
This rule states that whenever a Load activity ends, the model variable nmrOfLoads is decremented by 1, and a Haul activity is immediately started (as a successor activity). Since the Haul activity doesn't require any additional resources, there is no need to enqueue a planned activity and wait for the availability of resources. In OESjs, this rule is coded in the following way:
class Load extends aCTIVITY { ... onActivityEnd() { const followupEvents = []; // decrement nmrOfLoads counter sim.model.v.nmrOfLoads--; return followupEvents; } ... } Load.successorActivity = "Haul";
Notice that the state change
expressed in the modelVariables object rectangle, the decrementation
of nmrOfLoads, is taken care of in the onActivityEnd
method of the Load
activity class. Instead of explicitly
scheduling the start of the succeeding Haul
activity in that
method, we simply define Haul
to be the successor activity of
Load
.
The Haul event rule states that whenever a Haul activity ends, it is immediately succeeded by a Dump activity. It is coded in the following way:
Haul.successorActivity = "Dump";
The Dump event rule states that when a Dump activity ends and the model variable nmrOfLoads has the value 0, it is immediately succeeded by a GoHome activity, otherwise it is immediately succeeded by a GoBackToLoadingSite activity. The rule is coded by defining the successor activity as a function returning either "GoBackToLoadingSite" or "GoHome" in the following way:
Dump.successorActivity = function () { return sim.model.v.nmrOfLoads === 0 ? "GoHome":"GoBackToLoadingSite"; }
The GoBackToLoadingSite event rule states that when a GoBackToLoadingSite activity ends and the model variable nmrOfLoads still has a value greater than 0, a new planned Load activity is enqueued; otherwise a GoHome activity is immediately started. The rule is coded by defining the successor activity of GoBackToLoadingSite as a function returning either "Load" or "GoHome" in the following way:
GoBackToLoadingSite.successorActivity = function () { return sim.model.v.nmrOfLoads > 0 ? "Load":"GoHome"; }


|
ovs all
|
Files | |
| file | bug.h [code] |
| file | compiler-gcc.h [code] |
| file | compiler.h [code] |
| file | cpumask.h [code] |
| file | err.h [code] |
| file | etherdevice.h [code] |
| file | flex_array.h [code] |
| file | icmp.h [code] |
| file | icmpv6.h [code] |
| file | if.h [code] |
| file | if_arp.h [code] |
| file | if_ether.h [code] |
| file | if_vlan.h [code] |
| file | in.h [code] |
| file | ip.h [code] |
| file | ipv6.h [code] |
| file | jiffies.h [code] |
| file | kconfig.h [code] |
| file | kernel.h [code] |
| file | list.h [code] |
| file | mpls.h [code] |
| file | net.h [code] |
| file | netdev_features.h [code] |
| file | netdevice.h [code] |
| file | netlink.h [code] |
| file | openvswitch.h [code] |
| file | percpu.h [code] |
| file | poison.h [code] |
| file | random.h [code] |
| file | rculist.h [code] |
| file | rcupdate.h [code] |
| file | reciprocal_div.h [code] |
| file | rtnetlink.h [code] |
| file | sctp.h [code] |
| file | skbuff.h [code] |
| file | stddef.h [code] |
| file | tcp.h [code] |
| file | types.h [code] |
| file | u64_stats_sync.h [code] |
| file | udp.h [code] |
| file | workqueue.h [code] |


Let's get to know our lucky contestants first:
Each turn, a player repeatedly rolls a die until either a 1 is rolled or the player decides to "hold":
For example, the first player, Anne, begins a turn with a roll of 5. Anne could hold and score 5 points, but chooses to roll again. Anne rolls a 2, and could hold with a turn total of 7 points, but chooses to roll again. Anne rolls a 1, and must end her turn without scoring. The next player, Bob, rolls the sequence 4-5-3-5-5, after which he chooses to hold, and adds his turn total of 22 points to his score.
points:
Round Total:
Gross Total:
points
Round Total:
Gross Total:


Throughout our lives, most of us have had pain from time to time (such as minor headaches, sprains, and toothaches). Have you had pain other than these everyday kinds of pain today?
On the diagram, check the areas where you feel pain.
Please rate your pain below.
Rate your pain at its least in the last 24 hours.
Please rate your pain on the average.
How much pain do you have right now?
What treatments or medications are you receiving for your pain?
In the last 24 hours, how much relief have pain treatments or medications provided?
In the last 24 hours, how much pain has interfered with your ...


--- layout: default title: Web and Coding Club, IIT Bombay ---
We're the Web and Coding club of IIT Bombay. This site enlists our ongoing activities.It is maintained by the community. We're wncc-iitb on most services. And we love XKCD.


The main goal of KickOff is to quickly get you started on your project with UIkit 3, bringing a solid layout foundation to work upon.
All the layouts are based on default UIkit styles to keeps things clean and simple, but some layouts may use some custom css code.
The css styles are the minified latest version of UIKit 3 ( currently 3.0.0-rc.6 ) from the cdn, you can find it here.
The code try to be as simple as possible, with commented sections, validated and semantic html5 markup.
Since UIkit 3 removed JQuery dependancy, it´s not included. All JS implementations are created by adding data-uk-*
attributes to the HTML elements. No additional JS lines are added.
The uikit.min.js
file is the minified latest version of UIKit 3 ( 3.0.0-rc.6 ) from the cdn, you can find it here.
The data-uk-*
syntax it´s used in order to work with every library and get html code validated.
All used components from UIkit 3 used in each layout are listed in order to know what is required.
All used pictures are random images from https://picsum.photos/.
At the moment these layouts are available ( more will be available soon!


--- layout: post authors: ["Greg Wilson"] title: The Future Then and Now date: 2015-04-13 time: "18:10:00" tags: ["Noticed"] ---
Jon Udell's Internet Groupware for Scientific Collaboration taught me how to think about the web. He started work on an update a couple of months ago, and it has now been published by PLOS. What strikes me upon re-reading the first is how far we've come; upon reading the second, is how far we still have to go to make all of this normal. As William Gibson said, "The future is already here—it's just not very evenly distributed."


Transferring Synergy album art to iTunes
-
displaced
Hi,
I've just replaced my ageing 2nd Gen iPod with a band new Colour iPod! However, I've now realised that 90%+ of my album art is stored by Synergy and not by iTunes itself within the tracks. Of course, without the art being actually within the files, my new iPod doesn't show the art!
Has anyone come across a script or easy method to add Synergy's downloaded artwork into the appropriate track in iTunes?
Many thanks,
Chris
-
displaced
Apologies everyone -- I've found other threads on this and am looking through the Bugzilla pages right now.
Sorry for the dupe post!
Chris
Reply
This topic is now closed.


Random Bookmark Options
Where should we open bookmarks from?
Should we include bookmarks in subfolders?
Include subfolders
Where should we open our bookmarks?
Always in a new tab
Always in the current tab
Initially in a new tab, and in that tab again if it's still open
Initially in the current tab, and in that tab again if it's still open
How should we pick what bookmark to open?
Random
Random, but don't pick a bookmark a second time until all other options have been visited
Shuffle
What icon should we use?
History
Off
Clear
Date
Name
Url


Description: Adds the specified class(es) to each of the set of matched elements.
className: String One or more class names to be added to the class attribute of each matched element.
function(index, currentClass): Function()
A function returning one or more space-separated class names to be added to the existing class name(s). Receives the index position of the element in the set and the existing class name(s) as arguments. Within the function, this
refers to the current element in the set.
It's important to note that this method does not replace a class. It simply adds the class, appending it to any which may already be assigned to the elements.
More than one class may be added at a time, separated by a space, to the set of matched elements, like so:
$("p").addClass("myClass yourClass");
This method is often used with .removeClass()
to switch elements' classes from one to another, like so:
$("p").removeClass("myClass noClass").addClass("yourClass");
Here, the myClass
and noClass
classes are removed from all paragraphs, while yourClass
is added.
As of jQuery 1.4, the .addClass()
method's argument can receive a function.
$("ul li:last").addClass(function(index) {
return "item-" + index;
});
Given an unordered list with five

elements, this example adds the class "item-4" to the last

.
<!DOCTYPE html>

Hello

and

Goodbye

<!DOCTYPE html>

Hello

and

Goodbye

<!DOCTYPE html>

This div should be white

This div will be green because it now has the "green" and "red" classes.
It would be red if the addClass function failed.

This div should be white

There are zero green divs


Earthquake of 5.6 Magnitude Strikes 8 Km Northwest of Casillas, Guatemala - USGS
A strong 5.6 -magnitude earthquake has shaken Guatemala, according to according to the United States Geological Survey (USGS).
The quake's epicentre was 8.2 km (5.1 miles) northwest of the town of Casillas and around 50 km (31 miles) southwest of the capital, Guatemala City.
Earthquake struck at a depth of 197 km (122 miles), the USGS said.
There are no immediate reports of damage and injuries.


Default Settings
Default Settings!
Word Bounded. Randomly Capitalized? Punctuation, Included!
Word Bounded. Randomly Capitalized? Punctuation, Included!


[[style.html]]
|
[[whitespace-16px.html]]
This is confirmation that your name request {{ nr_number }} has been cancelled and will not be reviewed by staff. [[whitespace-16px.html]]If you paid by credit card or a BC OnLine account: A refund of ${{ refund_value }} CAD (total payment value including service fee) will be applied to your original payment method. Refunds are usually processed within 10 to 14 business days. [[whitespace-16px.html]]If you paid by Pre-authorized Debit (PAD): If the name request was cancelled on the day of the original purchase and prior to 7:00 pm Pacific time, you will not be charged. If the NR was cancelled after 7:00 pm Pacific time on the day of the purchase, you will receive a refund to your PAD account within 10 to 14 business days. [[whitespace-16px.html]]If you mailed payment to BC Registries Services: You will not receive an automatic refund. Please call 1-877-370-1033 to request a refund. [[whitespace-16px.html]]Thank you for using Name Request. To submit another Name Request, visit www.bcregistry.ca/namerequest. [[whitespace-16px.html]]Note: We are unable to notify you when a refund payment has been processed. If you have not received your refund after 14 business days please contact us. [[whitespace-16px.html]] |


Files | |
| file | axis2_op_ctx.h |
Typedefs | |
| typedef struct axis2_op_ctx | axis2_op_ctx_t |
Functions | |
| AXIS2_EXTERN axis2_op_ctx_t * | axis2_op_ctx_create (const axutil_env_t *env, struct axis2_op *op, struct axis2_svc_ctx *svc_ctx) |
| AXIS2_EXTERN axis2_ctx_t * | axis2_op_ctx_get_base (const axis2_op_ctx_t *op_ctx, const axutil_env_t *env) |
| AXIS2_EXTERN void | axis2_op_ctx_free (struct axis2_op_ctx *op_ctx, const axutil_env_t *env) |
| AXIS2_EXTERN axis2_status_t | axis2_op_ctx_init (struct axis2_op_ctx *op_ctx, const axutil_env_t *env, struct axis2_conf *conf) |
| AXIS2_EXTERN struct axis2_op * | axis2_op_ctx_get_op (const axis2_op_ctx_t *op_ctx, const axutil_env_t *env) |
| AXIS2_EXTERN struct axis2_svc_ctx * | axis2_op_ctx_get_parent (const axis2_op_ctx_t *op_ctx, const axutil_env_t *env) |
| AXIS2_EXTERN axis2_status_t | axis2_op_ctx_add_msg_ctx (struct axis2_op_ctx *op_ctx, const axutil_env_t *env, axis2_msg_ctx_t *msg_ctx) |
| AXIS2_EXTERN axis2_msg_ctx_t * | axis2_op_ctx_get_msg_ctx (const axis2_op_ctx_t *op_ctx, const axutil_env_t *env, const axis2_wsdl_msg_labels_t message_id) |
| AXIS2_EXTERN axis2_bool_t | axis2_op_ctx_get_is_complete (const axis2_op_ctx_t *op_ctx, const axutil_env_t *env) |
| AXIS2_EXTERN axis2_status_t | axis2_op_ctx_set_complete (struct axis2_op_ctx *op_ctx, const axutil_env_t *env, axis2_bool_t is_complete) |
| AXIS2_EXTERN axis2_status_t | axis2_op_ctx_cleanup (struct axis2_op_ctx *op_ctx, const axutil_env_t *env) |
| AXIS2_EXTERN axis2_status_t | axis2_op_ctx_set_parent (struct axis2_op_ctx *op_ctx, const axutil_env_t *env, struct axis2_svc_ctx *svc_ctx) |
| AXIS2_EXTERN axis2_msg_ctx_t ** | axis2_op_ctx_get_msg_ctx_map (const axis2_op_ctx_t *op_ctx, const axutil_env_t *env) |
| AXIS2_EXTERN axis2_status_t | axis2_op_ctx_set_response_written (axis2_op_ctx_t *op_ctx, const axutil_env_t *env, const axis2_bool_t response_written) |
| AXIS2_EXTERN axis2_bool_t | axis2_op_ctx_get_response_written (const axis2_op_ctx_t *op_ctx, const axutil_env_t *env) |
| AXIS2_EXTERN void | axis2_op_ctx_destroy_mutex (struct axis2_op_ctx *op_ctx, const axutil_env_t *env) |
| AXIS2_EXTERN axis2_bool_t | axis2_op_ctx_is_in_use (const axis2_op_ctx_t *op_ctx, const axutil_env_t *env) |
| AXIS2_EXTERN axis2_status_t | axis2_op_ctx_set_in_use (struct axis2_op_ctx *op_ctx, const axutil_env_t *env, axis2_bool_t is_in_use) |
| AXIS2_EXTERN axis2_status_t | axis2_op_ctx_increment_ref (axis2_op_ctx_t *op_ctx, const axutil_env_t *env) |
| typedef struct axis2_op_ctx axis2_op_ctx_t |
Type name for struct axis2_op_ctx
| AXIS2_EXTERN axis2_status_t axis2_op_ctx_add_msg_ctx | ( | struct axis2_op_ctx * | op_ctx, | |
| const axutil_env_t * | env, | |||
| axis2_msg_ctx_t * | msg_ctx | |||
| ) |
Adds a message context.
| op_ctx | pointer to operation context | |
| env | pointer to environment struct | |
| msg_ctx | pointer to message context does not assume the ownership of the struct |
| AXIS2_EXTERN axis2_status_t axis2_op_ctx_cleanup | ( | struct axis2_op_ctx * | op_ctx, | |
| const axutil_env_t * | env | |||
| ) |
Cleans up the operation context. Clean up includes removing all message context references recorded in operation context.
| op_ctx | pointer to operation context | |
| env | pointer to environment struct |
| AXIS2_EXTERN axis2_op_ctx_t* axis2_op_ctx_create | ( | const axutil_env_t * | env, | |
| struct axis2_op * | op, | |||
| struct axis2_svc_ctx * | svc_ctx | |||
| ) |
Creates an operation context struct instance.
| env | pointer to environment struct | |
| op | pointer to operation that is related to operation context. operation context does not assume the ownership of the struct | |
| svc_ctx | pointer to parent service context |
| AXIS2_EXTERN void axis2_op_ctx_destroy_mutex | ( | struct axis2_op_ctx * | op_ctx, | |
| const axutil_env_t * | env | |||
| ) |
Destroys mutex used to synchronize the read/write operations
| op_ctx | pointer to operation context | |
| env | pointer to environment struct |
| AXIS2_EXTERN void axis2_op_ctx_free | ( | struct axis2_op_ctx * | op_ctx, | |
| const axutil_env_t * | env | |||
| ) |
Frees operation context.
| op_ctx | pointer to operation context | |
| env | pointer to environment struct |
| AXIS2_EXTERN axis2_ctx_t* axis2_op_ctx_get_base | ( | const axis2_op_ctx_t * | op_ctx, | |
| const axutil_env_t * | env | |||
| ) |
Gets base which is of context type.
| op_ctx | pointer to operation context | |
| env | pointer to environment struct |
| AXIS2_EXTERN axis2_bool_t axis2_op_ctx_get_is_complete | ( | const axis2_op_ctx_t * | op_ctx, | |
| const axutil_env_t * | env | |||
| ) |
Gets the bool value indicating if the MEP is complete. MEP is considered complete when all the messages that are associated with the MEP has arrived.
| op_ctx | pointer to operation context | |
| env | pointer to environment struct |
| AXIS2_EXTERN axis2_msg_ctx_t* axis2_op_ctx_get_msg_ctx | ( | const axis2_op_ctx_t * | op_ctx, | |
| const axutil_env_t * | env, | |||
| const axis2_wsdl_msg_labels_t | message_id | |||
| ) |
Gets message context with the given message ID.
| op_ctx | pointer to operation context | |
| env | pointer to environment struct | |
| message_id | message label of type axis2_wsdl_msg_labels_t. This can be one of AXIS2_WSDL_MESSAGE_LABEL_IN or AXIS2_WSDL_MESSAGE_LABEL_OUT from the axis2_wsdl_msg_labels enum. |
| AXIS2_EXTERN axis2_msg_ctx_t** axis2_op_ctx_get_msg_ctx_map | ( | const axis2_op_ctx_t * | op_ctx, | |
| const axutil_env_t * | env | |||
| ) |
Gets the message context map.
| op_ctx | pointer to operation context | |
| env | pointer to environment struct |
| AXIS2_EXTERN struct axis2_op* axis2_op_ctx_get_op | ( | const axis2_op_ctx_t * | op_ctx, | |
| const axutil_env_t * | env | |||
| ) | [read] |
Gets operation the operation context is related to.
| op_ctx | pointer to operation context | |
| env | pointer to environment struct |
| AXIS2_EXTERN struct axis2_svc_ctx* axis2_op_ctx_get_parent | ( | const axis2_op_ctx_t * | op_ctx, | |
| const axutil_env_t * | env | |||
| ) | [read] |
Gets parent which is of service context type.
| op_ctx | pointer to operation context | |
| env | pointer to environment struct |
| AXIS2_EXTERN axis2_bool_t axis2_op_ctx_get_response_written | ( | const axis2_op_ctx_t * | op_ctx, | |
| const axutil_env_t * | env | |||
| ) |
Checks the response status, whether it is written or not.
| op_ctx | pointer to operation context | |
| env | pointer to environment struct |
| AXIS2_EXTERN axis2_status_t axis2_op_ctx_increment_ref | ( | axis2_op_ctx_t * | op_ctx, | |
| const axutil_env_t * | env | |||
| ) |
Incrementing the op_ctx ref count. This is necessary when prevent freeing op_ctx through op_client when it is in use as in sandesha where the msg_cts is stored.
| op_ctx | pointer to operation context | |
| env | pointer to environment struct |
| AXIS2_EXTERN axis2_status_t axis2_op_ctx_init | ( | struct axis2_op_ctx * | op_ctx, | |
| const axutil_env_t * | env, | |||
| struct axis2_conf * | conf | |||
| ) |
Initializes operation context. This method traverses through all the message contexts stored within it and initialize them all.
| op_ctx | pointer to operation context | |
| env | pointer to environment struct | |
| conf | pointer to conf configuration |
| AXIS2_EXTERN axis2_bool_t axis2_op_ctx_is_in_use | ( | const axis2_op_ctx_t * | op_ctx, | |
| const axutil_env_t * | env | |||
| ) |
Checks whether op_ctx is in use. This is necessary when destroying the thread mutex at the http_worker to check whether the operation context is still in use
| op_ctx | pointer to operation context | |
| env | pointer to environment struct |
| AXIS2_EXTERN axis2_status_t axis2_op_ctx_set_complete | ( | struct axis2_op_ctx * | op_ctx, | |
| const axutil_env_t * | env, | |||
| axis2_bool_t | is_complete | |||
| ) |
Sets the bool value indicating if the MEP is complete. MEP is considered complete when all the messages that are associated with the MEP has arrived.
| op_ctx | pointer to operating context | |
| env | pointer to environment struct | |
| is_complete | AXIS2_TRUE if MEP invocation is complete, else AXIS2_FALSE |
| AXIS2_EXTERN axis2_status_t axis2_op_ctx_set_in_use | ( | struct axis2_op_ctx * | op_ctx, | |
| const axutil_env_t * | env, | |||
| axis2_bool_t | is_in_use | |||
| ) |
Set operation context's is_in_use attribute. This is necessary when destroying the thread mutex at the http_worker to check whether the operation context is still in use
| op_ctx | pointer to operation context | |
| env | pointer to environment struct | |
| is_in_use | AXIS2_TRUE if still in use, else AXIS2_FALSE |
| AXIS2_EXTERN axis2_status_t axis2_op_ctx_set_parent | ( | struct axis2_op_ctx * | op_ctx, | |
| const axutil_env_t * | env, | |||
| struct axis2_svc_ctx * | svc_ctx | |||
| ) |
Sets parent service context.
| op_ctx | pointer to operation context | |
| env | pointer to environment struct | |
| svc_ctx | pointer to service context, message context does not assume the ownership of the struct |
| AXIS2_EXTERN axis2_status_t axis2_op_ctx_set_response_written | ( | axis2_op_ctx_t * | op_ctx, | |
| const axutil_env_t * | env, | |||
| const axis2_bool_t | response_written | |||
| ) |
Sets the bool value indicating the status of response.
| op_ctx | pointer to operation context | |
| env | pointer to environment struct | |
| response_written | AXIS2_TRUE if response is written, else AXIS2_FALSE |


public class Corpus
extends java.lang.Object
This class will read a file vecs50 in order to get all the words and its vectors
The Corpus class provides one factory method , which allow user to get a corpus from a file. There are no constructor for users.
| Modifier and Type | Method and Description |
|---|---|
static Corpus |
corpusFactory(java.lang.String filePath)
a factory method who allows us to get the corpus from
a file donated by the argument
|
int |
getDimension()
Returns the dimension of the vector representing the word
|
int |
getNbWord()
Gets the number of words in the corpus
|
java.util.List<java.util.Map.Entry<java.lang.Double,java.lang.String>> |
getSimilarWord(java.lang.String word,
int size)
Returns the most similar words with specified word and its correlation coefficient.
|
java.util.List<java.util.Map.Entry<java.lang.Double,java.lang.String>> |
getSimilarWord(Vector vect,
int size)
Returns the most similar words with specified vector and its correlation coefficient.
|
Vector |
getVector(java.lang.String word)
Returns the vector to which the specified word is mapped.
|
void |
putWord(java.lang.String word,
Vector vect)
Associates the specified vector with the specified word in this corpus
(optional operation).
|
java.lang.String |
toString() |
public int getNbWord()
public int getDimension()
public void putWord(java.lang.String word, Vector vect)
word
- word with which the specified vector is to be associatedvect
- vector to be associated with the specified wordpublic Vector getVector(java.lang.String word) throws WordNotFoundException
More formally, if this corpus contains a mapping from a word
to a vector, then this method returns its vector; otherwise
it will throw a WordNotFoundException
.
word
- the word whose associated vector is to be returnedWordNotFoundException
- if the word is not in corpus.java.lang.NullPointerException
- if the specified word is null and this corpus
does not permit null keyspublic java.util.List<java.util.Map.Entry<java.lang.Double,java.lang.String>> getSimilarWord(Vector vect, int size)
This method will calculate the cosine similarity between the specified vector and each word in corpus.It can return a specified number of similar word.These mappings from a similarity to a word will save in a map.
vect
- the reference vector with which to compare.size
- the number of similar words which to returnpublic java.util.List<java.util.Map.Entry<java.lang.Double,java.lang.String>> getSimilarWord(java.lang.String word, int size) throws WordNotFoundException
This method will calculate the cosine similarity between the specified word and each word in corpus.It can return a specified number of similar word.These mappings from a similarity to a word will save in a map.
word
- the reference word with which to compare.size
- the number of similar words which to returnWordNotFoundException
- if the word is not in corpus.public static Corpus corpusFactory(java.lang.String filePath)
filePath
- The file path of corpuspublic java.lang.String toString()
toString
in class java.lang.Object


| Barath Oxygen |
| 444/2C Sirupuzhalpetta village Gummidipundi | ................ | |
| 601201 |
| . |
| . |
|<PHONE_NUMBER> |
| . |
|
|
|
|
| Covai Air Products |
| Bus Stop, 312/3, Mettupalayam Rd, | ................ | |
| Kumarapuram,
near Kumaran Mills, Narasimmnaiken, P N Palayam |
| 641031 |
| . |
| . |
|<PHONE_NUMBER> |
| . |
|
|
|
|
| Arasan Gas |
| #119, W Perumal Maistry St
, Madurai Main | ................ | |
| 625001 |
| . |
| . |
|<PHONE_NUMBER>/b> |
| . |
|
|
|
|
| Airpack Gases |
| No: 1A, Thirumurugan Nagar, | ................ | |
| Vallakottai Village, Sriperumbudur Taluk |
| 602105 |
| . |
| . |
|<PHONE_NUMBER> |
| . |
|
|
|
|


C/C++ (Computer Programming 1)
Java (Computer Programming 2)
Logical Circuit (Digital Circuit)
VHDL (Advanced Digital Circuit)
C# (Unity3D)
Python (Smart Career)
Embedded System (ESL)
A.I. (Unknown)
Photoshop (CSAG)
Illustrator (CSAG)
CSS (CSAG)
JS (CSAG)
HTML5 (CSAG)
Nintendo
Overwatch
Other...


Introduction
Introduction
Whatever you are physically; male or female, strong or weak, ill or healthy; all those things matter less than what your heart contains. If you have the soul of a warrior, you are a warrior. If you think like a warrior, world is yours. So bring out the warrior within you, join the battle, make the strategy, code it down, aim for a win and defeat your enemies. One with fastest reaction time, best strategy and coding skills will win the thrilling battle of Coding. So come and join the battle and prove yourselves!!!
Problem Statement
Problem Statement
1. Teams will consist of at most two members.
2. For section A: Proper brief explanation to the question is must. The answer should be clearly stated after proper working shown.
For section B: Only the required code is needed.
3. No use of the internet is allowed.
4. All contest officials will remain in the observing area and will not communicate with the team during the rounds unless any emergency requires their attention.
5. Only correct solutions will receive points.
6. Style of the solution will not be considered in the judging.
7. All decisions of the contest officials are final.
8. Rules, DO’S & DONT’S for the Finals will be declared after the prelims.
9. Enjoy Coding .
Rules
Rules
1. Every team must register themselves to this event beforehand.
2. The question patterns will be divided into two sections, section A and section B. Section A will consists of 20 questions based on logical reasoning and numerical ability while Section B will consist of 10 questions based on actual programming skills.
3. The teams with the highest number of completed questions after 1 hour will qualify for the final round.
4. A team can use a language of their choice among C/C++ and Java.
FAQs
Section A
In a certain code, the symbol for 0(zero) is * and that for 1 is #. There are no other symbol for all other numbers greater than 1. The numbers greater than 1 are to be written only by using the two symbols given above. The value of the symbols for 1 doubles itself every time it shifts one place to the left. Study the following examples
‘0’ is written as *
‘1’ is written as #
‘2’ is written as #*
‘3’ is written as ##
‘4’ is written as #** and so on.
(i)Which of the following will represent 13X8/2 + 3?
(a) #*###
(b)##**###
(c)###*##
(d)###**#
‘0’ is written as *
‘1’ is written as #
‘2’ is written as #*
‘3’ is written as ##
‘4’ is written as #** and so on.
(i)Which of the following will represent 13X8/2 + 3?
(a) #*###
(b)##**###
(c)###*##
(d)###**#
Section B
Using a proper developed code, try to implement above problem (to be input by the user in decimal) .
Prize
Certificate Policy
1. Certificate of Excellence will be provided to the participants who qualify for the FINALS.
2. Certificate of Participation will be provided to all the participants taking part in the event.
3. The teams which get disqualified due to disobeying any of the rules provided will not be entertained with any kind of certification.
Prize money worth: Rs. 28,000


Below is a list of common and important {{ names.abbr( 'sbt' ) }}, and its respective {{ names.name( 'android' ) }} plugin, commands.
| Command | Description |
| android:run | Compile the project, package a debug apk and deploy it to an active device or emulator |
| android:packageRelease | Create a signed apk |
| android:packageDebug | Create a debug apk |
| test | Run unit tests and report results |
| reload | Apply changes that have been made to your {{ names.abbr( 'sbt' ) }} configuration |
| compile | Compile the source code |
| clean | Remove all compiled and generated code, delete {{ names.name( 'proguard' ) }} cache. This might be useful when experiencing issues with incremental builds. |
If you find yourself running a particular {{ command( 'android:*' ) }} task very often, you may want to add a shortcut to your {{ names.abbr( 'sbt' ) }} configuration. E.g. {{ command( 'run <<= run in Android', 'scala' ) }} allows you to trigger the task from the console via {{ command( 'run' ) }} instead of {{ command( 'android:run' ) }}.


Wrote code for a basic portfolio and used CSS and JavaScript tools to make it responsive
Wrote code for the functionalities of an online store
Converted code into UML diagrams to interpret the relationships between classes
Tested the code using JUnit and throws, and designed a GUI for the store by using refactored code
Designed a basic user interface template for the Thankful Hearts NGO website
Created a new React project and git repository for easy collaboration
Wrote code for the header files and body of the landing page
Deployed the website using Firebase to help store files and data easily
Scheduled and prioritized tasks in order of urgency to ensure deadlines were always met
Wrote code using the knowledge of manipulation of pixels in Python to edit images with various filters
Troubleshooted the written codes to verify that it was working as intended by writing test functions


Using custom TNS_ADMIN refers to a directory where the Oracle SQL*Net configuration files (like sqlnet.ora and tnsnames.ora) are located.
Example: C:\Oracle\App\Server\Oracle\network\admin or /oracle/app/oracle/product/12.1.0/dbhome_1/network/admin
Source: ORAFAQ


Unique apartment homes with Old World Charm!
Our hilltop location is just minutes from WTAMU.
(GO BUFFS!!!)We offer beautiful and spacious studions, one bedroom, and two bedroom apartments for rent in Canyon, TX. Come see this hilltop location just a two minute drive to West Texas A&M University.
Studios, one bedroom and two bedroom apartments are available. Enjoy amenities including on-site laundry facilities, and stove and refrigerator furnished in all units.
Make an appointment to come see yours today.


One-Website Page Containing Image Carousel Challenge
An executer, initiator to learn, corvette enthusiast and an autodidact, all geek. Coded my first video game at age 12, Now I have decided to improve and transforming my knowledge from a part-time hooby into a coding lifestyle. With my constant urge to take project I participate in to the next level, I taught myself great areas of web developing, but I’d like to take my knowledge much further with your course.