WMS Factory Design
glidefactory ClassAd
Jump to:
Factory Advertisement of Entries
Each Factory entry advertises information about itself that Frontends use when creating requests. The Frontend also
uses this information to publish resource ClassAds to the User Collector.
There is one ClassAd per
entry point and it includes the following:
- Information used to identify the ClassAd. FactoryName and GlideinName are used
by the Frontend to identify the factory needed when generating requests.
- Values used to manage Classads in the Collector
- Name = "entry_name@glidein_name@factory_name"
- Internal ClassAd type of Master
- Values used to distinguish the different ClassAd types and used by GlideinWMS to query the Collector
- GlideinMyType = "glidefactory"
- Values set by GlideinWMS to be used by HTCondor but not by GlideinWMS
- MyType = "glidefactory"
- Values used to manage Classads in the Collector
- Requirements of the Factory.
- The Factory and Frontend agree on trust domains and are used to determine what credentials are valid for a site. This
is used by the Frontend to map a credential to an entry so each entry publishes its trust domain. The Factory does not
interpret this value and it is used by Frontends.
- GLIDEIN_TrustDomain = "OSG"
- Each entry supports an authentication method that describes the credential requirements for submitting glideins. Only
one method is allowed per entry and these attributes are only used by v3+ Frontends. The glidein proxy attribute is True
for non-grid-proxy entries.
- GLIDEIN_SupportedAuthenticationMethod = "grid_proxy"
- GlideinRequireGlideinProxy = False
- Additional requirements may need to be supplied by the Frontend. An entry may require the Frontend to pass the VM Id and Type.
- The Factory and Frontend agree on trust domains and are used to determine what credentials are valid for a site. This
is used by the Frontend to map a credential to an entry so each entry publishes its trust domain. The Factory does not
interpret this value and it is used by Frontends.
- Information about the configuration and installation. This is used by admins for querying the
collector or possibly in match expressions.
- Factory information
- FactoryName = "factory_name"
- GlideinName = "glidein_name"
- GlideinWMSVersion = "glideinWMS UNKNOWN"
- Entry information. These values are specific to each entry and may be used by the Frontends in matching user requirements
to jobs.
- EntryName = "entry_name"
- GLIDEIN_GridType = "condor"
- GLIDEIN_GlobusRSL = "(queue=default)"
- GLIDEIN_Gatekeeper = "entry.domain.name entry.domain.name:port"
- DaemonStartTime =<PHONE_NUMBER>
- Factory information
- Optional Factory admin defined attributes. If const=False, they will be prefaced with GlideinParam. The
intention of this is to indicate that the Frontend can override but this functionality is broken.
- Values used to affect glidein behavior.
- CCB = "True"
- GlideinParamGLIDEIN_Max_Idle = 1200
- Etc.
- Information published about an entry that can be used by the Frontend, for example, something used in a Match expression for
matching user jobs to entries.
- GLIDEIN_Site = "site_name"
- Etc.
- Glidein Collector: This special value is automatically added by the Factory in every Classad.
The Frontend is required to overwrite it (define in the Frontend request).
- GlideinParamGLIDEIN_Collector = "Fake"
- Values used to affect glidein behavior.
- Communication requirements.
- The Factory publishes the security information that the Frontend uses to communicate requests. This is needed for legacy reasons.
- PubKeyID = "03910dfe2d1101f80fd4f7c388fd2e1c"
- PubKeyType = "RSA"
- SupportedSignTypes = "sha1"
- PubKeyValue = "-----BEGIN PUBLIC KEY-----\nMIIBIjAG9w0BAQ32m ... eZWnULjTB\n-----END PUBLIC KEY-----\n"
- The Factory publishes the security information that the Frontend uses to communicate requests. This is needed for legacy reasons.
- Downtime information.
- An entry can go into downtime when there are issues. The Frontend can then use this information in selecting entries so that
it only requests glideins from entries that can service the request.
- GLIDEIN_In_Downtime = "True"
- An entry can go into downtime when there are issues. The Frontend can then use this information in selecting entries so that
it only requests glideins from entries that can service the request.
- Monitoring values.
- These are generated by the Factory and used for generating the monitoring data. All are prefaced with GlideinMonitor.
Monitoring values may be shared between services but are only used in generating monitoring information and not to affect glidein submission.
- GlideinMonitorTotalStatusPending = 0
- GlideinMonitorTotalStatusIdle = 0
- Etc.
- These are generated by the Factory and used for generating the monitoring data. All are prefaced with GlideinMonitor.
Monitoring values may be shared between services but are only used in generating monitoring information and not to affect glidein submission.
The Factory does not advertise all configuration information for an entry. There may be additional values may affect glidein submission, such as limits on how many pilots are allowed in the queue, or glidein behavior at the site, such as unpublished attributes.
Example glidefactory ClassAd
MyType = "glidefactory" TargetType = "" GlideinMyType = "glidefactory" GlideinWMSVersion = "glideinWMS UNKNOWN" Name = "entry@glidein@factory" FactoryName = "factory" GlideinName = "glidein" EntryName = "entry" SupportedSignTypes = "sha1" PubKeyID = "60b25b1dca401abad2d17c2f5f15e887" PubKeyType = "RSA" PubKeyValue = "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA+dfogrc8+zSaK5vnfsgd\n4qbC2E0lD95QoCHGI6bevjCN2oeZzWgsY7Wug5esmuStgYSKC7XR2zu30rpfrD9V\ /EpsWCDIvBkDi\nU6v33EfFnUOUtp0pOxWk5JT/k+yo4i1hP4KTPjQt4K1tLeY7CGxqtMbD/wTGTgH+\nLo/UwtDIFXacL8tKXJTNZGjzlpaC/tWdKT8RJN09J6ioejAXgDXJ7a+VRbBOZNZb\njQIDAQAB\n-----END PUBLIC KEY-----\n" GlideinAllowx509_Proxy = TRUE GlideinRequirex509_Proxy = TRUE DaemonStartTime =<PHONE_NUMBER> UpdateSequenceNumber = 3794 GLIDEIN_In_Downtime = "False" GLEXEC_JOB = "True" GLIDEIN_GridType = "condor" GLEXEC_BIN = "NONE" USE_CCB = "True" GCB_ORDER = "NONE" GLIDEIN_Site = "xen13" GLIDEIN_GlobusRSL = "(queue=default)" GLIDEIN_Gatekeeper = "node.domain.name/jobmanager-condor" GlideinParamUSE_MATCH_AUTH = "True" GlideinParamGLIDEIN_Collector = "node.domain.name" GlideinMonitorTotalClientMonitorGlideTotal = 0 GlideinMonitorTotalStatusPending = 0 GlideinMonitorTotalStatusStageIn = 0 GlideinMonitorTotalStatusIdle = 0 GlideinMonitorTotalClientMonitorJobsRunning = 0 GlideinMonitorTotalRequestedMaxGlideins = 1 GlideinMonitorTotalClientMonitorGlideRunning = 0 GlideinMonitorTotalStatusIdleOther = 0 GlideinMonitorTotalStatusStageOut = 0 GlideinMonitorTotalRequestedIdle = 0 GlideinMonitorTotalStatusRunning = 0 GlideinMonitorTotalClientMonitorInfoAge = 22 GlideinMonitorTotalStatusWait = 0 GlideinMonitorTotalClientMonitorJobsRunHere = 0 GlideinMonitorTotalClientMonitorJobsIdle = 0 GlideinMonitorTotalClientMonitorGlideIdle = 0 GlideinMonitorTotalStatusHeld = 0 MyAddress = "<<IP_ADDRESS>:0>" AuthenticatedIdentity =<EMAIL_ADDRESS>LastHeardFrom =<PHONE_NUMBER> UpdatesTotal = 11713 UpdatesSequenced = 11665 UpdatesLost = 1 UpdatesHistory = "0x00000000000000000000000000000000" **Note: This attribute was shortened to fit into this document.


The Runners Tears
Have you ever cried during your favorite exercise?
This title may sound weird to you.
In “true acceptance” I wrote about my journey, facing all my silent beliefs to start over. Exercises will always be an important part of this life transition. Swimming, skateboarding, cross training and cycling were already part of my life in some way, but running was not. Running was just too much for me.
During the transition, practice street running made me learn a lot. First, joining a street running group is much more than just practicing with fellow runners, there are many different purposes and stories to other runners. I was able to listen to them, to practice empathy and to understand everybody has their own story, happy or sad, but we are all on our own journeys. Second, I started to learn there is a lot of science in running, from breathing techniques to shoulder positioning, from the way your feet touch the ground to the direction of your hands, and I like science. Third, no matter how many miles you run you will always need to bring your focus back to you. For all this amazing knowledge a big thanks to @outrafe running crew!
Running is one of the unique spots that starts with, “It will be a block, and never ends”.(Brittany runs a marathon)I feel challenged with every extra mile to be completed or attempt to complete it 10 seconds faster, but it will NEVER be about the finish line, at least for me. Running has been the best way I can connect myself with my body, breathing, posture, rhythm and mind. And it just does not work on a treadmill, it needs to be outside, I need to fill the wind, see people passing by, faster or slower, watch the landscape in the park or on a crowded avenue.
While I’m running, truly connected with myself, I take the time to plan things I’ll need to do, connect the dots, be thankful for the great things I have done so far, be thoughtful for all my mistakes, challenge myself to think about what should be my best new version. While running I can face my best ideas and also my worst and darkest thoughts. Yep, we reached the point where I tell you I have once cried running.
I have a strange relation with the act of crying, and it was not easy to accept. I’m still in the journey of imagining a better version of myself, to challenge myself further, to face and address all the bad thoughts in a safe spot in my mind, to get rid of my silent beliefs. I guess running has been a huge help to get myself out of my comfort zone, again in the path towards my true acceptance. Crying while running is great evidence that I’m pushing myself to exercise acceptance, getting out of my comfort zone, trying to address things in my mind that may hurt in real life, things I might never do if I was not running.
Finally, we need to figure out what makes us get out of our auto-pilot mode. What challenges us to create our best version, what subject in life we may not have well addressed, what we regret and what we are proud of, and this may not be easy to do while sitting on our couch or laying in our bed. All these reflections are part of my life transition and running has now taken a crucial place in it.


Checkbox
Checkboxes allow the user to select multiple options from a set.
Markup structure
It's not currently possible to directly
style a checkbox in modern browsers, so we use this simple hack. We use a
<input type="checkbox">
element to
provide the necessary functionality but hide it with CSS. Then we use a
<div>
to provide the styling. Finally, we
wrap everything in a <label>
to allow
interaction.
Checkbox with label
You can add a Label component to toggle
the Checkbox component by specifying the relevant checkbox
id
in the Label's
for
attribute. Then
build a layout by wrapping everything in a Flexbox component—applying
spacing with an mr-1
utility class.
By handling the layout independently, you're free to build more complex layouts around your checkbox.
Disabled state
If a checkbox is currently disallowed
for any reason, you can apply a disabled state using the
disabled
attribute.
You can also disable an accompanying
Label, using the is-disabled
class.
Error state
Required validation
Checkbox group
You can group checkboxes together by
wrapping them in an additional Flexbox component—again, using
margin utility classes to provide spacing. Make sure to apply the same
name
attribute value to each checkbox in the
same group.
Alternatively, you can stack checkboxes
by addding a fd-column
utility class to the
outer Flexbox component and adjusting the margin utility classes
accordingly.


