The Tamagotchi is a handheld digital pet, created in Japan by Akihiro Yokoi of WiZ and Aki Maita of Bandai. It was first
sold by Bandai on November 23, 1996 in Japan, quickly becoming one of the biggest toy fads of the 1990s. As of
2010, over 76 million Tamagotchis have been sold world-wide. Most Tamagotchi are housed in a small egg-shaped
computer with an interface usually consisting of three buttons, although the number of buttons may vary.
Source: Wikipedia
Source: Wikipedia
# Final_Project
The Final Project for CS-290: a website that features a mock Tamagotchi game that stores
the log data in the cookies on the computer that uses it. Take care of your Tamagotchi pet
by training it, feeding it, playing with your pet, and more! View your pet's stats to make
check the hunger, happiness, training and age levels. Over time, your pet will grow old and
your pet's appearenes will change based on age. Make sure to take great care of your pet!
Created by Nick Bradford, Joshua Lioy, Anisha McLoud
Notes: The pet's maximum life span is 4 years. After 4 years, there are a couple bugs that may occur.


---
group: starter-template-general-our-team
layout: starter-template/general/light
title: Our Team 1
description: Start a new project with 50+ choices of clean and professional starter templates
---
Our Team
Who We Are
Start a new project with All in One CSS Framework
We understand the intricate workings behind a successful online presence, and therefore provide our clients with a comprehensive service package that goes far beyond a beautiful website.
Clean & Professional
All in One
Rich Example
Riasyah Novita
Chief Executive Officer
Riasyah Novita is CEO of Shield, Inc. After graduating from University in 1982, she spent 12 years in Shield's personal computer business, ultimately serving as the director. It was during this time that she also earned his MBA from University, becoming a Scholar in 1988. Later, she served as the Chief Operating Officer of the computer reseller division of Shield, Inc. and in 1997 became the Vice President for Shield, Inc. for six months.
Fandy Pradana
Chief Technology Officer
Fandy Pradana is CTO of Shield, Inc. After graduating from University in 1982, he spent 12 years in Shield's personal computer business, ultimately serving as the director. It was during this time that he also earned his MBA from University, becoming a Scholar in 1988. Later, he served as the Chief Operating Officer of the computer reseller division of Shield, Inc. and in 1997 became the Vice President for Shield, Inc. for six months.
Bintan Pradika
Chief Information Officer
Bintan Pradika is CIO of Shield, Inc. After graduating from University in 1982, he spent 12 years in Shield's personal computer business, ultimately serving as the director. It was during this time that he also earned his MBA from University, becoming a Scholar in 1988. Later, he served as the Chief Operating Officer of the computer reseller division of Shield, Inc. and in 1997 became the Vice President for Shield, Inc. for six months.


--- title: `dessicate`: A library to stay DRY. keywords: fastai sidebar: home_sidebar nb_path: "index.ipynb" ---
Dessiccate (verb): remove the moisture from (something); cause to become completely dry.
Dry (adj): without moisture. Also, an acronym for DON'T REPEAT YOURSELF.
This project was started to house functions the author uses a lot so he doesn't have to writ them over and over again. I hope you find some of them useful!
pip install dessiccate


