Static Member Summary
| Static Public Members | ||
| public static |
The file transport for the logger. |
Constructor Summary
| Public Constructor | ||
| public |
constructor(PopApi: PopApi, options: Object) Create a new Logger object. |
Member Summary
| Public Members | ||
| public |
The log levels the logger middleware will be using. |
|
| public |
The directory where the log file will be stored. |
|
| public |
The name of the log file. |
Method Summary
| Public Methods | ||
| public |
Formatter method which formats the output to the console. |
|
| public |
createHttpLogger(pretty: boolean): ExpressWinston Create a Http logger instance. |
|
| public |
createLogger(pretty: boolean, quiet: boolean): Object | Winston Method to create a global logger object based on the properties of the Logger class. |
|
| public |
createLoggerInstance(suffix: string, pretty: boolean): Winston Create a logger instance. |
|
| public |
Formatter method which formats the output to the log file. |
|
| public |
getConsoleTransport(pretty: boolean): Object Create a Console transport. |
|
| public |
getFileTransport(file: string): Object Create a File transport. |
|
| public |
getHttpLoggerMessage(req: Object, res: Object): string Get the log message for Http logger. |
|
| public |
getLevelColor(level: string): string Get the color of the output based on the log level. |
|
| public |
Get a logger object based on the choice. |
|
| public |
prettyPrintConsole(info: Object): Object Update the message property and add the splat property to the info object for interpolation. |
| Private Methods | ||
| private |
_getMessage(info: Object): string Get the message string from the info object. |
Public Constructors
public constructor(PopApi: PopApi, options: Object) source
Create a new Logger object.
Params:
| Name | Type | Attribute | Description |
| PopApi | PopApi |
|
The PopApi instance to bind the logger to. |
| options | Object |
|
The options for the logger. |
| options.name | string |
|
The name of the log file. |
| options.pretty | boolean |
|
Pretty mode for output with colors. |
| options.quiet | boolean |
|
No output. |
Throw:
'name' and 'logDir' are required options for the Logger middleware! |
Public Members
Public Methods
public createHttpLogger(pretty: boolean): ExpressWinston source
Create a Http logger instance.
Params:
| Name | Type | Attribute | Description |
| pretty | boolean |
|
Pretty mode for output with colors. |
public createLogger(pretty: boolean, quiet: boolean): Object | Winston source
Method to create a global logger object based on the properties of the Logger class.
public createLoggerInstance(suffix: string, pretty: boolean): Winston source
Create a logger instance.
public getConsoleTransport(pretty: boolean): Object source
Create a Console transport.
Params:
| Name | Type | Attribute | Description |
| pretty | boolean |
|
Pretty mode for output with colors. |
public getFileTransport(file: string): Object source
Create a File transport.
Params:
| Name | Type | Attribute | Description |
| file | string |
|
The file to log the output to. |
public getHttpLoggerMessage(req: Object, res: Object): string source
Get the log message for Http logger.
public getLevelColor(level: string): string source
Get the color of the output based on the log level.
Params:
| Name | Type | Attribute | Description |
| level | string |
|
The log level. |
public getLogger(type: string, pretty: boolean, quiet: boolean): Middleware | Winston | undefined source
Get a logger object based on the choice.
public prettyPrintConsole(info: Object): Object source
Update the message property and add the splat property to the info object for interpolation.
Params:
| Name | Type | Attribute | Description |
| info | Object | The info object processed by logform. |


We're polishing off some of the key features in UbiDoBi and we'll be launching shortly
{{brick.text}}
Real-time dashboards give you unprecedented visibility of projects and other work programs within your organisation. From high-level health checks, you can drill-down and examine each project, with the ability to review any change through a complete audit trail.
Delegate tasks and responsibilities to subject matter experts within your teams. Review budgets, timelines and progress across all workstreams. Use "nudges" to alert team members when their tasks are at risk of overrun. Real-time and accurate access to every aspect of your projects without the need for status and planning meetings.
Whether you're responsibility for delivering core components or interested in peripheral aspects, you have complete visibility of all projects. Feel free to leave or reply to a comment on individual tasks or workstreams, seek clarification on expectations or simply ensure that timelines align to expectations.
See the big picture, regardless of how central your role is. Work in the context of organisational priorities and ensure that you receive the recognition you deserve.
Create public updates and share with the wider Ubi network. Use previous successes to drive new businesss as a verified service provider. Share with and learn from the experiences of others. Utilise project templates and recipes to quickly and effortlessly initiate new projects.
In the words of Creighton Abrams, "When eating an elephant take one bite at a time". when faced with a daunting, complex problem, it is best to take it one step at a time.
UbiDoBi is built on this premise, where even the most challenging projects can be delegated and decomposed into a collection of manageable, coordinated to-do lists.


Hextrapolate & Snow Leopard
-
anonymous
Has this been discontinued? It currently won't run with Snow Leopard. There was a bug report a long time age. Cheers Brian
-
Greg Hurrell
No, not discontinued, I just haven't been able to get it working on Snow Leopard yet. I have made some progress, so I hope to get it back up and running soon.
As far as I know, the older version of the program still available from the download page still works on Snow Leopard; that is, WinHex 1.0b2 (direct download link), from before when the name was changed to Hextapolate due to a name clash with a product with another company.
-
anonymous
Thanks for the update Wincent. I'll watch out for the release. Cheers Brian
Reply
This topic is now closed.


It looks like you're trying to use this extension on the Chrome store, but Google doesn't allow this. See this link for more details. If you believe you've received this message in error, please contact the developer.