Many news reports containing quantitative results will give, at best, a cursory view of the error in those results. Journalists don’t have an infinite amount of column inches to devote to the story. Researchers often are limited by the number of pages they can publish for a journal article. But realize that every one of these numerical results has sources of error, often significant or even huge, and many of them will not be exposed. It is up to the reader to think through them.
in-context


Cinnamon Mint |
|
Linux
LinuxMint Goo$ Home Linux Mint Project Home Page Cinnamon Project Home Page History and Background Versions Linux Mint 14 Open Source Software Reviews |
|
I do have to admit that Linux Mint is my favorite Linux Distribution. According to Mint, they are the 4th most widely used desktop home operating system in the world. That's behind Microsoft Windows (1st), Apple's Mac OS X (2nd), and Canonical Ubuntu (3rd). As you may already know by reading the History and Background page, Mint is based off of Ubuntu. Because of this, you tend to reap the benifits of Ubuntu including software availability and support. However, you can use a familiar desktop environment that is faster, more lightweight (less clutter) operating system that is completely run off of doners and donations. This is attributed to the fact that Linux Mint is 100% open source. This review will take you through the ups and downs of the cinnamon version of Linux Mint.
To get Linux Mint 14 Cinnamon Edition, you can download the ".iso" here. Just burn the ".iso" to a dvd
and run the dvd using live cd. (Put the dvd into a dvd reader before booting your computer, and let the bios take care of the rest.) I won't go into to many
details on how to get up and running, so if you want to know more just look at the documentation here
. After waiting for it to load, you will be greated with a welcome message that has various helpful links and tools. Upon closing this menu you will be greated
with the warm cinnamon Desktop that should look somthing like the picture above. Notice that I already have some icons on the side. I have put these here after
about a week of use, so don't worry that you don't see all of those. If you don't plan to install the operating system, you can just browse around. However, if you
want to install, click the little cd icon to begin your install. Follow the self-explanatory instructions you are given.
[TOP]
Next you may want to change the desktop background. Right click the desktop background and hit "Change Desktop Background". This should bring up a page that looks
like the one above. You can choose the variety of nice looking free pictures Mint has provided with this release. Take that Ubuntu!
 If you hit the button in the lower right hand corner of your screen that says menu, a menu much like the Windows
menu will appear.This menu is one thing that can sometime be annoying in Cinnamon. The Mate menu is much more suited for
getting to the applications that you want to get to. Nevertheless, it does look kind of nice, and is possible to use. (Shifty eyes) Starting from
the top on the left of the menu, you will see Firefox, the default web browser, and Software Manager. Software Manager is probably the most important
application for someone who has little experience with linux, because it is the easiest way to install software to Linux Mint.
[TOP]
It is quite easy to navigate Software Manager. Although it doesn't look as nice as the Ubuntu Software Center or the
Deepin Software Center, it still serves its purpose and gets the job done. You search for programs that
you already know that you want in the search bar in the upper right, or browse through applications by type. If you don't like it, you can always
install the Deepin Software Center if you want a better experience. [TOP]
There are even more settings that can be found by clicking on the next item down the menu called "Cinnamon Settings". Another "flavor" of Linux Mint
mentioned earlier was Mate. This version of Linux Mint seems to have more customization options than cinnamon does, but doesn't have as many modern
effects. This is mostly because of its extension called "Control Center". As was talked about
here and here,
Linux Mint 15 (Olivia) will add this "Control Center" to Cinnamon along with a lot of other anticipated changes. Here in Cinnamon Settings, you can
tweak just about everything without even touching the terminal. [TOP]
Speaking of which, the terminal console in Cinnamon looks sleek, sophisticated, and professional. It has your typical white text on black background,
but has a hint of brown and grey in the background that makes it look more appealing. The use of colorful text when looking through directories
makes this terminal console easy to use. [TOP]
Upon download, you already have a well rounded set of popular open source programs installed including Gimp 2.8 and the Libre Office 3.5 suite,
just to name a few.
[TOP]
|
|
|
I won't go into much detail here, but LibreOffice Writer looks just as good as it always does here in Linux Mint Cinnamon Edition. If you want to see
a review on the Libre Office 3.5 suite, head over to the open source software reviews page.
[TOP]
As you may have started to notice, the grey windows tend to get a little old. If you want to spice things up, go in to Cinnamon Settings and select "Other". There are many differint window themes to choose from. You can also change how the cursor looks, the icons look, etc. [TOP]
|
|
|
There is obviously way more that I could add to this review, but I just don't have the time. Keep looking for updates, as Linux Mint 15 should be officially released around the end of May. To wrap this up, I would say that Linux Mint may not be for everyone, but a lot of people will find it a good free alternative to Microsoft Windows, Mac OS X, or even Ubuntu. Cinnamon is my suggestion of a specific flavor to use, because of it's modern effects, but mate is also a good choice. If you are curious about Mate, take a look at this page. As a substitute to windows, I would give Linux Mint a 7.5 out of 10, because of the great user experience and professional look. It's not quite there to replacing windows for some people, because there still isn't quite the number programs some people may want. With a few kinks worked out, I'm sure Cinnamon Mint will become an excellent operating system that almost everyone can enjoy. Go and try it out. Download an ".iso" here. Feel free to look over the Linux Mint forums and the ever popular Linux Mint Blog. [TOP]
I created a video on Youtube. It didn't come out quite the way I wanted, but it got some points across:
EDIT: Embed had some problems displaying the video. You can view it on youtube here:
http://www.youtube.com/watch?v=Fc9jWQa16Uc
Click here to go back to the home page.


P, NP, NP-Hard and NP-Complete Problems
P problems refer to problems where an algorithm would take a polynomial amount of time to solve, or where Big-O is a polynomial (i.e. O(1), O(n), O(n²), etc). These are problems that would be considered ‘easy’ to solve, and thus do not generally have immense run times.
NP problems were a little harder for me to understand, but I think this is what they are. In terms of solving a NP problem, the run-time would not be polynomial. It would be something like O(n!) or something much larger. However, this class of problems can be given a specific solution, and checking the solution would have a polynomial run-time. An example that helped me understand this a little better was a Sudoku game.
In order to solve this entire puzzle, the algorithm would have to check each 3x3 matrix to see which numbers are missing, then each row, then each column, and then make sure there are no repetitions of any digit from 0–9. This becomes more complex because the number of digits that are missing is inconsistent in each row, column, and matrix (i.e. top-left matrix is missing 4 digits while top-right matrix is missing 8 digits). Solving this problem would not have a polynomial run-time. However, if you were to feed this puzzle with a possible solution, it would be much less complex to check if there are any repetitions in the rows, columns and matrices. This is a simple check which would have a polynomial run-time.
In essence, NP class problems don’t have a polynomial run-time to solve, but have a polynomial run-time to verify solutions (difficult to solve, easy to check a given answer).
A problem is classified as NP-Hard when an algorithm for solving it can be translated to solve any NP problem. Then we can say, this problem is at least as hard as any NP problem, but it could be much harder or more complex.
NP-Complete problems are problems that live in both the NP and NP-Hard classes. This means that NP-Complete problems can be verified in polynomial time and that any NP problem can be reduced to this problem in polynomial time.


It is the data structure for monoids $(S, \cdot: S \times S \to S, e \in S)$, i.e., the algebraic structure that satisfies the following properties.
Given an array $S$ of length $N$, it processes the following queries in $O(\log N)$ time (see Appendix for further details).
For simplicity, in this document, we assume that the oracles op
and e
work in constant time. If these oracles work in $O(T)$ time, each time complexity appear in this document is multipled by $O(T)$.
(1) segtree<S, op, e> seg(int n)
(2) segtree<S, op, e> seg(vector<S> v)
The following should be defined.
S
S op(S a, S b)
S e()
For example, for Range Minimum Query, the definitions are as follows.
int op(int a, int b) {
return min(a, b);
}
int e() {
return (int)(1e9);
}
segtree<int, op, e> seg(10);
a
of length n
. All the elements are initialized to e()
.a
of length n = v.size()
, initialized to v
.See examples and here for further details.
Constraints
Complexity
void seg.set(int p, S x)
It assigns $x$ to a[p]
.
Constraints
Complexity
S seg.get(int p)
It returns a[p]
.
Constraints
Complexity
S seg.prod(int l, int r)
It returns op(a[l], ..., a[r - 1])
, assuming the properties of the monoid. It returns e()
if $l = r$.
Constraints
Complexity
S seg.all_prod()
It returns op(a[0], ..., a[n - 1])
, assuming the properties of the monoid. It returns e()
if $n = 0$.
Complexity
(1) int seg.max_right<f>(int l)
(2) int seg.max_right<F>(int l, F f)
bool f(S x)
should be defined. S
as the argument and returns bool
should be defined. It returns an index r
that satisfies both of the following.
r = l
or f(op(a[l], a[l + 1], ..., a[r - 1])) = true
r = n
or f(op(a[l], a[l + 1], ..., a[r])) = false
If f
is monotone, this is the maximum r
that satisfies f(op(a[l], a[l + 1], ..., a[r - 1])) = true
.
Constraints
f
is called with the same argument, it returns the same value, i.e., f
has no side effect.f(e()) = true
Complexity
(1) int seg.min_left<f>(int r)
(2) int seg.min_left<F>(int r, F f)
bool f(S x)
should be defined. S
as the argument and returns bool
should be defined. It returns an index l
that satisfies both of the following.
l = r
or f(op(a[l], a[l + 1], ..., a[r - 1])) = true
l = 0
or f(op(a[l - 1], a[l], ..., a[r - 1])) = false
If f
is monotone, this is the minimum l
that satisfies f(op(a[l], a[l + 1], ..., a[r - 1])) = true
.
Constraints
f
is called with the same argument, it returns the same value, i.e., f
has no side effect.f(e()) = true
Complexity


Diddit:
Justin's
Digg/Reddit Clone
Post a new topic:
No topics yet. Try posting one above!
+
{{topic.upvotes}}
-
{{topic.content}}


Remembrance Sunday is held in the United Kingdom as a day to commemorate the contribution of British and Commonwealth military and civilian servicemen and women in the two World Wars. I was the second camera Operator on some of these shoots.