--- layout: archive title: Zulip Chat Archive permalink: /stream/116395-maths/topic/MathLib.20installing.html ---
I'm having a bit of an issue installing mathlib. For many years I have already had Python 2, but I installed Python 3 for mathlib sake. In https://github.com/leanprover-community/mathlib/blob/master/docs/install/windows.md it says I need to type "which python" in Git Bash, with the App Installers turned off in 'Manage App Execution Aliases'. When I do that it still says "/c/Users/nicho/AppData/Local/Microsoft/WindowsApps/python" in the terminal. (Either that or "no python found".) Please let me know what to do as soon as possible. I have an important project due on March 4 and it's important I have enough time after installing mathlib to work out the mathematics.
You don't need python for mathlib to work
I'm intrigued, doesn't the website say I do...
it helps with some of the tooling, but nothing essential for functioning
Do you have lean? You can create a project, add a mathlib dependency, and then leanpkg will download it for you
You may have to compile it yourself and this takes a while, but not more than an hour
the python is to help with this part
Alright, I'll do that tomorrow, it's really late for me
Thanks for the help
@Patrick Massot , it is maybe time to put your all-in-one zip file with mathlib and vscode for windows somewhere, together with a link at the first line of the windows installation instructions, explaining that if you just want to try Lean and mathlib this is by far the simplest option?
Yes, I was waiting for the GitHub action transition to settle down, but I guess now it's ready.
I've done a bit a research about this idea. Clearly there is no way we can distribute VScode while respecting the license. So we'll need to use https://github.com/VSCodium/vscodium
which is a free binary release of VScode (yes, Microsoft's open sourcing is weird). The next step is to install the extension and I immediately hit a bug. I'll wait a bit to see whether this bug could be fixed quickly, but most probably we'll need a hack to install the extension. @Gabriel Ebner how hard would it be for you to also release a version of the VScode extension that could simply be copied in the state the installation procedure creates?
Can't you just extract the .vsix
file? (click "download extension" here). The vsix file is just a zip file. AFAICT it contains exactly the same directory structure as ~/.vscode/extensions/jroesch.lean-0.14.11/
on my machine.
I'm looking for a link I could actually follow from a script.
I would prefer not to use selenium to download our own extension...
git clone https://github.com/leanprover/vscode-lean cd vscode-lean npm i ./node_modules/.bin/vsce package ls *.vsix # voilà
Doing that for every mathlib nightly feels a bit silly, right? Why not doing it as part of your release workflow and have the vsix file as a GitHub artefact somewhere?
I'll see what I can do.
I tried doing this https://github.com/leanprover-community/mathlib/blob/master/docs/install/project.md
In Git Bash, "update-mathlib" responds with "command not found", and "source ~/.profile" didn't work either
you did the first three lines before update-mathlib
?
do lean
and leanpkg
work?
Yeah, and leanpkg works
But I got "bash: update-mathlib: command not found"
That's fine. Go to my_project/_target/mathlib
and then lean --make src
and go get a coffee (or dinner)
Alternatively, download the compiled olean files from https://github.com/leanprover-community/mathlib-nightly/releases and unzip them to the _target/mathlib
folder
If all goes well, you should be able to put import data.real.basic
in a lean file in the project and vscode should be happy with it after waiting a few seconds. If it takes longer than that something may have gone wrong with the compile
Alternatively, if anyone wants to diagnose installing python on windows be my guest
Alright, I've unzipped the tar
But "import tactic" still doesn't work
I don't suppose the src has to be the same folder as my lean file?
Make sure it gets unzipped to the same folder as mathlib itself, i.e. each foo.olean
file should be right next to the analogous foo.lean
file
On another note, when I did the other things, my_project/_target existed but there wasn't a mathlib folder
Your lean file should be in my_project/src
, and you have to have vscode open to the my_project
folder.
maybe try leanpkg configure
from my_project
directory?
assuming you have already done leanpkg add leanprover-community/mathlib
I'm not sure what's going on
You should really be more specific about error messages and the like
I have my project in the src folder, I have the terminal open to /my_project, and "import tactic" still isn't any different
"invalid import: tactic
could not resolve import: tactic"
Try "Lean: restart" from the crtl-shift-p menu of vscode
"Cannot find runtime 'node' on PATH. Is 'node' installed?"
Did you "open folder" at my_project
in vscode?
'open' is "command not found"
These are not terminal commands
in vscode, there is a button to "open folder"
open my_project
are you using vscode?
Yeah?
"ambiguous import, it can be 'c:\Users\nicho\Downloads\lean-3.4.2-windows\bin\my_project\_target\deps\mathlib\src\tactic\default.lean' or 'c:\Users\nicho\Downloads\lean-3.4.2-windows\bin\my_project\src\tactic\default.lean'"
Do you see a folder hierarchy on the left side, like src/ and src/foo.lean?
Yup
Now "import tactic" has a different error message, which I just stated
The my_project/src
folder should be almost empty, it should just have whatever scratch files you are working on
mathlib doesn't go there
so my_project\src\tactic\default.lean
should not exist
It has "algebra", "algebraic_geometry", ..., "topology" ---- supposedly what folder should they go in?
delete all of it
that stuff goes in _target/mathlib/src
and it's probably already there, hence the duplicate import
Ahh I see
Well, now it says it can't resolve the import again
You created a file src/foo.lean
and put import tactic
in it?
Yeah? (Well, fermat.lean)
does the file _target\deps\mathlib\src\tactic\default.lean
exist?
Oh come to think of it, it actually works now
Dunno why it didn't right after the last thing it did, maybe it was readjusting
Thanks a bunch for the help
Restart lean and see how long it takes for the orange bars to go away?
Alright
There's no error, but Lean isn't even reacting with anything
I'll just have to see what happens
There are orange bars on the left gutter indicating that lean is working
Ah okay
There is also a number of files in the status bar
does it look like it is doing a lot of work?
It should be speedy if compilation worked
Well it's taking a while
does touch
work on the command line
"touch: missing file operand
Try 'touch --help' for more information."
try going to _target/deps/mathlib/src
and run find src/ -name '*.olean' -exec touch {} +
then restart lean and see if that fixes the issue
"find: ‘src/’: No such file or directory"
oh, up one directory
I did that
Well, now Lean's not responding to the file, but there are no orange bars
what does the status bar say?
Status bar? Not sure what that is
bottom left, look for "Lean: ..."
Here's a simple test file:
import tactic #check tactic.tidy
Lean: [check mark] (checking visible files)
and there is a squiggle over #check
?
I think you are good to go
Well I just tried the test file and see orange bars
Yup, I see the squiggle
So I imagine it should work
It's just completely nonresponsive to fermat.lean
If lean crashes, you will get a message in the bottom right
What's in the file?
Oh hey, I just closed the untracked fermat.lean and now it's working
great
Thank you ^^
@Nicholas McConnell about the Python issue. If you reopen Git Bash
and run which python
again, do you still get /c/Users/nicho/AppData/Local/Microsoft/WindowsApps/python
?
I'm keep getting this error message when I run leanpkg configure. I was able to install everything successfully manually but this is coming up when I try to configure mathlib from a cloned git repository. I've check that I have leanpkg.lean and leanpkg.toml in the correct places. Does anyone have any insight? Screen-Shot-2020-02-20-at-1.26.50-PM.png
Try removing the _target
folder and start over.
Aside: this should probably be in the "general" stream.
Rocky Kamen-Rubio said:
I'm keep getting this error message when I run leanpkg configure. I was able to install everything successfully manually but this is coming up when I try to configure mathlib from a cloned git repository. I've check that I have leanpkg.lean and leanpkg.toml in the correct places. Does anyone have any insight? Screen-Shot-2020-02-20-at-1.26.50-PM.png
As a rule of thumb, it's much more helpful to give text rather than pictures of text, by the way.
(deleted)
{% endraw %}Last updated: Apr 24 2020 at 19:02 UTC


The fastest way to edit code is with the code editor, but you can also use Git. This example uses NodeJS, but many other languages are also supported.
This page also includes a log stream and a test console for helping you debug your function.
You can easily integrate with other services and data sources from here.
This is the function management tab, where you will find configuration options specific to your function.
If you want to stop your function from triggering, you can disable it here. This is also where you can delete your function, so be careful!
 It houses centralized settings for your functions and gives you the ability to add features such as continuous integration and user authentication.
This screen is where you can configure settings which affect all of the functions within your function app.
Now that you've seen a bit of what Azure Functions can do, try it out for yourself...


If you would like to support the team, please fill out the form below. We will be in contact with you as soon as possible.


4.1. Gaussian mixture models¶
sklearn.mixture is a package which enables one to learn Gaussian Mixture Models (diagonal, spherical, tied and full covariance matrices supported), sample them, and estimate them from data. Facilities to help determine the appropriate number of components are also provided.
A Gaussian mixture model is a probabilistic model that assumes all the data points are generated from a mixture of a finite number of Gaussian distributions with unknown parameters. One can think of mixture models as generalizing k-means clustering to incorporate information about the covariance structure of the data as well as the centers of the latent Gaussians.
Unfortunately, fitting the best mixture of Gaussians possible on a given dataset (as measured by the likelihood criterion) is exponential in the assumed number of latent gaussian distributions. For this reason most of the time one uses approximate inference techniques in these models that, while not guaranteed to return the optimal solution, do converge quickly to a local optimum. To improve the quality it is usual to fit these models many times with different parameters and choose the best result, as measured by the likelihood or some other external criterion. Here in scikit-learn we implement two approximate inference algorithms for mixtures of gaussians: expectation-maximization and variational inference. We also implement a variant of the mixture model, known as the Dirichlet Process prior, that doesn’t need cross-validation procedures to choose the number of components, and at the expense of extra computational time the user only needs to specify a loose upper bound on this number and a concentration parameter.
4.1.1. Expectation-maximization¶
The main difficulty in learning gaussian mixture models from unlabeled data is that it is one usually doesn’t know which points came from which latent mixtures (if one has access to this information it gets very easy to fit a separate gaussian distribution to each set of points). Expectation-maximization is a well-fundamented statistical algorithm to get around this problem by an iterative process. First one assumes random components (randomly centered on data points, learned from k-means, or even just normally distributed around the origin) and computes for each point a probability distribution on the components it could have been assigned to. Then, one tweaks the parameters to maximize the likelihood of the data given those assignments. Repeating this process is guaranteed to always converge to a local optimum. In the scikit-learn this algorithm in implemented in the GMM class.
Advantages of expectation-maximization:
| Speed: | it is the fastest algorithm for learning mixture models |
|---|---|
| Agnostic: | as this algorithm maximizes only the likelihood, it will not bias the means towards zero, or bias the cluster sizes to have specific structures that might or might not apply. |
Disadvantages of expectation-maximization:
| Singularities: | when one has insufficiently many points per mixture, estimating the covariance matrices becomes difficult, and the algorithm is known to diverge and find solutions with infinite likelihood unless one regularizes the covariances artificially. |
|---|---|
| Number of components: | |
| this algorithm will always use all the components it has access to, needing complex held-out data criteria to decide how many components to use in the absence of external cues. |
4.1.2. Variational inference¶
Variational inference is a more advanced extension to expectation-maximization that instead of maximizing the likelihood approximates full bayesian integration of the latent parameters. The principle behind variational methods is the same as expectation-maximization (that is both are iterative algorithms that alternate between finding the posterior probabilities for each point to be generated by each mixture and fitting the mixtures to these assigned points), but variational methods add regularization by integrating information from prior distributions. This avoids the singularities often found in expectation-maximization solutions but introduces some subtle biases to the model. Inference is often notably slower, but not usually as much so as to render usage unpractical.
Due to its bayesian nature, the variational algorithm needs more hyperparameters than expectation-maximization, but the only actually important of these is the concentration parameter alpha. Specifying a high value of alpha leads more often to uniformly-sized mixture components, while specifying small (between 0 and 1) values will lead to some mixture components getting almost all the points while most mixture components will be centered on just a few of the remaining points.
Simply switching from expectation-maximization to variational inference has the main following advantage:
| Regularization: | due to the incorporation of prior information, variational solutions have less pathological special cases than expectation-maximization solutions. One can then use full covariance matrices in high dimensions or in cases where some components might be centered around a single point without risking divergence. |
|---|
But brings with it the following disadvantage:
| Bias: | to regularize a model one has to add biases. The variational algorithm will bias all the means towards the origin (part of the prior information adds a “ghost point” in the origin to every mixture component) and it will bias the covariances to be more spherical. It will also, depending on the concentration parameter, bias the cluster structure either towards uniformity or towards a rich-get-richer scenario. |
|---|---|
| Hyperparameters: | |
| this algorithm needs an extra hyperparameter that might need experimental tuning via cross-validation. |
4.1.3. The Dirichlet Process¶
Here we will talk only about using variational inference algorithms on dirichlet process mixtures, for reasons of simplicity.
One of the main advantages of variational techniques is that they can incorporate prior information to the model in many different ways. The dirichlet process is a prior probability distribution on clusterings with an infinite, unbounded, number of partitions. Variational techniques let us incorporate this prior structure on gaussian mixture models at almost no penalty in inference time, comparing with a finite gaussian mixture model.
An important question is how can the dirichlet process use an infinite, unbounded number of clusters and still be consistent. While a full explanation doesn’t fit this manual, one can think of its chinese restaurant process analogy to help understanding it. The chinese restaurant process is a generative story for the dirichlet process. Imagine a chinese restaurant with an infinite number of tables, at first all empty. When the first customer of the day arrives, he sits at the first table. Every following customer will then either sit on an occupied table with probability proportional to the number of customers in that table or sit in an entirely new table with probability proportional to the concentration parameter alpha. After a finite number of customers has sat, it is easy to see that only finitely many of the infinite tables will ever be used, and the higher the value of alpha the more total tables will be used. So the dirichlet process does clustering with an unbounded number of mixture components by assuming a very assymmetrical prior structure over the assignments of points to components that is very concentrated (this property is known as rich-get-richer, as the full tables in the chinese restaurant process only tend to get fuller as the simulation progresses).
Variational inference techniques for the dirichlet process still work with a finite approximation to this infinite mixture model, but instead of having to specify a priori how many components one wants to use, one just specifies the concentration parameter and an upper bound on the number of mixture components (this upper bound, assuming it is higher than the “true” number of components, affects only algorithmic complexity, not the actual number of components used).
The advantages of using a dirichlet process mixture model are:
| Less sensitivity to the number of parameters: | |
|---|---|
| unlike finite models, which will almost always use all components as much as they can, and hence will produce wildly different solutions for different numbers of components, the dirichlet process solution won’t change much with changes to the parameters, leading to more stability and less tuning. | |
| No need to specify the number of components: | |
| Implicit strong regularization: | |
| when learning finite mixtures with expectation-maximization or variational inference it might be that the structure found during learning will not fit held-out data very well (specially when using bad parameters). As the dirichlet process automatically performs model selection it tends to fit structures that generalize better to unseen data. |
The main disadvantages of using the dirichlet process are:
| Speed: | the extra parametrization necessary for variational inference and for the structure of the dirichlet process can and will make inference slower, although not by much. |
|---|---|
| Bias: | as in variational techniques, but only more so, there are many implicit biases in the dirichlet process and the inference algorithms, and whenever there is a mismatch between these biases and the data it might be possible to fit better models using a finite mixture. |
<IP_ADDRESS>. GMM classifier¶
The GMM object implements the expectation-maximization (EM) algorithm for fitting mixture-of-gaussian models. It can also draw confidence ellipsoides for multivariate models, and compute the Bayesian Information Criterion to assess the number of clusters in the data. A GMM.fit method is provided that learns a Gaussian Mixture Model from train data. Given test data, it can assign to each sample the class of the Gaussian it mostly probably belong to using the GMM.predict method.
Examples:
- See GMM classification for an example of using a GMM as a classifier on the iris dataset.
- See Density Estimation for a mixture of Gaussians for an example on plotting the density estimation.
<IP_ADDRESS>. Variational Gaussian mixtures: VBGMM classifier¶
The VBGMM object implements a variant of the Gaussian mixture model with variational inference algorithms. The API is identical to GMM. It is essentially a middle-ground between GMM and DPGMM, as it has some of the properties of the dirichlet process.
<IP_ADDRESS>. Infinite Gaussian mixtures: DPGMM classifier¶
The DPGMM object implements a variant of the Gaussian mixture model with a variable (but bounded) number of components using the Dirichlet Process. The API is identical to GMM.
The example above compares a Gaussian mixture model fitted with 5 components on a dataset, to a DPGMM model. We can see that the DPGMM is able to limit itself to only 2 components. With very little observations, the DPGMM can take a conservative stand, and fit only one component.
Examples:
- See Gaussian Mixture Model Ellipsoids for an example on plotting the confidence ellipsoids for both GMM and DPGMM.
Derivation:
- See here the full derivation of this algorithm.


Alabama couple convicted in death of malnourished baby girl
HUNTSVILLE, Ala. (AP) - The parents of an 11-month-old girl who doctors testified died from malnourishment and a lethal dose of medicine have been convicted of aggravated child abuse.
Al.com reports the baby’s father, Joshua Lee Foster, was found guilty in Madison County court on Wednesday. The mother, Porsha Dawn Bole, pleaded guilty to the same charge on Monday. They face 10 years to life in prison when sentenced in January.
A state Forensic Sciences Department medical examiner testified that a fatal dose of a compound commonly found in sleeping pills and allergy medicines caused the girl’s death. The doctor said she weighed just 10 pounds (4.5 kilograms) and was severely dehydrated and underfed when she died in 2018.
Foster testified he never noticed his daughter was starving as he was often away working.
Sign up for Daily Newsletters
Copyright © 2019 The Washington Times, LLC.
Please read our comment policy before commenting.


It’s a warm winter afternoon in Hargeisa, capital of the unrecognized country of Somaliland. The sky above is blue and empty, stretching monotonously from horizon to horizon. Set into its blank background, the sun shimmers like a diamond. But you don’t get diamonds without bloodshed.
 The power vacuum left by Barre’s demise was filled with local militias, squabbling over the remains of the failed state. In the south, this civil war still rages. But in northern Somalia things have calmed down. Somaliland, a former British protectorate, is an island of peace and stability in what is otherwise a conflict-ridden region.
In Hargeisa’s sprawling, outdoor suq, or market, I’m doing two things that visitors are told to never do: exchange money and discuss politics.
Bricks of currency as tall as children are placed on blue tarps. Money-changers sit behind their piles of cash, smiling with teeth stained red by chewing khat, a stimulant similar to tobacco. Some English is spoken here, and I go from stall to stall, trying to find which one has the best rate.
Near the beginning of the vegetable portion of the suq, I find the guy I want to do business with. As is customary for any large transaction, bargaining is expected. I sit down on the tarp in front of the exchanger. I’m offered khat, but I politely refuse.
We spend about fifteen minutes haggling. My request for $100 worth of Somaliland Shillings is enough to fill a wheelbarrow. He doesn’t understand why I would want that many Shillings. After all, they’re only useful for micro-transactions. I wanted to tell him about my interest in Somalia’s history, in its economic mismanagement and hyperinflation. But instead I just tell him that the money is ‘for a friend’. That seems to answer all of his questions.
A group of people have collected behind me on the street, amused and curious about the foreigner purchasing an obscene amount of local currency. Two men sit down next to me, one on either side, and we all shake hands.
‘You are from America, yes?’ one of the men asks.
‘Yes, I am,’ I reply, nodding and smiling. Most Americans in this part of the world wouldn’t confess that they’re from the USA. But long ago I’d learned that the ‘Clash of Civilizations’ between the West and the Islamic World was just a myth: only the radicals on both sides--Fox News and Al Qaeda, respectively--actually believe a word of it.
‘Obama or Bush?’ the second man asked.
This multiple-choice question had only one correct answer. I gave my reply.
‘Oh yes, very good’, he responded. And then raised his voice and repeated ‘Obama!’ so that the crowd would know my answer.
‘I would like to apologize for the drones,’ I said, acting in my capacity as de facto cultural ambassador.
The Obama administration has recently expanded its drone program in the Horn of Africa and Yemen, something that the region’s inhabitants universally despise. Somaliland, though relatively peaceful, is still stuck right between those two conflicts. Everyone reads the papers and knows about the bombings. They were all fearful of the day when drones would start circling over Hargeisa.
‘It is OK, please have some tea,’ the money-changer said. Tea is always close at hand in this part of the world. I was handed a cup of spicy, milky chai before I could even respond.
I wanted to know the local opinion about the Saudi invasion of Yemen. Saudi Arabia is deeply entangled in the politics of this region, though usually the country gets its way with economic bullying; actual military intervention is unheard of.
’It’s very very bad’, the money lender told me. I hadn’t expected this. To me, it seemed like the Saudi invasion was another blatant example of Sunnis squashing dissent among Houthi Shias. But the locals didn’t see it that way. Their concerns were much more secular. Somaliland’s government always boasts about its ‘deep water port’ and ‘livestock production’--what would Saudi Arabia do if it laid its eyes on Somaliland’s two most precious assets?
After the conversation ended I stood up and said my farewells. I left the suq laden with two backpacks full of Somaliland Shillings.
December 05, 2015


controls | |
|---|---|
| c | toggle controls menu |
| i | toggle info menu |
| spacebar | pause/play |
| left , right | step back/forward |
| up , down | zoom in/out |
| [ , ] | dec/inc points |
| r | reset zoom |
| d | toggle display mode |
| link to repo | github |
info | |
|---|---|
| current power | |
| min power | |
| max power | |
| power delta | |
| # of points | |
| link to repo | github |


Apache HTTP Server 版本2.2
This document explains how to install, configure and run Apache 2.0 under Novell NetWare 6.0 and above. If you find any bugs, or wish to contribute in other ways, please use our bug reporting page.
The bug reporting page and dev-httpd mailing list are not provided to answer questions about configuration or running Apache. Before you submit a bug report or request, first consult this document, the Frequently Asked Questions page and the other relevant documentation topics. If you still have a question or problem, post it to the novell.devsup.webserver newsgroup, where many Apache users are more than willing to answer new and obscure questions about using Apache on NetWare.
Most of this document assumes that you are installing Apache from a binary distribution. If you want to compile Apache yourself (possibly to help with development, or to track down bugs), see the section on Compiling Apache for NetWare below.
Apache 2.0 is designed to run on NetWare 6.0 service pack 3 and above. If you are running a service pack less than SP3, you must install the latest NetWare Libraries for C (LibC).
NetWare service packs are available here.
Apache 2.0 for NetWare can also be run in a NetWare 5.1 environment as long as the latest service pack or the latest version of the NetWare Libraries for C (LibC) has been installed . WARNING: Apache 2.0 for NetWare has not been targeted for or tested in this environment.
Information on the latest version of Apache can be found on the Apache web server at http://www.apache.org/. This will list the current release, any more recent alpha or beta-test releases, together with details of mirror web and anonymous ftp sites. Binary builds of the latest releases of Apache 2.0 for NetWare can be downloaded from here.
There is no Apache install program for NetWare currently. If you are building Apache 2.0 for NetWare from source, you will need to copy the files over to the server manually.
Follow these steps to install Apache on NetWare from the
binary download (assuming you will install to
sys:/apache2
):
SYS:
volume (may be installed to any volume)httpd.conf
file setting ServerRoot
和ServerName
along with any file path values
to reflect your correct server settingsSYS:/APACHE2
to the search path, for example:
SEARCH ADD SYS:\APACHE2
Follow these steps to install Apache on NetWare manually
from your own build source (assuming you will install to
sys:/apache2
):
Apache2
on a
NetWare volumeAPACHE2.NLM
, APRLIB.NLM
to SYS:/APACHE2
SYS:/APACHE2
called BIN
HTDIGEST.NLM
, HTPASSWD.NLM
,
HTDBM.NLM
, LOGRES.NLM
, ROTLOGS.NLM
to SYS:/APACHE2/BIN
SYS:/APACHE2
called CONF
HTTPD-STD.CONF
file to the
SYS:/APACHE2/CONF
directory and rename to
HTTPD.CONF
MIME.TYPES
, CHARSET.CONV
和MAGIC
files to SYS:/APACHE2/CONF
directory\HTTPD-2.0\DOCS\ICONS
to SYS:/APACHE2/ICONS
\HTTPD-2.0\DOCS\MANUAL
to SYS:/APACHE2/MANUAL
\HTTPD-2.0\DOCS\ERROR
to SYS:/APACHE2/ERROR
\HTTPD-2.0\DOCS\DOCROOT
to SYS:/APACHE2/HTDOCS
SYS:/APACHE2/LOGS
on the serverSYS:/APACHE2/CGI-BIN
on the serverSYS:/APACHE2/MODULES
and copy all nlm modules into the modules
directoryHTTPD.CONF
file searching for all
@@Value@@
markers and replacing them with the
appropriate settingSYS:/APACHE2
to the search path, for example:
SEARCH ADD SYS:\APACHE2
Apache may be installed to other volumes besides the default SYS
volume.
During the build process, adding the keyword "install" to the makefile command line
will automatically produce a complete distribution package under the subdirectory
DIST
. Install Apache by simply copying the distribution that was produced
by the makfiles to the root of a NetWare volume (see: Compiling Apache for
NetWare below).
To start Apache just type apache
at the
console. This will load apache in the OS address space. If you
prefer to load Apache in a protected address space you may
specify the address space with the load statement as follows:
load address space = apache2 apache2
This will load Apache into an address space called apache2. Running multiple instances of Apache concurrently on NetWare is possible by loading each instance into its own protected address space.
After starting Apache, it will be listening to port 80
(unless you changed the Listen
directive in the configuration files).
To connect to the server and access the default page,
launch a browser and enter the server's name or address. This
should respond with a welcome page, and a link to the Apache
manual. If nothing happens or you get an error, look in the
error_log
file in the logs
directory.
Once your basic installation is working, you should
configure it properly by editing the files in the
conf
directory.
To unload Apache running in the OS address space just type the following at the console:
unload apache2
或
apache2 shutdown
If apache is running in a protected address space specify the address space in the unload statement:
unload address space = apache2 apache2
When working with Apache it is important to know how it will find the configuration files. You can specify a configuration file on the command line in two ways:
-f
specifies a path to a particular
configuration file
apache2 -f "vol:/my server/conf/my.conf"
apache -f test/test.conf
In these cases, the proper ServerRoot
should be set in the configuration file.
If you don't specify a configuration file name with -f
,
Apache will use the file name compiled into the server, usually
conf/httpd.conf
. Invoking Apache with the -V
switch will display this value labeled as SERVER_CONFIG_FILE
.
Apache will then determine its ServerRoot
by trying the following, in this order:
ServerRoot
directive via a
-C
switch.-d
switch on the command line.The server root compiled into the server is usually sys:/apache2
.
invoking apache with the -V
switch will display this value labeled as
HTTPD_ROOT
.
Apache 2.0 for NetWare includes a set of command line directives that can
be used to modify or display information about the running instance of the
web server. These directives are only available while Apache is running. Each
of these directives must be preceded by the keyword APACHE2
.
By default these directives are issued against the instance of Apache running in the OS address space. To issue a directive against a specific instance running in a protected address space, include the -p parameter along with the name of the address space. For more information type "apache2 Help" on the command line.
Apache is configured by reading configuration files usually stored
in the conf
directory. These are the same as files used
to configure the Unix version, but there are a few different directives for
Apache on NetWare. See the Apache
documentation for all the available directives.
The main differences in Apache for NetWare are:
Because Apache for NetWare is multithreaded, it does not use a separate process for each request, as Apache does on some Unix implementations. Instead there are only threads running: a parent thread, and multiple child or worker threads which handle the requests.
Therefore the "process"-management directives are different:
MaxRequestsPerChild
-
Like the Unix directive, this controls how many requests
a worker thread will serve before exiting. The recommended default,
MaxRequestsPerChild 0
, causes the thread to continue servicing
request indefinitely. It is recommended on NetWare, unless there is some
specific reason, that this directive always remain set to 0
.
StartThreads
-
This directive tells the server how many threads it should start initially.
The recommended default is StartThreads 50
.
MinSpareThreads
-
This directive instructs the server to spawn additional worker threads
if the number of idle threads ever falls below this value. The recommended
default is MinSpareThreads 10
.
MaxSpareThreads
-
This directive instructs the server to begin terminating worker threads
if the number of idle threads ever exceeds this value. The recommended
default is MaxSpareThreads 100
.
MaxThreads
-
This directive limits the total number of work threads to a maximum
value. The recommended default is ThreadsPerChild 250
.
ThreadStackSize
-
This directive tells the server what size of stack to use
for the individual worker thread. The recommended default
is ThreadStackSize 65536
.
The directives that accept filenames as arguments must use
NetWare filenames instead of Unix names. However, because Apache
uses Unix-style names internally, forward slashes must be used
rather than backslashes. It is recommended that all rooted file paths
begin with a volume name. If omitted, Apache will assume the
SYS:
volume which may not be correct.
Apache for NetWare has the ability to load modules at
runtime, without recompiling the server. If Apache is
compiled normally, it will install a number of optional
modules in the \Apache2\modules
directory.
To activate these, or other modules, the LoadModule
directive
must be used. For example, to active the status module, use
the following:
LoadModule status_module modules/status.nlm
Information on creating loadable modules is also available.
CGIMapExtension
-
This directive maps a CGI file extension to a script interpreter.SecureListen
-
Enables SSL encryption for a specified port.NWSSLTrustedCerts
-
Adds trusted certificates that are used to create secure connections to proxied servers.NWSSLUpgradeable
-
Allow a connection created on the specified address/port to be upgraded to an SSL connection.Compiling Apache requires MetroWerks CodeWarrior 6.x or higher. Once
Apache has been built, it can be installed to the root of any NetWare
volume. The default is the sys:/Apache2
directory.
Before running the server you must fill out the conf
directory. Copy the file HTTPD-STD.CONF
from the distribution
conf
directory and rename it to HTTPD.CONF
.
Edit the HTTPD.CONF
file searching for all @@Value@@
markers and replacing them with the appropriate setting. Copy over
the conf/magic
和conf/mime.types
files as well.
Alternatively, a complete distribution can be built by including the keyword
install
when invoking the makefiles.
The following development tools are required to build Apache 2.0 for NetWare:
awk.exe
.NOVELLLIBC
to the
location of the NetWare Libraries for C SDK, for example:
Set NOVELLLIBC=c:\novell\ndk\libc
METROWERKS
to the
location where you installed the Metrowerks CodeWarrior compiler,
for example:
Set METROWERKS=C:\Program Files\Metrowerks\CodeWarrior
C:\Program
Files\Metrowerks\CodeWarrior
, you don't need to set this.LDAPSDK
to the
location where you installed the LDAP Libraries for C, for example:
Set LDAPSDK=c:\Novell\NDK\cldapsdk\NetWare\libc
ZLIBSDK
to the
location where you installed the source code for the ZLib Library,
for example:
Set ZLIBSDK=D:\NOVELL\zlib
AP_WORK
to the full path of
the httpd
source code directory.
Set AP_WORK=D:\httpd-2.0.x
APR_WORK
to the full path of
the apr
source code directory. Typically \httpd\srclib\apr
but the APR project can be outside of the httpd directory structure.
Set APR_WORK=D:\apr-1.x.x
APU_WORK
to the full path of
the apr-util
source code directory. Typically \httpd\srclib\apr-util
but the APR-UTIL project can be outside of the httpd directory structure.
Set APU_WORK=D:\apr-util-1.x.x
gmake.exe
) have been included in the system's
PATH
environment variable.\httpd-2.0
and build the prebuild utilities
by running "gmake -f nwgnumakefile prebuild
". This target will create
the directory \httpd-2.0\nwprebuild
and copy each of the utilities
to this location that are necessary to complete the following build steps.
\httpd-2.0\nwprebuild\GENCHARS.nlm
和\httpd-2.0\nwprebuild\DFTABLES.nlm
to the SYS:
volume of a
NetWare server and run them using the following commands:
SYS:\genchars > sys:\test_char.h
SYS:\dftables sys:\chartables.c
test_char.h
和chartables.c
to the directory \httpd-2.0\os\netware
on the build machine.\httpd-2.0
and build Apache by running
"gmake -f nwgnumakefile
". You can create a distribution directory by
adding an install parameter to the command, for example:
gmake -f nwgnumakefile install
gmake -f nwgnumakefile
Builds release versions of all of the
binaries and copies them to a \release
destination directory.
gmake -f nwgnumakefile DEBUG=1
Builds debug versions of all of the
binaries and copies them to a \debug
destination directory.
gmake -f nwgnumakefile install
Creates a complete Apache
distribution with binaries, docs and additional support files in a
\dist\Apache2
directory.
gmake -f nwgnumakefile prebuild
Builds all of the prebuild utilities
and copies them to the \nwprebuild
directory.
gmake -f nwgnumakefile installdev
Same as install but also creates a
\lib
和\include
directory in the destination directory
and copies headers and import files.
gmake -f nwgnumakefile clean
Cleans all object files and binaries
from the \release.o
或\debug.o
build areas depending on whether
DEBUG
has been defined.
gmake -f nwgnumakefile clobber_all
Same as clean and also deletes the distribution directory if it exists.
EXPERIMENTAL
:
Set EXPERIMENTAL=1
USE_STDSOCKETS
:
Set USE_STDSOCKETS=1
By default Apache for NetWare uses the built-in module
mod_nw_ssl
to provide SSL services. This module
simply enables the native SSL services implemented in NetWare OS
to handle all encryption for a given port. Alternatively, mod_ssl
can also be used in the same manner as on other platforms.
Before mod_ssl can be built for the NetWare platform, the OpenSSL libraries must be provided. This can be done through the following steps:
patch -p 1 -i netwarepatch-0.9.7g.diff
NetWare/set_env.bat
and modify any
tools and utilities paths so that they correspond to your build
environment.
Netware/set_env netware-libc
Netware/build netware-libc
OSSLSDK
to the full path to the root of the openssl
source code directory.
Set OSSLSDK=d:\openssl-0.9.7x