|
CCfits
2.4
|
Copying extensions from one fits file to another is very straightforward. A complication arises, however, because CCfits requires every FITS object to correspond to a conforming FITS file once constructed. Thus we provide a custom constructor which copies the primary HDU of a ``source" FITS file into a new file. Subsequent extensions can be copied by name or extension number as illustrated below.
Note that the simple call
FITS::FITS(const std::string& filename)
Reads the headers for all of the extensions in the file, so that after the FITS object corresponding to infile in the following code is instantiated, all extensions are recognized [read calls are also provided to read only specific HDUs - see below].
In the example code below, the file outFile is written straight to disk. Since the code never requests that the HDUs being written to that file are read, the user needs to add statements to do this after the copy is complete.
int copyHDU() { //****************************************************************** // copy the 1st and 3rd HDUs from the input file to a new FITS file //****************************************************************** const string inFileName("atestfil.fit"); const string outFileName("btestfil.fit"); int status(0); status = 0; remove(outFileName.c_str()); // Delete old file if it already exists // open the existing FITS file FITS inFile(inFileName); // custom constructor FITS::FITS(const string&, const FITS&) for // this particular task. FITS outFile(outFileName,inFile); // copy extension by number... outFile.copy(inFile.extension(2)); // copy extension by name... outFile.copy(inFile.extension("TABLE_BINARY")); return 0; }


After searching for tin foil and a straw for a while, I was very anxious to get a feel for 5-MeO. For my virgin trial I freebased approximately 20 mg. I went outside the apartment to smoke, accompanied by a close friend. Holding in the smoke, I was caught between disgust for the acrid plastic taste and elation for the oncoming intensity. My friend had to remind me to come back inside once I exhaled. Walking in was fine, but upon re-entry I was pleased to find that the rooms and their contents were not quite arranged as I had remembered. I sat down on the couch, with my friend and his girlfriend sitting on the living room floor before me.
I was hurdling through a new space. This place was very intense. I likened it at the time to 'three times deeper than acid.' My perception had familiar rounding distortion, that is, while the walls were straight and flat, the corners where they intersect were only implied. My friend and his girlfriend were laughing, and in my state this brought on truly strong paranoia. I remember them telling me not to jack off on the couch, which sounded quite absurd. I figured I was hallucinating and that they actually said not to vomit, but upon asking them later they started laughing and confirmed the absurdity.
My body, especially my solar plexus, was surging with energy. However, I continually had to will my own breathing. This impaired my ability to talk casually and I asked my friends to leave the room and turn off the light. At this point I was just coping with the intensity. The wall before me was definitely from a foreign place. It had being with which I was unfamiliar by any means. My perception was as exotic as a mescaline state; yet it was more intense physically and psychically. This 5-MeO-DMT was actually challenging me! I was really surprised at the archetypal breakdown I was experiencing. I think that the psychic challenge was a side-effect of having to breathe forcefully. After huffing and puffing for a minute or so, I joined my friends in another room.
I was amazed and elated by the sheer craziness. The floor was a mess, and I ended up stepping on a bunch of stuff. Then a huge moaning/creeking/submarine sort of noise came from above. But my friends looked up too- apparently this was the sink of the neighbors upstairs. They told me my pupils were huge, and I think they've never been huger. I wasn't clocking this experience, but I baselined in that room after maybe ten minutes of talking.
After this trial I was almost ambivalent to taking more. It didn't show me anything significant, and yet it brought unrivaled intensity. Only a concoction of peyote and lsd has taken me anywhere more remarkable to date, and that experience was stuffed with self-discovery and an enlightening internal dialog with Mescalito. Needless to say, I tried more the next day. It was a tastier trip and I'll report that in another section....
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.


--- layout: post title: Symbian sales rise date: 2006-07-04 00:00:00 categories: business mobile ---
Symbian sales rise: "The total number of units shipped per quarter continues to rise, and per usual, Symbian is quietly outselling RAZRs and iPods alike."


Madrid coach Zidane: Bale whistles? He needs the fans as well
The Frenchman defended the Welshman after he was jeered by supporters
by SPORT.esZinedine Zidane was once again asked about Gareth Bale after the Welshman was whistled by his own supporters during Real Madrid's 3-1 win over Real Sociedad on Saturday.
Bale came on in the second half and was jeered following events with Wales in the week. The forward celebrated his nation's qualification for Euro 2020 in front of a flag which carried the words: 'Wales. Golf. Madrid. In that order.'
"I hope the whistling does not continue for the rest of the season," Zidane said after the game. "We want the fans to be with us at all times. Bale also needs the fans.
"I understand that they want to express themselves, but I would like them to applaud every player. I cannot really say if the whistling towards him (Bale) was unfair, but I was happy with his performance and the result."


Yesterday Docker released version 1.10 (http://blog.docker.com/2016/02/docker-1-10/). While this release will improve on security and bring lots of useful features the automatic upgrade within T-Pot (http://dtag-dev-sec.github.io/feature/2015/10/23/updated-docker.html) will hang.
You have to manually upgrade Docker to the latest version in order for your T-Pot installation to work properly.
Please login to T-Pot and run the following commands:
sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get upgrade docker-engine -y
Please answer the following question with (N)o for T-Pot to work correctly:
Configuration file ‘/etc/default/docker’
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** docker (Y/I/N/O/D/Z) [default=N] ? N
Installing new version of config file /etc/bash_completion.d/docker …
docker start/running, process 92746
Processing triggers for libc-bin (2.19-0ubuntu6.6) …
Processing triggers for ureadahead (0.100.0-16) …
If everything worked Docker will calculate SHA256 checksums for docker related data (https://docs.docker.com/engine/migration/). Depending on your hardware this might take some time during which the containers will not be available. Please wait until all containers are up and running again before you reboot your machine.
If you are in doubt please run “sudo cat /etc/default/docker” and if the configs are identical:
’’’# Docker Upstart and SysVinit configuration file
#Customize location of Docker binary (especially for development testing).
#DOCKER=”/usr/local/bin/docker”
Use DOCKER_OPTS to modify the daemon startup options.
#DOCKER_OPTS=”–dns <IP_ADDRESS> –dns <IP_ADDRESS>”
If you need Docker to use an HTTP proxy, it can also be specified here.
#export http_proxy=”http://<IP_ADDRESS>:3128/”
This is also a handy place to tweak where Docker’s temporary files go.
#export TMPDIR=”/mnt/bigdrive/docker-tmp”
DOCKER_OPTS=”-r=false”’’’


The Afterlife
European imaginations of hell are often embodied by imagery of destruction, fire, and darkness. Virgil, a poet who composed The Aeneid describes hell as a:
...vast cave deep in the gaping, jagged rock, shielded well by a dusky lake and shadowed grove / over it no bird on earth could make its way unscathed, such poisonous vapors steamed up from its dark throat to cloud the arching sky.–
Furthermore, The Aeneid describes the harrowing accounts of torture and torments that individuals undergo for committing crimes such as fraud, murder, and incest. Examples of such tortures were of souls begging for a ferry ride, helplessly, since "no spirits may be conveyed across the horrendous banks and hoarse, roaring flood until their bones are burried," as well as souls in the depths, presumably chained and enslaved "with the savage crack of the lash, grating creak of iron, clank of dragging chains," and souls "held back from even touching food, s" (30) This was later used as a framework in Dante's Inferno, as we will see.
Similarly, the Hebrew Bible's rendition of the underworld holds a similar concept to that of Virgil's in Greek mythology with the notion of the Sheol. The Sheol was a prison-like place of darkness where souls abided in silence and forgetfulness, and it was often reserved for the wicked and impious.
The landscape in the Sheol is also characterized by fire and darkness, with "the burning river of fire" (The Bible, page 38), in which men and women are sunken at different levels depending on their crimes, as well as "the pits great in depth...the abyss has no end, for beyond [it] follows what lies beneath it" (The Bible, page 39), where the dead are forced to lump together to beg for forgiveness.
This rendition of hell also incorporates different types of punishments to the souls, associated with different sins made in mortal life. For example, the crowd of burning men and women standing within the burning river of fire are sunken up to different lengths according to the severity of their actions:
[The ones sunk up to their knees] are the ones who, when they came forth from church, busined themselves in unsuitable conversations. But the ones who have been sunk up to the navel are those who, after they had received the body and blood of Christ, went and fornicated and did not stop in their sinning until they died. And the ones sunk up to the lips are those who slandered each other when they gathered in the church of God. And the ones sunk up to their eyebrows were those who conspired with one another, plotting evil against their neighbor– Hebrew Bible, page 38
Additional punishments distributed can be seen in the table below:
| Action | Punishment |
|---|---|
| Those who place no hope in the Lord as a helper | Sent to the eternal depth of the pits crying for mercy from the Lord |
| Those who are prebysters but did not fulfill his ministry well | Seized by the throat by angels of Tartarus, holding in their hands an iron implement with three hooks that pierce the entrails of the soul |
| Those who are inequitous | Four angels submerge the soul to his knees in a river of fire and strike him with stones and wound his face, not allowing him to cry for mercy |
| Deacons who eat the offerings, fornicate, and do no right in the sight of God | Souls are submerged in the river of fire with worms pouring out of his mouth and nostrils |
| Those who read God's word to others but do not follow it | Angels slice off one's lips and tongue |
| Those who demand interest upon interest | Devoured by worms in a river |
| Those who diminish the word of God by not paying attention and acting as if his entities mean nothing | Forced to gnaw on your own tongue |
| Sorcerers responsible for deceptive magic | Placed in a pit in which through every tormet flows |
| Fornicaters and cheaters | Placed in a pit to experience torments forever |
| Girls who lose their virginity without their parents' knowledge | Draped in black garments and four angles hold one's hands in flaming chains |
| Those who take advantage and harm orphans, widows, and the poor | Extremities sawed off and placed naked in ice and snow, where they are devoured by worms |
| Those who break fast before proper time | Hung over water and food but not allowed to consume them |
| Those who commit to adulterers, instead of their own spouses | Strung up by eyebrows and hair |
| Those who committed the "wickedness of Sodom and Gomorrah" | Covered in dust and appearance looks like Blood |
| Pagans who give alms but do not recognize God | Blinded and placed in a pit |
| Those who had abortions, and the men they had sex with | Beasts tear upon these souls, and they are subjected to the worst torture by the angels |
| Those who renounced during baptism | Wrapped in clothes of burning sulfur, strangled by dragons, while angels strike them down |
| Those who did not confess | Tossed into a pit and forgotten |
| Those who refuted Christs' resurrection | Left in the cold with a 2 headed sleepless worm that gnashes its teeth |
The best imagination of hell, however, is from the early 14th century work by Dante, The Divine Comedy. In the first book, The Inferno, Dante describes the chronicle of his journey through hell, in which he describes it as a deep funnel with circular tiers and bounded at the bottom by a frozen lake known Cocytus in which a 3 faced Satan resides.  Upon entering the gates of hell, one will experience:
Sighs and groans and plaintive wailing...diverse tongues, horrible dialects, words of agony, accents of anger...– Inferno, page 142
Next, entering the "filthy fen," he witnesses:
...people caked with mud in that lagoon, all of them naked and fierce. They struck one another not only with their hands, but their heads and bodies and feet, tearing each other to pieces with their teeth.– Inferno, page 147
Dante then describes the "boiling blood", "forest of suicides", and "trapped under ice":
River of blood, draws near, within boils whoever did injury to others by violence... Foliage was not green, but dark in color, the branches were not smooth but gnarled and tangled. There were no apple trees, but only thorns with poison... All shades were completely trapped in ie; their shapes glimmered through like straws in a glass. This is the place where you must arm yourself with fortitude...– Inferno
Clearly, Dante's imaginings of hell follow the same formula as first described -- the description of sighs, groans, plaintive wailing, cannibalistic destruction of each others' flesh, river of blood that boils those who have violently harmed others, the forest of trees with only thorns of poison, and the figures completely trapped in ice all point to how each circle is encompassed by suffering, retribution, and misery.
The more comprehensive figure below delves deeper into Dante's description of the 9 circles of hell, each circle complete with a punishment fit for the sin:
| Circle of Hell | Description |
|---|---|
| Circle 1: Limbo |
|
| Circle 2: Lust |
|
| Circle 3: Gluttony |
|
| Circle 4: Greed |
|
| Circle 4: Anger |
|
| Circle 6: Heresy |
|
| Circle 7: Violence |
|
| Circle 8: Fraud |
|
| Circle 9: Treachery |
|
Characters and Monstrous Entities of Hell
Monsters in European depictions of hell often have the purpose of punishing wretched souls. While few are of human-like appearance and monstrous in nature, many of these characters are a combinatory system of different animal or body parts.
The Aeneid
Hecate, Queen of Heaven and Hell
Virgil depics Hecate as a priestess with attendants that do her bidding.
The Throng of Monsters
"Centuars, mongrel Scyllas, part women, part beasts, and part hundred-handed Briareus
and the savage Hydra of lerna, that hissing horror, the Chimaera armed with torches - Gorgons, Harpies
and triple bodied geryon, his great ghost" (page 24). These monsters roam around hell, picking at the
souls who are stuck there.
Inferno
Charon
Charon, who also appears in The Aeneid, takes on a more sinister persona in the Inferno.

The Minotaur
The Minotaur witnesses punishments in the Boiling Blood; he is "like a bull who breaks loose at th emoment when
he has received the killing blow, who cannot walk, but staggers here and there" (Inferno, 150).
Harpies
The Harpies reside in the Forest of Suicides, "who chased the Trojans from the Strophades wiith sad announcements of their impending doom [and they] make laments upon the trees,"
(Inferno, 155).
They are partially human and partially bird, with "broad wings, aand necks and faces like humans, and feet with claws, and their great bellies sport feathers" (Inferno, 155).
Conclusions
All in all, each depiction of hell carries the same core elements of punishment, darkness and fire, and monstrous entities that torment the souls. While Dante's Inferno is most definitely the most structured and nuanced afterlife with each circle of sin, it draws upon The Aeneid, which, along with the Hebrew Bible also contain elements to create a landscape that is both terrifying and anxiety-inducing.
Citations:
- Examples from The Penguin Book of Hell
- Excerpts from Dante’s Inferno
- Lecture 9/10/2020: From Hell


public interface UtteranceReader
| Modifier and Type | Method and Description |
|---|---|
UtteranceReader |
fromResourceLocation(String resourceLocation)
yet another setter for the resource location but this one is
for fluent method concatenation.
|
String |
getLeadingPath()
Gets the leading path - the portion of the qualified path in front of
the locale-directory.
|
String |
getResourceLocation()
Gets the trailing portion of the fully qualified path to the YAML file which
is read out for utterances.
|
InputStream |
read(String locale)
Reads from the source referenced by the resourceLocation.
|
void |
setResourceLocation(String resourceLocation)
Sets the trailing portion of the fully qualified path to the YAML file which
is read out for utterances.
|
String getLeadingPath()
String getResourceLocation()
void setResourceLocation(String resourceLocation)
resourceLocation
- trailing portion of the fully qualified path to the YAML fileUtteranceReader fromResourceLocation(String resourceLocation)
resourceLocation
- trailing portion of the fully qualified path to the YAML fileInputStream read(String locale)
locale
- the locale from the speechlet requestCopyright © 2016. All rights reserved.


StateAndContract(state: ContractState, contract: ContractClassName)
A convenience class for passing around a state and it's contract


Golang HTTP service best practices
Hi, gopher!
It is hard to write a perfect Golang service on the first try. You always face some requirements you’ve missed and try to make the service more convenient.  I want to document it once and never think of it anymore (because devs are lazy by definition).
Project structure
Imagine we need to develop a service that will handle 1-2 HTTP requests and do some logic on them. The main idea is - not to mix business logic with serving. Serving must handle interactions with the environment, and business logic is for your business.
So, I like having this structure:
├── main.go
├── config
│ └── config.go
├── server
│ └── server.go
└── internal
└── ...
- main.go - is for your app entry point. Here we do initialization, start HTTP server, read configs and apply them, and handle interrupts.
- config - is for config structures.
- server - is for the HTTP serving stuff. We might want to change the server implementation or add some cool settings or features (like proxies). I should never touch the application logic.
- internal - the business logic of the app.
There are approaches with api folder and many others, but for 1-2 HTTP requests, we don’t need a considerable API, right?
The main idea is:
Separated things are easier to maintain.
Avoid init()
I don’t like implicit things in web services. It is convenient sometimes, but it is simpler to write an extra function call inside main()
and test it accordingly.
init()
can make things more difficult.
Keep server logic separated
The server. You can easily extend it without making it hard to read and maintain. Better see an example:
server/server.go
package server
import (
"context"
"github.com/mrexox/project/config"
// ...
)
type Server struct {
// some important stuff
}
func NewServer(cfg *config.Config) *Server {
// initialization
return &Server{
// ...
}
}
func (s *Server) Start() {
// start the HTTP server
}
func (s *Server) Shutdown(ctx context.Context) error {
// Gracefully shutdown with the context
}
main.go
package main
import (
"github.com/mrexox/project/config"
"github.com/mrexox/project/server"
// ...
)
func main() {
cfg := config.NewConfig()
srv := server.NewServer(cfg)
// Add handlers...
// Handle shutdown...
}
The main idea is:
Keep the server implementation and business logic separated.
Handle SIGINT and SIGTERM
Just handling the first Ctrl-C as Stop gracefully, please! and the second Ctrl-C as Stop it right now!.
func main() {
// This is our force shutdown context
ctx, forceShutdown := context.WithCancel(context.Background())
// ...
srv.Start() // should use goroutine by the way
signalChan := make(chan os.Signal, 1)
signal.Notify(signalChan, syscall.SIGINT, syscall.SIGTERM)
<-signalChan
log.Info("shutting down...")
// Force shutdown on second signal
go func() {
<-signalChan
forceShutdown()
}()
// If we use forceShutdown the server must shut down imediately
if err := srv.Shutdown(ctx); err != nil {
log.Fatal("shutdown error")
}
log.Info("successful shutdown")
}
The main idea is:
Make the app shutdownable. It will be useful for any infrastructure you deploy it to - especially Kubernetes.
Write tests!
Yes, this is the most important best practice of mine! Tests allow you to make sure you are not breaking the whole system by touching one thing. They say the coverage of 70% is enough, but I like it to be 90% or around.
The main idea is:
Tests are helping you control the changes. You sleep well when you have them.
Go is fun!
There is an example of using these best practices here: asyncproxy. Asyncproxy is a service for balancing the load by storing request bodies in a database and proxying them asynchronously. I had much fun writing it.


Source code for qiskit.result.postprocess
# -*- coding: utf-8 -*-
# This code is part of Qiskit.
#
# (C) Copyright IBM 2017, 2018.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.
"""Post-processing of raw result."""
import numpy as np
from qiskit.exceptions import QiskitError
def _hex_to_bin(hexstring):
"""Convert hexadecimal readouts (memory) to binary readouts."""
return str(bin(int(hexstring, 16)))[2:]
def _pad_zeros(bitstring, memory_slots):
"""If the bitstring is truncated, pad extra zeros to make its
length equal to memory_slots"""
return format(int(bitstring, 2), '0{}b'.format(memory_slots))
def _separate_bitstring(bitstring, creg_sizes):
"""Separate a bitstring according to the registers defined in the result header."""
substrings = []
running_index = 0
for _, size in reversed(creg_sizes):
substrings.append(bitstring[running_index: running_index + size])
running_index += size
return ' '.join(substrings)
[docs]def format_counts_memory(shot_memory, header=None):
"""
Format a single bitstring (memory) from a single shot experiment.
- The hexadecimals are expanded to bitstrings
- Spaces are inserted at register divisions.
Args:
shot_memory (str): result of a single experiment.
header (dict): the experiment header dictionary containing
useful information for postprocessing. creg_sizes
are a nested list where the inner element is a list
of creg name, creg size pairs. memory_slots is an integers
specifying the number of total memory_slots in the experiment.
Returns:
dict: a formatted memory
"""
if shot_memory.startswith('0x'):
shot_memory = _hex_to_bin(shot_memory)
if header:
creg_sizes = header.get('creg_sizes', None)
memory_slots = header.get('memory_slots', None)
if memory_slots:
shot_memory = _pad_zeros(shot_memory, memory_slots)
if creg_sizes and memory_slots:
shot_memory = _separate_bitstring(shot_memory, creg_sizes)
return shot_memory
def _list_to_complex_array(complex_list):
"""Convert nested list of shape (..., 2) to complex numpy array with shape (...)
Args:
complex_list (list): List to convert.
Returns:
np.ndarray: Complex numpy aray
Raises:
QiskitError: If inner most array of input nested list is not of length 2.
"""
arr = np.asarray(complex_list, dtype=np.complex_)
if not arr.shape[-1] == 2:
raise QiskitError('Inner most nested list is not of length 2.')
return arr[..., 0] + 1j*arr[..., 1]
[docs]def format_level_0_memory(memory):
""" Format an experiment result memory object for measurement level 0.
Args:
memory (list): Memory from experiment with `meas_level==1`. `avg` or
`single` will be inferred from shape of result memory.
Returns:
np.ndarray: Measurement level 0 complex numpy array
Raises:
QiskitError: If the returned numpy array does not have 2 (avg) or 3 (single)
indicies.
"""
formatted_memory = _list_to_complex_array(memory)
# infer meas_return from shape of returned data.
if not 2 <= len(formatted_memory.shape) <= 3:
raise QiskitError('Level zero memory is not of correct shape.')
return formatted_memory
[docs]def format_level_1_memory(memory):
""" Format an experiment result memory object for measurement level 1.
Args:
memory (list): Memory from experiment with `meas_level==1`. `avg` or
`single` will be inferred from shape of result memory.
Returns:
np.ndarray: Measurement level 1 complex numpy array
Raises:
QiskitError: If the returned numpy array does not have 1 (avg) or 2 (single)
indicies.
"""
formatted_memory = _list_to_complex_array(memory)
# infer meas_return from shape of returned data.
if not 1 <= len(formatted_memory.shape) <= 2:
raise QiskitError('Level one memory is not of correct shape.')
return formatted_memory
[docs]def format_level_2_memory(memory, header=None):
""" Format an experiment result memory object for measurement level 2.
Args:
memory (list): Memory from experiment with `meas_level==2` and `memory==True`.
header (dict): the experiment header dictionary containing
useful information for postprocessing.
Returns:
list[str]: List of bitstrings
"""
memory_list = []
for shot_memory in memory:
memory_list.append(format_counts_memory(shot_memory, header))
return memory_list
[docs]def format_counts(counts, header=None):
"""Format a single experiment result coming from backend to present
to the Qiskit user.
Args:
counts (dict): counts histogram of multiple shots
header (dict): the experiment header dictionary containing
useful information for postprocessing.
Returns:
dict: a formatted counts
"""
counts_dict = {}
for key, val in counts.items():
key = format_counts_memory(key, header)
counts_dict[key] = val
return counts_dict
[docs]def format_statevector(vec, decimals=None):
"""Format statevector coming from the backend to present to the Qiskit user.
Args:
vec (list): a list of [re, im] complex numbers.
decimals (int): the number of decimals in the statevector.
If None, no rounding is done.
Returns:
list[complex]: a list of python complex numbers.
"""
num_basis = len(vec)
vec_complex = np.zeros(num_basis, dtype=complex)
for i in range(num_basis):
vec_complex[i] = vec[i][0] + 1j * vec[i][1]
if decimals:
vec_complex = np.around(vec_complex, decimals=decimals)
return vec_complex
[docs]def format_unitary(mat, decimals=None):
"""Format unitary coming from the backend to present to the Qiskit user.
Args:
mat (list[list]): a list of list of [re, im] complex numbers
decimals (int): the number of decimals in the statevector.
If None, no rounding is done.
Returns:
list[list[complex]]: a matrix of complex numbers
"""
num_basis = len(mat)
mat_complex = np.zeros((num_basis, num_basis), dtype=complex)
for i, vec in enumerate(mat):
mat_complex[i] = format_statevector(vec, decimals)
return mat_complex


|
lubyk
0.5
|
#include <AbstractBrowser.h>
Inherits lubyk::Mutex.
Inherited by mdns::Browser.
Classes | |
| class | Service |
Public Member Functions | |
| AbstractBrowser (const char *service_type) | |
| virtual | ~AbstractBrowser () |
Protected Member Functions | |
| bool | getServices () |
| void | setProtocolFromServiceType () |
Protected Attributes | |
| std::string | protocol_ |
| std::string | service_type_ |
| int | fd_ |
| std::queue< Service > | found_services_ |
| bool | is_add_ |
Private Attributes | |
| Implementation * | impl_ |
This class let's you easily find applications providing a certain service.
Definition at line 42 of file AbstractBrowser.h.
| mdns::AbstractBrowser::AbstractBrowser | ( | const char * | service_type | ) |
| virtual mdns::AbstractBrowser::~AbstractBrowser | ( | ) | [virtual] |
| bool mdns::AbstractBrowser::getServices | ( | ) | [protected] |
Once we have some data ready, we call this method to load the service information into location_.
Reimplemented in mdns::Browser.
| void mdns::AbstractBrowser::setProtocolFromServiceType | ( | ) | [protected] |
int mdns::AbstractBrowser::fd_ [protected] |
Filedescriptor to listen for new/removed devices.
Definition at line 72 of file AbstractBrowser.h.
std::queue<Service> mdns::AbstractBrowser::found_services_ [protected] |
Detected locations.
Definition at line 76 of file AbstractBrowser.h.
Implementation* mdns::AbstractBrowser::impl_ [private] |
Definition at line 43 of file AbstractBrowser.h.
bool mdns::AbstractBrowser::is_add_ [protected] |
This is true for 'add' and false for 'remove'.
Definition at line 80 of file AbstractBrowser.h.
std::string mdns::AbstractBrowser::protocol_ [protected] |
Protocol used in communication (usually 'lubyk').
Definition at line 64 of file AbstractBrowser.h.
std::string mdns::AbstractBrowser::service_type_ [protected] |
Service-type to browse.
Definition at line 68 of file AbstractBrowser.h.


Find your neighborhood
Menu
SCHOOLS/LIBRARIES
RESTAURANS/BARS
PARKS
HISTORIC DISTRICTS
BAGLEY
Neighborhoods:
Blackstone Park
,
Fitzgerald
,
Greenwich
,
Harmony Village
,
Pembroke
.
AVG. HOUSEHOLD INCOME
GARBAGE PICK UP DAY
ASSOCIATIONS & BLOCK CLUBS
CURRENT RESIDENTS
LEARN MORE


{% extends "base.html" %} {% block custom_head_tags %} {% endblock custom_head_tags %} {% block main_content %} {# #}
{{ this_project.get('description')|safe }}
{% if ds==0 %}Below are the papers that this method identified as being related to the seed papers in science communication and misinformation. To view the papers related to science communication only, click here.
{% elif ds==1 %}Below are the papers that are in the science communication seed set, as well as the additional papers this method identified as being related to this seed set (and marked as relevant by domain experts at NAS) To view the papers related to both science communication and misinformation, click here.
{% endif %}


Piechopper is currently under development and benefits greatly from your help. Answering the questions below assists in setting the right direction, and it only takes a few seconds. Thank you for your help!
Would you be willing to pay on some of the features?
Freeform feedback:
Leave your email to get an invite to upcoming features:
Click here if you want to modify the questionary.


Akoma Ntoso Media Type Version 1.0
Committee Specification Draft 01 /
Public Review Draft 01
25 March 2015
Specification URIs
This version:
http://docs.oasis-open.org/legaldocml/akn-media/v1.0/csprd01/akn-media-v1.0-csprd01.html (Authoritative)
http://docs.oasis-open.org/legaldocml/akn-media/v1.0/csprd01/akn-media-v1.0-csprd01.doc
http://docs.oasis-open.org/legaldocml/akn-media/v1.0/csprd01/akn-media-v1.0-csprd01.pdf
Previous version:
N/A
Latest version:
http://docs.oasis-open.org/legaldocml/akn-media/v1.0/akn-media-v1.0.html (Authoritative)
http://docs.oasis-open.org/legaldocml/akn-media/v1.0/akn-media-v1.0.doc
http://docs.oasis-open.org/legaldocml/akn-media/v1.0/akn-media-v1.0.pdf
Technical Committee:
OASIS LegalDocumentML (LegalDocML) TC
Chairs:
Fabio Vitali (fabio@cs.unibo.it), University of Bologna-CIRSFID
Monica Palmirani (monica.palmirani@unibo.it), University of Bologna-CIRSFID
Editors:
Fabio Vitali (fabio@cs.unibo.it), University of Bologna-CIRSFID
Monica Palmirani (monica.palmirani@unibo.it), University of Bologna-CIRSFID
Related work:
This specification is related to:
Abstract:
This document contains the relevant information for the registration of the Akoma Ntoso media type (akn+xml) with IANA.
Status:
This document was last revised or approved by the OASIS LegalDocumentML (LegalDocML) TC on the above date. The level of approval is also listed above. Check the “Latest version” location noted above for possible later revisions of this document. Any other numbered Versions and other technical work produced by the Technical Committee (TC) are listed at https://www.oasis-open.org/committees/tc_home.php?wg_abbrev=legaldocml#technical.
TC members should send comments on this specification to the TC’s email list. Others should send comments to the TC’s public comment list, after subscribing to it by following the instructions at the “Send A Comment” button on the TC’s web page at https://www.oasis-open.org/committees/legaldocml/.
For information on whether any patents have been disclosed that may be essential to implementing this specification, and any offers of patent licensing terms, please refer to the Intellectual Property Rights section of the TC’s web page (https://www.oasis-open.org/committees/legaldocml/ipr.php).
Citation format:
When referencing this specification the following citation format should be used:
[AkomaNtosoMedia-v1.0]
Akoma Ntoso Media Type Version 1.0. Edited by Fabio Vitali and Monica Palmirani. 25 March 2015. OASIS Committee Specification Draft 01 / Public Review Draft 01. http://docs.oasis-open.org/legaldocml/akn-media/v1.0/csprd01/akn-media-v1.0-csprd01.html. Latest version: http://docs.oasis-open.org/legaldocml/akn-media/v1.0/akn-media-v1.0.html.
Notices
Copyright © OASIS Open 2015. All Rights Reserved.
All capitalized terms in the following text have the meanings assigned to them in the OASIS Intellectual Property Rights Policy (the "OASIS IPR Policy"). The full Policy may be found at the OASIS website.
This document and translations of it may be copied and furnished to others, and derivative works that comment on or otherwise explain it or assist in its implementation may be prepared, copied, published, and distributed, in whole or in part, without restriction of any kind, provided that the above copyright notice and this section are included on all such copies and derivative works. However, this document itself may not be modified in any way, including by removing the copyright notice or references to OASIS, except as needed for the purpose of developing any document or deliverable produced by an OASIS Technical Committee (in which case the rules applicable to copyrights, as set forth in the OASIS IPR Policy, must be followed) or as required to translate it into languages other than English.
The limited permissions granted above are perpetual and will not be revoked by OASIS or its successors or assigns.

OASIS requests that any OASIS Party or any other party that believes it has patent claims that would necessarily be infringed by implementations of this OASIS Committee Specification or OASIS Standard, to notify OASIS TC Administrator and provide an indication of its willingness to grant patent licenses to such patent claims in a manner consistent with the IPR Mode of the OASIS Technical Committee that produced this specification.
OASIS invites any party to contact the OASIS TC Administrator if it is aware of a claim of ownership of any patent claims that would necessarily be infringed by implementations of this specification by a patent holder that is not willing to provide a license to such patent claims in a manner consistent with the IPR Mode of the OASIS Technical Committee that produced this specification. OASIS may include such claims on its website, but disclaims any obligation to do so.
OASIS takes no position regarding the validity or scope of any intellectual property or other rights that might be claimed to pertain to the implementation or use of the technology described in this document or the extent to which any license under such rights might or might not be available; neither does it represent that it has made any effort to identify any such rights. Information on OASIS' procedures with respect to rights in any document or deliverable produced by an OASIS Technical Committee can be found on the OASIS website. Copies of claims of rights made available for publication and any assurances of licenses to be made available, or the result of an attempt made to obtain a general license or permission for the use of such proprietary rights by implementers or users of this OASIS Committee Specification or OASIS Standard, can be obtained from the OASIS TC Administrator. OASIS makes no representation that any information or list of intellectual property rights will at any time be complete, or that any claims in such list are, in fact, Essential Claims.
The name "OASIS" is a trademark of OASIS, the owner and developer of this specification, and should be used only to refer to the organization and its official outputs. OASIS welcomes reference to, and implementation and use of, specifications, while reserving the right to enforce its marks against misleading uses. Please see https://www.oasis-open.org/policies-guidelines/trademark for above guidance.
Table of Contents
2.3 Interoperability considerations
2.5 Applications which use this media
2.6 Fragment identifier considerations:
2.10 Preliminary Community Review
2.12 Persons to contact for further information :
2.13 Author/Change controllers
The key words “MUST”, “MUST NOT”, “REQUIRED”, “SHALL”, “SHALL NOT”, “SHOULD”, “SHOULD NOT”, “RECOMMENDED”, “MAY”, and “OPTIONAL” in this document are to be interpreted as described in [RFC2119].
[RFC2119] Bradner, S., “Key words for use in RFCs to Indicate Requirement Levels”, BCP 14, RFC 2119, March 1997. http://www.ietf.org/rfc/rfc2119.txt.
[RFC3986] Berners-Lee T., Fielding R., Masinter, L.. “Uniform Resource Identifier (URI): Generic Syntax”, RFC 3986, January 2005. http://www.ietf.org/rfc/rfc3986.txt.
[RFC7303] Thompson, H., Lilley, C. “XML Media Types”, RFC 7303, July 2014. http://www.ietf.org/rfc/rfc7303.txt.
This information has been submitted to the Internet Engineering Steering Group (IESG) for review, approval, and registration with IANA.
MIME media type name : Application
MIME subtype name : akn+xml
Required parameters : None
Optional parameters :
charset
with identical semantics to the charset parameter of the application/xml media type as specified in [RFC 7303].
Identical to those for 'application/xml'. See [RFC7303], Section 3.2.
Since this media type uses the "+xml" convention, it shares the security considerations described in Section 10 of [RFC7303], Akoma Ntoso documents may contain arbitrary URIs. Hence the security issues of [RFC3986], Section 7, apply.
Akoma Ntoso documents may contain arbitrary content within specific elements of the XML stream. This could include executable code injected by malicious agents. Yet, there is no requirement that such content is actually recognized and executed on the receiving end, and receiving agents MUST ignore executable content coming from unsecured channels and/or unknown sources.
Akoma Ntoso documents provide their own means to deal with integrity requirements for content, under the guise of XML digital signatures on the whole or individual parts of the content. With regard to privacy requirements, most of the Akoma Ntoso documents are in fact of public nature and possess no privacy requirements. Whenever the providing agent is sending confidential documents or containing parts with a different degree of confidentiality, it MUST adopt secure transmission channels such as SSL/TLS, and MAY adopt in addition further mechanisms such as XML encryption on the confidential parts of the content.
This specification describes processing semantics that dictate behavior that must be followed when dealing with, among other things, unrecognized elements. Since Akoma Ntoso is designed to be extensible in specific elements, "application/akn+xml" processors MAY expect that content received is well-formed XML, but processors SHOULD NOT assume that the content is valid Akoma Ntoso or expect to recognize all of the elements and attributes in the document.
http://docs.oasis-open.org/legaldocml/akn-core/v1.0/akn-core-v1.0-part1-vocabulary.html
Akoma Ntoso documents are created, accepted and managed by a number of tools in use by parliaments and other entities that are active in the legal XML domain. These include document management systems, legal drafting tools, URI resolvers and format converters.
The necessity of this media types arises with those institutions that have more than one XML data format for their legal documents, and that want to add support for Akoma Ntoso, since by examining the request they need to be able to determine the specific XML vocabulary to use for the response.
Documents having the media type 'application/akn+xml' use a fragment identifier notation totally consistent with what is specified in [RFC7303] for the media type 'application/xml'.
None
We kindly request provisional registration for application/akn+xml
1. Deprecated alias names for this type : None
2. Magic number(s) : There is no single initial octet sequence that is always
3. File extension(s) : Akoma Ntoso documents are most often identified with the extension .akn or .xml.
4. Macintosh file type code : TEXT
5. Object Identifiers: None
Preliminary Community Review was obtained in August 2014, with a mail to<EMAIL_ADDRESS>id: http://www.ietf.org/mail-archive/web/media-types/current/msg00587.html , that received no comments.
Common
1. Name : Fabio Vitali or Monica Palmirani
2. Email<EMAIL_ADDRESS>or<EMAIL_ADDRESS>1. Name : Fabio Vitali or Monica Palmirani
2. Email<EMAIL_ADDRESS>or<EMAIL_ADDRESS>OASIS has change control over these specifications.
This chapter provides no conformance clauses.
The following individuals have participated in the creation of this specification and are gratefully acknowledged:
Participants:
Aisenberg, Michael, Mitre Corporation
Arocena, María de la Paz, Uruguay Parliament
Barysheva, Nataliya, LexisNexis a Division of Reed Elsevier
Bbaale, Fred, Uganda Parliament
Beatch, Richard, Bloomberg Finance L.P.
Bennett, Daniel, Individual Member
Briotti, Giuseppe, Senato della Repubblica d’Italia
Bruce, Tom, Cornell Law School, Legal Information Institute
Cabral, James, MTG Management Consultants, LLC.
Dohaini, Bassel, Lebanese Parliament
Dunning, John, LexisNexis a Division of Reed Elsevier
Fabiani, Claudio, EU Parliament
Ferguson, Kimberly, Library of Congress
Ferreira, Daniel, Uruguay Parliament
Fiagome, Shirley-Ann, Ghana Parliament
Gheen, Tina, Library of Congress
Greenwood, Dazza, M.I.T.
Hardjono, Thoma, M.I.T.
Hariharan, Ashok, Africa i-Parliaments Action Plan (UN/DESA)
Harris, Jim, National Center for State Courts
Joergensen, John, Cornell Law School, Legal Information Institute
Junge, Peter, Beijing Sursen Electronic Technology Co, Ltd.
Khamis, Mr. Maan, LexisNexis a Division of Reed Elsevier
Marchetti, Carlo, Senato della Repubblica d’Italia
Mattocks, Carl, Individual Member
Murungi, Michael, Kenya National Council for Law Reporting
Otto Eridan, Biblioteca del Congreso Nacional de Chile
Palmirani, Monica, University of Bologna
Parisse, Véronique, Aubay S.A.
Petri, Steve, LexisNexis a Division of Reed Elsevier
Pham, Kim, US Military Health Services
Ramsahye-Rakha, Saseeta, Mauritius National Assembly
Sandoval, Alvaro, Biblioteca del Congreso Nacional de Chile
Shifrin, Laurel, LexisNexis a Division of Reed Elsevier
Sifaqui, Christian, Biblioteca del Congreso Nacional de Chile
Sosa, Raquel, Uruguay Parliament
Sperberg, Roger, LexisNexis a Division of Reed Elsevier
Tosar Piaggio, Sylvia, Uruguay Parliament
Vergottini, Grant, Xcential Group, LLC.
Vitali, Fabio, University of Bologna
Waldt, Dale, LexisNexis a Division of Reed Elsevier
Weber, Andrew, Library of Congress
Wemer, Jason, Wells Fargo
Wintermann, John, Bloomberg Finance L.P.
Zeni, Flavio, Africa i-Parliaments Action Plan (UN/DESA)
|
Revision |
Date |
Editor |
Changes Made |
|
[01] |
[19/03/2015] |
[Monica Palmirani] |
[First version] |
|
[02] |
[24/03/2015] |
[Fabio Vitali] |
[Added specifications about security and privacy] |


Bill
Select Tip %
5%
10%
15%
25%
50%
Number of People
Can't Be Zero
Tip Amount
/ person
$0.00
Total
/ person
$0.00
RESET
Coded by
Sejal
.


http
RFC HTTP
- RFC2616 - Hypertext Transfer Protocol – HTTP/1.1
- RFC7230 – HTTP/1.1: Message Syntax and Routing
- RFC7231 – HTTP/1.1: Semantics and Content
- RFC7232 – HTTP/1.1: Conditional Requests
- RFC7233 – HTTP/1.1: Range Requests
- RFC7234 – HTTP/1.1: Caching
- RFC7235 – HTTP/1.1: Authentication
long polling
What is HTTP Long Polling? - www.pubnub.com/blog - 20141201
- The client polls the server requesting new information.
- The server holds the request open until new data is available.
- Once available, the server responds and sends the new information.
- When the client receives the new information, it immediately sends another request, and the operation is repeated.
This effectively emulates a server push feature.


Preface:
'If you started in the wrong way,' I said in answer to the investigator's questions, 'everything that happened would be a proof of the conspiracy against you. It would all be self-validating, You couldn't draw a breath without knowing it was part of the plot.'
Aldous Huxley -- The doors of perception
Mental setting:
I had been suffering from depression and paranoind delusions for a good 4 years. I was nearly put in asylum (and probably should have been). I have tried all manor or anti-depressants anti-psychotics and psychotherapy to no effect. I had finished all worldly commitments and was prepared to leave the world as I saw now future besides utter torment. Then...
I wish to tell a short story of my experience with MDMA. For some time I have known a kind of madness that few can talk about. In my youth I suffered numerous abuses, many of them self inflicted via actions, alcohol and drugs, some of them not. This is not a story of those times, but a story of the recuperation from them. In the pits of my insanity nothing could help me, the kindest word, most heartfelt care only appeared to be a deception and a pain awaiting me.
MDMA has saved me.  In aggregate of less than a day MDMA has shown me the fallacy of my behavior and allowed me to develop back to where I started and continue onto becoming a worthwhile person. I have taken MDMA a number of times now, and whilst always beneficial I shall now relate the best experience. By this point I had read everything there was to read on MDMA and I am sure I bored people with such theoretical knowledge.
T-4 hours
I await a house party and sip 4 beers with people I barely know. I have one good friend (let's call him C) here who keeps me from running away with my grandiose delusions. The beer dumbs the senses and conversation flows to a degree.
T-0 hours.
I am invited to partake in some MDMA. I take a good 150mg. My good friend has bought in a large amount so measuring and money are somewhat irreverent at this point. I sit outside a room full of people who for some reason frighten me. I pick up a book off the floor : Descartes seminal work. The irony of 'I think therefore I am' should not be lost on the raver who exists without thought.
T+30min approx
After a given time the world changes. And then again it doesn't change. The walls, the floor, the people all are identical. Yet something has changed, on much review it is I who have changed, changed not into and ogre or a god but _I_ have simply ceased to exist, yet my body and mind remain.
Nonetheless I shall attempt to give a description of MDMA. It's feels as if all my life I have been the waves and now I was the ocean. A calm that was so obviously there as to not be worthy of attention. Cannabis removes the hassles of life by creating such a fog about them as to be indecernable, yet MDMA showed all the problems in the world to me and at the same time their utter irreverence. On a physical level, tension vanished in an instant from my body, my vision widened and sharpened. All the senses became slightly strange yet familiar. As if the dust was swept off a picture. The usual jaw-grinding was of course present but of no significance.
I walk into the room that so frightened me before and am immediately greeted by a woman I barely know (let's call here EM). I hug her and such joy and relief greats me as is impossible to describe. The MDMA is now obviously flowing, yet its greatest presence is its noticeable absence. When on MDMA as I have tried to explain, NOTHING changes, all that happens is my childish, conditioned, bruised and hurtful ego is melted away. If you could consciously sit down and accept every little thing from the slighted thought to the greatest catastrophe for 5 minutes you would have ecstasy. To do such a thing is of course the aim of buddhism (if you get a chance, compare the smile of a raver with a buddhist monk).
For the next couple of hours I discuss the most painful and beautiful moments of my life with EM, or so I thought. After what seemed like days of refreshing discourse, I worry that I am 'wasting' my time with just this one person. I look down to my watch to find that 30 minutes have pasted. That appears to be a re-occurring theme of MDMA, time runs at 1/4 speed. My whole life's story is now more than 5 minutes ,-).
T+1 hour
More MDMA is offered and I take another 100mg. This is a fairly large booster dose and is generally not recommended. I am however still slightly drunk and in this reprieve from insanity it seems like a good idea.
The party continues on and I talk to a number of interesting people. All the problems I normal experience with people/life have completely disappeared, for the first time in years I am free to be. I meet my good friend who's party this is and who has given me the MDMA. There is a good silence between us, if there was anything to said it would be understood and accepted, words are insufficient however and a smile expounds all. I would love to say that I gradually analyzed the come up of the second dose of MDMA but the disreate nature of complete bliss to more complete bliss was not my focus and I was just damm happy without distinction.
T+3hours
I sit with EM and my friend C. EM holds my hand for some time, the tactile sensation and emotion is almost too much, I find something else to do with my hand. I realise that I am shying away from female contact here and suddenly I realise how much of my life I have been doing so.
T+5/6 hours.
The sun starts to rise and I am offered another 100mg and gladly accept. The third dose seems to have less effect but it tails out nicely with the other two and I remain in a strange high/come-down state for the next 3 hours.
I am now downstairs in the courtyard and notice a huge PA system and the most amazing sound. It may have been house/hip hop/drum&bass I don't know and do not care. The sound would have grabbed me by the balls had it not found somewhere deep in my soul to latch on. I suddenly owe a thousand apologies to every person who listens to house/drum&bass which I had derided so much previously. Music resonates at a level below all opinion and conception. The beat is the beat, I am me and the ego is dead. Such freedom is ineffable.
As the beat subsides conversation emerges and I listen and smoke cigarettes. Watching people and how they act brings many realizations of my own faults and how to overcome them. A thousand psychiatrist/monkeys and a thousand sessions could not explain it so clearly. People raging about the past or wars in distant lands when they own neither time machines nor planes.
T+9hours
I feel somewhat drained and very tired, I head upstairs and find an unused bedroom and fall asleep on the bead.
T+15hours.
I wake up to find myself looking into the eyes of a beutiful woman. Looking around numerous other people have fallen asleep on the bed. Living in England where even the most mundane detail is coordinated and planned, to wake up next to people who were just tired is like a kick in the bollucks(in a good way).
T+a few months
So what has this achieved? Has all the wonder disappeared? Yes. But not the wisdom. This experience was a turning point. To see just for a few hours the affects of accepting (seratonin down all neural pathways) versus the usual fear that is insanity gave me a choice. It is not an easy choice. In fact in the short term, fear and ignorance plied with alcohol and hatred will always be supreme. However if I want a way out, I must accept and LET GO. From here on I meditated to train my mind to accept(not condone) _everything_
It is now a good 6 months since this experience. I am now fully employed, I can deal with people, I have hope that grows stronger everyday. I am by no means fully sane and I'm sure most people would experience my condition as nothing but suffering. However to me, by comparison, even how far I have come so far is like arriving in heaven. People react without turning into daemons, there is no global conspiracy, I can walk down the streets without morbid fear, everyday is comparative bliss and I see no reason to stop at this.
Drugs are not the answer but insanity is worse.
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.


Well, i can't get my hands off this franchise...
I started development of a new extension for companion and the new forums.
It's called...
Greaterfield
Don't know why this name, it comes to my mind first, so i took that.
What will be different to Better Battlelog?
In general, all. It's a whole new extension, fresh from scratch.
I really don't know what will come and what i will do.
All new development circle
With BBLog i fully controlled the development of BBLog. This will change, somehow.
Greaterfield is designed from scratch to collaborate on GitHub.
All themes and plugins will also be hosted on GitHub for a seamless developer experience.
The changes that made the step into the extension are controlled by me, in the first place. Maybe this will change.
Super-Raw-Early-Stage
You can get your hands on, right now. Theme support is implemented, pretty raw and dirty, but it should work.
The roadmap will be shown in the issues and wiki of github.
https://github.com/brainfoolong/greaterfield
A homepage also exist, but it will be pretty simple a will not contain any forums at all.


|
||||||||||
| PREV NEXT | FRAMES NO FRAMES |
| Packages that use Filter | |
|---|---|
| it.apice.sapere.api.ecolaws | This package contains the definition of SAPERE Ecolaws and relatives. |
| it.apice.sapere.api.ecolaws.compilers | This package contains entities capable of converting an Eco-law to SPAR(Q|U)L queries. |
| it.apice.sapere.api.ecolaws.filter.impl | This package contains the implementation of the SAPERE API (ecolaws.filter.impl). |
| it.apice.sapere.api.ecolaws.filters | This package contains the definition of SAPERE Ecolaw filters. |
| it.apice.sapere.api.ecolaws.impl | This package contains the implementation of the SAPERE API (ecolaws.impl). |
| it.apice.sapere.api.ecolaws.visitor | This package contains the definition of an Ecolaw visitor. |
| it.apice.sapere.api.ecolaws.visitors.impl | This package contains the implementation of the SAPERE API (ecolaws.visitors.impl). |
| Uses of Filter in it.apice.sapere.api.ecolaws |
|---|
| Methods in it.apice.sapere.api.ecolaws that return Filter | |
|---|---|
Filter |
Filter.clone()
Creates a clone of the filter. |
Filter[] |
ChemicalPattern.filters()
Retrieves all filters applied to this pattern. |
| Uses of Filter in it.apice.sapere.api.ecolaws.compilers |
|---|
| Methods in it.apice.sapere.api.ecolaws.compilers with parameters of type Filter | |
|---|---|
void |
EcolawToUpdTemplate.visit(Filter filter)
|
void |
EcolawToSPARQL.visit(Filter filt)
|
| Uses of Filter in it.apice.sapere.api.ecolaws.filter.impl |
|---|
| Classes in it.apice.sapere.api.ecolaws.filter.impl that implement Filter | |
|---|---|
class |
AssignFilterImpl
This class provides an implementation of the AssignFilter interface. |
class |
ClonesFilterImpl
This class provides an implementation of the ClonesFilter inteface. |
class |
CopyFilterImpl
This class implements CopyFilter interface. |
class |
ExtendsFilterImpl
This class provides an implementation of the ExtendsFilter inteface. |
class |
HasFilterImpl
This class provides an implementation of the HasFilter interface. |
class |
HasNotFilterImpl
This class provides an implementation of the HasNotFilter interface. |
class |
MatchFilterImpl
This class provides an implementation of the MatchFilter interface. |
class |
OpFilterImpl
This class provides an implementation of the OpFilter interface. |
| Methods in it.apice.sapere.api.ecolaws.filter.impl that return Filter | |
|---|---|
Filter |
OpFilterImpl.clone()
|
Filter |
MatchFilterImpl.clone()
|
Filter |
HasNotFilterImpl.clone()
|
Filter |
HasFilterImpl.clone()
|
Filter |
ExtendsFilterImpl.clone()
|
Filter |
CopyFilterImpl.clone()
|
Filter |
ClonesFilterImpl.clone()
|
Filter |
AssignFilterImpl.clone()
|
| Uses of Filter in it.apice.sapere.api.ecolaws.filters |
|---|
| Subinterfaces of Filter in it.apice.sapere.api.ecolaws.filters | |
|---|---|
interface |
AssignFilter
This interface models the ASSIGN filter. |
interface |
ClonesFilter
This interface models the CLONES filter. |
interface |
CopyFilter
This interface models a filter which will copy a SemanticDescription into another one. |
interface |
ExtendsFilter
This interface models the EXTENDS filter. |
interface |
HasFilter
This interface models the HAS filter. |
interface |
HasNotFilter
This interface models the HAS-NOT filter. |
interface |
MatchFilter
This interface models the MATCH filter. |
interface |
OpFilter
This interface models an OpFilter, which is a filter which applies an operator to a couple of operands: a property on the left and a list of values on the right. |
| Uses of Filter in it.apice.sapere.api.ecolaws.impl |
|---|
| Methods in it.apice.sapere.api.ecolaws.impl that return Filter | |
|---|---|
Filter[] |
ChemicalPatternImpl.filters()
|
| Uses of Filter in it.apice.sapere.api.ecolaws.visitor |
|---|
| Methods in it.apice.sapere.api.ecolaws.visitor with parameters of type Filter | |
|---|---|
void |
EcolawVisitor.visit(Filter filter)
Visits an Ecolaw's pattern's filter. |
| Uses of Filter in it.apice.sapere.api.ecolaws.visitors.impl |
|---|
| Methods in it.apice.sapere.api.ecolaws.visitors.impl with parameters of type Filter | |
|---|---|
protected void |
VarRetrieverVisitor.doVisit(Filter filter)
|
protected abstract void |
AbstractEcolawVisitor.doVisit(Filter filter)
Provides a custom handler for an eco-law's component. |
void |
AbstractEcolawVisitor.visit(Filter filter)
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES |


Let's play
jaipur
Start
×
How to Play
Each turn you can:
Take a single goods card from the market
Exchange at least two cards at the market
Sell as many cards as you want of one type of good
Good luck! 😄
You win!
😸
You lose!
😿
Draw!
🙀
Tokens
Your Score
Machine's Score
Total
Take
Sell
Ok!


"""Utilities related archives. """ import logging import os import shutil import stat import tarfile import zipfile from typing import Iterable, List, Optional from zipfile import ZipInfo from pip._internal.exceptions import InstallationError from pip._internal.utils.filetypes import ( BZ2_EXTENSIONS, TAR_EXTENSIONS, XZ_EXTENSIONS, ZIP_EXTENSIONS, ) from pip._internal.utils.misc import ensure_dir logger = logging.getLogger(__name__) SUPPORTED_EXTENSIONS = ZIP_EXTENSIONS + TAR_EXTENSIONS try: import bz2 # noqa SUPPORTED_EXTENSIONS += BZ2_EXTENSIONS except ImportError: logger.debug("bz2 module is not available") try: # Only for Python 3.3+ import lzma # noqa SUPPORTED_EXTENSIONS += XZ_EXTENSIONS except ImportError: logger.debug("lzma module is not available") def current_umask(): # type: () -> int """Get the current umask which involves having to set it temporarily.""" mask = os.umask(0) os.umask(mask) return mask def split_leading_dir(path): # type: (str) -> List[str] path = path.lstrip("/").lstrip("\\") if "/" in path and ( ("\\" in path and path.find("/") < path.find("\\")) or "\\" not in path ): return path.split("/", 1) elif "\\" in path: return path.split("\\", 1) else: return [path, ""] def has_leading_dir(paths): # type: (Iterable[str]) -> bool """Returns true if all the paths have the same leading path name (i.e., everything is in one subdirectory in an archive)""" common_prefix = None for path in paths: prefix, rest = split_leading_dir(path) if not prefix: return False elif common_prefix is None: common_prefix = prefix elif prefix != common_prefix: return False return True def is_within_directory(directory, target): # type: (str, str) -> bool """ Return true if the absolute path of target is within the directory """ abs_directory = os.path.abspath(directory) abs_target = os.path.abspath(target) prefix = os.path.commonprefix([abs_directory, abs_target]) return prefix == abs_directory def set_extracted_file_to_default_mode_plus_executable(path): # type: (str) -> None """ Make file present at path have execute for user/group/world (chmod +x) is no-op on windows per python docs """ os.chmod(path, (0o777 & ~current_umask() | 0o111)) def zip_item_is_executable(info): # type: (ZipInfo) -> bool mode = info.external_attr >> 16 # if mode and regular file and any execute permissions for # user/group/world? return bool(mode and stat.S_ISREG(mode) and mode & 0o111) def unzip_file(filename, location, flatten=True): # type: (str, str, bool) -> None """ Unzip the file (with path `filename`) to the destination `location`. All files are written based on system defaults and umask (i.e. permissions are not preserved), except that regular file members with any execute permissions (user, group, or world) have "chmod +x" applied after being written. Note that for windows, any execute changes using os.chmod are no-ops per the python docs. """ ensure_dir(location) zipfp = open(filename, "rb") try: zip = zipfile.ZipFile(zipfp, allowZip64=True) leading = has_leading_dir(zip.namelist()) and flatten for info in zip.infolist(): name = info.filename fn = name if leading: fn = split_leading_dir(name)[1] fn = os.path.join(location, fn) dir = os.path.dirname(fn) if not is_within_directory(location, fn): message = ( "The zip file ({}) has a file ({}) trying to install " "outside target directory ({})" ) raise InstallationError(message.format(filename, fn, location)) if fn.endswith("/") or fn.endswith("\\"): # A directory ensure_dir(fn) else: ensure_dir(dir) # Don't use read() to avoid allocating an arbitrarily large # chunk of memory for the file's content fp = zip.open(name) try: with open(fn, "wb") as destfp: shutil.copyfileobj(fp, destfp) finally: fp.close() if zip_item_is_executable(info): set_extracted_file_to_default_mode_plus_executable(fn) finally: zipfp.close() def untar_file(filename, location): # type: (str, str) -> None """ Untar the file (with path `filename`) to the destination `location`. All files are written based on system defaults and umask (i.e. permissions are not preserved), except that regular file members with any execute permissions (user, group, or world) have "chmod +x" applied after being written. Note that for windows, any execute changes using os.chmod are no-ops per the python docs. """ ensure_dir(location) if filename.lower().endswith(".gz") or filename.lower().endswith(".tgz"): mode = "r:gz" elif filename.lower().endswith(BZ2_EXTENSIONS): mode = "r:bz2" elif filename.lower().endswith(XZ_EXTENSIONS): mode = "r:xz" elif filename.lower().endswith(".tar"): mode = "r" else: logger.warning( "Cannot determine compression type for file %s", filename, ) mode = "r:*" tar = tarfile.open(filename, mode) try: leading = has_leading_dir([member.name for member in tar.getmembers()]) for member in tar.getmembers(): fn = member.name if leading: fn = split_leading_dir(fn)[1] path = os.path.join(location, fn) if not is_within_directory(location, path): message = ( "The tar file ({}) has a file ({}) trying to install " "outside target directory ({})" ) raise InstallationError(message.format(filename, path, location)) if member.isdir(): ensure_dir(path) elif member.issym(): try: # https://github.com/python/typeshed/issues/2673 tar._extract_member(member, path) # type: ignore except Exception as exc: # Some corrupt tar files seem to produce this # (specifically bad symlinks) logger.warning( "In the tar file %s the member %s is invalid: %s", filename, member.name, exc, ) continue else: try: fp = tar.extractfile(member) except (KeyError, AttributeError) as exc: # Some corrupt tar files seem to produce this # (specifically bad symlinks) logger.warning( "In the tar file %s the member %s is invalid: %s", filename, member.name, exc, ) continue ensure_dir(os.path.dirname(path)) assert fp is not None with open(path, "wb") as destfp: shutil.copyfileobj(fp, destfp) fp.close() # Update the timestamp (useful for cython compiled files) tar.utime(member, path) # member have any execute permissions for user/group/world? if member.mode & 0o111: set_extracted_file_to_default_mode_plus_executable(path) finally: tar.close() def unpack_file( filename, # type: str location, # type: str content_type=None, # type: Optional[str] ): # type: (...) -> None filename = os.path.realpath(filename) if ( content_type == "application/zip" or filename.lower().endswith(ZIP_EXTENSIONS) or zipfile.is_zipfile(filename) ): unzip_file(filename, location, flatten=not filename.endswith(".whl")) elif ( content_type == "application/x-gzip" or tarfile.is_tarfile(filename) or filename.lower().endswith(TAR_EXTENSIONS + BZ2_EXTENSIONS + XZ_EXTENSIONS) ): untar_file(filename, location) else: # FIXME: handle? # FIXME: magic signatures? logger.critical( "Cannot unpack file %s (downloaded from %s, content-type: %s); " "cannot detect archive format", filename, location, content_type, ) raise InstallationError(f"Cannot determine archive format of {location}")


public class PIDController extends SendableBase implements PIDInterface, Sendable
Creates a separate thread which reads the given PIDSource and takes care of the integral calculations, as well as writing the given PIDOutput.
This feedback controller runs in discrete time, so time deltas are not used in the integral and derivative calculations. Therefore, the sample rate affects the controller's behavior for a given set of PID constants.
| Modifier and Type | Class and Description |
|---|---|
class |
PIDController.AbsoluteTolerance |
class |
PIDController.NullTolerance
Used internally for when Tolerance hasn't been set.
|
class |
PIDController.PercentageTolerance |
static interface |
PIDController.Tolerance
Tolerance is the type of tolerance used to specify if the PID controller is on target.
|
| Modifier and Type | Field and Description |
|---|---|
static double |
kDefaultPeriod |
protected PIDSource |
m_pidInput |
protected PIDOutput |
m_pidOutput |
| Constructor and Description |
|---|
PIDController(double Kp,
double Ki,
double Kd,
double Kf,
PIDSource source,
PIDOutput output)
Allocate a PID object with the given constants for P, I, D, using a 50ms period.
|
PIDController(double Kp,
double Ki,
double Kd,
double Kf,
PIDSource source,
PIDOutput output,
double period)
Allocate a PID object with the given constants for P, I, D, and F.
|
PIDController(double Kp,
double Ki,
double Kd,
PIDSource source,
PIDOutput output)
Allocate a PID object with the given constants for P, I, D, using a 50ms period.
|
PIDController(double Kp,
double Ki,
double Kd,
PIDSource source,
PIDOutput output,
double period)
Allocate a PID object with the given constants for P, I, D and period.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
calculate()
Read the input, calculate the output accordingly, and write to the output.
|
protected double |
calculateFeedForward()
Calculate the feed forward term.
|
void |
disable()
Stop running the PIDController, this sets the output to zero before stopping.
|
void |
enable()
Begin running the PIDController.
|
void |
free()
Free the PID object.
|
double |
get()
Return the current PID result This is always centered on zero and constrained the the max and
min outs.
|
double |
getAvgError()
Deprecated.
Use getError(), which is now already filtered.
|
protected double |
getContinuousError(double error)
Wraps error around for continuous inputs.
|
double |
getD()
Get the Differential coefficient.
|
double |
getDeltaSetpoint()
Returns the change in setpoint over time of the PIDController.
|
double |
getError()
Returns the current difference of the input from the setpoint.
|
double |
getF()
Get the Feed forward coefficient.
|
double |
getI()
Get the Integral coefficient.
|
double |
getP()
Get the Proportional coefficient.
|
double |
getSetpoint()
Returns the current setpoint of the PIDController.
|
void |
initSendable(SendableBuilder builder)
Initializes this
Sendable object. |
boolean |
isEnabled()
Return true if PIDController is enabled.
|
boolean |
onTarget()
Return true if the error is within the percentage of the total input range, determined by
setTolerance.
|
void |
reset()
Reset the previous error,, the integral term, and disable the controller.
|
void |
setAbsoluteTolerance(double absvalue)
Set the absolute error which is considered tolerable for use with OnTarget.
|
void |
setContinuous()
Set the PID controller to consider the input to be continuous, Rather then using the max and
min input range as constraints, it considers them to be the same point and automatically
calculates the shortest route to the setpoint.
|
void |
setContinuous(boolean continuous)
Set the PID controller to consider the input to be continuous, Rather then using the max and
min input range as constraints, it considers them to be the same point and automatically
calculates the shortest route to the setpoint.
|
void |
setD(double d)
Set the Differential coefficient of the PID controller gain.
|
void |
setEnabled(boolean enable)
Set the enabled state of the PIDController.
|
void |
setF(double f)
Set the Feed forward coefficient of the PID controller gain.
|
void |
setI(double i)
Set the Integral coefficient of the PID controller gain.
|
void |
setInputRange(double minimumInput,
double maximumInput)
Sets the maximum and minimum values expected from the input and setpoint.
|
void |
setOutputRange(double minimumOutput,
double maximumOutput)
Sets the minimum and maximum values to write.
|
void |
setP(double p)
Set the Proportional coefficient of the PID controller gain.
|
void |
setPercentTolerance(double percentage)
Set the percentage error which is considered tolerable for use with OnTarget.
|
void |
setPID(double p,
double i,
double d)
Set the PID Controller gain parameters.
|
void |
setPID(double p,
double i,
double d,
double f)
Set the PID Controller gain parameters.
|
void |
setSetpoint(double setpoint)
Set the setpoint for the PIDController.
|
void |
setTolerance(PIDController.Tolerance tolerance)
Deprecated.
Use setPercentTolerance() instead.
|
void |
setToleranceBuffer(int bufLength)
Deprecated.
Use a LinearDigitalFilter as the input.
|
addChild, getName, getSubsystem, setName, setName, setName, setSubsystem
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName, getSubsystem, setName, setName, setSubsystem
public static final double kDefaultPeriod
protected PIDSource m_pidInput
protected PIDOutput m_pidOutput
public PIDController(double Kp, double Ki, double Kd, double Kf, PIDSource source, PIDOutput output, double period)
Kp
- the proportional coefficientKi
- the integral coefficientKd
- the derivative coefficientKf
- the feed forward termsource
- The PIDSource object that is used to get valuesoutput
- The PIDOutput object that is set to the output percentageperiod
- the loop time for doing calculations. This particularly effects calculations of
the integral and differential terms. The default is 50ms.public PIDController(double Kp, double Ki, double Kd, PIDSource source, PIDOutput output, double period)
Kp
- the proportional coefficientKi
- the integral coefficientKd
- the derivative coefficientsource
- the PIDSource object that is used to get valuesoutput
- the PIDOutput object that is set to the output percentageperiod
- the loop time for doing calculations. This particularly effects calculations of
the integral and differential terms. The default is 50ms.public PIDController(double Kp, double Ki, double Kd, PIDSource source, PIDOutput output)
Kp
- the proportional coefficientKi
- the integral coefficientKd
- the derivative coefficientsource
- The PIDSource object that is used to get valuesoutput
- The PIDOutput object that is set to the output percentagepublic PIDController(double Kp, double Ki, double Kd, double Kf, PIDSource source, PIDOutput output)
Kp
- the proportional coefficientKi
- the integral coefficientKd
- the derivative coefficientKf
- the feed forward termsource
- The PIDSource object that is used to get valuesoutput
- The PIDOutput object that is set to the output percentagepublic void free()
free
in class SendableBase
protected void calculate()
protected double calculateFeedForward()
Both of the provided feed forward calculations are velocity feed forwards. If a different feed forward calculation is desired, the user can override this function and provide his or her own. This function does no synchronization because the PIDController class only calls it in synchronized code, so be careful if calling it oneself.
If a velocity PID controller is being used, the F term should be set to 1 over the maximum setpoint for the output. If a position PID controller is being used, the F term should be set to 1 over the maximum speed for the output measured in setpoint units per this controller's update period (see the default period in this class's constructor).
public void setPID(double p, double i, double d)
setPID
in interface PIDInterface
p
- Proportional coefficienti
- Integral coefficientd
- Differential coefficientpublic void setPID(double p, double i, double d, double f)
p
- Proportional coefficienti
- Integral coefficientd
- Differential coefficientf
- Feed forward coefficientpublic void setP(double p)
p
- Proportional coefficientpublic void setI(double i)
i
- Integral coefficientpublic void setD(double d)
d
- differential coefficientpublic void setF(double f)
f
- feed forward coefficientpublic double getP()
getP
in interface PIDInterface
public double getI()
getI
in interface PIDInterface
public double getD()
getD
in interface PIDInterface
public double getF()
public double get()
public void setContinuous(boolean continuous)
continuous
- Set to true turns on continuous, false turns off continuouspublic void setContinuous()
public void setInputRange(double minimumInput, double maximumInput)
minimumInput
- the minimum value expected from the inputmaximumInput
- the maximum value expected from the inputpublic void setOutputRange(double minimumOutput, double maximumOutput)
minimumOutput
- the minimum percentage to write to the outputmaximumOutput
- the maximum percentage to write to the outputpublic void setSetpoint(double setpoint)
setSetpoint
in interface PIDInterface
setpoint
- the desired setpointpublic double getSetpoint()
getSetpoint
in interface PIDInterface
public double getDeltaSetpoint()
public double getError()
getError
in interface PIDInterface
@Deprecated public double getAvgError()
@Deprecated public void setTolerance(PIDController.Tolerance tolerance)
tolerance
- A tolerance object of the right type, e.g. PercentTolerance or
AbsoluteTolerancepublic void setAbsoluteTolerance(double absvalue)
absvalue
- absolute error which is tolerable in the units of the input objectpublic void setPercentTolerance(double percentage)
percentage
- percent error which is tolerable@Deprecated public void setToleranceBuffer(int bufLength)
bufLength
- Number of previous cycles to average.public boolean onTarget()
public void enable()
enable
in interface PIDInterface
public void disable()
disable
in interface PIDInterface
public void setEnabled(boolean enable)
public boolean isEnabled()
isEnabled
in interface PIDInterface
public void reset()
reset
in interface PIDInterface
public void initSendable(SendableBuilder builder)
Sendable
Sendable
object.initSendable
in interface Sendable
builder
- sendable builderprotected double getContinuousError(double error)
error
- The current error of the PID controller.


wiki / xorg / x11vnc Edit this page
Edited (8a55f77) at 2021-07-02 by Dilyn Corner
X11VNC [0]
________________________________________________________________________________
x11vnc allows one to view remotely and interact with real X displays (i.e. a
display corresponding to a physical monitor, keyboard, and mouse) with any VNC
viewer.
Dependencies
________________________________________________________________________________
Refer to the @/xorg/xorg-server page for X server and Window Manager setup and
configuration.
Configuration
________________________________________________________________________________
First verify that you have x11vnc installed:
+------------------------------------------------------------------------------+
| |
| $ kiss b x11vnc && kiss i x11vnc |
| |
+------------------------------------------------------------------------------+
Assuming that you have an X session already running, you can start x11vnc from
a virtual terminal:
+------------------------------------------------------------------------------+
| |
| $ x11vnc -forever |
| |
+------------------------------------------------------------------------------+
The "-forever" switch is not required, but prevents the x11vnc from exiting at
the end of a client session. For more information on this switch or additional
switch options, refer to the man page [1].
Tips and Tricks
________________________________________________________________________________
* If x11vnc fails to start or you are not operating from a virtual terminal
(e.g. over SSH), you may also need to specify the xauthority file location in
addition to the display:
+----------------------------------------------------------------------------+
| "sx" example, configured per #/wiki/xorg/sx |
+----------------------------------------------------------------------------+
| |
| $ x11vnc -forever -display :1 -auth /home/USER/.config/sx/xauthority |
| |
+----------------------------------------------------------------------------+
| "startx" example, configured per #/wiki/xorg/startx |
+----------------------------------------------------------------------------+
| |
| $ x11vnc -forever -display :1 -auth /home/USER/.Xauthority |
| |
+----------------------------------------------------------------------------+
Note: Remember to replace USER with the name of the regular user.
* You can start x11vnc in the background by passing the optional "-bg" switch.
References
________________________________________________________________________________
[0] https://github.com/LibVNC/x11vnc
[1] https://linux.die.net/man/1/x11vnc
________________________________________________________________________________
Dylan Araps (C) 2019-2020
kiss-community (C) 2020-2021
Dilyn Corner (C) 2021
Linux(R) is the registered trademark of Linus Torvalds in the U.S. and
other countries.


{{drug.label.indications_and_usage[0] | indicationShort}}
{{drug.stop_use[0]}}
Route: {{drug.routes.join(', ')}}
Label noting interactions with:


Hodrick-Prescott Filter decomposes a time series\(y_t\) into two components: the cyclical part(which is short-term) and the trend part(which is long term).
\[y_t=x _t +c_t\]The filter is the solution to the following optimization problem for \(x_t\)
\[\min _{x_t}\left[\sum_{t=1}^n(y_t-x_t)^2+\lambda\sum_{t=2}^{n-1}[(x_{t+1}-x_t)-(x_{t}-x_{t-1})^2] \right]\]The second term is the discrete derivative of the trend xt which characterizes the smoothness of the curve. We can rewrite the above formula in vector form:
\[\min_{\bf x}{\parallel {\bf{y}}-{\bf{x}}\parallel}_2^2+\lambda {\parallel D\bf x\parallel}_2^2\]where \({\bf y}=(y_1,y_2,...,y_n),{\bf x}=(x_1,x_2,...,x_n)\in {\rm I\!R}^n\),\(\parallel\cdot\parallel_2\) is the Euclidean norm. D is the (n-2)*n matrix:
\[ \left[ \begin{matrix} 1 & -2 & 1 & \\ & 1 & -2 & 1 \\ & & & \ddots &\\ & & & 1 & -2 & 1 \\ & & & & 1 & -2 & 1 \\ \end{matrix} \right] \]The solution of this optimization problem is given by solving the following linear system:
\[y=(I+2\lambda D^TD)^{-1}x\]def hpfilter(self,X, lamb=1600): X = np.asarray(X, float) if X.ndim > 1: X = X.squeeze() nobs = len(X) I = sparse.eye(nobs,nobs) offsets = np.array([0,1,2]) data = np.repeat([[1.],[-2.],[1.]], nobs, axis=1) K = sparse.dia_matrix((data, offsets), shape=(nobs-2,nobs)) use_umfpack = True self.trend = spsolve(I+lamb*K.T.dot(K), X,use_umfpack=use_umfpack) cycle = X - self.trend


CONTRADIS
"CONtaminant Transport due to Diffusion in Soil"
CONTRADIS is a software package that is built for the purpose of analyzing the experimental readings obtained from various methods that have been used by the previous studies in the field of contaminant transport in soils. There are different methods that use different parameters to study the flow of different ions/ contaminants through a given sample of soil. This package demonstrates two of those methods, namely, Through Diffusion technique and Half-Cell Method.
This software is also capable of using the contaminant transport data from experiments and predicting the diffusion and linear sorption parameters of the soils, as used in Fick’s second law. The software is verified on the synthetic data obtained from calculated concentration values as an input data.
Tags:
Particle Swarm Optimization
Glowworm Swarm Optimization
Java


Continue the pattern by dragging a planet from the planet palette to the target marked by the question mark.
If you miss the target, the planet will get lost in space!
If the planet you drop onto the target does not match the pattern, it will bounce back to the palette.
You may also select a planet by typing the initial of its color or by its numerical position in the palette, for example 'r' or '1' for the red planet.
Continue the pattern by selecting a planet from the palette.
When you are done, all the planets will orbit around a star!
You may create your own pattern by changing the option in the select box.


<area>
The <area> element describes a linkable area within an <imagemap>. It allows the author to specify a shape within the image, the coordinates of that shape, and a link target for the area.
<imagemap>
Category: Utilities elements


Selector: mdc-slider
Exported as: mdcSlider| Name | Description |
|---|---|
| min: number | The minimum value that the slider can have. |
| max: number | The maximum value that the slider can have. |
| value: number | The current value of the slider. |
| step: number | Specifies the increments at which a slider value can be set. |
| discrete: boolean | Discrete sliders allow users to select a specific value from a range. (Default: false) |
| markers: boolean | Show markers on track. Discrete sliders support displaying markers on their tracks. (Default: false) |
| disabled: boolean | Disables the slider. |
| tabIndex: number | Set the underlying tab index of the component. (Default is 0) |
| layout() | Recomputes the dimensions and re-lays out the component. This should be called if the dimensions of the slider itself or any of its parent elements change programmatically (it is called automatically on resize). |
| change(source: MdcSlider, value: number) | Broadcast when slider value is changed and committed by way of a user event, e.g. when a user stops dragging the slider or changes the value using the arrow keys. |
| input(source: MdcSlider, value: number) | Broadcasts when slider value is changed by way of a user event, e.g. when a user is dragging the slider or changing the value using the arrow keys. |
| valueChange(value: number) | Emits when the value of the slider changes. |


{% extends 'base.html' %} {% block head %}
Welcome to the VTech Blog! Here we'll taking about everything computer science.
Go visit us at our website VTech.
It uses utility classes for typography and spacing to space content out within the larger container.


Holocaust survivors meet their saviour 75 years later
JERUSALEM, Nov 4 — Eyes brimming with tears, 92-year-old Melpomeni Dina Gianopoulou was reunited yesterday with Jewish siblings she had helped hide from Nazis in her native Greece during World War II.
Holocaust survivor Sarah Yanai, 86, had tears in her eyes as she held Melpomeni’s hand.
“It is a very emotional feeling, I can’t describe it,” she said.
“We were hidden in her house. She saved all my family. Six persons... you can’t imagine how dangerous it was for her, for her family, to keep us all,” she added.
“What can I say. They saved our lives.”
The highly emotional meeting took place at the Hall of Names, in Jerusalem’s Yad Vashem Holocaust memorial centre, a memorial to millions of Jews killed in the Holocaust.
During World War II, Melpomeni and her two sisters first hid the Mordechai family in a mosque before moving them to their own home in Veria, a small town near Thessaloniki, where they stayed for two years.
Sarah’s brother Yossi Mor was barely two months old at the time.
He is now 77, but still carries with him stories he was told about their life in hiding.
Mor said their situation was “deteriorating” in the mosque, especially that of his small brother Shmuel, who had fallen ill.
But he said the Greek sisters made a daring attempt to rescue him.
“They put him on their shoulders and they walked to the hospital in the middle of the night. It was quite far,” Mor said.
Some days later, the Greek sisters went back to the hospital to visit Shmuel but found him covered with a white sheet.
“He was dead,” said Mor.
Yossi Dagan, one of Mor’s grandchildren, said he grew up hearing this story over and over again.
“For me, the three Greek sisters always symbolised heroism, a model of life,” said Dagan, 28.
Yesterday, Sarah and Yossi brought their children and grandchildren to meet their saviour.
In all, more than 20 people, young and old, stood in front of the white-haired lady before hugging her, one by one.
“I would like to have saved more,” Melpomeni said in Greek.
In 1994, Yad Vashem honoured Melpomeni and her sisters by granting them the title of “Righteous Among the Nations” given to those who helped save Jews during World War II.
Over the years, Yad Vashem has given the award, on behalf of the State of Israel, to more than 27,000 non-Jewish people around the world as a sign of gratitude for taking huge risks to save Jewish lives.
Between 1939 and 1945, the Nazi regime killed some six million Jews, more than a third of the Jewish population at the time. — AFP


{{todo.text}}
Now you see me
Hover your mouse over me for a few seconds to see my dynamically bound title!


--- layout: post title: Day 1! date: 2018-11-06 00:17:07.000000000 +05:30 type: post parent_id: '0' published: true password: '' status: publish tags: [Daily Logs] meta: timeline_notification: '1541443630' _rest_api_published: '1' _rest_api_client_id: "-1" _publicize_job_id: '23950795481' author: login: priyankasaggu119 email<EMAIL_ADDRESS>display_name: priyankasaggu119 first_name: '' last_name: '' permalink: "/2018/11/06/day-1/" ---
November 5, 2018
Today was a normal day, spent well at my "Home Sweet Home" :)
Tried many things though.
Planning to be a part of some new but active open source community to promote community-based learning. Will write about it in the next blog, if get any progress towards that.
At last, thanks a lot to my mentor, Jason Braganza, who insisted me 1000 times to write but I, not being a good student, never wrote anything. But today is the day finally.
Hope to continue with it. \o/


Open source contributions to codebases of MetaMask, Gitcoin and Ethereum.
I enjoy working in Python, Javascript, HTML/CSS, Node, Django, Express, React, Redux, PostgreSQL, and Mongodb.
I've been known to tinker with C, Go, and Rust.
I'm always working on different projects of my own on Github, such as an algorithm NPM package called Plentiful.
Working with Web Components has never been easier with Custom Components.
Need a new CSS Framework? Checkout Light a minimal, modern css framework.
Have a hand at this BlackJack game I built with React.


ORCID account is linked to SURFconext
You have successfully linked your institutional account with your ORCID account.
At
https://profile.surfconext.nl
you can see or revoke this link.