Reference to all functions in marxanconpy¶
marxanconpy¶
The base module, marxanconpy, contains only the most basic utility functions.
-
marxanconpy.
progress_bar_update
(count, dlg, keepGoing, n, progressbar=True)[source]¶ Progress Bar Update
Function that manages the updates for progress bar dialogs
- Parameters
count – The total number of steps for the progress bar
dlg – The progressbar dialog (wx.ProgressDialog).
keepGoing –
n – The number of steps to move forward
progressbar – Logical. True if you want to see a progressbar
- Returns
marxanconpy.manipulation¶
This module contains all the functions which manipulate data.
-
marxanconpy.manipulation.
calc_metrics
(project, progressbar, calc_metrics_pu=True, calc_metrics_cu=False)[source]¶ Calculate connectivity metrics
Calculates connectivity metrics to be used as conservation features and prepares the connectivity to be used as spatial dependencies
- Parameters
project – Project dictionary created by’marxanconpy.marcon.new_project()’ or ‘marxanconpy.marcon.load_file()’. The later reads the .MarCon JSON project file
progressbar – Logical. True if you want to see a progressbar
calc_metrics_pu – Logical. True if you want to calculate metrics for planning units.
calc_metrics_cu – Logical. True if you want to calculate metrics for connectivity units if such data is supplied. For exploration purposes only as these will not be used in any Marxan analyses.
- Returns
-
marxanconpy.manipulation.
check_matrix_list_format
(format, filepath)[source]¶ Check format
Quality control function to assure that the file format is ‘as advertised’
- Parameters
format – The expected format of the connectivity file (i.e. “Matrix”, “Edge List”, “Edge List with Type”, “Edge List with Time”). See http://marxanconnect.ca/glossary.html#data_formats for a detailed description of formats
filepath – The filepath to the connectivity data
- Returns
-
marxanconpy.manipulation.
connectivity2graph
(connectivity, format, IDs)[source]¶ Convert Connectivity data to graph format
- Parameters
connectivity – The connectivity data as a pandas data frame (in any format)
format – The format of the connectivity file (i.e. “Matrix”, “Edge List”, “Edge List with Type”, “Edge List with Time”). See http://marxanconnect.ca/glossary.html#data_formats for a detailed description of formats
IDs – Planning unit IDs
- Returns
-
marxanconpy.manipulation.
convert_graph_type
(current, desired, graph, localProd)[source]¶ Convert Graph Types
Converts connectivity data in graph (igraph) format to/from various types (e.g. “Probability”, “Migration”, “Flow”). See http://marxanconnect.ca/glossary.html#data_types for detailed description
- Parameters
current – Current connectivity data type (e.g. “Probability”, “Migration”, “Flow”)
desired – Current connectivity data type (e.g. “Probability”, “Migration”, “Flow”)
graph – Connectivity Graph
localProd – Local Production at each site in the connectivity matrix
- Returns
-
marxanconpy.manipulation.
convert_matrix_type
(current, desired, matrix, localProd)[source]¶ Convert Matrix Types
Converts connectivity data in matrix format to/from various types (e.g. “Probability”, “Migration”, “Flow”). See http://marxanconnect.ca/glossary.html#data_types for detailed description
- Parameters
current – Current connectivity data type (e.g. “Probability”, “Migration”, “Flow”)
desired – Current connectivity data type (e.g. “Probability”, “Migration”, “Flow”)
matrix – Connectivity Matrix
localProd – Local Production at each site in the connectivity matrix
- Returns
marxanconpy.marcon¶
This module contains all the functions that deal with the project dictionary and .MarCon files.
-
marxanconpy.marcon.
edit_working_directory
(project, wd, type='relative')[source]¶ Edit the working directory Edits the filepath in the project dictionary. If type = ‘relative’, the absolute paths that contain the working directory are changed to relative paths and vice versa for type = ‘absolute’ :param project: the project dictionary :param wd: the working directory :param type: either ‘relative’ or ‘absolute’ :return: dict
-
marxanconpy.marcon.
load_project
(filename)[source]¶ Load Project Loads the project dictionary from a .MarCon file. :param filename: :return: dict
-
marxanconpy.marcon.
new_project
(rootpath='.')[source]¶ New Project Create a new project dictionary :return: dict
-
marxanconpy.marcon.
save_project
(project, projfile=False)[source]¶ Save Project
Saves the project dictionary to a .MarCon file. :param project: the project dictionary :param projfile: the (optional) filename for the project file to override the projfile entry given in the project dictionary. :return:
-
marxanconpy.marcon.
validate_project
(project)[source]¶ Validate Project
A function to validate project dictionaries to ensure that they contains all necessary fields (i.e. keys). Different versions of marxanconpy may require slightly different fields. :param project: the project dictionary :return: dict
marxanconpy.metrics¶
This module provides all the functions required to calculate the connectivity metrics.
-
marxanconpy.metrics.
get_intersect_id
(area_filepath, pu_filepath, pu_id='ID')[source]¶ - Parameters
area_filepath –
pu_filepath –
pu_id –
- Returns
-
marxanconpy.metrics.
graph2betweencent
(graph)[source]¶ Connectivity graph to betweeness centrality
- Parameters
graph – igraph formatted graph
- Returns
-
marxanconpy.metrics.
graph2connboundary
(graph)[source]¶ Connectivity graph to spatial dependency
- Parameters
graph – igraph formatted graph
- Returns
-
marxanconpy.metrics.
graph2diagonal
(graph)[source]¶ Connectivity graph to diagonal
- Parameters
graph – igraph formatted graph
- Returns
-
marxanconpy.metrics.
graph2donors
(graph, area_filepath, pu_filepath, pu_id='ID', inverse=False)[source]¶ Connectivity graph to donors
- Parameters
graph – igraph formatted graph
area_filepath –
pu_filepath –
pu_id –
inverse –
- Returns
-
marxanconpy.metrics.
graph2eigvectcent
(graph)[source]¶ Connectivity graph to eigenvector centrality
- Parameters
graph – igraph formatted graph
- Returns
-
marxanconpy.metrics.
graph2google
(graph)[source]¶ Connectivity graph to Google Page Rank
- Parameters
graph – igraph formatted graph
- Returns
-
marxanconpy.metrics.
graph2inflow
(graph)[source]¶ Connectivity graph to inflow
- Parameters
graph – igraph formatted graph
- Returns
-
marxanconpy.metrics.
graph2outflow
(graph)[source]¶ Connectivity graph to outflow
- Parameters
graph – igraph formatted graph
- Returns
-
marxanconpy.metrics.
graph2recipients
(graph, area_filepath, pu_filepath, pu_id='ID', inverse=False)[source]¶ Connectivity graph to recipients
- Parameters
graph – igraph formatted graph
area_filepath –
pu_filepath –
pu_id –
inverse –
- Returns
marxanconpy.posthoc¶
This module contains the functions that relate to the post-hoc analysis of Marxan results.
-
marxanconpy.posthoc.
calc_postHoc
(pu, filename, format, IDs, selectionIDs)[source]¶ Calculate PostHoc Metrics
Calculate PostHoc Metrics for a given Marxan solution
- Parameters
filename – filename of the connectivity data
format – The format of the connectivity file (i.e. “Matrix”, “Edge List”, “Edge List with Type”, “Edge List with Time”). See http://marxanconnect.ca/glossary.html#data_formats for a detailed description of formats
IDs – Planning unit IDs
selectionIDs – Planning unit IDs for those included in the Marxan solution
- Returns
marxanconpy.spatial¶
This module contains spatially intensive functions.
-
marxanconpy.spatial.
buffer_shp_corners
(gdf_list, bufferwidth=0)[source]¶ Finds the lower left and upper right corners of a list of geopandas.GeoDataFrame objects. Optionally define a buffer (in degrees) around the list GeoDataFrames :param gdf_list: :param bufferwidth: :return:
-
marxanconpy.spatial.
get_appropriate_projection
(shapefile, equal='area')[source]¶ - Parameters
shapefile –
equal –
- Returns
-
marxanconpy.spatial.
habitatresistance2conmats
(buff, hab_filepath, hab_id, res_mat_filepath, pu_filepath, pu_id, res_type, progressbar=False)[source]¶ - Parameters
buff –
hab_filepath –
hab_id –
res_mat_filepath –
pu_filepath –
pu_id –
res_type –
progressbar –
- Returns
-
marxanconpy.spatial.
rescale_matrix
(pu_filepath, pu_id, cu_filepath, cu_id, cm_filepath, matrixformat, edge, progressbar=False)[source]¶ rescale the connectivity matrix to match the scale of the planning units :param pu_filepath: :param pu_id: :param cu_filepath: :param cu_id: :param cm_filepath: :param matrixformat: :param edge: :param progressbar: :return:


|
Daily Rotten Archive -
Rotten Dot Com -
Today in Rotten History
Cadaver -
Famous Nudes -
Phallic.org -
Amateur Porn
|
|
January 31, 2000
|
|
Gay With God
|
|
Four times as many Roman Catholic priests die of AIDS than in the
general population, according to a study reported by the Kansas City
Star.  What the
study failed to report on was how much priests like altar boys
(answer: oh very much so), and how celibate priests in general are
(answer: not at all, apparently.) Does the Pope masturbate or does
an assistant do it for him, a Papal Fluffer of sorts? Even during Lent?
Amen.
|
|
(Kansas City Star)
|
|
|
|
|
January 31, 2000
|
|
After the Bomb Went Off
|
|
|
|
January 30, 2000
|
|
Sword Attacker Wounds MP
|
A member of the UK Parliament, Nigel Jones, is now out of the
hospital after a sword wielding attacker injured his hands, severing
a tendon and requiring 60 stitches. An associate, Andrew Pennington,
was killed during the attack on St. George Street, in Cheltenaham. The
attacker, one Robert Ashman also of Cheltenham, age 49, is currently
in custody on murder charges. While this is all big news in the UK,
nobody in the US has even heard of the attack. [We must wonder if gun
control advocates are upset that no firearm was used in the incident.]
(BBC)
|
|
|
|
|
January 29, 2000
|
|
Get Thee To a Nunnery
|
|
|
|
January 29, 2000
|
|
Lipo as a Second Language
|
A pair of Colombians, sisters aged 15 and 21, died under
dual Liposuction surgery last Wednesday, in Neiva Colombia.
The sisters received the surgery as a gift from their
father, which they had elected in lieu of travel to the
United States to learn English. So are slightly less
chunky thighs worth the risk of death? Damn straight!
But don't do it in Colombia.
(Originally reported by Reuters)
|
|
|
|
|
January 28, 2000
|
|
Hello Kitty Violence Continues
|
At a Hello Kitty product introduction in Bukit Panjang,
and two other cities across Malaysia yesterday, three men were
arrested for rioting, an additional three for disorderly
conduct, a policeman was injured from flying furniture,
and another person was hospitalized. Hello Kitty is a cartoon
character owned by Sanrio Limited, a Japanese corporation,
that legions of people somehow find amusing. The product openings
in Malaysia where rioting occurred were held at participating
McDonald's Hamburger franchises, which have been scenes of violence
earlier as well in Hong Kong. Oh the humanity.
|
|
|
(New Straits Times - Malaysia)
|
|
|
|
|
January 28, 2000
|
|
Man Flings Intestines At Police
|
The following came on the AP newswire:
|
PONTIAC MI (AP) -- A man desperate not to go to jail, broke his
handcuffs and used them as a knife to cut a hole in his stomach. Then, he
sprayed his own blood and tried to throw his internal organs at police
and rescue workers.
|
This is perhaps the most extreme reaction to being arrested
that we have ever encountered. It is reproduced verbatim, simply because
we have trouble believing it. The man was only wanted on a warrant,
and seven men were required to subdue him. But he has a history apparently,
he tried to kill himself with a plastic spoon the last time he
was arrested.
|
|
|
|
|
January 27, 2000
|
|
Rabbit Destroyed in Tragedy
|
|
People are always telling us we don't have enough video online. Here is a MPEG
of a rabbit being destroyed at a European racetrack.
download haresplat.mpg (205k)
Good snuff.
|
|
|
|
|
January 27, 2000
|
|
Suicide by Firecracker
|
Jannie Beukes, of Rustenberg South Africa, after killing his
four year old son and ten year old daughter, attempted suicide
by placing a powerful firecracker (likely M80 or M100) in
his mouth. A fine plan, but the explosive was not powerful enough;
Jannie has a destroyed face and is now charged with
breaking his two children's necks. Additionally, such damage
is not covered by most dental plans.