BMS Shanchay
Home     Retail     Deposit products    BMS Shanchay
BMS Shanchay, a savings product for the “Base of the Pyramid”. Low income group who don’t manage their finance due to the lack of available banking facilities; opening the product would help minimize their financial risks.
Features :
- Minimum account opening balance is Tk 10
- Type of Account: Savings, non-checking.
- No account maintenance fee.
- Interest will be calculated on monthly average balance and credited to account on half yearly basis, similar to regular savings account*
- Cash withdrawal option: Only through withdrawal slip and Debit Card.
Eligibility:
- Any Bangladeshi with photo ID document as applicable for savings account.
- Age 18 years and above.


|
Kieker 1.5 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object kieker.tools.traceAnalysis.systemModel.AbstractTrace kieker.tools.traceAnalysis.systemModel.ExecutionTrace
public class ExecutionTrace
| Field Summary |
|---|
| Fields inherited from class kieker.tools.traceAnalysis.systemModel.AbstractTrace |
|---|
NO_TRACE_ID |
| Constructor Summary | |
|---|---|
ExecutionTrace(long traceId)
|
|
ExecutionTrace(long traceId,
String sessionId)
|
| Method Summary | |
|---|---|
void |
add(Execution execution)
Adds an execution to the trace. |
static Comparator<Execution> |
createExecutionTraceComparator()
Returns an instance of the Comparator used by the internal TreeSet to
compare Execution s. |
boolean |
equals(Object obj)
Returns whether this Execution Trace and the passed Object are equal. |
long |
getDurationInNanos()
Returns the duration of this (possible incomplete) trace in nanoseconds. |
int |
getLength()
Returns the length of this trace in terms of the number of contained executions. |
int |
getMaxEoi()
Returns the maximum execution order index (eoi) value within the trace. |
int |
getMaxEss()
Returns the maximum execution stack size (ess) value, i.e., the maximum stack depth, within the trace. |
long |
getMaxTout()
Returns the maximum timestamp value of an execution return in this trace. |
int |
getMinEoi()
Returns the minimum execution order index (eoi) value within the trace. |
long |
getMinTin()
Returns the minimum timestamp of an execution start in this trace. |
SortedSet<Execution> |
getTraceAsSortedExecutionSet()
Returns a sorted set (unmodifiable) of Execution s in this trace. |
int |
hashCode()
|
MessageTrace |
toMessageTrace(Execution rootExecution)
Returns the message trace representation for this trace. |
String |
toString()
|
| Methods inherited from class kieker.tools.traceAnalysis.systemModel.AbstractTrace |
|---|
getSessionId, getTraceId |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ExecutionTrace(long traceId)
public ExecutionTrace(long traceId, String sessionId)
| Method Detail |
|---|
public void add(Execution execution) throws InvalidTraceException
execution
-
InvalidTraceException
- if the traceId of the passed Execution
object is not the same as the traceId of this ExecutionTrace object.public MessageTrace toMessageTrace(Execution rootExecution) throws InvalidTraceException
InvalidTraceException
public final SortedSet<Execution> getTraceAsSortedExecutionSet()
Execution
s in this trace.
Execution
s in this tracepublic final int getLength()
public String toString()
toString
in class Object
public int getMaxEss()
public int getMaxEoi()
public int getMinEoi()
public long getDurationInNanos()
public long getMaxTout()
public long getMinTin()
public int hashCode()
hashCode
in class AbstractTrace
public boolean equals(Object obj)
equals
in class AbstractTrace
obj
-
public static final Comparator<Execution> createExecutionTraceComparator()
Comparator
used by the internal TreeSet
to
compare Execution
s.
|
Kieker 1.5 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |


--- layout: session academic: true title: "Mapping public transport and cycling itineraries using JOSM's PT_Assistant plugin" code: "Z9VBKM" speaker_names_with_affiliations: ['Polyglot'] extra_tags: room: "Kleiner Hörsaal" length: "01:00" time: "Saturday, 11:30" resources: [] recording: False ---
Mapping public transport is considered as hard to do. Cycling itineraries aren' t entirely trivial either. PT_Assistant is meant to help to make mapping these more efficient.
Firstly it visualises the itineraries, focusing on what matters for public transport, i.e. numbered stop sequences. highlighted ways, so the itinerary you are currently working on stands out.
Secondly, warnings are reported in the validator about 'gaps', vehicles traveling against oneway traffic, or not heeding turn restrictions and several more that are next to impossible to achieve without some extra programming.
Last summer a routing helper was added, which means a lot less manual splitting of ways. Also, if an itinerary is mapped once and (parts of it) are used by other lines, the helper will propose larger sequences of ways to add in one go.
It is already possible to use PT_Assistant for mapping walking and cycling routes, but that functionality will be extended further this summer. The reason to integrate it in the same plugin, even if the underlying principles differ, is that it fixing the public transport lines, but leaving other route relations in a "broken" state is not very nice either.
Last year a "wizard" was added to help set up your JOSM environenment with MapCSS styles, Overpass Queries, Oneclick settings and accompanying toolbar buttons.
So, if you want to learn more about how it can help you map route relations, come and join us, preferably with a laptop with JOSM installed on it.


{% extends "forms/selforganised_submission.html" %} {% block extrajs %}{% endblock %} {% block content %}
Thank you for registering your upcoming self-organised Carpentries Workshop. Your workshop will now be listed on the Upcoming workshops page and Instructor and Organisational Member profiles will be updated to include this workshop. We will be in touch approximately 2 weeks before your workshop to get you your workshop survey links. Please let us know if you have any other questions, and we look forward to your workshop. Thanks for all you do in our community!
For more information please visit:
Click here to submit another self-organised workshop.
{% endblock %}


Stokes doesn’t want to captain England
by Agency ReportBen Stokes admitted on Friday he is not interested in captaining England in the future.
Stokes has emerged as one of the most charismatic and exciting England stars for decades, but the all-rounder isn’t keen to shoulder the extra responsibility of the captaincy.
After playing a key role in England’s historic first 50-over World Cup victory earlier this year, Stokes also shone in the Ashes series against Australia.
He currently serves as deputy to Test skipper Joe Root but doesn’t believe he would thrive as the team’s leader.
“That’s not an aspiration of mine. It’s just not one of those things I’m desperate to do,” Stokes told the BBC‘s Today programme.
“I’m very happy at the moment being the vice-captain, we’ve got a great leader in Joe.
“You never know how you handle the pressure of being England captain unless you do it. Being the Test captain of England — so much pressure comes with it.
“It’s a huge burden to carry because everything falls back on you, especially if it goes bad, and you never know how you’ll handle that pressure until you walk out onto the field as England captain.
“So I’ve got no idea how I’d handle it if I did it but, as I say, it’s not an aspiration of mine.”
Stokes, 28, is on tour with England in New Zealand at present as he looks to finish a memorable year on a high note.
While he doesn’t like the idea of being a captain, when he eventually retires, Stokes would welcome a coaching role.
“I guess there always comes a time when you have to start seriously thinking about it and I always say I’d love to be a coach in the future,” he added.
“I can’t ever see myself just completely disconnecting myself away from the game as some people have.
“But I’m still only 28, I have got plenty of years in the tank hopefully. But I’d love to stay in the game somehow and if that was as a coach I’d love to do that.”
(AFP)