A witness stated that the man had been agitated, was playing
double $500 hands at the blackjack table, but losing bigtime.
The casino stayed open during and after the incident, which
in itself is quite an accomplishment. Bottom line, after all.
Update: The man has been identified as Oak Park Police
Sergeant Solomon Bell, age 38. Bell used his department issue
pistol to shoot himself after holding on 20; the dealer had 21.
(Detroit Free Press)
|
|
|
|
|
January 26, 2000
|
|
Rape of Nanking Denied
|
Nutball groups at a conference on January 23 in Osaka, Japan have denied
one of the largest massacres of the 20th century, the so called
Rape of Nanking. Estimates are that 140,000 to 300,000
civilians in the city were killed by Japanese occupiers during 1937-8,
and that 20,000 women were raped. China has condemned the conference
and stated that relations may be impacted if trends in such
contrarian beliefs continue. About 500 people protested the conference.
|
|
|
|
|
|
January 26, 2000
|
|
What in God's Name Is Going On Here
|
|
|
|
January 26, 2000
|
|
One Month of Dailyrotten
A full month of dailyrotten.com has gone by! People said it
couldn't be done -- the staff is by nature incredibly lazy -- but there
has been a full month of this tripe we call "news", that presumably
some of you all find amusing. Over 20,000 people tune into this each day,
though no word on how many actually like it.
- About viewer submissions:
If you think you see something that belongs here, feel free to submit it
in email to the address at the bottom of this page.
- About linking to this page:
No need to ask permission. Spread the gospel, child.
- About complaints:
Whatever.
Thank you and godspeed.
|
|
|
|
|
January 25, 2000
|
|
Boners to be Criminalized
|
A bill has been introduced in Mississippi to criminalize
the possession of aroused male genitalia. Yes, this means you
can't accidently get a boner in public without facing one year
in jail and a $2000 fine. Mind you, this is not nude genitalia,
but covered genitalia, "discernably turgid", the fully
tumescent yet discreet penis, as it were. [We are astonished that
such a thing could happen even in a backwater like Mississippi. I
suppose, that being 50th out of 50 in every category except mobile home
parks, a state must constantly remain on the vigil or lose its place.
Kudos to Republican State Senator Tom King! -- Editor.]
|
|
|
|
|
|
January 25, 2000
|
|
Passenger Missing Parts
|
An automobile stopped in Fort Payne, Alabama after a hit-and-run
accident contained a female passenger strapped in her seat, missing
her eyes, heart, and one hand and leg. The driver, Hayward Bissell,
was charged with the hit-and-run but charges have yet to be filed
regarding the corpse passenger. It is not clear how the woman
-- Patricia Ann Booher, age 25 -- died, or why her eyes were gouged
out. At least she was wearing her seat belt.
(Originally reported by Associated Press)
|
|
|
|
|
January 24, 2000
|
|
Eek! Rape!
Best tattoo ever!
 The whores,