| DOSE: |
1 tablet |
oral |
DXM |
(capsule) |
I had taken E pills before and I had enjoyed every experience thus far. I'm not really into doing any other types of drugs. I have tried magic mushrooms before and did not like the tripping experience, but I loved the feeling ecstasy gave me.
I had a group of 3 friends that I usually took the pills with and we also had a usual person that we got them from. This time a person that one of us knew said that he knew someone who had really good E pills and they were only $20 as opposed to the normal $30 we payed. I was excited about these pills until I saw them.
They were not in the usual circular shape with a picture on one side of them. They were crushed in a capsule. The guy that we go them from said it was normal and the pills were just crused. I did not have a bad experience yet so we all took them.
The first one of us to feel it didn't act normally how people would act on E, we had a really trippy feeling, but was comfortable with it, my other 2 friends had a really dopey and slow feeling, but nothing like E. None of them had it worse than me though.
It first hit me and I felt a little nausea and disoriented, but fought off the throwing up feeling. All of a sudden one of my palms started to itch really badly and it turned red and stared to burn. I asked one of my friends to get me some ice to cool it down and he looked at me and told me I had a rash all over my face. I went to the bathroom to only notice that he was right and the rash was all over my body! At this point my palm that itched swelled incredibly and the other started to itch. I threw up and started to drink some water. I didn't feel very ill after that but the rash continued to bother me and my palms really stared to hurt.
I can't remember how long this lasted but I didn't want to be around anyone. I camped out in the bathroom and just wanted to be alone. This was nothing like E and I was really disappointed. Finally the rash went away and the swelling in my hands went down and I joined everyone else. At this point it felt a little trippy, kinda like I was really drunk.
Finally, hours later, this all went away. I do not know what was in those pills, and as far as I know I am not allegic to anything.
As much as the pills sound like a good deal, don't let this happen to you.
Experience Reports are the writings and opinions of the individual authors who submit them.
Some of the activities described are dangerous and/or illegal and none are recommended by Erowid.


|
string$ = any valid string variable
find$ = any valid string replace$ = any valid string |
| This command will allow you to replace characters within a string with another. Use this to strip or convert letters out of your strings (like removing spaces or turning them into underscores). Pretty straight forward. |
|
name$="Bill Wallace"
Print "Your name before replacing: " + name$ Print "Your name with L changed to B: " + Replace$(name$,"l","b") |


This year, the call for proposals concerns all interventions at Sud-Web 2018.
There will still be a form of curation, but all subjects will go through this form so that the team can choose the programming in a concerted way.
All forms of talks are possible:
We do not want you to feel trapped in the elaboration of a "traditional" talk. Find a format that make sense for you and with which you feel comfortable!
Do you have an idea? Or several? Do not hesitate to apply. You have until: (Paris Time) to propose a talk (or several).
We remind you that we'll favour:
Afraid to jump in? Feel free to contact us, we will mentor you so that you are ready on the D day D!
* required fields


Where in the world!?
Where do you like to sight see?
Beautiful Scenery.
Populated venues.
Historical monuments.
How much are we drinking?
I can't feel my face.
Just enough in the evenings.
Alcohol is a sin!
What kind of activity do you like?
Hanging out at the beach.
Exploring the streets.
Cleaning up the environment.
Do you enjoy spring break?
Totally Dude.
It's a nice week off.
Almost as much as Easter!
What kind of car would you like to drive?
Dunebuggy or Wrangler with the topdown.
Beamer Benz or Bentley.
Any Buick or Chrystler available.
yo whatup g


getElementById()
Use getElementById()
to get a reference to elements on the page and demonstrate that the reference works by changing the element's style.
main()
that takes one parameter, the name of a div. Have the body of main()
get a reference to the div per the passed-in parameter and set its background color to 'red'.
main()
from within you script.js file. There is no need to create UI for this exercise other than the two divs.
main()
while passing 'div1' should make #div1 red and calling main()
while passing 'div2' should make #div2 red.
main()
signature and calling it
// Create the function
function main(divName)
// function body
}
// Call the function
main('div1')


The page contains all the protocols that benchmark with MATRIX.
To upload a new protocol press the button below.
NOTE: the institute name that specified below is the institute that was responsible for the implementation.
The article itself can be written by others institute(s)
Upload new protocol


Topic 08-additional.md
Additional Libraries
Libraries in this section are no longer considered to be part of the Penlight core, but still provide specialized functionality when needed.
Simple Input Patterns
Lua string pattern matching is very powerful, and usually you will not need a traditional regular expression library. Even so, sometimes Lua code ends up looking like Perl, which happens because string patterns are not always the easiest things to read, especially for the casual reader. Here is a program which needs to understand three distinct date formats:
-- parsing dates using Lua string patterns months={Jan=1,Feb=2,Mar=3,Apr=4,May=5,Jun=6, Jul=7,Aug=8,Sep=9,Oct=10,Nov=11,Dec=12} function check_and_process(d,m,y) d = tonumber(d) m = tonumber(m) y = tonumber(y) .... end for line in f:lines() do -- ordinary (English) date format local d,m,y = line:match('(%d+)/(%d+)/(%d+)') if d then check_and_process(d,m,y) else -- ISO date?? y,m,d = line:match('(%d+)%-(%d+)%-(%d+)') if y then check_and_process(d,m,y) else -- <day> <month-name> <year>? d,mm,y = line:match('%(d+)%s+(%a+)%s+(%d+)') m = months[mm] check_and_process(d,m,y) end end end
These aren’t particularly difficult patterns, but already typical issues are appearing, such as having to escape ‘–’. Also, string.match returns its captures, so that we're forced to use a slightly awkward nested if-statement.
Verification issues will further cloud the picture, since regular expression people try to enforce constraints (like year cannot be more than four digits) using regular expressions, on the usual grounds that one shouldn’t stop using a hammer when one is enjoying oneself.
pl.sip provides a simple, intuitive way to detect patterns in strings and extract relevant parts.
> sip = require 'pl.sip' > dump = require('pl.pretty').dump > res = {} > c = sip.compile 'ref=$S{file}:$d{line}' > = c('ref=hello.c:10',res) true > dump(res) { line = 10, file = "hello.c" } > = c('ref=long name, no line',res) false
sip.compile creates a pattern matcher function, which is given a string and a table. If it matches the string, then true
is returned and the table is populated according to the named fields in the pattern.
Here is another version of the date parser:
-- using SIP patterns function check(t) check_and_process(t.day,t.month,t.year) end shortdate = sip.compile('$d{day}/$d{month}/$d{year}') longdate = sip.compile('$d{day} $v{mon} $d{year}') isodate = sip.compile('$d{year}-$d{month}-$d{day}') for line in f:lines() do local res = {} if shortdate(str,res) then check(res) elseif isodate(str,res) then check(res) elseif longdate(str,res) then res.month = months[res.mon] check(res) end end
SIP patterns start with ‘$’, then a one-letter type, and then an optional variable in curly braces.

If a type is not one of v,i,f,r or q, then it’s assumed to be one of the standard Lua character classes. Any spaces you leave in your pattern will match any number of spaces. And any ‘magic’ string characters will be escaped.
SIP captures (like $v{mon}
) do not have to be named. You can use just $v
, but you have to be consistent; if a pattern contains unnamed captures, then all captures must be unnamed. In this case, the result table is a simple list of values.
sip.match is a useful shortcut if you like your matches to be ‘in place’. (It caches the result, so it is not much slower than explicitly using sip.compile .)
> sip.match('($q{first},$q{second})','("john","smith")',res) true > res {second='smith',first='john'} > res = {} > sip.match('($q,$q)','("jan","smit")',res) -- unnamed captures true > res {'jan','smit'} > sip.match('($q,$q)','("jan", "smit")',res) false ---> oops! Can't handle extra space! > sip.match('( $q , $q )','("jan", "smit")',res) true
As a general rule, allow for whitespace in your patterns.
Finally, putting a ‘ $’ at the end of a pattern means ‘capture the rest of the line, starting at the first non-space’.
> sip.match('( $q , $q ) $','("jan", "smit") and a string',res) true > res {'jan','smit','and a string'} > res = {} > sip.match('( $q{first} , $q{last} ) $','("jan", "smit") and a string',res) true > res {first='jan',rest='and a string',last='smit'}
Command-line Programs with Lapp
pl.lapp is a small and focused Lua module which aims to make standard command-line parsing easier and intuitive. It implements the standard GNU style, i.e. short flags with one letter start with ‘–’, and there may be an additional long flag which starts with ‘—’. Generally options which take an argument expect to find it as the next parameter (e.g. ‘gcc test.c -o test’) but single short options taking a numerical parameter can dispense with the space (e.g. ‘head -n4 test.c’)
As far as possible, Lapp will convert parameters into their equivalent Lua types, i.e. convert numbers and convert filenames into file objects. If any conversion fails, or a required parameter is missing, an error will be issued and the usage text will be written out. So there are two necessary tasks, supplying the flag and option names and associating them with a type.
For any non-trivial script, even for personal consumption, it’s necessary to supply usage text. The novelty of Lapp is that it starts from that point and defines a loose format for usage strings which can specify the names and types of the parameters.
An example will make this clearer:
-- scale.lua lapp = require 'pl.lapp' local args = lapp [[ Does some calculations -o,--offset (default 0.0) Offset to add to scaled number -s,--scale (number) Scaling factor <number> (number ) Number to be scaled ]] print(args.offset + args.scale * args.number)
Here is a command-line session using this script:
$ lua scale.lua scale.lua:missing required parameter: scale Does some calculations -o,--offset (default 0.0) Offset to add to scaled number -s,--scale (number) Scaling factor <number> (number ) Number to be scaled $ lua scale.lua -s 2.2 10 22 $ lua scale.lua -s 2.2 x10 scale.lua:unable to convert to number: x10 ....(usage as before)
There are two kinds of lines in Lapp usage strings which are meaningful; option and parameter lines. An option line gives the short option, optionally followed by the corresponding long option. A type specifier in parentheses may follow. Similarly, a parameter line starts with ‘<’ PARAMETER ‘>’, followed by a type specifier. Type specifiers are either of the form ‘(default ’ VALUE ‘)’ or ‘(’ TYPE ‘)’; the default specifier means that the parameter or option has a default value and is not required. TYPE is one of ‘string’,‘number’,‘file-in’ or ‘file-out’; VALUE is a number, one of (‘stdin’,‘stdout’,‘stderr’) or a token. The rest of the line is not parsed and can be used for explanatory text.
This script shows the relation between the specified parameter names and the fields in the output table.
-- simple.lua local args = require ('pl.lapp') [[ Various flags and option types -p A simple optional flag, defaults to false -q,--quiet A simple flag with long name -o (string) A required option with argument <input> (default stdin) Optional input file parameter ]] for k,v in pairs(args) do print(k,v) end
I've just dumped out all values of the args table; note that args.quiet has become true, because it’s specified; args.p defaults to false. If there is a long name for an option, that will be used in preference as a field name. A type or default specifier is not necessary for simple flags, since the default type is boolean.
$ simple -o test -q simple.lua p false input file (781C1BD8) quiet true o test input_name simple.lua D:\dev\lua\lapp>simple -o test simple.lua one two three 1 one 2 two 3 three p false quiet false input file (781C1BD8) o test input_name simple.lua
The parameter input has been set to an open read-only file object – we know it must be a read-only file since that is the type of the default value. The field input_name is automatically generated, since it’s often useful to have access to the original filename.
Notice that any extra parameters supplied will be put in the result table with integer indices, i.e. args[i] where i goes from 1 to #args.
Files don’t really have to be closed explicitly for short scripts with a quick well-defined mission, since the result of garbage-collecting file objects is to close them.
Enforcing a Range for a Parameter
The type specifier can also be of the form ‘(’ MIN ‘..’ MAX ‘)’.
local lapp = require 'pl.lapp' local args = lapp [[ Setting ranges <x> (1..10) A number from 1 to 10 <y> (-5..1e6) Bigger range ]] print(args.x,args.y)
Here the meaning is that the value is greater or equal to MIN and less or equal to MAX; there is no provision for forcing a parameter to be a whole number.
You may also define custom types that can be used in the type specifier:
lapp = require ('pl.lapp') lapp.add_type('integer','number', function(x) lapp.assert(math.ceil(x) == x, 'not an integer!') end ) local args = lapp [[ <ival> (integer) Process PID ]] print(args.ival)
lapp.add_type takes three parameters, a type name, a converter and a constraint function. The constraint function is expected to throw an assertion if some condition is not true; we use lapp.assert because it fails in the standard way for a command-line script. The converter argument can either be a type name known to Lapp, or a function which takes a string and generates a value.
‘varargs’ Parameter Arrays
lapp = require 'pl.lapp' local args = lapp [[ Summing numbers <numbers...> (number) A list of numbers to be summed ]] local sum = 0 for i,x in ipairs(args.numbers) do sum = sum + x end print ('sum is '..sum)
The parameter number has a trailing ‘…’, which indicates that this parameter is a ‘varargs’ parameter. It must be the last parameter, and args.number will be an array.
Consider this implementation of the head utility from Mac OS X:
-- implements a BSD-style head -- (see http://www.manpagez.com/man/1/head/osx-10.3.php) lapp = require ('pl.lapp') local args = lapp [[ Print the first few lines of specified files -n (default 10) Number of lines to print <files...> (default stdin) Files to print ]] -- by default, lapp converts file arguments to an actual Lua file object. -- But the actual filename is always available as <file>_name. -- In this case, 'files' is a varargs array, so that 'files_name' is -- also an array. local nline = args.n local nfile = #args.files for i = 1,nfile do local file = args.files[i] if nfile > 1 then print('==> '..args.files_name[i]..' <==') end local n = 0 for line in file:lines() do print(line) n = n + 1 if n == nline then break end end end
Note how we have access to all the filenames, because the auto-generated field files_name
is also an array!
(This is probably not a very considerate script, since Lapp will open all the files provided, and only close them at the end of the script. See the xhead.lua
example for another implementation.)
Flags and options may also be declared as vararg arrays, and can occur anywhere. Bear in mind that short options can be combined (like ‘tar -xzf’), so it’s perfectly legal to have ‘-vvv’. But normally the value of args.v is just a simple true
value.
local args = require ('pl.lapp') [[ -v... Verbosity level; can be -v, -vv or -vvv ]] vlevel = not args.v[1] and 0 or #args.v print(vlevel)
The vlevel assigment is a bit of Lua voodoo, so consider the cases:
* No -v flag, v is just { false } * One -v flags, v is { true } * Two -v flags, v is { true, true } * Three -v flags, v is { true, true, true }
Defining a Parameter Callback
If a script implements lapp.callback
, then Lapp will call it after each argument is parsed. The callback is passed the parameter name, the raw unparsed value, and the result table. It is called immediately after assignment of the value, so the corresponding field is available.
lapp = require ('pl.lapp') function lapp.callback(parm,arg,args) print('+',parm,arg) end local args = lapp [[ Testing parameter handling -p Plain flag (defaults to false) -q,--quiet Plain flag with GNU-style optional long name -o (string) Required string option -n (number) Required number option -s (default 1.0) Option that takes a number, but will default <start> (number) Required number argument <input> (default stdin) A parameter which is an input file <output> (default stdout) One that is an output file ]] print 'args' for k,v in pairs(args) do print(k,v) end
This produces the following output:
$ args -o name -n 2 10 args.lua + o name + n 2 + start 10 + input args.lua args p false s 1 input_name args.lua quiet false output file (781C1B98) start 10 input file (781C1BD8) o name n 2
Callbacks are needed when you want to take action immediately on parsing an argument.


{{user.headquarters_city}}, {{user.headquarters_state}}
{{user.founders}}
{{user.industry}}
{{user.website}}
| DATE | AMOUNT / ROUND | VALUATION | LEAD INVESTOR | INVESTORS |
|---|---|---|---|---|
| {{funding.date}} | {{funding.amount}} | {{funding.valuation}} | {{funding.lead_investor}} | {{funding.investors_count}} |
Deal name:
Deal date:
Deal description:
BOARD MEMBERS
{{member.name}}
INVESTORS
{{member.name}}
EMPLOYEES
{{member.name}}


Rushed For Thyme
How much time do you have left?
20:00
Here's what you have to do:
Your instructions are...
Need to start again?


knots birds inoculated virus corticosterone migration infection period HPAIV mass migratory plasma concentration clinical influenza body viral pre-inoculation disease []. avian knot wild infected levels negative associated control did [], period, shedding {border-style blood pathogenic highly px;} red #ffffff;} fueling post-migration higher bird signs changes group high probability constitutive immunity pre-migration shed time experimental included state HN. development min organs physiological productively pâ€Š=â€Š. samples used (Nâ€Š=â€Š), Biol cell detected level long-distance loss periods proportion state, using white (Fig. Dis However, acquisition cells days dpi. groups immune knots' late lower performed pharynx spread Comp coli developed different disease, elevated including increase isolated number px; severe statistical titers {font-family Avian RNA Red activity antibody brain described differences effect euthanized font-size increased infection, inoculation intestinal neurological non-migratory organ prior relative similar susceptible swabs test (HN) (Nâ€Š=â€Š). Exp Infect RT-PCR Therefore, []â€"[]. acute antibodies antigen birds. correlated correlation corticosterone. day died double; dpi experimentally following knots. length lesions long measures metabolic natural peak positive poultry presented recorded results sections), significant size species study sub-clinically tract Âµl (HPAIV) Animal Biochem Figure III Royal TCID/g), Viral Zool analyses assessed behavior birds' border-color border-width captivity cloacal corticosterone, counts daily detect determined differ disease. infected. infectious internal isolation killing liver measured migrant model observed outbreaks plates positively pre- preceding presence present ready remained shorebird showed shown solid; standard study. tissue transport values water {font-style {font-weight (Calidris (Nâ€Š=â€Š) (rhoâ€Š=â€Š., .%, DMB Dutch Ecology Endocrinol Erasmus Fig. Knots LAR Medical Migratory Netherlands Nâ€Š=â€Š; Pre-inoculation Relative Research Sea TCID/g) according added affected analysis anesthesia area assay association bold chickens colleagues controls correlate count courier; develop dose dpi, em; end examined experiments favor foci function handling hemolysis hours infections irrespective kept lymphocytes mass, met multiple pharyngeal power pt;} pâ€Š=â€Š.). replication reported risk sampling seasonal sham-inoculated shedding, shorebirds showing significantly state. susceptibility suspension taken times transmission upper variations


JSDoc Dash Template
This is a copy of the original default JSDoc 3 template (http://github.com/jsdoc3/jsdoc). When applied, it genereates:
- the JSDoc HTML
- a JSON file containing the structure
the output can then be used with the javadoc2DashPlugin (see jsdoc.gradle) to create a JSDoc Dash Docset (https://kapeli.com/docsets).
Example build.gradle
JSDoc Default Template README
The default template for JSDoc 3 uses: the Taffy Database library and the Underscore Template library.
Generating Typeface Fonts
The default template uses the OpenSans typeface. The font files can be regenerated as follows:
- Open the OpenSans page at Font Squirrel.
- Click on the 'Webfont Kit' tab.
- Either leave the subset drop-down as 'Western Latin (Default)', or, if we decide we need more glyphs, than change it to 'No Subsetting'.
- Click the 'DOWNLOAD @FONT-FACE KIT' button.
- For each typeface variant we plan to use, copy the 'eot', 'svg' and 'woff' files into the 'templates/default/static/fonts' directory.


data class Fpx : StripeModel
Requires the FPX payment method enabled on your account via https://dashboard.stripe.com/account/payments/settings.
To obtain the FPX bank's display name and icon, see com.stripe.android.view.FpxBank.
accountHolderType |
val accountHolderType: String? |
bank |
val bank: String? |


Match routing result with the Advanced Data Set.
This example displays a movable map that contains the route polyline and the data about the location of electric vehicle charging stations provided by the Fleet Telematics Advanced Data Sets REST API. The search for the nearest charging stations is made by the polyline's bounding box. Stations that are adjacent to the route itself are marked with green.
The example uses H.service.extension.platformData.SearchRequest
class to fetch data from the Advanced Data Sets service. The data
event listener matches the provided array of
LINK_IDs
from the routing service and search results from the Advanced Data Sets layer
to apply correct colour to the H.map.Marker
.


-- .. title: Datathon Logistics .. slug: logistics .. date: 2020-12-10 .. type: text -->
NYU Data Services and the e-board members of the Data Science Club will be here to support you every step of the way throughout the datathon. See the support schedule to see who is available to help you!
You will have access to Jupyter Notebooks in the cloud hosted by NYU's High Performance Computing unit. More details soon!
We will be providing a chat platform for all datathon participants, to coordinate our communucation. More details soon!


--- layout: page title: About header-img: "img/about-bg.png" ---
My experience with learning to code and attending Flatiron's Online Full Stack WebDev Course


Name
HPL_ladd Adds two long positive integers.
Synopsis
#include "hpl.h"
void
HPL_ladd(
int *
J
,
int *
K
,
int *
I
);
Description
HPL_ladd
adds without carry two long positive integers K and J and
puts the result into I. The long integers I, J, K are encoded on 64
bits using an array of 2 integers. The 32-lower bits are stored in
the first entry of each array, the 32-higher bits in the second
entry.
Arguments
J (local input) int *
On entry, J is an integer array of dimension 2 containing the
encoded long integer J.
K (local input) int *
On entry, K is an integer array of dimension 2 containing the
encoded long integer K.
I (local output) int *
On entry, I is an integer array of dimension 2. On exit, this
array contains the encoded long integer result.
See Also
HPL_lmul,
HPL_setran,
HPL_xjumpm,
HPL_jumpit,
HPL_rand.


Base behaviors
Most simulations start out in the same way, implemented by the BaseSimulation:
- During setup:
- A BaseSimulationState is created for solving equations with real numbers.
- The behaviors needed for execution are set up. This includes allocating space in the Y-matrix and RHS-vector of the simulation state.
- During execution:
- Temperature dependent calculations are executed using the list of ITemperatureBehavior objects created during setup.
- The operating point (OP) is calculated using the list of IBiasingBehavior objects created during setup. The operating point assumes that the circuit is static (does not change over time). The circuit bias is numerically found by iteratively converging to a solution.
- After finding the biasing point of the circuit, the rest of the simulation is executed. This can use the same or different SimulationState objects managed by the simulation.
- During unsetup:
- Remove allocated objects during setup of all behaviors and the simulation.
In this section, we will discuss how we can create a custom component and model that works for any simulation based on the BaseSimulation.
The custom component - a nonlinear resistor
Let us borrow the same convention as a regular resistor.
But this time our custom resistor does not follow Ohm's law. Let us say we managed to model our resistor using the following relationship:
Our entity has 2 parameters, a and b, so will create a parameter set that can be used to describe our nonlinear behavior.
using SpiceSharp.Attributes;
namespace SpiceSharp.Components.NonlinearResistorBehaviors
{
/// <summary>
/// Parameters for a <see cref="NonlinearResistor"/>
/// </summary>
/// <seealso cref="ParameterSet" />
public class BaseParameters : ParameterSet
{
[ParameterName("a")]
public double A { get; set; } = 1.0e3;
[ParameterName("b")]
public double B { get; set; } = 1.0;
}
}
The biasing behavior
The biasing behavior will load the Y-matrix and RHS-vector according to the equation of our resistor. Similar to the previous chapter about Modified Nodal Analysis, we first calculate the contributions analytically.
The current flows out of node A and into node B, so we find that
We calculate from this equation the contributions to the Y-matrix:
And the contributions to the RHS-vector:
We now have everything to create our biasing behavior.
using System;
using SpiceSharp.Algebra;
using SpiceSharp.Behaviors;
using SpiceSharp.Simulations;
namespace SpiceSharp.Components.NonlinearResistorBehaviors
{
/// <summary>
/// Load behavior for a <see cref="NonlinearResistor"/>
/// </summary>
public class BiasingBehavior : Behavior, IBiasingBehavior
{
private int _nodeA, _nodeB;
private MatrixElement<double> _aaPtr, _abPtr, _baPtr, _bbPtr;
private VectorElement<double> _aPtr, _bPtr;
private BaseParameters _bp;
private BaseSimulationState _state;
private BaseConfiguration _baseConfig;
/// <summary>
/// Creates a new instance of the <see cref="BiasingBehavior"/> class.
/// </summary>
/// <param name="name">The name of the behavior.</param>
public BiasingBehavior(string name) : base(name)
{
}
/// <summary>
/// Bind the behavior.
/// </summary>
public override void Bind(Simulation simulation, BindingContext context)
{
base.Bind(simulation, context);
// Cache some objects that we will use often
_bp = context.GetParameterSet<BaseParameters>();
_state = ((BaseSimulation)simulation).RealState;
_baseConfig = simulation.Configurations.Get<BaseConfiguration>();
// Find the nodes that the resistor is connected to
if (context is ComponentBindingContext cbc)
{
_nodeA = cbc.Pins[0];
_nodeB = cbc.Pins[1];
}
// We need 4 matrix elements here
var solver = _state.Solver;
_aaPtr = solver.GetMatrixElement(_nodeA, _nodeA);
_abPtr = solver.GetMatrixElement(_nodeA, _nodeB);
_baPtr = solver.GetMatrixElement(_nodeB, _nodeA);
_bbPtr = solver.GetMatrixElement(_nodeB, _nodeB);
// We also need 2 RHS vector elements
_aPtr = solver.GetRhsElement(_nodeA);
_bPtr = solver.GetRhsElement(_nodeB);
}
/// <summary>
/// Unbind the behavior.
/// </summary>
public override void Unbind()
{
base.Unbind();
_bp = null;
_state = null;
_baseConfig = null;
_aaPtr = null;
_abPtr = null;
_baPtr = null;
_bbPtr = null;
_aPtr = null;
_bPtr = null;
}
/// <summary>
/// Load the Y-matrix and Rhs-vector.
/// </summary>
void IBiasingBehavior.Load()
{
// First get the current iteration voltage
var v = _state.Solution[_nodeA] - _state.Solution[_nodeB];
// Calculate the derivative w.r.t. one of the voltages
var isNegative = v < 0;
var c = Math.Pow(Math.Abs(v) / _bp.A, 1.0 / _bp.B);
double g;
// If v=0 the derivative is either 0 or infinity (avoid 0^(negative number) = not a number)
if (v.Equals(0.0))
g = _bp.B < 1.0 / _bp.A ? double.PositiveInfinity : 0.0;
else
g = Math.Pow(Math.Abs(v) / _bp.A, 1.0 / _bp.B - 1.0) / _bp.A;
// In order to avoid having a singular matrix, we want to have at least a very small value here.
g = Math.Max(g, _baseConfig.Gmin);
// If the voltage was reversed, reverse the current back
if (isNegative)
c = -c;
// Load the RHS vector
c -= g * v;
_aPtr.Value += c;
_bPtr.Value -= c;
// Load the Y-matrix
_aaPtr.Value += g;
_abPtr.Value -= g;
_baPtr.Value -= g;
_bbPtr.Value += g;
}
/// <summary>
/// Check for convergence.
/// </summary>
bool IBiasingBehavior.IsConvergent() => true;
}
}
Our behavior implements IBiasingBehavior, which describes the contract for any behavior that can apply biasing logic.
In the Bind method, we can cache any information that we would find necessary for quickly calculating Y-matrix and Rhs-vector contributions. The base Bind method will store a reference to the simulation that can be used when loading the Y-matrix and/or RHS-vector. We can also extract the pins by casting the BindingContext to the ComponentBindingContext class and querying for the pins of the component. In this method, the behavior also gets the chance to allocate elements in the Y-matrix and RHS vector (ie. ).
In the Unbind method we simply remove any references to allow the garbage collector to clean up.
Finally we have the method called Load. Usually the behavior will in this method:
- Find out the current iteration solution.
- Calculate currents and derivatives.
- This is usually optimized for speed, as this method is called the most - for every iteration!
- In our example, we want the resistor to behave symmetrical. This is why we first track if the voltage is negative, and then take the absolute value.
- We also make sure to avoid any situations where the simulator might get into trouble. For example, if the resistor behaves as an open circuit (
g=0
), we can inadvertently create floating nodes, which cannot be solved by the simulator. Hence, we add a very small conductance in this case.
- We finally add or subtract the contributions to the Y-matrix and RHS-vector elements.
The Component definition
All that is left is bringing it all together in a Component to be able to pass it to a simulator.
using SpiceSharp.Behaviors;
using SpiceSharp.Components.NonlinearResistorBehaviors;
namespace SpiceSharp.Components
{
/// <summary>
/// A nonlinear resistor
/// </summary>
/// <seealso cref="Component" />
public class NonlinearResistor : Component
{
static NonlinearResistor()
{
RegisterBehaviorFactory(typeof(NonlinearResistor), new BehaviorFactoryDictionary
{
{typeof(BiasingBehavior), e => new BiasingBehavior(e.Name)}
});
}
/// <summary>
/// Initializes a new instance of the <see cref="NonlinearResistor"/> class.
/// </summary>
/// <param name="name">The string of the entity.</param>
/// <param name="nodeA">Node A</param>
/// <param name="nodeB">Node B</param>
public NonlinearResistor(string name, string nodeA, string nodeB) : base(name, 2)
{
// Add a NonlinearResistorBehaviors.BaseParameters
ParameterSets.Add(new BaseParameters());
// Connect the entity
Connect(nodeA, nodeB);
}
}
}
We add an instance of our BaseParameters created earlier, and we provide a factory for our BiasingBehavior. When the simulation now asks the component for an IBiasingBehavior, it will automatically create a new BiasingBehavior that can be used by the simulation.
Using the component in a circuit
We can now plot the I-V curve using a simple DC simulation. For example:
// Build the circuit
var ckt = new Circuit(
new VoltageSource("V1", "out", "0", 0.0),
new NonlinearResistor("RNL1", "out", "0")
.SetParameter("a", 2.0e3)
.SetParameter("b", 0.5)
);
// Setup the simulation and export our current
var dc = new DC("DC", "V1", -2.0, 2.0, 1e-2);
var currentExport = new RealPropertyExport(dc, "V1", "i");
dc.ExportSimulationData += (sender, args) =>
{
var current = -currentExport.Value;
System.Console.Write("{0}, ".FormatString(current));
};
dc.Run(ckt);
currentExport.Destroy();
The resulting waveform is as expected:


Ferry services between Surat and Mumbai begin
The ferry cruise services will run once a week to-and-fro between Mumbai and Surat.
by Express News ServicePrivate cruise ferry services between Hazira Port in Surat and Bandra-Worli Sea Link in Mumbai were flagged off from the Essar Ports jetty terminal at Hazira, on Friday morning.
The Essar Bulk Terminal Ltd (EBTL), part of private sector port and terminal developer Essar Ports, completed work on the passenger ferry terminal which paved the way for a cruise-based passenger ferry service. The terminal has been built in a record time of eight months.
SSR Marine Services of Mumbai, in-charge of the project, had earlier conducted a meeting with the stakeholders in Surat and briefed them about the services.
The ferry cruise services will run once a week to-and-fro between Mumbai and Surat. The cruise will leave Bandra-Worli Sea Link on Thursdays at 5 pm and reach Hazira on Fridays at 9 am. The same cruise will leave Surat on Fridays at 5 pm and reach Mumbai on Saturdays at 9 am. Ticket rates range from Rs 3,000 to Rs 5,000, depending on facilities.
The cruise has 20 rooms that can accommodate over 250 passengers. Phase I of the terminal project will focus on the movement of passengers between Hazira in Surat and Mumbai. The company said it plans to extend the service to other coastal locations in Gujarat.
The cruise was flagged off by the MD and CEO of Essar ports, Rajiv Agarwal, from the Hazira Passenger Ferry Terminal on Friday morning. He said, “The ferry service will be a huge boost to tourism in Gujarat. We look forward to contributing to similar projects that will help unleash the tremendous potential of coastal transport in India by using the country’s extensive network of inland waterways.”
(WITH PTI)


In the second part of the first phase of a penetration test, active information gathering, it’s important to map as accurate as possible the network of you target. To find live hosts there is a technique called ping sweep. Different tools exist to perform that task.
A single ping
can give you the ip address of the target, the ttl and the time. However since the method is based on ICMP requests, the target could be configured to block or trash them… With a simple bash script, you can loop throught a range of ip address to test them all:
#!/bin/bash
for ip in $(seq 200 220); do
ping -c 1 192.168.11.$ip | grep "bytes from" | cut -d " " -f 4 | cut -d ":" -f1 &
done
The -c
option is configured to only send 1 request. The grep is used to display only the host who respond to the request (and supposed alive) and finally cut is used for a nice display. Notice the &
at the end of the line, it’s very usefull pto paralellize tasks and make the script faster. Here is the result:
The bad point of this method is that you must choose a port to test. I usually use the HTTP port (80) but you’ll have to adapt this option for your target. Below a small bash script:
#!/bin/bash
for ip in $(seq 200 210); do
nc -n -v -z -w 1 192.168.11.$ip 80 2>&1 |grep open
done
-n
: no DNS resolution, ip address must be provided
-v
: verbose mode
-z
: don’t not prompt and wait anything
-w
: timeout in seconde
2>&1
: used to make the ouput grappable
The result:
Nmap is so powerful that you don’t need to write a script, a simple command can do the trick:
-sn
: ping scan, disable port scan
The grep and cut command are only used for a nice display ;)


{% trans 'Progress' %}:
{% trans 'The selected services are ordered by category. You have the capability to purchase them and optionally modify their configuration' %}!
{% trans 'Setup the network of assistance services' %}
{% trans 'You set up a network of assistance services on behalf of' %}.
{% trans 'Hint' %}: {% trans 'Please use the buttons' %} {% trans 'Previous step' %} {% trans 'and'%} {% trans 'Next step' %} {% trans 'to navigate in the wizard step-by-step' %}. {% blocktrans %}In every step, you can filter the list of services (see the table below) by selecting the (sub)categories of your interest in the left column of page. Then, please check the services you want to use and proceed to the next step{% endblocktrans %}. {% trans 'In this step, platform provides you a summary of the selected services that are grouped by category' %}. {% trans 'Find marked with icon' %} {% trans 'the categories in which you did not select any service' %}. {% trans 'On the other hand, find marked with icon' %} {% trans 'the categories in which you have selected at least a service' %}.
| {% trans 'Service title' %} | {% trans 'Type' %} | {% trans 'Price' %} | {% trans 'Location constraints' %} | {% trans 'Wishlist' %} | {% trans 'Action' %} |
|---|


Let's Make a Deal!
Behind one of these doors is a nice prize.
The other doors are hiding goats.
Click on the door that's hiding the prize.
Results: Tries=0 Correct=0 Switches=0 Winning Percentage=


To Do
Retrieve saved events
Your events
{{ row["email"]}} has {{row["task"]}} due on {{row["month"]}}-{{row["day"]}} at {{row["hour"]}}:{{row["minute"] }}


| Notebooks Grouped by Tag Values |
Each Notebook content is summarized in his header through a quantitative scale ("Difficulty" between 1 and 5 stars) and some keywords (Group of "tags").
Grouping Notebooks by difficulty level, by signal type to which it applies or by tags is an extremelly important task, in order to ensure that the biosignalsnotebooks user could navigate efficiently in this learning environment.


Photography lets me look inwards and teaches me more about myself.
Below are a selection of my shots. Feel free to use them however you'd like. If you'd like larger sizes for your use, send me a note.


Spring Boot SAML and Form Login
This is a user's landing page
It uses SAML service provider and database user authentication
Logout


from athlib.wma.agegrader import AgeGrader, AthlonsAgeGrader
from athlib.uka.agegroups import calc_uka_age_group
from athlib.iaaf_score import score as athlon_score
from athlib.iaaf_score import performance as athlon_performance_needed
from athlib.utils import (
normalize_gender,
str2num,
parse_hms,
get_distance,
format_seconds_as_time,
check_performance_for_discipline,
discipline_sort_key,
text_discipline_sort_key,
sort_by_discipline,
)
from athlib.codes import (
JUMPS, THROWS, MULTI_EVENTS, FIELD_EVENTS,
FIELD_SORT_ORDER, STANDARD_MALE_TRACK_EVENTS,
STANDARD_FEMALE_TRACK_EVENTS,
)
ag = AgeGrader()
[docs]def wma_age_grade(gender, age, event, performance, verbose=False):
"""Return the age grade score (0 to 100ish) for this result."""
return ag.calculate_age_grade(gender, age,event, performance, verbose=verbose)
[docs]def wma_age_factor(gender, age, event, distance=None):
"""Work out 'slowdown factor' for a geezer of this
age taking part in this event e.g."""
return ag.calculate_factor(self, gender, age, event, distance=distance)
[docs]def wma_world_best(gender, event):
"The relevant world-record performance on the date stats were compiled"
return ag.world_best(gender, event)
aag = AthlonsAgeGrader()
[docs]def wma_athlon_age_factor(gender, age, event):
"""Work out 'slowdown factor' for a geezer of this
age taking part in this event e.g."""
return aag.calculate_factor(gender, age, event)
[docs]def wma_athlon_age_grade(gender, age, event, performance, verbose=False):
"""Return the age grade score (0 to 100ish) for this result."""
return aag.calculate_age_grade(gender, age, event, performance, verbose=verbose)
__all__ = filter(None, """
athlon_performance_needed
athlon_score
calc_uka_age_group
check_performance_for_discipline
discipline_sort_key
format_seconds_as_time
get_distance
normalize_gender
parse_hms
sort_by_discipline
str2num
text_discipline_sort_key
wma_age_factor
wma_age_grade
wma_athlon_age_grade
wma_world_best
FIELD_EVENTS
FIELD_SORT_ORDER
JUMPS
MULTI_EVENTS
STANDARD_FEMALE_TRACK_EVENTS
STANDARD_MALE_TRACK_EVENTS
THROWS
""".split())


404 - Page not found The content you're looking for doesn't seem to exist. Read more Pinscrapy Calculate the variance of a sample from the variances of its subsamples Apache Spark Cluster with Kubernetes and Docker - Part 2 Git - Sparse Checkout Apache Spark Cluster with Kubernetes and Docker - Part 1 Apache Categories Development Docker


Home
Tweet
WORD COUNT
6000
FOLLOWING
9
FOLLOWERS
9
LIKES
9
by @antonmc
Albums
Video
Personality
Lyrics
@Lyrics
-
Mar 29
The following diagrams are a psychological analyis of the lyrics in Bowie's albums.
You can explore his lyrics here
Big five traits
Who to follow


Get the list of visible physical devices.
tf.compat.v1.config.experimental.get_visible_devices
tf.compat.v2.config.experimental.get_visible_devices
tf.config.experimental.get_visible_devices(device_type=None)
Returns a list of PhysicalDevice objects that are current marked as visible to the runtime. Any visible devices will have LogicalDevices assigned to them once the runtime is initialized.
The following example verifies all visible GPUs have been disabled:
physical_devices = config.experimental.list_physical_devices('GPU') assert len(physical_devices) > 0, "Not enough GPU hardware devices available" # Disable all GPUS tf.config.experimental.set_visible_devices([], 'GPU') visible_devices = tf.config.experimental.get_visible_devices() for device in visible_devices: assert device.device_type != 'GPU'
device_type
: (optional) Device types to limit query to.List of PhysicalDevice objects


|
TCC Structure from Motion
1.0.0
Senior project on Structure from Motion for scene and camera trajectory reconstruction from monocular video
|
Public Member Functions | |
| def | __init__ (self, config) |
| Public Member Functions inherited from pipeline.video_pipeline.VideoPipeline | |
| None | __init__ (self, VideoPipelineConfig config) |
| def | run (self) |
Public Attributes | |
| synthetic_case | |
| original_points | |
| original_Rs | |
| original_Ts | |
| Public Attributes inherited from pipeline.video_pipeline.VideoPipeline | |
| config | |
Private Member Functions | |
| def | _setup (self, file_path) |
| def | _synthetic_generator (self) |
| def | _get_synthetic_points (self) |
| def | _get_synthetic_camera_rotations (self) |
| def | _get_synthetic_camera_translations (self) |
| def | _calculate_reconstruction_error (self, Rs, Ts, tracks, masks, frame_numbers, cloud) |
Class that inherist from VideoPipeline that allows for the generation and injection of synthetic data into the reconstruction pipeline for debugging and development purposes
| def pipeline.synthetic_pipeline.SyntheticPipeline.__init__ | ( | self, | |
| config | |||
| ) |
|
private |
Overwrite of superclass function that calculates camera orientation and position errors, and 3D point errors other than reprojection error. Results are structured in a struct as described below. :param Rs: list of R matrices :param Ts: list of T vectors :param tracks: list of 2D feature vectors. Each vector has the shape Dx2 :param masks: list of index masks for each feature vector. Indexes refer to the position of the item in the cloud :param frame_numbers: list of indexes for each track in tracks :param cloud: point cloud with N points as a ndarray with shape Nx3 :return:
Reimplemented from pipeline.video_pipeline.VideoPipeline.
|
private |
Returns rotation matrices of synthetic cameras in the global reference frame
|
private |
Returns translation vectors of synthetic cameras in the global reference frame :return:
|
private |
Returns synthetic 3D points
|
private |
Instantiated frame generator This function is separated from run() so that child classes can modify it easily :param dir: filepath of video file :return: generator of raw frames
Reimplemented from pipeline.video_pipeline.VideoPipeline.
|
private |
Replaces the original generator yielding synthetic data instead of real data :return: yields track a track slice containing synthetic features and their corresponding indexes
| pipeline.synthetic_pipeline.SyntheticPipeline.original_points |
| pipeline.synthetic_pipeline.SyntheticPipeline.original_Rs |
| pipeline.synthetic_pipeline.SyntheticPipeline.original_Ts |
| pipeline.synthetic_pipeline.SyntheticPipeline.synthetic_case |


This page embeds the map in an iframe.
Possible query string arguments:
- css
- (optional) link to an external CSS file to include
- clusterRadius
- max radius for marker clusters, in pixels; default=80
- lat
- initial latitude; default=0
- lng
- initial longitude; default=0
- zoom
- initial zoom level; default=2 (range=0-16)
- gl=n
- if you add this, the map will not attempt to set its initial zoom and position to the user's current location if the user is willing to allow access to it
- searchZoom
- how much to zoom in when the user types a location in the search bar; default=8
- lc=n
- if you add this, the layer-toggling control will be disabled, so the user cannot add or remove map layers
- lc=h
- if you add this, the layer-toggling control will be collapsed initially; by default it is expanded initially, and un-collapseable on full-width screens
- amc=n
- if you add this, the "add new marker" control will be disabled, so the user cannot submit new markers to be added to the map
- hpe=n
- If you add this, the map will not hide past events. By default, any object with a "date" field will only appear if the date is within two days of the current date and time.
- layer
- Which layer(s) to install on the map. If left blank, all available layers will be used. If one or more ?layer parameters are provided, then only those layers will be displayed. For example, "?layer=GROW Divestment Events&lc=n" would provide a map that only shows GROW Divestment Events (and disables the layer-toggling control since only one layer exists). "?layer=GROW Divestment Events&layer=Local Groups" would show all GROW Divestment Events and Local Groups, but no other layers. Note that the parameter(s) must match the layer names in the spreadsheet exactly, including spacing and capitalization.
- actionkit
- Which ActionKit campaigns to install on the map. Each campaign gets its own layer. Separate campaigns with a "|". For example, if you want to show Break Free World and
People's Climate Plan Actions, it would look like this: data-map-args="actionkit=peoples-climate-plan-actions|break-free-world"