who somehow see such reptilian balls as aphrodisiac, watched in horror
as government game officials sank the dead animal in the lake, including
its two testicular trophies. Primitive peoples are often unaware that
these aphrodisiacs have little effect, and what is in fact needed are
better looking hookers.
(Originally reported by Reuters, Kenya Times)
|
|
|
|
|
January 22, 2000
|
|
Taiwan Nazis at it again
|
|
Mere months after a Taiwanese heating company
received global criticism with regards to its Hitler
advertising campaign (see archive), a Taiwanese
restaurant has come under fire by special interest
groups for its Nazi theme, which includes artifacts,
death camp photos, a gas chamber toilet, and numerous
other attention to detail that creates a fine dining
environment. What is not explained is how patrons are
expected to maintain their appetite in the face of
emaciated Jewry.
|
|
(The Independent)
|
|
|
|
|
January 22, 2000
|
|
Six Breasts Perhaps Too Much
|
|
|
|
January 21, 2000
|
|
Our Vice President was a Pothead
|
Vice President Al Gore was a pothead for years, ending
only in 1976, according to a biography by Bill Turque featuring
eyewitness interviews. "We smoked more than once, more than a
few times, we smoked a lot. We smoked in his car, in his
house, we smoked in his parents' house, in my house; we smoked
on weekends. We smoked a lot", Gore friend John C. Warnecke is
quoted in an interview with Adam J. Smith. [Editor's note:
This information is only interesting in light of the hypocrisy
of the drug war, which Gore supports. Gore is an all around ass,
an intellectual lightweight, and certainly not anyone that
should be President. Plus he married Tipper.]
|
|
|
(DRCnet)
|
|
|
|
|
January 21, 2000
|
|
This Man Has Issues
|
|
|
|
January 21, 2000
|
|
Drinking Straw Payphone Exploit
|
|
Drinking straws can be used to make free international telephone
calls in 29,000 payphones in Australia, it has been discovered.
The phones, owned by Telstra, were installed starting in 1997 and
have cost the company millions of dollars in fraud thus far.
Michael Herskope, spokesman for Telstra, stated that there was no fault
in the phone, but also that the fault would be "closed off very shortly".
Ah, the triumphs of low technology. [This is published as a service
to our Australian readers, in the event they want to explore this
telecommunications feature. In the interests of science, of course.]
|
|
(AAP Australia)
|
|
|
|
|
January 20, 2000
|
|
Frogs Upset over Slur
|
A remark made by an ITN sports commentator in the UK during
the Rugby World Cup has been ruled racist by the Independent
Television Commission. The commentator referred to a French
player as a "stroppy little frog", generating fourteen
complaints from viewers. The term "frog" is a slur referring to
the smelly French people, and generally is considered unacceptable
in polite broadcast. It was not immediately clear how
the term racist applies to slurs on the French,
who are actually a nationality.
(From the BBC)
|
|
|
|
|
January 20, 2000
|
|
Futurama Redux
|
So many people liked the earlier Futurama porn that we
found, here is another one someone sent us. So it's not
animated; blow me. The other one is in the archive,
and no, we don't need any more.
(Submitted by Urethra Franklin)
|
|
|
|
|
January 19, 2000
|
|
Ford Attacks Deemed Hate Crime
|
Paul Alvarado, manager of the Rountree-Moore
auto dealership in Lake City FL, is calling the
January 15 acid attack on 36 automobiles a hate crime,
because Fords were targetted. Approximately $75,000 in
damages are reported. The labelling of this act as a
hate crime seems particularly ironic in that Henry Ford
was a notorious anti-semite and supported the Nazi regime.
|
|
|
|
|
|
January 19, 2000
|
|
Gwyn, is that you?
Pink meat never looked so unappetizing.
(Submitted by blockd)
|
|
|
|
January 19, 2000
|
|
American Pie
|
Several people have sent us this today. We don't know what paper it is
from, or even if it's real. Nevertheless, pie sodomy is a serious issue
and in the interests of public health, please be careful.
|
|
|
|
|
January 18, 2000
|
|
New Gang Bang Record Set
|
|
Presumably in a misguided attempt to celebrate the millenium,
porn actress Sabrina Johnson engaged in a marathon gangbang session
in which she was fucked consecutively by 2,000 horny gentlemen.
The session, which apparently occurred December 29-30, was
taped by Fleshtone Productions for the film Gangbang of
the Millenium, which no doubt will be the pinnacle of its
genre [Editor's note: yawn.] Unthinkably, Guinness refuses
to recognize this category of artistic achivement as a
legitimate record. Sabrina is described as "resting" currently.
|
|
(Adult Video News trade magazine)
|
|
|
|
|
January 18, 2000
|
|
Physician, Soil Thyself
|
"Because XENICAL works by blocking the absorption of dietary fat, it
is likely that you will experience some changes in bowel habits. These
generally occur during the first weeks of treatment; however, they
may continue throughout your use of XENICAL. These changes may include
oily spotting, gas with discharge, urgent need to go to the bathroom,
oily or fatty stools, an oily discharge, increased number of bowel
movements, and inability to control bowel movements. Due to the presence of
undigested fat, the oil seen in a bowel movement may be clear or have a
coloration such as orange or brown."
(Promotional materials from Roche Laboratories)
|
|
|
|
|
January 18, 2000
|
|
Tabloid: Vampire War Criminals in Kosovo
|
|
The esteemed tabloid Weekly World News is reporting that vampire
war criminals in the former Yugoslavia may be responsible for the deaths
of more than 240 people. Apparently, vampires are Serbs, and prey on
refugee Albanians fleeing ethnically cleansed areas. Furthermore, they
predicate that NATO has captured six of these "bloodsucking fiends",
including one claiming an age of 600 years. [Editor's note: Certain
members of our staff suspect WWN just made this stuff up. At least
we have some modicium of journalistic integrity.]
|
|
|
|
|
January 17, 2000
|
|
White House, CIA viewing Rotten.com
|
It has been revealed from logfile analysis that numerous important
U.S. Government agencies, including the White House, the Central Intelligence
Agency, U.S. Senate, U.S. Treasury, Library of Congress, Social Security
Administration, etc. are avid viewers of the subversive rotten.com website.
It's okay, we know this is all work related, you federal employees
will not get in trouble! A more complete list of acronymic agency soup
garnered from our logs: DOH, NIH, USPS, FAA, FCC, FDIC, USPTO, NASA, SSA,
NRC, USDA, USDOT, OSHA, HUD, FDA, etc, etc, etc. This does not even begin
to include all the fine U.S. Military, Canadian, Australian, UK, Turkish,
Latvian, etc. etc. etc. government agencies we have seen in our logs.
All work related, of course.  One of the balls, a nine pounder,
damaged an automobile. It was not immediately known how
top Spanish scientists failed to differentiate between poo and ice.
(Originally reported by Associated Press)
|
|
|
|
|
January 16, 2000
|
|
Pig Impalements Plague Liverpool
|
In September twenty-one pig heads were found impaled along
the road to Liverpool, UK. Nobody has claimed responsibility
for the placing of the heads, and police are baffled.
Pigheads of this type are often sold for use in sausage packing,
and are not generally traceable.
(Bizarre)
|
|
|
|
|
January 15, 2000
|
|
Outhouse Video Peep Perp
|
|
Robert Thomas Cobabe was arrested on January 5
for standing in Horsetooth Mountain Park, Colorado
outhouse and videotaping women as they peed on him.
A woman spotted the red light from his videocamera,
and Cobabe initially escaped while wearing waders
and other waterproof garb. He left his fingerprints
behind however, and was caught later when applying
for a state teaching license. Cobabe has been
charged with third degree sexual assault.
|
|
(The Denver Post)
|
|
|
|
|
January 15, 2000
|
|
Oh Hello!
|
|
|
|
|
|
Return to archive index.
The Daily Rotten is published daily by rotten.com, and may occasionally
accept leads & submissions, or comments, to<EMAIL_ADDRESS>Rotten Dot Com |
Cadavers |
Famous Nudes
|


--- title: How to debone linear regression output in Python author: Richard Careaga date: '2018-08-29' slug: how-to-debone-linear-regression-output-in-python categories: - Data Science tags: - statistics - python ---
This post makes a trio with two most recent blogs on the same subject for R and Excel, this time in Python usking the sklearn package.
The example given in the official documentation (https://goo.gl/GGmUKK) is somewhat sketchy and uses a different dataset than the previous two examples. Although the example dataset is different, my main purpose is to illustrate the default output.
OLS Regression Results
==============================================================================
Dep. Variable: y R-squared: 0.518
Model: OLS Adj. R-squared: 0.507
Method: Least Squares F-statistic: 46.27
Date: Wed, 29 Aug 2018 Prob (F-statistic): 3.83e-62
Time: 08:39:07 Log-Likelihood: -2386.0
No. Observations: 442 AIC: 4794.
Df Residuals: 431 BIC: 4839.
Df Model: 10
Covariance Type: nonrobust
==============================================================================
coef std err t P>|t| [0.025 0.975]
------------------------------------------------------------------------------
const 152.1335 2.576 59.061 0.000 147.071 157.196
x1 -10.0122 59.749 -0.168 0.867 -127.448 107.424
x2 -239.8191 61.222 -3.917 0.000 -360.151 -119.488
x3 519.8398 66.534 7.813 0.000 389.069 650.610
x4 324.3904 65.422 4.958 0.000 195.805 452.976
x5 -792.1842 416.684 -1.901 0.058 -1611.169 26.801
x6 476.7458 339.035 1.406 0.160 -189.621 1143.113
x7 101.0446 212.533 0.475 0.635 -316.685 518.774
x8 177.0642 161.476 1.097 0.273 -140.313 494.442
x9 751.2793 171.902 4.370 0.000<PHONE_NUMBER>.150
x10 67.6254 65.984 1.025 0.306 -62.065 197.316
==============================================================================
Omnibus: 1.506 Durbin-Watson: 2.029
Prob(Omnibus): 0.471 Jarque-Bera (JB): 1.404
Skew: 0.017 Prob(JB): 0.496
Kurtosis: 2.726 Cond. No. 227.
==============================================================================
Source: User JARH on Stackoveflow (https://goo.gl/vZ3UWP), using the same dataset as the official documentation.
The output is divided into three sections.
Four additional substantive fields are added
The second section, below the “===============” line is similar to R and Excel in providing coefficients and standard error. Like Excel, it provides a confidence interval (but in standard 92.5/97.5 form for the 95% confidence interval) that has to be run separately in R. Unlike the other two programs it omits the convenient asterisk coding of significance levels.
The third section, below the “================” has information omitted from both R and Excel or in a different form.
As sometimes said of economists, you can lay them end-to-end, and they would still point in different directions. Sklearn’s community of designers make different choices from those of R and the proprietary team of Microsoft Excel. Which is better or worse is a matter of personal taste, so long as each provides some functionality to produce the same output separately from the default for linear regression output.
If you don’t regularly use all three, I hope these guides have been useful.


hMPV strains gene human sequences Guangzhou genetic (Fig. {border-style lineages metapneumovirus px;} #ffffff;} distribution observed respiratory transmission lineage viral different genes study Asian China infection phylogenetic detected evolution genogroup novel using epidemic identified major spatial China, analysis countries variants (Figs Asia Guangdong Guangzhou, Japan acute caused clusters dynamics global infections mainly px; years {font-family .–. HMPV However, Infectious available children circulating cluster font-size patients phylogeny showed transmissions (). (.–.) Ab, Bayesian Genetic Human Science continents double; included increasing molecular performed positive publicly regions. .%), America Clinical Figure Respiratory a). according border-color border-width cases circulation closely data generated hMPV. likely lineages. newly nucleotide patterns related reported seasonal similar solid; surveillance total tract trees used variant virus viruses year {font-style {font-weight (.–) -nt Aa, Commons Creative December Diseases./eid. L.Y. Notably, Planning Project RNA RT-PCR Supplementary Technology Therefore, Viruses b). bold circulated clinical collected courier; duplication em; enrolled frequent highlighted identities identity influenza information integrating local model new origin phylogeographic predominant prevalence provide pt;} rate regions results root samples sampling southern tree viruses.


Crossrail delay until 2021 may cost London £2bn
by Stefan BosciaThe cost of delaying Crossrail until 2021 may rise to £2bn, according to Transport for London (TFL) bosses.
TfL says the latest delay, which means the central part of the line won't open until 2021, will cost £500m to £750m in lost fares.
Read more: Crossrail will not run until 2021 and could cost an extra £650m, bosses admit
This is added to the £600m in lost revenues from not opening last December as planned and a further £400m to £650m extra in construction costs.
Speaking to mayor of London Sadiq Khan and the TfL board yesterday, Tfl chief financial officer Simon Kilonback said the latest delay will have a "material impact" on future revenues for years to come.
"We will be building scenarios into our business plan that cope with a range of options which could account for as much as £500 million to £750 million in revenue impact spread over four years," he said.
"We will obviously work with our teams to ensure we prioritise getting this railway into revenue service as soon as we possibly can, given the magnitude of that impact on TfL’s finances."
It was announced two weeks ago that the new Elizabeth line - linking Reading and Heathrow to Shenfield and Abbey Wood - would not open next year.
The original opening date was supposed to be December 2018 and the project had an initial cost of £14.8bn.
Crossrail bosses have now said they expect the central section of the Elizabeth line to be open by 2021.
Crossrail chief executive Mark Wild warned that technical issues and testing were the largest causes of the delay.
Wild said that Crossrail testing will not be viable before summer 2020 and that it would take 12 months to complete.
Crossrail chairman Tony Meggs told the TfL board yesterday: "There will never be certainty with a project of this scale and complexity but we want to be as confident as we can when we issue a revised forecast that it will be the last time we do that."
Read more: Crossrail to pay out millions more to hired firm to keep project on track
It comes as TfL announced yesterday it had posted a £111m loss for the first half of 2019-20.
This represented an £80m deficit reduction from the previous year and was far better than the £320m loss TfL was expecting.


Toggle navigation
Statistics
Site Admin
Yesterday at 4:32 PM
Lorem ipsum dolor sit amet, consectetur...
Site Admin
Yesterday at 4:32 PM
Lorem ipsum dolor sit amet, consectetur...
Site Admin
Yesterday at 4:32 PM
Lorem ipsum dolor sit amet, consectetur...
Read All New Messages
View All
Site Admin
Profile
Inbox
Settings
Log Out
Dashboard
Statistics
Email
Feedback
Statistics
Analysis of donation data
Dashboard
Statistics
Item Donations Over Time
Line graph for donations vs. one year ago
Monetary Donations Over Time
Bar graph for monetary donations vs. one year ago
Breakdown of Donations
Pie chart of different donation items


For the rest of the section, we’ll look at cleaning up data from the Federal Accident Reporting System, the source of the example data we’ve used in other sections. If you completed the set-up in the “Prerequisites”, you should be able to load this data using:
library("readr")
accidents <- read_csv("data/accident.csv")
To print out some information about this data, call the object’s name:
accidents
## # A tibble: 34,247 x 52
## STATE ST_CASE VE_TOTAL VE_FORMS PVH_INVL PEDS PERNOTMVIT PERMVIT
## <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
## 1 1 10001 1 1 0 0 0 1
## 2 1 10002 1 1 0 0 0 1
## 3 1 10003 3 3 0 0 0 3
## 4 1 10004 1 1 0 0 0 1
## 5 1 10005 1 1 0 0 0 2
## 6 1 10006 2 2 0 0 0 4
## 7 1 10007 2 2 0 0 0 2
## 8 1 10008 1 1 0 0 0 1
## 9 1 10009 1 1 0 0 0 1
## 10 1 10010 1 1 0 1 1 1
## # … with 34,237 more rows, and 44 more variables: PERSONS <dbl>,
## # COUNTY <dbl>, CITY <dbl>, DAY <dbl>, MONTH <dbl>, YEAR <dbl>,
## # DAY_WEEK <dbl>, HOUR <dbl>, MINUTE <dbl>, NHS <dbl>, RUR_URB <dbl>,
## # FUNC_SYS <dbl>, RD_OWNER <dbl>, ROUTE <dbl>, TWAY_ID <chr>,
## # TWAY_ID2 <chr>, MILEPT <dbl>, LATITUDE <dbl>, LONGITUD <dbl>,
## # SP_JUR <dbl>, HARM_EV <dbl>, MAN_COLL <dbl>, RELJCT1 <dbl>,
## # RELJCT2 <dbl>, TYP_INT <dbl>, WRK_ZONE <dbl>, REL_ROAD <dbl>,
## # LGT_COND <dbl>, WEATHER1 <dbl>, WEATHER2 <dbl>, WEATHER <dbl>,
## # SCH_BUS <dbl>, RAIL <chr>, NOT_HOUR <dbl>, NOT_MIN <dbl>,
## # ARR_HOUR <dbl>, ARR_MIN <dbl>, HOSP_HR <dbl>, HOSP_MN <dbl>,
## # CF1 <dbl>, CF2 <dbl>, CF3 <dbl>, FATALS <dbl>, DRUNK_DR <dbl>
This is a large dataset, with over 50 columns and over 34,000 rows. It records details about all of the fatal motor vehicle accidents in the US in 2017 (at least, that were reported to this database). In this section, you’ll work through cleaning up this data, as you might if you were starting from this raw data and needed to create summaries and plots similar to those in other sections of this booklet.
The first step in making this data more manageable is to remove all the columns we don’t need. There are currently over 50 columns, so it will be much easier to work with an R object with fewer columns. Since you’re just reading in, but not changing, the raw data file, you can get rid of columns in the dataframe without losing the information in the raw data.
The select
function from the dplyr
package allows you to clean up a data frame by selecting
some of the columns of an existing dataframe and deleting the rest.
accidents %>%
select()
## # A tibble: 34,247 x 0


]
{{projects[current_project].description}}
{{college}} - ({{short}})
{{#each degrees}}{{degree}} {{parseFloat(Math.round(gpa * 100) / 100).toFixed(2)}} - {{yog}}
{{/each}} {{/with}}Languages: {{#each languages:i}} {{#if i!=(languages.length -1)}} {{this}}, {{else}} {{this}} {{/if}} {{/each}}
Operating Systems: {{#each operatingsystems:i}} {{#if i!=(operatingsystems.length -1)}} {{this}}, {{else}} {{this}} {{/if}} {{/each}}
Applications: {{#each applications:i}} {{#if i!=(applications.length -1)}} {{this}}, {{else}} {{this}} {{/if}} {{/each}}
{{/with}}{{class}}
{{range}}{{company}} - {{title}}
{{range}}{{range}}
{{description}}
{{name}}
{{#if average > 0 }}{{average}} - {{grade}}
{{else}}{{grade}}
{{/if}}{{name}} is an undergraduate at WPI concurrently pursuing a Bachelors' and a Masters degree. Interests include creating dynamic visual displays, and learning about machine learning, AI, and data science. In his 'free' time he enjoys skiing, surfing, playing hockey, and reading books.
lovering at wpi.edu
Teaching Assistant (Undergraduate)
Department of Computer Science
Worcester Polytechnic Institute
100 Institute Road
Worcester, MA 01609


Updates: (latest version is Fri Jan 25 2019)
- periods now show period length
- you can label barcodes
- the bottom bar is now hidden when the barcode is showing
- UGWA is now somewhat tab accessible
Aaryan is the Supreme Leader of the Universe
Tomer will execute all who defy the crown.


Game Instructions
A syntax error is a problem with the grammar in our code. Syntax errors mostly come in the form of misspelled keywords, missing or open brackets, or missing parentheses or punctuation.
After submitting your name, you will be taken to the game. There, you will be shown a block of code with line numbers. As a player your task will be to spot the syntax error in the block of code shown before the timer runs out. Points will be added to your score if you find the error, no points will be deducted for incorrect answers.


SSH Over SCTP (With Socat)
27 Jul 2015This is a quick post, kind of a reposting of a thing I pastebinned about a year ago that has served me REALLY well in evading stupid paywalls in airports and the likes. Also in evading a ridiculous firewall at the Uni I sometimes attend.
The prerequisites are that you have a Linux box (maybe a Mac will work, idk. Not an OSX user but I can test if theres demand for it), a remote server, and a bit of familiarity with the command line.
For the remote server, any server with a public IP address will do so long as you ensure it supports the SCTP protocol. Look up SCTP support for your distribution, usually its the lksctp libraries that need to be installed. DigitalOcean Debian instances and Amazon EC2 Ubuntu instances seem to work fine out of the box. Your local box also needs SCTP support. Again, with Debian, Ubuntu, and Arch Linux, this never seems to be an issue. Finally, you will need SSH access to the remote box, preferably as a user with admin privs so you can set up socat on it and listen on privileged ports.
So, here goes. On the serverside (set this up BEFORE you need it), you will need to install “socat” (should be available in your distros repos. If not, compile it from source or something!). Next, you will need to just run the following command in a screen session.
This will spin up a socat listener on port 80/SCTP, and forward any traffic sent to it through to port 22/TCP on the listening host. Change these ports as you see fit - often I run sshd on a different port (443/TCP) to evade other firewalls and the likes.
Now, on the client side, when you want to connect, you will also need socat working with SCTP support. Same deal as making it work on the serverside. To spin up your socat proxy on local to forward to the remote server, do the following.
This will spin up a TCP listener on localhost:1337/TCP, which is being forwarded over SCTP to the TCP port at the other end of the tunnel (in my example, port 22). To connect to the sshd at the other end, you just need to ssh to localhost:1337, and to get yourself some SOCKS5 for web browsing through your tunnel, do dynamic port forwarding. The following example sums it up for you.
Now you have a working tunnel! You should be ssh’d into your box, and you have a listening SOCKS5 proxy on port 8080 for tunnelling web browsing, email, etc through :)
Let me know via email or whatever how this works out for you, I am very interested to know where it works and where it doesn’t. Usually I rely on DNS/ICMP tunnelling or UDP over port 53 with OpenVPN, but sometimes you just have to blast through the fucker by speaking a language it doesn’t even seem to comprehend :)


Simple, responsive CSS toolkit based on OOCSS principles
BASSCSS is a lightweight collection of highly reusable styles and utilities designed for speed, performance, and scalability. Use it out of the box or as the base for a larger project.
Lightweight
11KB minified and designed for reusability
Performant
Selectors designed for speed
Flexible
Utility styles to handle the bulk of the work
Customizable
Sass variables and styles open for extension
Code Faster
Spend less time writing CSS
Mathematical
Based on a consistent scale for type and layout
Responsive Type Scale
With type utilities to make fine grain adjustments
Hamburger 1
Hamburger 2
Hamburger 3
Bacon ipsum dolor sit amet chuck prosciutto landjaeger ham hock filet mignon shoulder hamburger pig venison.
Layout Utilities
With a suite of basic styles and a white space scale
| Class | Description |
|---|---|
| .inline | display: inline |
| .block | display: block |
| .inline-block | display: inline-block |
| .oh | overflow: hidden |
| .clearfix | Clears floated children |
| .left | float: left |
| .right | float: right |
Forms
With styles that work with basic layout utilities
Responsive Grid System
Themes
Create your own themes to quickly customize the look and feel
Getting Started
Read the documentation or visit Github to get started.


Subclass:
Add subclass.
Change subclass.
Cancel current subclass and change to a new subclass.
Subclass skill certification.


Sentry Kristin:
You have come back empty-handed. Are you tired of the hunt already? As I have said before, only those who return with the shackles from the imp's necks will receive the reward.
Say you will quit
Say you will continue


In the industrialized countries of the global North, especially in Europe and the United States, there are a number of factors that cause a care deficit:
Demographic aging: more people in need of care in old age, but less young people to take care of them.
Women's entry into the labour market: in recent decades, more and more women have taken up paid employment, providing a way out of the domestic sphere.
Welfare states provide no answers: cuts to public services are the end result of a gradual dismantling of a so-called “Welfare State” that, while never providing for the entire population, did alleviate some socio-economic inequalities.
Family-first social model: structuring of domestic and private spheres around the nuclear family, with an increasing tendency towards atomization and individualism.

At the same time, the wealth of the global North and the capitalist system relies on an extractivist economy. A developmental model has been put in place in the countries of the Global South, for example in Latin America. This development is based on the extraction of the common wealth –resources and raw materials– from Latin American lands.
Extractivism and development are two sides of the same coin, resulting in enrichment of the industrialized countries of the North and impoverishment of the non-industrialized countries of the global South. The system is sustained by a whole host of racist, sexist, ableist, ageist and colonial structures, which act as pillars of globalized capitalism.
The capitalist development model allows thousands of multinational corporations to carry out extractivist macro-projects that ransack the common wealth of rural areas each year. Water, minerals, fossil fuels, monocultures and foodstuffs are, among others, the natural resources that are extracted wholesale.
This causes great damage to the natural environment and to people: pollution, destabilization of the land, floods, desertification, deforestation, drought, and more. At the same time, it disrupts the balances of local economies and activities, to the point of hampering communities' supply chains and self-sufficiency. In rural areas, this results in a lack of opportunities for the local populace and, more specifically, obliges women's entry into the labour market. Finding no alternatives in their local areas, they are forced to migrate from rural to urban environments. In turn, upon their leaving, care deficits arise. Other women –family members and close friends, or paid workers– have to take on the care that the women who migrate can no longer provide, be it caring for children, the elderly or the sick, or the land, the community and the natural environment.
This is the background to national and transnational transfers of care. As a result of a capitalist socio-economic model which is neither environmentally sustainable nor responsible, the countries of the Global South have seen high migratory mobility. In the first place, from rural to urban areas. Population growth in cities generates socio-economic stress, as the volume of people displaced from the countryside to the city often cannot be sustained.
A lack of opportunities in terms of one's work and/or livelihood paves the way for a cheap and casualized workforce. Workplace conditions and rights are on many occasions cut back, with populations of urban origin also feeling the impact of the demographic change resulting from this migration. In this context, with a lack of opportunities in the countryside and in the city, people with more economic resources but without economic stability consider migration as a way out of the vicious cycle. Over the last thirty years, the phenomenon of global migration from South to North has become increasingly feminized. In the last decade, almost half of migrants have been women. They migrate transnationally, to neighbouring countries or to other continents, to find better working conditions and to help support the livelihoods of their own households.
In most cases, when women migrate, they leave behind relatives in their country of origin who they previously cared for: children, parents, sick people, and others with whom they are unable or unwilling to reunite. When women migrate abroad, a further and particularly urban care deficit arises. Again, other women take on care duties, whether paid or unpaid. Should the caregiver in the country of origin be a paid employee, this will probably be on a casual basis, perpetuating
a series of human rights infringements that begins in the countries of the global North and reaches the most remote corners of the countries of the global South.


Symbollic Logic
by Lewis Carroll
Symbollic Logic is a text discussing the area of mathematics which studies the purely formal properties of strings of symbols.
Source: Carroll, L. (1896). Symbollic Logic. New York; Macmillan & Co.
- “Syllogism”
- An example of syllogism.
- “Advertisement”
- An advertisement preceding the text.
- “Preface to the Fourth Edition”
- The preface to the work.
- “Introduction”
- An introduction to the text.
- “Book 1: Chapter 1”
- An explanation of important terms.
- “Book 1: Chapter 2”
- An explanation of the terms involved in determining classification.
- “Book 1: Chapter 3”
- The methods of division are discussed.
- “Book 1: Chapter 4”
- The method by which things are named is explained.
- “Book 1: Chapter 5”
- This chapter explains how definitions are created.
- “Book 2: Chapter 1”
- The author explains the general characteristics of a proposition.
- “Book 2: Chapter 2”
- The types of propositions of existence are explained.
- “Book 2: Chapter 3”
- Propositions of relation are explained, with relevant examples provided.
- “Book 3: Chapter 1”
- An explanation of the parts of the bilateral diagram, including instructions on learning the various sections.
- “Book 3: Chapter 2”
- This chapter explains the designations assigned to the different counters.
- “Book 3: Chapter 3”
- The author provides examples of how to represent to various types of propositions within the chart.
- “Book 3: Chapter 4”
- The author suggests methods for practicing the interpretation of the diagram.
- “Book 4: Chapter 1”
- The author explains the transition to using a trilateral diagram.
- “Book 4: Chapter 2”
- The author describes the propositions that can be represented on the trilateral diagram.
- “Book 4: Chapter 3”
- The method for representing various propositions is explained.
- “Book 4: Chapter 4”
- The author explains methods for reading the trilateral diagram.
- “Book 5: Chapter 1”
- This chapter details the definition and creation of syllogisms.
- “Book 5: Chapter 2”
- This chapter describes the problems inherent in syllogisms.
- “Book 6: Chapter 1”
- A brief explanation of the use of subscripts
- “Book 6: Chapter 2”
- Various propositions are considered and written in subscript form.
- “Book 6: Chapter 3”
- Syllogisms and subscripts come together.
- “Book 7: Chapter 1”
- Definiton and introduction to sorites.
- “Book 7: Chapter 2”
- The author addresses the various problems relating to soriteses.
- Year Published: 1896
- Language: English
- Country of Origin: United States of America
-
Readability:
- Flesch–Kincaid Level: 10.5
- Word Count: 47,953
- Genre: Informational
- Keywords: math history, mathematics


| HDPARM(1) |
User Commands |
HDPARM(1) |
hdparm - manual page for hdparm 1.31.1
hdparm [OPTIONS] [DEVICE]
BusyBox v1.31.1 (2020-04-30 13:38:01 EDT) multi-call binary.
- -a
- Get/set fs readahead
- -A
- Set drive read-lookahead flag (0/1)
- -b
- Get/set bus state (0 == off, 1 == on, 2 == tristate)
- -B
- Set Advanced Power Management setting (1-255)
- -c
- Get/set IDE 32-bit IO setting
- -C
- Check IDE power mode status
- -d
- Get/set using_dma flag
- -D
- Enable/disable drive defect-mgmt
- -f
- Flush buffer cache for device on exit
- -g
- Display drive geometry
- -h
- Display terse usage information
- -i
- Display drive identification
- -I
- Detailed/current information directly from drive
- -k
- Get/set keep_settings_over_reset flag (0/1)
- -K
- Set drive keep_features_over_reset flag (0/1)
- -L
- Set drive doorlock (0/1) (removable harddisks only)
- -m
- Get/set multiple sector count
- -n
- Get/set ignore-write-errors flag (0/1)
- -p
- Set PIO mode on IDE interface chipset (0,1,2,3,4,...)
- -P
- Set drive prefetch count
- -Q
- Get/set DMA tagged-queuing depth (if supported)
- -r
- Get/set readonly flag (DANGEROUS to set)
- -R
- Register an IDE interface (DANGEROUS)
- -S
- Set standby (spindown) timeout
- -t
- Perform device read timings
- -T
- Perform cache read timings
- -u
- Get/set unmaskirq flag (0/1)
- -U
- Unregister an IDE interface (DANGEROUS)
- -v
- Defaults; same as -mcudkrag for IDE drives
- -V
- Display program version and exit immediately
- -w
- Perform device reset (DANGEROUS)
- -W
- Set drive write-caching flag (0/1) (DANGEROUS)
- -x
- Tristate device for hotswap (0/1) (DANGEROUS)
- -X
- Set IDE xfer mode (DANGEROUS)
- -y
- Put IDE drive in standby mode
- -Y
- Put IDE drive to sleep
- -Z
- Disable Seagate auto-powersaving mode
- -z
- Reread partition table


QAR
attaching to an issue
described
generating
quality
filter sets
Browser and Viewer Integration
Quality Rule Queries
standards
quality assessement reports
quality assessment report
Quality Assessment Reports
What Is Caliper?
generating
quality assessment reports
attaching to issues
quality hits
examining
quality rule queries
quality scores
queries
total quality
queries
Caliper
quality rule
Declares
Defines
making
metric
nested structures
Scan Mode
Show
submission check
threshold
editing
Uses
Where
query
described
metrics
creating
scores
query results
basic filtering
Advanced Filtering
Basic Filtering
filtering
sorting
query weight
editing
querying
source code
quitting
DIScover
the Group Manager
Rational ClearCase
using
RCS
using
refreshing
groups list
related documentation
release notes
removing
a Caliper session
entities from a group
rename
renaming
a group
report
impact analysis
generating
quality assessment
reports
impact
quality assessment
repository
described
resetting
a Caliper session
results
Caliper
viewing
Results column
roles
administrator
user
root entity
project scope
reference level
running
uninstall program
runtime list
Developer Xpress
saving
a Caliper session
a group
group contents to a text file
scan mode
queries
scope
Dormant
score
filter set
total quality
searching
a project hierarchy
selecting
a configuration management system
a root entity
selecting a CM system
Server Source
source mode option
Service Chooser window
Developer Xpress
services
offered
session
before starting
Caliper
Caliper Sessions
Performing a Quality Analysis
opening
removing
resetting
saving
updating
closing
setting up
Integrity Manager integration
Show query
Simplify
described
simplifying
header files
sort order
changing
sorting
filtered lists
source code
graphical view
header files
simplifying
managing changes
navigating
in Developer Xpress
querying
Source Integrity
using
source mode
choosing
No Transform
Server Source
Transform
standards
starting
a Dormant analysis
Caliper
DIScover
Developer Xpress
uninstall program
statistics
queries
structure
queries
submission check
queries
using
Submission Check window
described
symbols
entity relation diagram
Integrity
query
template impact options
test coverage
queries
text view
threshold queries
editing
toolbar
training
Transform
source mode option
tree diagram
Troubleshooting
Developer Xpress
typographical conventions
uninstall program
uninstalling DIScover
union impact options
Unparsed files
updating
a Caliper session
upgrade services
user
described
Uses query
using
the Minibrowser
the Viewer
variable impact options
view
tree diagram
View menu
Viewer
described
Minibrowser
minibuffer
Text view
using
viewing
Caliper results
entities
group contents
instance sources
instances
metrics
source code in graphical views
views
call graph
data chart
entity relation diagram
flow chart
inheritance
outline
source code


abstract fun start(state: Map<String, Any>): Unit
Starting point for an application.
state - Initial state between Hot Module Replacement (HMR).
state


Beauty and the Beast
In the enchanted castle, hidden in a dark forest, lives a terrible Monster. Melt the ice in his heart and return him to the human form, removing the spell, only a beautiful girl who loves him for who he is can


First run
The first time the application runs the main window will be look like follows. There are no
data presentation windows. The USB Thermometer device has not been connected yet.
After the device has been connected, under the icon of database a new device will appear.
The application will start searching of sensors connected to the device.
At the end of sensors searching they will be displayed under the icon of the device. From this
moment the application is running. It means temperatures are logged to the database now.
How to change a sensors name
It is possible to change names of found sensors. In order to do this select a sensor you
like and click twice the left mouse button or the F2 key on the keyboard. Type a new name and confirm.
Data observation
In order to display a graph of temperature click the Graph icon. The new internal window will be opened.
To display a graph of temperature, select the sensor you like, drag over newly opened window and drop.
The sensor will be added to the graph. The new data set will be displayed.
In other cases sensors are added to the data presentation windows (tables, graphs, bar graphs, reports)
using the same method of drag and drop.
|


Upload a human face with one of the following emotions: angry, happy, sad, boring, thinking.
I created this model with deep learning with fastai with only 355 images in the training set for the all 5 types of emotions, so the results might improve with a larger training set.


|
|
void | updateDisparity (void) |
| |
|
void | updateDisparityAsync (void) |
| |
|
void | setMatcher (AbstractStereoMatcher *matcher) |
| |
|
void | setColourmap (int) |
| |
|
void | setCalibration (cv::Mat &Q, double baseline=1.0, double focal=1.0) |
| |
|
void | saveImageTimestamped (void) |
| |
|
|
void | finished () |
| |
|
void | newDisparity (QPixmap) |
| |
|
void | savedImage () |
| | Emitted when an image has been saved.
|
| |
|
void | savedImage (QString filename) |
| | Emit when an image has been saved, including the filename.
|
| |
|
|
| DisparityViewer (QWidget *parent=0) |
| |
|
void | setViewer (QLabel *viewer) |
| |
|
void | assignThread (QThread *thread) |
| |
| void | setSavelocation (QString dir) |
| | Set the save directory. More...
|
| |
Definition at line 25 of file disparityviewer.h.
◆ setSavelocation()
| void DisparityViewer::setSavelocation |
( |
QString |
dir | ) |
|
|
inline |
Set the save directory.
- Parameters
-
| dir | Desired save directory, will attempt to create if it doesn't exist. |
Definition at line 47 of file disparityviewer.h.
The documentation for this class was generated from the following files:


Speculative Ads in Healthcare
Critical and Speculative study of future Advertisements in Healthcare field
In near future, when consumerism have developed at that extent where various devices can identify, understand and predict about the users. In such case how will the Healthcare domain use such tools and technology for advertising?
People are sharing their data with the government and private organizations in order to make their life healthy. You're surrounded by objects which keep track and give you subliminal messages to alter your decisions; which lead you to make better healthy choices. You're being monitored; to a very large extent so that you can get a healthy lifestyle.

So, will you subscribe for such future?
Would you trade your privacy in exchange for a better health?
The choice is yours. Really?
Project Guide: Dr. Jignesh Khakhar, Mayank Loonkar.
Camera: Arnav Das
Actor: Arnav Das, Jinal Doshi, Kalyani Ingole, Pankaj Kumar, Urvi Shah
Location: Shakti Sandwich, Mahatma Garden, NID Campus and Faculty house at Gandhinagar.
Special thanks to Deepak Mallya and Suvani Suri


After months of debate in the media over its supposedly sacrilegious content, it's sort of bewildering to discover writer-director Kevin Smith's "Dogma" is not an all-out attack on the Catholic church but rather a rambunctious satire which ultimately turns out to be an endorsement of faith. Is it irreverent and crude? Of course, but what else would you expect from the man who made "Clerks," the first film to win an NC-17 rating purely on the basis of its dialogue?
In "Dogma," Smith (who professes to have been raised a Catholic) asks some of the same kinds of questions you might expect to hear from a precocious child after Sunday School. Did Joseph and Mary ever consummate their marriage after Jesus was born? Did Jesus have brothers and sisters? Why does the Bible skip over what happened to Jesus between the ages of 12 and 30? As you might expect, the answers Smith comes up with are, to put it lightly, a bit unorthodox. But he takes pains to warn his audience about what's coming in a disclaimer at the beginning of the film, asserting that "even God has a sense of humor -- just look at the platypus."
At any rate, anyone who's likely to be offended will probably bail out on "Dogma" in the first ten minutes, right around the time a cardinal (played by George Carlin, for heaven's sake) unveils the new "Catholicism Wow!" campaign which promises "a renewal of faith and style." The centerpiece of his press conference is the unveiling of a statue of a grinning Jesus offering a thumbs-up sign to his followers. The cardinal dismisses the old image of the crucifix, insisting "Christ didn't come to Earth to give us the willies."
That bit sets the tone for a meandering tale about the race to stop fallen angels Loki (Matt Damon) and Bartleby (Ben Affleck) from re-entering Heaven, a feat which would prove God's fallibility and bring on the end of existence. Linda Fiorentino plays Bethany, an abortion clinic worker who's astonished to find she's the one hand-picked by God to prevent this calamity, especially since she's obviously a bit spiritually conflicted. She attends Mass dutifully, but joylessly and confides to her co-worker Liz (Janeane Garofalo) she thinks God is dead. "The sign of a true Catholic," Liz cracks.
Before long, Bethany will be joined in her crusade by Jay (Jason Mewes) and Silent Bob (Smith), the duo who've become Smith's answer to Laurel and Hardy after their previous appearances in "Clerks," "Mallrats" and "Chasing Amy." Although they score a few scattered laughs this time around -- particularly when they reveal what lured them from New Jersey to central Illinois -- the pair's shtick is beginning to wear thin, and "Dogma" might have been a more focused film without them.
Much more entertaining company is provided by the muse Serendipity (Salma Hayek), who's currently visiting the Earth in the guise of a stripper who does her act to New Edition's "Candy Girl," and Rufus (Chris Rock), who claims he was the thirteenth apostle and was left out of the Bible because he's black. Smith has given these characters many of the script's choicest and most provocative lines.
"Dogma" is practically bursting at the seams with ideas, some of which Smith puts across with considerably more finesse than others. He gets a delightfully dry performance from Alan Rickman as the underappreciated seraphim Metatron who berates Bethany for not recognizing him. "You people -- if there's not a movie about it, it's not worth knowing," he growls.
Smith also proves Affleck and Damon are good sports (and able comedians) by working in a few jokes alluding to the rumors about their off-screen friendship, and even manages a couple of nasty swipes at writer-director John Hughes by having Serendipity claim credit for have inspired 19 of the top 20 films of all time. The sole exception is "Home Alone": "Someone sold their soul to Satan to get the grosses up on that." James Sanford
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


{{#markdown}}
```scss
$include-html-reveal-classes: $include-html-classes;
/* We use these to control the style of the reveal overlay. */
$reveal-overlay-bg: rgba(#000, .45);
$reveal-overlay-bg-old: #000;
/* We use these to control the style of the modal itself. */
$reveal-modal-bg: #fff;
$reveal-position-top: 50px;
$reveal-default-width: 80%;
$reveal-modal-padding: rem-calc(20);
$reveal-box-shadow: 0 0 10px rgba(#000,.4);
/* We use these to style the reveal close button */
$reveal-close-font-size: rem-calc(22);
$reveal-close-top: rem-calc(8);
$reveal-close-side: rem-calc(11);
$reveal-close-color: #aaa;
$reveal-close-weight: bold;
/* We use these to control the modal border */
$reveal-border-style: solid;
$reveal-border-width: 1px;
$reveal-border-color: #666;
$reveal-modal-class: "reveal-modal";
$close-reveal-modal-class: "close-reveal-modal";
```
{{/markdown}}


This is a super-clever algorithm for figuring out the shortest path between two points on a graph and can run in O(n log n) time if implemented with a priority queue. (O(n^2) otherwise.)
Imagine the United States is made up of 12 major cities, and that’s all.  All of these cities are connected to some others. They’re all connected either directly (e.g. San Francisco is directly connected to Salt Lake City) or indirectly (e.g. San Francisco is connected to Salt Lake City, and Salt Lake City is connected to Omaha.)
Very importantly, the graph also shows the weights (distances, in the simplist case) of the connections between the cities.
Now out of this giant graph of cities, we want to figure out the fastest path from New York to L.A. so we can set the new cross-country speed record. (The record currently stands at 28 hours, 50 minutes; average speed of 98 MPH with 3 fuel stops. Do not attempt.)
We’re going think about this problem in reverse.
A graph of cities and their distances to other cities, something like this:
graph = {
'LA': {'San Francisco':600, 'Las Vegas':250},
'San Francisco': {'LA':600, 'Seattle':800},
// etc.
}
A set of cities that aren’t yet visited, and some associated data with these unvisited cities. Eventually it will be populated something like this:
Unvisited = {
'LA': {
distance: 0,
parent: null
},
'San Francisco': {
distance: 999999,
parent: null,
},
'Las Vegas': {
distance: 250,
parent: 'LA'
},
// etc.
};
We’ll start from our destination: L.A.
Take every city, including the destination, and put them in the set
Unvisited
.
These are the cities we still have to inspect to see if they’re on the shortest path.
For every city in the Unvisited
set, add an associated
distance to our destination (L.A.). Initialize the distance associated
with the destination to 0
. (“The destination is zero
miles from the destination.”) Initialize all the other distances to
infinity
(or some approximation thereof).
Also add an associated parent
pointer to each city in the
Unvisited
set. Initialize it to null
.
Look at all cities in the Unvisited
set. Find the one
with the smallest distance. Call this currentCity
.
On the first pass, the destination will be the smallest with
0
. On the second pass, they will all tie for smallest
with infinite distance, so just choose any.
We’re interested in the one with the smallest distance computed so far. No point in following paths we know are longer, so we just keep following whichever one is currently shortest.
Look at currentCity
’s direct neighbors and
relax any that need to.
Relaxing is the process of reducing that neighbor’s distance from it’s
current value (remember they start at infinity
) to a
smaller value and setting its parent pointer to the
city that’s within the closer distance.
For example, San Francisco starts at distance
infinity
from L.A., but the graph shows it’s connected to
L.A. by an edge that’s 600
miles long. Since
600
is less than infinity
, San Francisco’s
distance is relaxed from infinity
to
600
. Also San Francisco’s parent pointer
is set to point to L.A.
Remove currentCity
from the Unvisited
set.
We now know its distance from the destination city.
We won’t find any shortcuts that bypass it later–we find all shortcuts first because we always look at the currest closest city in Step 1.
Repeat back at Step 1 until you’re finished.
You’re finished if (A) currentCity
is your
source city (found the way!), (B) all the cities in
Unvisited
have infinite distance (meaning they’re on an
island somewhere) or (C) if the Unvisited
set is empty,
meaning you couldn’t find the source at all. Destroyed… by the Empire.
If your currentCity
arrived at your source city,
congratulations: you’ve found the shortest path!
All you need to do now is:
Start at the source city.
Print out the name of the city (or whatever you want to do to visualize it).
Follow it’s parent pointer to the next city in line.
Repeat until you reach your destination city.
You should be able to build the Unvisited
set as you go
instead of adding all cities to it initially. Some of the cities will
never even be considered.
One of the key speedups in the algorithm is how you go about finding the the nearest city. You could use linear search O(n), but you can get O(log n) with a priority queue.
IIRC, the above is from Cormen’s Algorithms. Wikipedia has a different, equivalent algorithm.
The included code in example/
uses the Wikipedia algorithm.
Basic framework for running Dijkstra’s algorithm and displaying the results on an undirected graph via d3.
chrome d3_demo.html
to view the d3 demo. Integrate this with the included
DijkstrasAlgorithm.js
for cool technology.
Swap the commented lines in the file to perform Dijkstra’s Algorithm on the tree defined on the Dijkstra’s Algorithm wikipedia page. Leave the current comment structure to build a dynamic graph randomly and solve it with Dijkstra’s Algorithm.
let graph_spec = gen_graph(1000, 5);
let tree = build_tree(graph_spec.V, graph_spec.E);
//let tree = build_tree(V,E);
//console.log(JSON.stringify(tree,null,2));
Get a graph built from a list of verts and edges.
Implement Dijkstra’s algorithm over that graph.
Integrate the solver with the D3 demo; make it quick and dirty to just get it going.
Add text fields for starting and ending cities.
Refactor from quick and dirty integration into an nice React app.
…
Profit!


THE BORROWERS (Polygram) Starring: John Goodman, Flora Newbigin, Tom Felton, Bradley Pierce, Mark Williams, Jim Broadbent, Celia Imrie, Raymond Pickard. Screenplay: Gavin Scott and John Kamps, based on the novels by Mary Norton. Producers: Tim Bevan, Eric Fellner and Rachel Talalay. Director: Peter Hewitt. MPAA Rating: PG (mild vulgarity) Running Time: 83 minutes. Reviewed by Scott Renshaw.
THE BORROWERS is the kind of goofy charmer of a family adventure film Hollywood should be able to make it its sleep, if only it would bother. Instead, it took British Working Title Films to bring Mary Norton's popular children's novels to life. The premise posits the existence of 4-inch-tall beings called Borrowers who live beneath the floorboards and in the walls of human homes, making their living off the bits and pieces we always seem to be misplacing -- a loose button for a plate here, a sock for a bed there. In THE BORROWERS, a Borrower family called the Clocks -- papa Pod (Jim Broadbent), mama Homily (Celia Imrie) and children Arietty (Flora Newbigin) and Peagreen (Tom Felton) -- faces homelessness when nasty real estate developer Ocious P. Potter (John Goodman) schemes unscrupulously to nab the home of their human hosts, the Lenders.
The Clock family's quest to thwart Potter's plans, aided by young Pete Lender (Bradley Pierce), anchors an energetic story which begs a couple of very important questions. First: why can't more films employ special effects with THE BORROWERS' unobtrusive whimsy? Visual effects supervisor Peter Chiang, production designer Gemma Jackson and cinematographers John Fenner and Trevor Brooker have joined forces to fashion a warm, visually enthralling world for the film's characters, in which the oversized props and camera trickery serve a purpose besides calling attention to themselves. Humans and Borrowers interact convincingly, creating wild and thoroughly entertaining set pieces. It's a great-looking, lively piece of work with neat bits of throwaway business -- a Monopoly card hung on the Clocks' wall like a Pop Art showpiece -- and a crisp pace.
The second, more disspiriting question: when and why did it become obligatory for every children's film to aim for cheap chuckles from bodily functions? For most of its running time, THE BORROWERS' slapstick comedy is disarming in its cartoonish innocence -- foam in the face, cheese on the head, exaggerated electrocutions and pratfalls. Why, then, do we need to see Peagreen immersed in a massive pile of dog droppings? Why the running gag about a flatulent hound? Why an off-hand comment from Pete to his parents that he "has to pee?" Is it really so difficult to fill 83 minutes with entertainment a parent can share with a child sans embarassment? There's so much immagination throughout THE BORROWERS that it's even more disappointing to find it swinging so typically below the belt.
There's nothing particularly ground-breaking about the basic story-line of THE BORROWERS, which melds the recent MOUSE HUNT with a teen alienation sub-plot as Arietty longs to find other Borrowers. The appeal of the film comes not from narrative wackiness, but from the complementary pairing of John Goodman's snarling villainy with the storybook delights of the film's overall look and feel. Sure, it stumbles occasionally in the ways its most like most ostensibly "family films" of recent years. It's the ways in which THE BORROWERS is least like its genre cousins which should make it satisfying matinee viewing.
On the Renshaw scale of 0 to 10 borrowed times: 7.
Visit Scott Renshaw's MoviePage http://www.inconnect.com/~renshaw/ *** Subscribe to receive new reviews directly by email! See the MoviePage for details, or reply to this message with subject line "Subscribe".
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


Welcome to web3 - looking like web1!
Can I has web3?!
Address of the ico contract:
you address:
contract balance:
current balance: