The Unix operating system is a collection of programs which control your computer, managing its resources for all of the other programs, helping and protecting them from one another. You can interact with Unix (and thus interact with your computer) using a command shell (sometimes called a terminal). There are different flavors of command shells (I recommend oh-my-zsh); we'll be using the Bash shell because this is the default on Mac OS X, and on many flavors of Linux.
Let's poke around the file system - a hierarchy of directories which can contain files and other directories (and more, which we'll discuss later). Using the cd (change directory) command, go to your home directory (the tilde character serves as a shortcut for this):
Print out the current directory (also called the working directory):
We can can change our current directory, using either relative paths (file paths relative to the current directory) or absolute paths (file paths relative to the root of the file system):
Using the ls command displays the contents of the current directory:
Notice that the behavior of commands can be modified with options (also called switches). Some command options even take their own arguments. Different commands have different options. In the above example, we set the following options on the ls command:
| l | displays extended information |
| A | displays hidden files and directories (files and directories prepended with a period) |
| p | appends a slash to directory names |
The output of ls -lAp displays a wealth of information:
We can also list the contents of another directory, and filter the results:
Note the use of the * wildcard character, which matches any number of characters (the ? wildcard character matches any single character).
Commands like cd and ls are themselves small programs. We can find their location within the file system by using the which utility:
We can put anything anywhere we choose within the file system, but by convention certain types of files are located in certain directories:
| / | The root directory |
| /bin | Shell commands, including the various shells themselves (bash, zsh, csh, ksh) |
| /dev | Device files (CD-ROM drive, USB devices, etc.) |
| /etc | Common location for system and application-specific configuration files (e.g., hosts, ssh_config, etc.) |
| /opt/local | Common utilities (git, curl, perl, ruby, ssh, etc.) |
| /private | Some system programs, and SSH configuration files |
| /sbin | System utilities, such as fsck |
| /usr/bin | More essential programs (vi, emacs, grep, etc.) |
| /usr/sbin | More essential programs (chown, cron, etc.) |
| /usr/local/... | Still more essential programs (for example, Homebrew stores downloaded programs in /usr/local/Cellar |
| /var | Common location for files which vary in size over time: log files, database file, etc. |
| /Applications | Mac OS X - Default location of application bundles |
| /Developer | Mac OS X - Developer SDK |
| /Library | Mac OS X - Contains third party tools and frameworks such as Java, Ruby and Python, as well as application-specific data and settings |
| /System/Library | Mac OS X - Contains application-specific data and settings |
| /Users | User home directories |
Let's organize the Documents directory:
We'll create a spot for all of our text files by making a directory where we'll collect our *.txt files (the p option enables us to specify an entire path, creating any intermediate directories as needed):
Move all of the text files in the current directory (that is, any files whose names match the pattern *.txt) to our new directory:
Wait a minute - actually, we don't want to lose these documents while we're experimenting, so we'll copy them back to where they were (which, in this case, is simply the current directory):
In fact, let's start over - we'll remove the directory we just created, along with anything in it (the r option recursively removes any child directories or files):
Sometime we don't want to make a copy; we just want to create a shortcut by creating a link:
This creates a hard link. Alternately, we can create a symbolic link (or "soft link"):
Hard links and symbolic links behave identically for most purposes. The difference is that a hard link points at the inode (small data structure in ) of a file, whereas a symbolic link simply contains the name of the file to which it is linked (in other words, a pointer to a pointer of the inode of a file). Most filesystems do not allow hard links to directories. Hard links are also limited to the local filesystem. So whether you choose to create a hard link or a soft link will ordinarily be determined by the type of entity to which you're linking, and how you're using that link (e.g., if you're creating a link which you wish to have persisted in a version control system).
 Fortunately, the shell provides some relief:
| ctrl-C | Stop the current command |
| <up/down arrows> | Go through the history of recently executed commands |
| ctrl-R | Search backwards through your command history |
| tab | Completes the path or command |
| tab tab | Displays all possible path or command completions |
| ctrl-S | Pause output |
| ctrl-Q | Resume output |
| ctrl-A | Go to the beginning of the line |
| ctrl-E | Go to the end of the line |
| ctrl-U | Deletes from the cursor to the beginning of the line |
| ctrl-K | Deletes from the cursor to the end of the line |
Make yourself use these shortcuts when opportunities present themselves, and they'll soon be a part of your muscle memory.
Security and permissions in UNIX is a large topic; for now it's sufficient to know that every file has mode bits which determine the read, write and execute permissions for the file's owner, the file owner's user group, and everyone else. We can change these mode bits using the chmod (change mode) command:
We can also change the owner of a file:
Note that in the previous example...
sudo...
One of the greatest features of the command shell is the ability to feed the output of commands as the input to files or other commands, and vice-versa:
| < | Read in from file |
| > | Write out to file |
| | | Pipe output from one process to another |
| >> | Append to an existing file |
| & | Execute the process in the background |
The ability to "pipe" input and output from one program to another is really a manifestation of a larger philosophy which underpins much of Unix: small, simple things which do one thing well, which in turn can be combined to do more complex things. For example:
As a concrete example, consider this use of the xargs command, which applies a command to each line of output fed to it by a different command:
xargs...?
sort
Display the contents of one or more files with less (because less is more):
less has useful commands for navigating within files:
| <space> | Next page |
| <return> | Next line |
| <n>f | move forward <n> lines |
| <n>b | Move backwards <n> lines |
| /<word> | Search forward for <word> |
| ?<word> | Search backwards for <word> |
| v | Jump into vi editor |
| :n | Go to the next file (if we opened multiple files) |
| :p | Go to the previous file (if we opened multiple files) |
| q | Quit |
The big dogs are vi and emacs, along with various lighter-weight alternatives (pico, for example). These tools are too rich to explore in any depth here, but we can quickly give ourselves enough information to be dangerous...
vi operates in two very distinct modes: command mode, and entry mode. When you first open vi, you are in command mode. In this mode, typing i or a will drop you into entry mode, which enables us to actually enter text. Hitting the esc key at any time will drop us back into command mode, in which we can actually run commands. The strength of vi is its simplicity, ubiquity, and exceptionally powerful text processing tools.
| i | Insert | Go into entry mode, beginning at the current cursor location |
| a | Append | Go into entry mode, beginning at the current cursor location |
| :q! | Quit | Abandon any changes since the last save, and exit vi |
| ZZ | Save and exit | Save the current file and exit vi |
emacs is an exceptionally powerful text editor which has a built in extension mechanism, enabling power users to write their own macros to accomplish just about anything. In contrast to vi, emacs is more similar to modern word processors, in that rather than have a separate "command mode", emacs has elaborate key combinations (called "chords") which enable users to process text while still in "entry mode".
| XXX | TBD | Do the thing |
Unix gives us two essential search tools: find, which finds files and directories which match certain search criteria, and grep, which finds files containing certain text. To find one or more files with a specific name within the current directory:
Apply a unix command to a set of files:
This command will search in the current directory and all sub directories. All files named rc.conf will be processed by the chmod -o+r command. The argument '{}' inserts each found file into the chmod command line. The \; argument indicates the exec command line has ended.
The end results of this command is all rc.conf files have the other permissions set to read access (assuming the current user is the owner of the file).
How to apply a complex selection of files (-o and -a).
This command will search in the /usr/src directory and all sub directories. All files that are of the form '*,v' and '.*,v' are excluded. Important arguments to note are:
| -not | the negation of the expression that follows |
| \( | the start of a complex expression. |
| \) | the end of a complex expression. |
| -o | a logical or of a complex expression (in this case the complex expression is all files like '*,v' or '.*,v') |
The above example is shows how to select all file that are not part of the RCS system. This is important when you want go through a source tree and modify all the source files... but ... you don't want to affect the RCS version control files.
How to search for a string in a selection of files (-exec grep ...). > find . -exec grep "www.athabasca" '{}' \; -print This command will search in the current directory and all sub directories. All files that contain the string will have their path printed to standard output.To effectively use grep (and many other commands), you need to know some regular expressions. A regular expression (or "regex") is simply a pattern which can be applied to some block of text to return all of the character sequences within that block of text which match the specified pattern:
TODO - Display standard text, with appropriate highlighting for each case| . | Matches any single character | b.t matches bat and but |
| ^ | Anchors to the beginning | |
| $ | Anchors to the end | |
| A | Matches any... | |
| a | Matches any single alphabetic character | |
| \d | Matches any single digit | |
| \D | Matches any single character NOT a digit | |
| \w | Matches any word (a set of characters separated from other sets of characters by whitespace) | |
| [xy7] | Matches any one of the characters 'x', 'y' or '7' | |
| [A-E] | Matches the range of characters from 'A' through 'E' | |
| [^A-E] | ||
| X? | Matches X zero or one time | |
| X* | Matches X zero or more times | |
| X+ | Matches X one or more times | |
| X{n} | Matches X exactly n times | |
| X{n,m} | Matches X n through m times | |
| (X|Y) | Matches X or Y |
The operating system allocates a process to run any given program. The OS can (and does) run many processes simultaneously, and is responsible for allocating resources (CPU, memory, etc.) to these processes, as well as ensuring that processes do not unintentionally (or maliciously) interfere with one another. The ps command shows the currently running processes (the A option displays all processes, not just those owned by the current user):
Processes have owners, and thus also have permissions... TBD
We create a new process simply by running a program (recall that appending an ampersand to a command spawns a child process for that command):
Now if we list the currently running processes, we would expect to see our Calculator process. Here we'll only display the processes that we own:
As we create, so can we destroy. The kill command destroys a process:
| vi | The primary Unix text editor |
| emacs | The other primary Unix text editor |
| pico | Yet another text editor |
| cron | Job scheduler |
| tar | The standard compression/decompression utility |
| wget | command-line http client |
| curl | wget on steroids |
| telnet | Open a shell on another computer |
| ftp | Copy files to and from another computer |
| ssh | Open a secure shell on another computer |
| scp | Securely copy files over SSH |
| rsync |
| cal | |
| date | |
| netstat | |
| ifconfig |
| cal | |
| date | |
| netstat | |
| ifconfig |
If you want detailed documentation for a given command, check out its man(ual) page:
...and so on, including detailed descriptions of the various options, expected arguments, and common usage scenarios.
There are a variety of other configuration files which customize your environment, depending on the shell and applications you use. Configuration filenames normally begin with a period, which tells the shell (and most GUI file managers) to hide them by default. The Bash shell itself is configured (per user) within the user's .bash_profile file:
.bash_profile is a simple shell script, a file where each line is executed as if it were entered at the command prompt. This enables us to do all sorts of things, like customizing the command prompt (using the built-in system property PS1):
...or creating aliases, which are shortcuts for more complicated commands. For example, if we find ourselves always typing in ls -lAp, we can add the following line to our .bash_profile:


ui/ux design / prototype / logo
Mindu is an educational mobile app prototype that addresses UN Sustainable Development Goal target 3.4 by promoting mental health and well-being. The app takes users through an interactive learning experience while reinforcing material through weekly challenges.
The friendly and minimal design of the Mindu app makes it easy to navigate, allowing many users to learn about their mental health and discover simple ways to improve it through lifestyle and nutrition.


Additional AWS Resources
Additional AWS resources, referred to as "addons" in the CLI, are any additional AWS services that a service manifest does not integrate by default. For example, an addon can be a DynamoDB table or S3 bucket that your service needs to read or write to.
How do I add an S3 bucket or DDB Table?
Copilot provides the following commands to help you create certain kinds of addons:
storage init
will create a DynamoDB table or S3 bucket.
You can run copilot storage init
from your workspace and be guided through some questions to help you set up these resources.
How to do I add other resources?
For other types of addons, you can add your own custom CloudFormation templates according to the following instructions.
Let's say you have a service named webhook
in your workspace:
.
└── copilot
└── webhook
└── manifest.yml
webhook
. Then under the webhook/
directory, create a new addons/
directory and add a CloudFormation template for your instance.
.
└── copilot
└── webhook
├── addons
│ └── mytable-ddb.yaml
└── manifest.yaml
addons/
directory represents a separate addon and is represented as an AWS CloudFormation (CFN) template. For example, if we want to also add an S3 bucket addon to our service then we could either run storage init
or create our own custom, separate mybucket-s3.yaml
file.
When your service gets deployed, Copilot merges all these files into a single AWS CloudFormation template and creates a nested stack under your service's stack.
What does an addon template look like?
An addon template can be any valid CloudFormation template.
However, by default, Copilot will pass the App
, Env
, and Name
Parameters; you can customize your resource properties with Conditions or Mappings if you wish to.
If you need to access your Resources from your ECS task, make sure to:
- Define an IAM ManagedPolicy resource in your template that holds the permissions for your task and add an Output so that the permission is injected to your ECS Task Role.
- Create an Output for any value that you want to be injected as an environment variable to your ECS tasks.
Here is an example template layout for a DynamoDB table addon:
# You can use any of these parameters to create conditions or mappings in your template.
Parameters:
App:
Type: String
Description: Your application's name.
Env:
Type: String
Description: The environment name your service, job, or workflow is being deployed to.
Name:
Type: String
Description: The name of the service, job, or workflow being deployed.
Resources:
# Create your resource here, such as an AWS::DynamoDB::Table:
# MyTable:
# Type: AWS::DynamoDB::Table
# Properties:
# ...
# 1. In addition to your resource, if you need to access the resource from your ECS task
# then you need to create an AWS::IAM::ManagedPolicy that holds the permissions for your resource.
#
# For example, below is a sample policy for MyTable:
MyTableAccessPolicy:
Type: AWS::IAM::ManagedPolicy
Properties:
PolicyDocument:
Version: 2012-10-17
Statement:
- Sid: DDBActions
Effect: Allow
Action:
- dynamodb:BatchGet*
- dynamodb:DescribeStream
- dynamodb:DescribeTable
- dynamodb:Get*
- dynamodb:Query
- dynamodb:Scan
- dynamodb:BatchWrite*
- dynamodb:Create*
- dynamodb:Delete*
- dynamodb:Update*
- dynamodb:PutItem
Resource: !Sub ${ MyTable.Arn}
Outputs:
# 2. If you want to inject a property of your resource as an environment variable to your ECS task,
# then you need to define an output for it.
#
# For example, the output MyTableName will be injected in capital snake case, MY_TABLE_NAME, to your task.
MyTableName:
Description: "The name of this DynamoDB."
Value: !Ref MyTable
# 1. You also need to output the IAM ManagedPolicy so that Copilot can inject it to your ECS task role.
MyTableAccessPolicyArn:
Description: "The ARN of the ManagedPolicy to attach to the task role."
Value: !Ref MyTableAccessPolicy
On your next release, Copilot will include this template as a nested stack under your service!
Info
We recommend following Amazon IAM best practices while defining AWS Managed Policies for the additional resources, including:
- Grant least privilege to the policies defined in your addons/ directory.
- Use policy conditions for extra security to restrict your policies to access only the resources defined in your
addons/
directory.


Detail
FSAC Assessment
HH Assessment
HH Poor Before
HH Poor After
% Percentage
{{beneficiary.hh_assements_percentage}}%


|
|
|
|
Feedback
We welcome any suggestions for improving the Magic Library. Feel free to offer
any constructive comments that you feel would enhance future revisions. These may
range from minor changes for improving ease-of-use to new major areas of functionality.
Please also feel free to comment on how code could be improved using alternative techniques.
Email<EMAIL_ADDRESS>Bug Reports
Please report any bugs found whilst using the library no matter how trivial they may seem.
It is tempting to assume that an obvious problem must have already been notified by other users but
this is often not the case. If possible give the version number of the library along with as much
detail as possible about how to reproduce the problem. Often a problem occurs easily for an end user
but proves very difficult to reproduce on another system.
Email<EMAIL_ADDRESS>Website problems
If you have problems accessing any part of the website or notice
any broken links then please notify the webmaster as soon as
possible so it can be rectified.
Email<EMAIL_ADDRESS>|
|
|
|
|


StuyMUN
Resources
Conferences
Secretariat
About
Resources
Conferences
Secretariat
About
StuyMUN
Upper Secretariat
Secretary-General
Ian Graham Martinez
Undersecretary-General of Personnel
Olivia Tedesco
Undersecretary-General of Administration
Justin Murdock
Justin Murdock
Justin Murdock
Justin Murdock
Lower Secretariat
Secretary-General
Ian Graham Martinez
Undersecretary-General of Personnel
Olivia Tedesco
Undersecretary-General of Administration
Justin Murdock
Justin Murdock
Justin Murdock
Justin Murdock


In the last
LOADING...
videos...
Most Watched Video:
Most Watched Channel:
LOADING...
LOADING...
Most Watched Non Music Channel:
LOADING...
Top Categories:
LOADING...
Taken from your top 7 watched channel's most watched videos.
Top Videos Watched:
Top Channels Watched:
Exclude Music
This only excludes the music category, some music is not under the category of music
LOADING...
Load More
LOADING...


| DOSE: |
2 hits |
oral |
LSD |
(blotter / tab) |
| |
|
smoked |
Cannabis |
(plant material) |
I'm 17 years old. The night started off with my friends and I driving around trying to get a hold of some dank herb. We finally got a hold of our friend’s dealer, and we headed over to his place. My mindset was pretty good I was having a good time with my friends just being sober.
When we got to the house I discovered I could get a hold of some good acid from California. My previous experience with acid happened a year before this when I was in trouble with my parents because they found out I smoked pot often. I felt that before I got in trouble with my rents that I was very carefree and I felt that karma would keep me safe. I generally had a blast with life.
Anyway I dropped 3 hits of potent cid and had a bad experience at this crappy punk show and I was being picked up early by my dad and all my siblings where home and I just panicked. I remember seeing huge crowds of people everywhere in the show parking lot, but there was really no one. It got hard to breath and my throat went completely dry. It wasn’t fun. So during the next year I smoked a whole lot of really good pot all the time. When I’d stopped I’d think way too much about things that where negative in my life with my family, and pot could take me from complete rage to calm and laughing in a few minutes so of course I did it all the time. But during this time I started feeling like my life was grey and dull.
So back to this great night. I dropped 2 hits of this good buddha print acid at about 6:30pm and it felt like I could feel it almost immediately. I drove with my friends S and M to K’s house which was our party headquarters.
[Erowid Note: Driving while intoxicated or tripping is dangerous and irresponsible because it endangers other people. Don't do it!] While leaving the neighborhood I saw the middle lines of the road raise up like a barrier, but I dismissed it as visuals and drove to K’s house. When we got there we decided I should take S to get his car so he could be our non tripping ride for the meantime before he dropped later that night. While driving him to his place I started seeing the rearlights on the cars in front of me starting to pulse and move around and the other city lights where radiant. I wanted to hurry and get back before I started frying harder.
When we got back to K's place. We smoked some dank herb. S drove us all downtown so we could hang out by the riverfront. The drive was great I was looking at all the lights and I was moving all over the seat like a child. K, M, and I went to hang out by the river, while A and S, the 2 non tripping people, went into this cool art gallery/live music restaurant. So the trippers are having a great time, we see this boat go by and we start running along with it laughing like kids. We must of looked crazy to onlookers.
We went to join A and S in the art gallery part of this place. We hung out there and K and I spent a long time talking about this impressionist painting of some flowers. Every different color was flowing and radiant. On the way Back to Ks house I remember looking at this light post and it just smeared all across the sky, as we drove past.
 I guess he was tired of being around goofy people on acid and he was giving us all really bad vibes. He sometimes get absorbed in his own reality and isn’t very considerate of other people. He left after awhile to R's house. I started frying super hard and I just got lost in my reflection in this standup mirror. I looked hollow and full of darkness.
I packed a bowl and passed it around and when it got back to me I'd forgotten I passed it in the first place and I would zone out super hard into oblivion. At this time I recognized I was thinking way too hard about how I would get home. I lost my keys but I found them later, it turns out I just put them on the table. I was starting to have a bad trip again. So I got up and started dancing to the song Touch Me by The Doors. I was bouncing off the wall and it felt like every time I'd rock my head shocks of glorious light would go thru the darkness in my body. Then the most amazing thing happened, I took everything I hated about myself (the darkness) and crumbled it up in a ball and threw it away. I also turned around that gay mirror so I wouldn’t get lost in it.
I went into K’s mom's room and sat on her bed which has these white curtains draped over the bedpost and I was watching this screensaver of this nature scene. I then transended into this amazing forest of that had this peaceful river and I felt my energy flowing with this river. I believe that religion and spirituality tries to tap into this mystic energy and I was so overjoyed with happiness.
Then one of K’s cats walked up to me and it morphed to a giant wolf that came up to me to guide me. It was the most amazing thing, I now consider the wolf my spirit animal. I was also now having these closed eyed visuals that were like paintings by Alex Grey. I would also see thousands of geometric shapes floating around and melting into one another only to have more melt out of this shape and spin around. When I opened my eyes I’d see shapes floating around like those in the music video to the flaming lips song 'Do you realize'. M and K walked in on me and I was in this calm meditation pose (funny that it was buddha print) and I told them about my experience. I had this really enlightening conversation with K, and she looked so amazing and joyful. This all happened around 9:30.
The rest of the night was fun, I felt like I'd accomplished in losing a whole lot of mental baggage that night. Another friend stopped by and I just gave her some cid because I felt like everyone should experience this. I went home around 12:00 after I’d mostly stopped frying. Once in my room I smoked a nice big bowl and my walls started spinning around in a beautiful kaleidoscope manner. I went to sleep about 2 hours later.
The next week or so I was in a really great mood. The day after I smoked all day with my good friends R and S and I’d start seeing stuff again. It was mindblowing. I wish I could remember every single detail about it.
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.


Presets
Settings
Hotkeys
Sync
History
Support
Manage existing resolutions
Add new
Edit
resolution
Width x Height
×
Use custom size
Use current window size
Use current viewport size
Resize target
Window
Viewport
Preset icon
Position
(optional: left/top)
/
Leave unchanged
Use custom position
Use current window position
Center on screen
Description
(optional)


A wonderful serenity has taken possession of my entire soul, like these sweet mornings of spring which I enjoy with my whole heart. I am alone, and feel the charm of existence in this spot, which was created for the bliss of souls like mine. I am so happy, my dear friend, so absorbed in the exquisite sense of mere tranquil existence, that I neglect my talents. I should be incapable of drawing a single stroke at the present moment; and yet I feel that I never was a greater artist than now.
When, while the lovely valley teems with
vapour around me, and the meridian sun strikes the upper surface of the impenetrable foliage of my trees, and but a few stray gleams steal into the inner sanctuary, I throw myself down among the tall grass by the trickling stream; and, as I lie close to the earth, a thousand unknown plants are noticed by me: when I hear the buzz of the little world among the stalks, and grow familiar with the countless indescribable forms of the insects and flies, then I feel the presence of the Almighty, who formed us in his own image, and the breath of that universal love which bears and sustains us, as it floats around us in an eternity of blist.
I sink under the weight of the splendour of these visions!A wonderful serenity has taken possession of my entire soul, like these sweet mornings of spring which
I sink under the weight of the splendour of these visions!A wonderful serenity has taken possession of my entire soul, like these sweet mornings of spring which I enjoy with my whole heart. I am alone, and feel the charm of existence in this spot, which was created for the bliss of souls like mine. I am so happy, my dear friend, so absorbed in the exquis
I throw myself down among the tall grass
I should be incapable of drawing a single stroke at the present moment; and yet I feel that I never was a greater artist than now. When, while the lovely valley teems with vapour around me, and the meridian sun strikes the upper surface of the impenetrable foliage of my trees, and but a few stray gleams steal into the inner sanctuary, I throw myself down among the tall grass by the trickling stream; and, as I lie close to the earth, a thousand unknown plants are noticed by me: when I hear the buzz of the little world among the stalks, and grow familiar with the countless indescribable forms of the insects and
Text, that where it came from it
Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts. Separated they live in Bookmarksgrove right at the coast of the Semantics, a large language ocean. A small river named Duden flows by their place and supplies it with the necessary regelialia. It is a paradisematic country, in which roasted parts of sentences fly into your mouth. Even the all-powerful Pointing has no control about the blind texts it is an almost unorthographic life One day however a small line of blind text by the name of Lorem Ipsum decided to leave for the far World of Grammar. The Big Oxmox advised her not to do so, because there were thousands of bad Commas, wild Question Marks and devious Semikoli, but the Littl
- Far far away, behind the word mountain
- When she reached the first hills
- A small river named Duden flows
- A small river named Duden flows by their plat.
- Far far away, behind the word mountain
Copy Writers ambushed her, made her drunk with Longe and Parole and dragged her into their agency, where they abused her for their projects again and again. And if she hasn’t been rewritten, then they are still using her.Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts. Separated they live in Bookmarksgrove right at the coast of the Semantics, a large language ocean. A small river named Duden flows by their plate.
Maecenas sed diam eget risus varius blandit sit amet non magna. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.


Click the button above to retrieve a random spell from my database. During development, I became much more familiar with how to handle API requests from the backend. This project was built using:
Finding spells in the middle of a game can be incredibly difficult and break the flow of the game. By building my own database, hosting it, creating various access points for my API, I was able to build rudimentary understanding and skill in backend development.
The biggest hurdle I came across during development was figuring out how to handle CORS so that requests can be made from outside of the same domain. Prior to implementing CORS, I was unable to make requests from the API outside of Postman.


--- layout: post title: "DevEvening MvcContrib Presentation" postId: 232 ---
Yesterday I did a presentation at DevEvening on using MvcContrib with ASP.NET MVC applications.
I demonstrated the use of FluentHtml (with behaviours), the Grid and Pager components, the ActionResult assertions and the route testing extensions.
Slides and code can be downloaded here.


Introduction to REST API Documentation
Introduction
DocFX supports generating documentation from REST APIs following Swagger specification version 2.0.
The Swagger RESTful API files MUST end with .json
.
One Swagger API file generates one HTML file. For example, a file contacts.swagger.json
generates file naming contacts.html
.
Basic structure
A single Swagger API file is considered as a unique REST File containing multiple APIs. The UID(Unique IDentifier) for the File is defined as the combination of host
, basePath
, info.title
and info.version
with /
as separator. For example, the following Swagger API file has UID equals to microsoft.com/docfx/Contacts/1.6
:
{
"swagger": "2.0",
"info": {
"title": "Contacts",
"version": "1.6"
},
"host": "microsoft.com",
"basePath": "/docfx",
"schemes": [
"https"
]
}
A REST API File contains multiple APIs as its children. An API is an Operation Object defined in Path Item Object. The UID(Unique IDentifier) for this API is defined as the combination of the UID of the File and the operationId
of the Operation Object. For example, the following get_contacts
operation has UID equal to microsoft.com/docfx/Contacts/1.6/get_contacts
:
{
"swagger": "2.0",
"info": {
"title": "Contacts",
"version": "1.6"
},
"host": "microsoft.com",
"basePath": "/docfx",
"schemes": [
"https"
],
"paths": {
"/contacts": {
"get": {
"parameters": [
],
"responses": {
},
"operationId": "get_contacts"
}
}
}
}
Tip
It is recommended that user provides a well-formed operationId
name.
We suggest that the operationId
is one word in camelCase or snake_case.
A REST API File could also contain multiple tags. The tag is a Tag Object, which is optional and used by Operation Object. The UID(Unique IDentifier) for this tag is defined as the combination of UID of the File, tag
, and name
of the Tag Object. For example, the following tag Basic
has UID microsoft.com/docfx/Contacts/1.6/tag/Basic
:
{
"swagger": "2.0",
"info": {
"title": "Contacts",
"version": "1.6"
},
"host": "microsoft.com",
"basePath": "/docfx",
"schemes": [
"https"
],
"tags": [
{
"name": "Basic",
"description": "Basic description"
},
{
"name": "Advanced",
"description": "Advanced description"
}
]
}
HTML layout
The generated HTML file lists all the APIs inside the File in the order defined in the Swagger REST file.
You can use Overwrite Files to add more information to the File and API, and use tags to organize the sections of the APIs.
Overwrite Files
Overwrite Files are Markdown files with multiple Overwrite Sections starting with YAML header block. A valid YAML header for an Overwrite Section MUST take the form of valid YAML set between triple-dashed lines and start with property uid
. Here is a basic example of an Overwrite Section:
---
uid: microsoft.com/docfx/Contacts/1.6
---
Further description for `microsoft.com/docfx/Contacts/1.6`
The uid
value MUST match the uid
of the File or API that you want to overwrite. The content following YAML header is the additional Markdown description for the File or API. By default, it is transformed to HTML and appended below the description of the File or API.
Add footer
You can also define the footer
of an File or API using the following syntax:
---
uid: microsoft.com/docfx/Contacts/1.6
footer: *content
---
Footer for `microsoft.com/docfx/Contacts/1.6`
*content
is the keyword representing the Markdown content following YAML header. The value for *content
is always transformed from Markdown content to HTML. In the above example, the value for *content
is
Footer for microsoft.com/docfx/Contacts/1.6

. In this way, the value of footer
for API microsoft.com/docfx/Contacts/1.6
is set to
Footer for microsoft.com/docfx/Contacts/1.6

. We leverage Anchors syntax in YAML specification for *content
.
If footer
is set, the content from footer
will be appended to the last section of the File or API. It is usually used to define See Also or Additional Resources for the documentation.
Tags to organize the sections of APIs
You can organize the sections of APIs by using tags in Swagger file, following definitions in Tag Object.
Each API can be specified with one or multiple tags, or not speficied with any tag.
- If all APIs are not tagged, each API will not be included in any sections.
- If the API is specified with one tag only, it will show inside this one tag section.
- If the API is specified with multiple tags, it will show inside multiple tag sections.
- If some APIs are specified with tags while some other APIs are not, the untagged APIs will be organized into one auto generated
Other apis
section.
Specific bookmark could be added to tag section using x-bookmark-id
, which is Swagger schema extensions following Specification Extensions. If no x-bookmark-id
is specified, name
of the tag will be the default bookmark.
For example, the following swagger file defines Basic
and Advanced
tags.
- Sections in the layout:
set_contacts
API is tagged withAdvanced
only, then it will only show insideAdvanced
tag section.get_contacts
API is tagged with bothBasic
andAdvanced
, then it will show inside both of the tag sections.delete_contacts
API is not tagged, it will show inside "Other apis" section.
- Bookmarks:
- Bookmark of
Basic
tag isBasicBookmark
, which is defined byx-bookmark-id
. - Bookmark of
Advanced
tag isAdvanced
, which usename
by default.
- Bookmark of
{
"swagger": "2.0",
"info": {
"title": "Contacts",
"version": "1.6"
},
"host": "microsoft.com",
"basePath": "/docfx",
"schemes": [
"https"
],
"tags": [
{
"name": "Basic",
"x-bookmark-id": "BasicBookmark",
"description": "Basic description"
},
{
"name": "Advanced",
"description": "Advanced description"
}
],
"paths": {
"/contacts": {
"get": {
"operationId": "get_contacts",
"tags": [
"Basic",
"Advanced"
]
},
"set": {
"operationId": "set_contacts",
"tags": [
"Advanced"
]
},
"delete": {
"operationId": "delete_contacts"
}
}
}
}
For the example above, the simple html layout will be:

Basic

get_contacts

Advanced

get_contacts

set_contacts

Other APIs

delete_contacts

Overwrite the tags
More information could be added to the tag as following:
--- uid: microsoft.com/docfx/Contacts/1.6/tag/Basic --- Additional comments for `microsoft.com/docfx/Contacts/1.6/tag/Basic`
The
description
of the tag could be overwritten as following:--- uid: microsoft.com/docfx/Contacts/1.6/tag/Basic description: *content --- Overwrite description for `microsoft.com/docfx/Contacts/1.6/tag/Basic`
Add other metadata
You can define your own metadata with YAML header. This functionality is quite useful when your own template is used.
When the key of the metadata is already preserved by DocFX, for example, summary
, the value of summary
will be overwritten. You can also overwrite complex types, for example, description
of a parameter
. Make sure the data structure of the provided metadata is consistent with the one defined in DocFX, otherwise, DocFX is unable to cast the value and fails.
When the key of the metadata is not preserved by DocFX, for example, not_predefined
. The metadata is kept and can be used in the template.
Split extensibility
By default, one REST API file generates one HTML file. For example, petstore.json generates petstore.html. We provide rest.tagpage
and rest.operationpage
plugins to split the original REST API page into smaller pages.
- With
rest.tagpage
plugin enabled, operations with the same tag are grouped into one page. - With
rest.operationpage
plugin enabled, each operation is splitted into single page. - With both
rest.tagpage
andrest.operationpage
plugins enabled, the REST model will be splitted to tag level first, then split to operation level.
Refer Plugins dashboard for more details.


Accordions
An accordion is used to show (and hide) HTML content:
Open Section 1
Section 1
Some text..


{% extends "basestyle/one_column_layout.html" %} {% load staticfiles %} {% block title %}Search Results for: “{{ query_str }}”{% endblock %} {% block header_content %} {% include "respondents/partial/search_results_form.html" %} {% endblock %} {% block sidebar_content %} {% include "respondents/partial/search_results_sidebar.html" %} {% endblock %} {% block main_content %}
Notes: Institution data is from the {{year}} HMDA Transmittal sheet.
Assets are as of December 31 of the preceding calendar year.


Mockr
DOCS
NEW
GITHUB
New
Status
Headers
+
-
Cookies
+
-
Response Body
Method
GET
POST
PUT
PATCH
DELETE
HEAD
OPTIONS
mimeType
application/json
text/html
text/plain
Reset
Create


ALABI KALU LTD 322 positive ratings
Qc dsdf unical quaters , abc Get Directions
01-21323432 MON-FRI: 8am - 9pm WEEKENDS: 9am - 12pm
Our Services:
Catering, Cup cakes, Eatery, Meat supplies, Whole fish depot
ALABI KALU LTD 322 negative ratings
Qc dsdf unical quaters , abc Get Directions
01-21323432 MON-FRI: 8am - 9pm WEEKENDS: 9am - 12pm
Our Services:
Catering, Cup cakes, Eatery, Meat supplies, Whole fish depot
ALABI KALU LTD 322 negative ratings
Qc dsdf unical quaters , abc Get Directions
01-21323432 MON-FRI: 8am - 9pm WEEKENDS: 9am - 12pm
Our Services:
Catering, Cup cakes, Eatery, Meat supplies, Whole fish depot
ALABI KALU LTD 322 negative ratings
Qc dsdf unical quaters , abc Get Directions
01-21323432 MON-FRI: 8am - 9pm WEEKENDS: 9am - 12pm
Our Services:
Catering, Cup cakes, Eatery, Meat supplies, Whole fish depot


НАЖМИ!!
and more.
P
Develop fully responsive, mobile-optimized websites that look amazing on any devices and browsers. Preview how your website will appear on phones, tablets and desktops directly in the visual editor.
Mobirise comes with huge collection of pre made layouts to help make your development faster.


{% extends "account/base.html" %} {% load i18n %} {% load account socialaccount %} {% load widget_tweaks %} {% block head_title %}{% trans "Sign In" %}{% endblock %} {% block inner %}
{% blocktrans with site.name as site_name %}Please sign in with one of your existing third party accounts. Or, sign up for a {{ site_name }} account and sign in below:{% endblocktrans %}
{% include "socialaccount/snippets/login_extra.html" %} {% else %}{% blocktrans %}If you have not created an account yet, then please sign up first.{% endblocktrans %}
{% endif %} {% if form.errors %}Your username and password didn't match. Please try again.
{% endif %} {% endblock %}


Con TravelOrg tendras kjsndkdfgjd sukdhsief kjnsdisjegopof
Free SEO AnalysisThe master-builder of human happines no one rejects, dislikes avoids pleasure itself, because it is very pursue pleasure.
We offer unlimited solutions to all your business needs. in the installation package we prepare search engine optimization, social media support, we provide corporate identity and graphic design services.
Research Ipsum dolroin gravida nibh vel velit aliquet. Aenean lorem quis optimization..
Te ahorramos tiempo en buscar distintos eventos/paquetes y ofrecerte los que más te convengan para país que estes viajando
We offer unlimited solutions to all your business needs. in the installation package we prepare search engine optimization, social media support, we provide corporate identity and graphic design services.
1200
3210
3781
4300


MKFeedParser Class Reference
| Inherits from | NSObject |
| Conforms to | NSXMLParserDelegate |
| Declared in | MKFeedParser.h |
Overview
Overview
MKFeedParser requests RSS/ATOM feeds from the internet and pases them into an array for use by your app. MKFeedParser will automaically detect what type of feed it is parsing, or you can set the type of feed if it is know. If MKFeedParser detects that the feed type is set incorrectly, it will change it. You can access the type of feed using the sourceType property. This property will return one of two values:
-
MKFeedSourceRSS
: Used if the feed is in RSS format. -
MKFeedSourceAtom
: Used if the feed is in an Atom format. -
MKFeedSourceGoogleFeedAPIJSON
: Used if the feed is from the Google Feed API.
All feeds are parsed into an Array of MKFeedItem objects.
Using Returned Data
Data can returned through ethier the MKFeedParserDelegate or the MKRequestComplete block. Both methods pass an NSArray that holds the information from the feed. The array is an array of MKFeedItem instaces.
Requied Framworks
- Foundation
Requred Classes
Required Protocols
Tasks
Creating
-
- initWithURL:delegate:
Creates an instance of MKRSSFeed.
Preforming Requests
-
- request
Starts the request for data from the provided URL, and returns the results through the MKRSSFeedDelegate. -
- requestWithCompletionBlock:
Starts the request for data from the provided URL, and returns the results through the MKRequestComplete block.
Feed Information
-
url
The URL address of the feed. -
contentType
The content type of the feed. This property will return one of the following:-
MKContentTypePlainText
: The content of the feed is in a Text String. -
MKContentTypeHTML
: The content of the feed is in a HTML String.
-
-
sourceType
The source type of the feed. This property will return one of the following:-
MKSourceTypeRSS
: The feed source is in a RSS format. -
MKSourceTypeAtom
: The feed source is in an Atom format.
-
Delegate
-
delegate
The MKRSSFeedDelegate
Blocks
-
requestCompleteBlock
The request complete block. This block is ran when a request is finished.
Instance Methods
initWithURL:delegate:
Creates an instance of MKRSSFeed.
- (id)initWithURL:(NSString *)aURL delegate:(id<MKFeedParserDelegate>)theDelegate
Parameters
- aURL
- the URL of the feed you are requesting. Cannot be nil.
- delegate
- the MKRSSFeedDelegate. Set to nil if you are not using a delegate.
Return Value
MKRSSFeed instance
Exceptions
- MKFeedParserNILURLException
- Exception is thrown if the aURL paramenter is nil. Exception is catchable.
Declared In
MKFeedParser.h
request
Starts the request for data from the provided URL, and returns the results through the MKRSSFeedDelegate.
- (void)request
Declared In
MKFeedParser.h
Properties
contentType
The content type of the feed. This property will return one of the following:
-
MKContentTypePlainText
: The content of the feed is in a Text String. -
MKContentTypeHTML
: The content of the feed is in a HTML String.
@property (nonatomic, readonly) MKFeedContentType contentType
Declared In
MKFeedParser.h
delegate
The MKRSSFeedDelegate
@property (assign) id<MKFeedParserDelegate> delegate
Declared In
MKFeedParser.h
requestCompleteBlock
@property (nonatomic, copy) MKRequestComplete requestCompleteBlock
Declared In
MKFeedParser.h


There are many ways and strategies of scheduling game turns and/or actors. The ROT.Scheduler
API is meant as a general scheduling abstraction; there are also three distinct implementations for commonly used scheduling approaches.
All available schedulers share these common methods:
add(item, repeat)
to add a new schedulable item. There are no specific requirements for the item
argument. The second argument specifies whether the scheduler shall treat the item as a repeated actor (such as a being or player), or a one-time event (such as an earthquake or a messenger appearing from nowhere).remove(item)
to remove a previously added itemclear()
to remove all itemsgetTime()
to retrieve the elapsed time from the (internally) used Event queuenext()
to get an item that should act (this is the most important part of a scheduler)The easiest scheduler is called ROT.Scheduler.Simple
– it rotates all items evenly in a round-robin fashion.
In a more realistic game, your actors might want to act based on their speed. Due to the turn-based nature of the game, the speed is more accurately described as a frequency in which turns happen for a particular actor. ROT.Scheduler.Speed
plans turns based on this fact: your actors must implement the getSpeed()
method, which returns the relative actor speed (an actor with speed=100 will get twice as many turns as actor with speed=50).
The most complex scheduling strategy expects individual actors to perform time-dependent actions. Every action takes a different amount of time, so the "speed" of an actor varies from action to action. Every time an actor is picked, the scheduler needs to be told about the current action's duration – to properly schedule a next turn for this actor.
To use the ROT.Scheduler.Action
, make sure you call its setDuration()
method after calling next()
: this sets the delay for current actor's next turn.
Finally, you can specify the initial scheduling delay as an optional third argument to add()
. The default value is "1".


{% with "The Underquoted" as title %}
{% load staticfiles %}
{{ title }}
{{ title }}
Quoting the underquoted members of society
{% block content %}{% endblock %}
{% block footer %}
Want to contribute? Check out the github project:
https://github.com/jessamynsmith/underquoted
{% endblock %} {% endwith %}


--- layout: data_model title: URLHistoryEntryType this_version: 1.1 ---
The URLHistoryEntryType captures the properties of a URL history entry for a particular browser.
| Field Name | Type | Description |
|---|---|---|
| URL0..1 | URIObjectType |
The URL field specifies the URL that the URL history entry points to. It uses the URIObjectType from the imported CybOX URI Object. |
| Hostname0..1 | HostnameObjectType |
The Hostname field specifies the hostname portion of the URL that the URL history entry points to (captured in the URL field). |
| Referrer_URL0..1 | URIObjectType |
The Referrer field specifies the origination point (i.e., URL) of the URL captured in the URL history entry, if applicable. It uses the URIObjectType from the imported CybOX URI Object. |
| Page_Title0..1 | StringObjectPropertyType |
The Page_Title field specifies the title of the web page referred to by the URL captured in the URL field. |
| User_Profile_Name0..1 | StringObjectPropertyType |
The User_Profile_Name captures the name of the web browser user profile for which the URL history entry was created. |
| Visit_Count0..1 | NonNegativeIntegerObjectPropertyType |
The Visit_Count field specifies the number of times the URL referred to by the URL field has been visited. |
| Manually_Entered_Count0..1 | NonNegativeIntegerObjectPropertyType |
The Manually_Entered_Count field specifies the number of times the URL referred to by the URL field was manually entered into the browser's address field by the user. This field is only applicable for URL history entries generated by Google's Chrome browser. |
| Modification_DateTime0..1 | DateTimeObjectPropertyType |
The Modification_DateTime field specifies the date/time that the URL history entry was last modified. |
| Expiration_DateTime0..1 | DateTimeObjectPropertyType |
The Expiration_DateTime field specifies the date/time that the URL history entry expires. |
| First_Visit_DateTime0..1 | DateTimeObjectPropertyType |
The First_Visit_DateTime field specifies the date/time that the URL referred to by the URL field was first visited. |
| Last_Visit_DateTime0..1 | DateTimeObjectPropertyType |
The Last_Visit_DateTime field specifies the date/time that the URL referred to by the URL field was last visited. |


STATE AND MAIN A film review by Steve Rhodes Copyright 2000 Steve Rhodes RATING (0 TO ****): *** 1/2
In a present that will be hard to top, STATE AND MAIN, by writer/director David Mamet (THE WINSLOW BOY), is a wonderful gift to moviegoers that comes to theaters this Christmas. Possessing some of the same charm of an early Mamet film, the whimsical THINGS CHANGE from 1988, STATE AND MAIN is a screwball comedy and good-spirited satire about filmmaking in small town America.
With such a great ensemble cast, it's hard to identify the story's star. To the extent that the film has one, it is Academy Award winner William H. Macy (FARGO) as the director of the film, THE OLD MILL, about to begin shooting in the tiny hamlet of Waterford, Vermont. (The film company is broke after being run out of a small town in New Hampshire for unspecified reasons.) Macy with his big blue eyes that are so deep that you could swim in them is at once delicately vulnerable and tough as nails. His motto, as inscribed on his lucky pillow, is "Shoot first. Ask questions afterward." Walt is a master at stroking his stars' massive egos, but he is willing to throw tantrums if necessary to get the movie made.
The male lead in Walt's film, Bob Berringer, played with charismatic wickedness by Alec Baldwin, has a predilection for 14-year-old girls, which has gotten him into trouble before. "Everybody needs a hobby", Bob says smilingly of his illegal activities. Walt, who always tries to please his cast, tells his assistant to get Bob half of a 28-year-old woman. Walt tries to tell everyone what they want to hear. "That's not a lie," he retorts when being caught in one. "That's a gift for fantasy."
When Bob sets his eyes on a local girl named Carla (Julia Stiles), Carla hints at being under-aged, knowing his preferences. Her exact age remains a bit of a mystery. The story, in fact, takes great pleasure in throwing all manner of little mini-dramas and mysteries at us, leaving us to guess which will be dead ends and which will turn out to be significant.
Walt and his neophyte screenwriter, Joseph 'Joe' Turner White (Philip Seymour Hoffman), have problems aplenty, not the least of which is that; after choosing Waterford for its old mill, they find out that the mill burned down during a series of mysterious fires in 1960. (Ah, those mysteries.) Another problem is that the female lead, Claire (Sarah Jessica Parker from the "Sex in the City" television series), has found religion and is no longer willing to appear topless as clearly specified in her $3M contract. Actually, she is willing for an extra $800,000 to bare her breasts. This is all terribly ironic since her breasts have been on the screen so often that viewers "can draw them from memory" claims Walt and others.
Joe falls in love with Annie (Rebecca Pidgeon), the owner of the local bookstore. Annie is fond of quoting lines that he has forgotten from Joe's own plays -- "If you weren't down, how would you know when you were up" -- in order to cheer him up and to inspire him.
Hearing of the trouble on the set, the film's take-no-prisoners producer, Marty (David Paymer), shows up to straighten everyone out. Putting his arms around Walt, Marty is heard to say off-screen, "Did you see the grosses for Gandhi 2?" Marty brings Walt a very profitable product placement idea from a dot.com company. Of course, getting a computer into a movie set in 1895 might prove difficult for someone less resourceful than Marty.
All of the crew are heavy cell phone users, but this is done cutely and not irritatingly as it was in HANGING UP. After the latter film, I thought that I never wanted to see a cell phone in a movie ever again.
I've just barely scratched the surface of this story. In a tour de force effort on Mamet's part, he manages to craft an enormous number of fully developed characters, all of whom win our hearts, even if most do have their faults. His talent is never better seen than in the clever way in which he wraps up all of the story's loose ends. STATE AND MAIN is the kind of big-hearted movie that's worth seeing again and again.
STATE AND MAIN runs a brisk 1:30. It is rated R for language and brief sexual images but is considerably milder than most recent PG-13 movies. Although it is the parents' judgment, I would see no problem taking kids as young as 11. In fact, I'd be happy to let my son, who is 11, see it.
Email<EMAIL_ADDRESS>Web: http://www.InternetReviews.com
The review above was posted to the
rec.arts.movies.reviews newsgroup (de.rec.film.kritiken for German reviews).
The Internet Movie Database accepts no responsibility for the contents of the
review and has no editorial control. Unless stated otherwise, the copyright
belongs to the author.
Please direct comments/criticisms of the review to relevant newsgroups.
Broken URLs inthe reviews are the responsibility of the author.
The formatting of the review is likely to differ from the original due
to ASCII to HTML conversion.
Related links: index of all rec.arts.movies.reviews reviews


# -*- coding: utf-8 -*-
import random
import types
import warnings
from abc import ABC, abstractmethod
from onegpy.utils.util import get_generator_builder
[docs]class AbstractOperator(ABC):
"""
This is the base class for operators.
"""
[docs] def __init__(self, n_in=None, n_out=None):
"""
The number of input solution to the operator and outputs one of the operator
`None` means that the operator handles variable length solutions.
:param n_in: int or None
:param n_out: int or None
"""
self._n_in = n_in
self._n_out = n_out
@abstractmethod
def __call__(self, *args, **kwargs):
raise NotImplementedError
@staticmethod
def not_changeable_warning():
msg = 'This variable is not changeable.' \
' Thus, the operation has no effect.'
warnings.warn(msg)
@property
def n_in(self):
return self._n_in
@n_in.setter
def n_in(self, _):
self.not_changeable_warning()
@n_in.deleter
def n_in(self):
self.not_changeable_warning()
@property
def n_out(self):
return self._n_out
@n_out.setter
def n_out(self, _):
self.not_changeable_warning()
@n_out.deleter
def n_out(self):
self.not_changeable_warning()
[docs]class PopulationOperator(AbstractOperator, ABC):
"""
This is a base class a population operator.
Population operator aims at population or a list of solutions.
"""
pass
[docs]class PopulationOperatorAdapter(PopulationOperator):
"""
This is an adapter to make an operator aim at population.
"""
[docs] def __init__(self, operator, generator_builder=None, n_out=None):
"""
:param operator: operator object. operator object to apply.
:param generator_builder: function of generator builder. Default is None (default generator).
This function makes a generator from input population.
:param n_out: int. the number of output.
"""
super(PopulationOperatorAdapter, self).__init__(n_out=n_out)
operator_checker(operator)
if operator.n_in is None:
msg = 'n_in of {} must be set'.format(operator.__name__)
raise ValueError(msg)
if operator.n_in != operator.n_out and n_out is None:
msg = 'The number of population will change by this operator'
warnings.warn(msg)
self.operator = operator
self._register_metaclass()
self.generator_builder = generator_builder or self._get_default_generator_builder()
def __call__(self, population, *args, **kwargs):
"""
Apply an operator of this instance to population.
A candidate is selected by generator.
:param population: list of solutions. population.
:param args:
:param kwargs:
:return:
"""
new_pop = []
generator = self.generator_builder(population)
for solutions in generator:
new_solutions = self.operator(solutions)
if isinstance(new_solutions, (list, tuple)):
new_pop.extend(new_solutions)
else:
new_pop.append(new_solutions)
if len(new_pop) >= (self.n_out or len(population)):
break
return new_pop
def _get_default_generator_builder(self):
n_solutions = self.operator.n_in
def generator_builder(population):
random.shuffle(population)
for i in range(0, len(population), n_solutions):
yield population[i:i + n_solutions]
return generator_builder
def _register_metaclass(self):
self.operator.__class__.register(self.__class__)
[docs]class ProblemBasedOperator(ABC):
"""
This is a base class a operator based on population,
that is, it requires a problem instance.
"""
[docs] def __init__(self, problem):
"""
:param problem: problem object. The target problem.
"""
self.problem = problem
[docs]def build_population_operator(operator, selection_class=None, n_out=None, cls_name=None, **kwargs):
"""
Builder function for population operator.
:param operator: operator object. The target operator to build.
:param selection_class: selection class. **NOTE** not instance.
a generator is built by using a logic of the selection class.
:param n_out: int. the number of output of the target operator.
:param cls_name: str. a name of a new class build by this function.
:param kwargs:
:return:
"""
operator_checker(operator)
if selection_class is not None:
generator_builder = get_generator_builder(selection_class(k=operator.n_input, **kwargs))
else:
generator_builder = None
po_cls = types.new_class(cls_name or 'Population{}'.format(operator.__class__.__name__),
bases=(PopulationOperatorAdapter,))
return po_cls(operator, generator_builder, n_out)
[docs]def operator_checker(operator):
"""
checker for operator.
"""
if not isinstance(operator, AbstractOperator):
typ = TypeError
msg = 'Expected type: {} not {}.'.format(AbstractOperator, type(operator))
else:
return
raise typ(msg)
[docs]def pop_operator_checker(operator):
"""
checker for population operator.
"""
if not isinstance(operator, PopulationOperator):
typ = TypeError
msg = 'Expected type: {} not {}.'.format(PopulationOperator, type(operator))
else:
return
raise typ(msg)


[all packages]
[package ]
[class hierarchy]
[index]
public abstract class Mor
(source file: Mor.java)
java.lang.Object
|
+----Printable
|
+----Mor
The pure class interface.
public abstract class Mor
extends Printable
-
A morphism.
- Author:
- Alan Jeffrey
- Version: v1.0 1998/06/11
- Mor()
-
- cat
-
The category of the morphism.
- source
-
The source object of the morphism.
- target
-
The target object of the morphism.
- unit
-
The identity morphism I I.
- comp(Mor)
-
Compose this morphism with another.
(note that if both morphisms are shuffles, then the two
- curry(PremonCat, Obj, Obj)
-
Curry this morphism.
- graph0(Constraints, Interface)
-
Construct a graph (without a control line) from the morphism.
- graph1(Constraints, Interface, int)
-
Construct a graph (with a control line) from the morphism.
- simpleComp(Mor)
-
Compose this morphism with another.
(note that if both morphisms are shuffles, then the two
- tensor(Mor)
-
Tensor this morphism with another.
- tensorDots(Mor)
-
Tensor this morphism with another
(but when the graph is drawn, draw ellipses between the
- trace(Obj, Obj, Obj)
-
Trace this morphism.
- uncurry()
-
Uncurry this morphism.
Mor
public Mor();
cat
public PremonCat cat;
-
The category of the morphism.
source
public Obj source;
-
The source object of the morphism.
target
public Obj target;
-
The target object of the morphism.
unit
public static final Mor unit;
-
The identity morphism I I.
graph0
public abstract Graph0 graph0(Constraints C,
Interface source);
-
Construct a graph (without a control line) from the morphism.
graph1
public Graph1 graph1(Constraints C,
Interface source,
int control);
-
Construct a graph (with a control line) from the morphism.
comp
public Mor comp(Mor f);
-
Compose this morphism with another.
(note that if both morphisms are shuffles, then the two shuffles
are composed together, which produces nicer graphs).
For example, symm.comp (symm) will draw the identity graph.
- Parameters:
- f - the morphism to compose with.
- Returns:
- this;f
simpleComp
public Mor simpleComp(Mor f);
-
Compose this morphism with another.
(note that if both morphisms are shuffles, then the two shuffles
are not composed). For example symm.simpleComp (symm) will
draw an XX-shaped graph.
- Parameters:
- f - the morphism to compose with.
- Returns:
- this;f
tensor
public Mor tensor(Mor f);
-
Tensor this morphism with another.
- Parameters:
- f - the morphism to tensor with
- Returns:
- this f
tensorDots
public Mor tensorDots(Mor f);
-
Tensor this morphism with another
(but when the graph is drawn, draw ellipses between the morphisms).
- Parameters:
- f - the morphism to tensor with
- Returns:
- this f
curry
public Mor curry(PremonCat C,
Obj X,
Obj Y);
-
Curry this morphism.
- Parameters:
- C - the category to curry in (should be a supercategory
of this.cat(
- X - the source object.
- Y - the target object.
- Returns:
- curry(this).
trace
public Mor trace(Obj X,
Obj Y,
Obj Z);
-
Trace this morphism.
- Parameters:
- X - the source object of the traced morphism.
- Y - the target object of the traced morphism.
- Z - the traced object (should be traceable).
- Returns:
- Tr(this).
uncurry
public Mor uncurry();
-
Uncurry this morphism.
- Returns:
- uncurry(this).
[all packages]
[package ]
[class hierarchy]
[index]
Mor.html


This is a sample book, showing a real life example of what the theme '%ThemeNameHumanVal%' can do. This is the theme description: %ThemeDescriptionVal% The sample PDF was generated using the following sizes for paper and margins.
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English.
Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like). Contrary to popular belief, Lorem Ipsum is not simply random text.  Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source.
Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.
It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.1 It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.2
It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English.
Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like). Contrary to popular belief, Lorem Ipsum is not simply random text.  Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source.
Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English.3
Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like). Contrary to popular belief, Lorem Ipsum is not simply random text.  Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source.
Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.
This is a sample book, showing a real life example of what the theme '%ThemeNameHumanVal%' can do. This is the theme description: %ThemeDescriptionVal% The sample PDF was generated using the following sizes for paper and margins: The paper is %PageWidth% wide and %PageHeight% tall. The margins are %PageMarginTop% at the top, %PageMarginBottom% bottom, %PageMarginLeft% inside and %PageMarginRight% outside. Footer margin is %PageMarginFooter%, header is %PageMarginHeader%.
It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
You can say this in bold alone or bold with some italics inside, in italics alone or italics with some bold inside. You can even underline things with bold and italics inside.
This is a sample book, showing a real life example of what the theme '%ThemeNameHumanVal%' can do. This is the theme description: %ThemeDescriptionVal% The sample PDF was generated using the following sizes for paper and margins: The paper is %PageWidth% wide and %PageHeight% tall. The margins are %PageMarginTop% at the top, %PageMarginBottom% bottom, %PageMarginLeft% inside and %PageMarginRight% outside. Footer margin is %PageMarginFooter%, header is %PageMarginHeader%.
It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English.
Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.
Source: This was taken from a website [https://booktype.pro].
Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Contrary to popular belief, Lorem Ipsum is not simply random text.  Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Contrary to popular belief, Lorem Ipsum is not simply random text.  Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
A hanging paragraph. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).
Paragraph hanging. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).
Another hanging paragraph. Search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).
Paragraph hanging. Sometimes by accident, sometimes on purpose (injected humour and the like).
Paragraph hanging. Injected humour and the like.
Paragraph hanging. Sometimes on purpose (injected humour and the like).
A hanging paragraph right beneath a headline. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Contrary to popular belief, Lorem Ipsum is not simply random text.  Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Contrary to popular belief, Lorem Ipsum is not simply random text.  Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
This is a sample book, showing a real life example of what the theme '%ThemeNameHumanVal%' can do. This is the theme description: %ThemeDescriptionVal% The sample PDF was generated using the following sizes for paper and margins: The paper is %PageWidth% wide and %PageHeight% tall. The margins are %PageMarginTop% at the top, %PageMarginBottom% bottom, %PageMarginLeft% inside and %PageMarginRight% outside. Footer margin is %PageMarginFooter%, header is %PageMarginHeader%.
Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.
The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33 from "de Finibus Bonorum et Malorum" by Cicero are also reproduced in their exact original form, accompanied by English versions from the 1914 translation by H. Rackham.
Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text.
PRE starts: This text is preformatted. Line breaks like th is one are possible. Also white spacing can be made. It should be monospaced font, but that is not a requirements. It Could Be Any font. PRE ends
All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet. It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore always free from repetition, injected humour, or non-characteristic words etc.
There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text.
$value) { if (strpos($key, 'FontFamily') !== false) { if(isset($fontfamilies[$value])) { $get = func_get_font($key); } } } ?>
Left align. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Right align. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Center. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Justify. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
This is a sample book, showing a real life example of what the theme '%ThemeNameHumanVal%' can do. This is the theme description: %ThemeDescriptionVal% The sample PDF was generated using the following sizes for paper and margins: The paper is %PageWidth% wide and %PageHeight% tall. The margins are %PageMarginTop% at the top, %PageMarginBottom% bottom, %PageMarginLeft% inside and %PageMarginRight% outside. Footer margin is %PageMarginFooter%, header is %PageMarginHeader%.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.


Two people cut from wreckage and taken to hospital after crash on the A40 in Carmarthenshire
The road was blocked for more than two hours
by Robert HarriesTwo people have been taken to hospital after a crash in Carmarthenshire.
The collision happened at around 5.15pm on the westbound stretch of the A40 between Carmarthen and St Clears.
The road was blocked for more than two hours, creating a huge traffic backlog in the area which stretched back to the B&Q roundabout in Carmarthen.

A spokesman for the Mid and West Wales Fire and Rescue Service said: “We were called at 5.17pm to reports of a two-vehicle road traffic collision between Llanllwch and Meidrim on the A40 in Carmarthenshire.
“Two casualties have been extricated from vehicles using specialist cutting equipment.
“Crews left the scene shortly after 7.20pm.”
The fire service confirmed that two casualties were taken to hospital, but there is no update on the severity of any injuries suffered.


| (A) | ---- no text ---- | |
| 334 | (C) | That þe cawse of his comynge . is criste to a-venge |
| 335 | (D) | þat þe cause of her come was crist to avenge |
| 336 | (E) | þat þe cause of her comyng . was crist to auenge . |
| (Ex) | ---- no text ---- | |
| 344 | (L) | þat alle þe cause of her coms was crist forto venge |
| 329 | (P) | þat ałł þe cause of his comyng was crist for-to venge |
| 329 | (U) | That the cause of his kom / is crist to avenge |
| (V) | ---- no text ---- |


Blue is an easy level machine based on Windows, the main vulnerability is an infamous exploit named EternalBlue. Blue doesn’t require privilege escalation.
Recon
Starting with Nmap:
Looking for exploits and we found an exploit for the SMB running under Windows 7 named EternalBlue, the NSA leaked exploit.
To check if the machine is vulnerable we can use a Nmap script named smb-vuln-ms17-010
The machine is vulnerable to EternalBlue exploit but we can also use another exploit checker, the second checked is part of the metasploit EternalBlue module named windows/smb/ms17_010_eternalblue:
Exploiting - Exploiting the SMB
Metasploit has a module for this exploit, it’s named windows/smb/ms17_010_eternalblue
Now we have access to the machine as HARIS-PC user, he has administrative permissions and it allow us to capture both flags :)


Employee List
| Name | Date of Birth (yyyy/mm/dd) |
Address | Phone | Actions | |
|---|---|---|---|---|---|
| Name | Date of Birth (yyyy/mm/dd) |
Address | Phone | Actions | |
{{ employee.fname }} {{ employee.lname }} |
{{ employee.email }} |
{{ employee.dob }} |
{{ employee.address }} |
{{ employee.phone }} |
|


involves research, finding insights, identifying personas - building scenarios, developing concepts and testing models.
Question the existing, find answers and insights into current problems.
Identify needs and address motivations to create concepts.
Identify scope and milestones, design and prototype solutions.
Use data to quantify and reiterate to make better products.
my arsenal comprises of the following softwares to organise, communicate, visualise ideas and build prototypes.
in handling - business critical projects related to electronic prototypes, branding, print, websites, games and mobile apps.
.
A smart city startup, building minimal and critical smart phone solutions.
Discover curated exclusive products that bring personality to your life.
Digital innovation and consulting services for Internet based challenges.
Student centric college admissions to bag that dream university.
Mainframe Engineer, Tax Domain / Graphic and Digital Design for MF-SIG.
is a never ending process - multi-disciplinary learning, books, graphic novels, magazines and DIY hacks keep me occupied.
M.Des. Interaction Design portfolio at National Institute of Design - Bangalore.
B.Tech. Electronics and Telecommunications Engineering - 2011 - 78%.
I enjoy working with inspiring individuals and corporations to build robust and versatile products. Send me an Email.


I have always been interested in computer programming
and networking. After having a job at a cabinet factory I started working
with wood, which I enjoy as a hobby. I use my garage as my workshop and
my basement as my office for computer work.
To see more about my interests, please click the "Interests" link
in the menu to the left.
|
|
I am currently taking three classes in Summer II, which include: CMPS-262,
CMPS-261, and CMPS-480.
|
|
This week I added the menus although the links at the top
are not pointing to any files. I also created my Interests page,
but I am not happy with the layout, YET.
|
|


Produce Kaplan–Meier plots in the style recommended following the KMunicate study by TP Morris et al. (doi: 10.1136/bmjopen-2019-030215 ).
KMunicate( fit, time_scale, .risk_table = "KMunicate", .reverse = FALSE, .theme = NULL, .color_scale = NULL, .fill_scale = NULL, .linetype_scale = NULL, .annotate = NULL, .xlab = "Time", .ylab = ifelse(.reverse, "Estimated (1 - survival)", "Estimated survival"), .alpha = 0.25, .rel_heights = NULL, .ff = NULL, .risk_table_base_size = 11, .size = NULL, .legend_position = c(1, 1) )
| fit | A |
|---|---|
| time_scale | The time scale that will be used for the x-axis and for the summary tables. |
| .risk_table | This arguments define the type of risk table that is produced. |
| .reverse | If |
| .theme |
|
| .color_scale | Colour scale used for the plot. Has to be a |
| .fill_scale | Fill scale used for the plot. Has to be a |
| .linetype_scale | Linetype scale used for the plot. Has to be a |
| .annotate | Optional annotation to be added to the plot, e.g. using |
| .xlab | Label for the horizontal axis, defaults to Time. |
| .ylab | Label for the vertical axis, defaults to Estimated survival if |
| .alpha | Transparency of the point-wise confidence intervals |
| .rel_heights | Override default relative heights of plots and tables. Must be a numeric vector of length equal 1 + 1 per each arm in the Kaplan-Meier plot. See |
| .ff | A string used to define a base font for the plot. |
| .risk_table_base_size | Base font size for the risk table, given in pts. Defaults to 11. |
| .size | Thickness of each Kaplan-Meier curve. Defaults to |
| .legend_position | Position of the legend in the plot. Defaults to |
A KMunicate-style ggplot
object.


{% extends "_base.html" %} {% block content %}
You are part of our newsletter.
Sign up for our newsletter below:


public enum CodeFeatures extends java.lang.Enum<CodeFeatures>
| Modifier and Type | Method and Description |
|---|---|
static CodeFeatures |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CodeFeatures[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CodeFeatures S1_LOCAL_VAR_NOT_ASSIGNED
public static final CodeFeatures S1_LOCAL_VAR_NOT_USED
public static final CodeFeatures S2_SIMILAR_OBJECT_TYPE_WITH_NORMAL_GUARD
public static final CodeFeatures S2_SIMILAR_OBJECT_TYPE_WITH_NULL_GUARD
public static final CodeFeatures S3_TYPE_OF_FAULTY_STATEMENT
public static final CodeFeatures S4_Field_NOT_USED
public static final CodeFeatures S4_Field_NOT_ASSIGNED
public static final CodeFeatures S5_SIMILAR_PRIMITIVE_TYPE_WITH_NORMAL_GUARD
public static final CodeFeatures S5_SIMILAR_PRIMITIVE_TYPE_WITH_NULL_GUARD
public static final CodeFeatures S6_METHOD_THROWS_EXCEPTION
public static final CodeFeatures S7_OBJECT_USED_IN_ASSIGNMENT
public static final CodeFeatures S8_PRIMITIVE_USED_IN_ASSIGNMENT
public static final CodeFeatures S9_METHOD_CALL_WITH_NORMAL_GUARD
public static final CodeFeatures S10_METHOD_CALL_WITH_NULL_GUARD
public static final CodeFeatures S11_FAULTY_CLASS_EXCEPTION_TYPE
public static final CodeFeatures S12_METHOD_CALL_WITH_TRY_CATCH
public static final CodeFeatures S13_TYPE_OF_FAULTY_STATEMENT_BEFORE_1
public static final CodeFeatures S13_TYPE_OF_FAULTY_STATEMENT_BEFORE_2
public static final CodeFeatures S13_TYPE_OF_FAULTY_STATEMENT_BEFORE_3
public static final CodeFeatures S13_TYPE_OF_FAULTY_STATEMENT_AFTER_1
public static final CodeFeatures S13_TYPE_OF_FAULTY_STATEMENT_AFTER_2
public static final CodeFeatures S13_TYPE_OF_FAULTY_STATEMENT_AFTER_3
public static final CodeFeatures S14_TYPE_OF_FAULTY_STATEMENT_PARENT
public static final CodeFeatures S15_HAS_OBJECTIVE_METHOD_CALL
public static final CodeFeatures S16_HAS_Invocations_Prone_Exception
public static final CodeFeatures S18_In_Synchronized_Method
public static final CodeFeatures LE1_EXISTS_RELATED_BOOLEAN_EXPRESSION
public static final CodeFeatures LE2_IS_BOOLEAN_METHOD_PARAM_TYPE_VAR
public static final CodeFeatures LE3_IS_COMPATIBLE_VAR_NOT_INCLUDED
public static final CodeFeatures LE4_EXISTS_LOCAL_UNUSED_VARIABLES
public static final CodeFeatures LE5_COMPLEX_REFERENCE
public static final CodeFeatures LE6_HAS_NEGATION
public static final CodeFeatures LE7_SIMPLE_VAR_OR_METHOD_IN_LOGIC
public static final CodeFeatures LE8_SCOPE_VAR_USED_OTHER_BOOLEXPER
public static final CodeFeatures LE9_NORMAL_CHECK
public static final CodeFeatures LE9_NULL_CHECK
public static final CodeFeatures LE9_MIX_CHECK
public static final CodeFeatures LE9_EQUAL_NOTEQUAL_NULL_CHECK
public static final CodeFeatures LE10_ATOMIC_EXPRESSION_SAME_INVOCATION_TARGET
public static final CodeFeatures LE10_ATOMIC_EXPRESSION_COMPARISION_SAME_LEFT
public static final CodeFeatures LE10_ATOMIC_EXPRESSION_COMPARISION_SAME_RIGHT
public static final CodeFeatures LE10_ATOMIC_EXPRESSION_MULTIPLE_VAR_AS_BOOLEAN
public static final CodeFeatures LE10_ATOMIC_EXPRESSION_USED_IN_INVOCATION_COMPARISION_VARIABLE
public static final CodeFeatures LE10_CONTAINS_ALL_INVOCATION_COMPARISION_VARIABLE
public static final CodeFeatures V1_IS_TYPE_COMPATIBLE_METHOD_CALL_PARAM_RETURN
public static final CodeFeatures V2_HAS_VAR_SIM_NAME_COMP_TYPE
public static final CodeFeatures V2_HAS_VAR_SIM_NAME
public static final CodeFeatures V3_HAS_CONSTANT
public static final CodeFeatures V4B_USED_MULTIPLE_AS_PARAMETER
public static final CodeFeatures V4_FIRST_TIME_USED_AS_PARAMETER
public static final CodeFeatures V5_HAS_VAR_IN_TRANSFORMATION
public static final CodeFeatures V6_IS_METHOD_RETURN_TYPE_VAR
public static final CodeFeatures V16_IS_METHOD_PARAMETER_TYPE_VAR
public static final CodeFeatures V8_VAR_PRIMITIVE
public static final CodeFeatures V8_VAR_OBJECT
public static final CodeFeatures V9_VAR_TYPE_Similar_Literal
public static final CodeFeatures V10_VAR_TYPE_Similar_VAR
public static final CodeFeatures V11_VAR_COMPATIBLE_TYPE_IN_CONDITION
public static final CodeFeatures V12_VAR_Invocation_VAR_REPLACE_BY_VAR
public static final CodeFeatures V13_VAR_Invocation_VAR_REPLACE_BY_INVOCATION
public static final CodeFeatures V14_VAR_INSTANCE_OF_CLASS
public static final CodeFeatures V15_VAR_LAST_THREE_SAME_TYPE_LOC
public static final CodeFeatures V17_VAR_IS_ENUMERATION
public static final CodeFeatures V18_Has_Method_Similar_In_Name
public static final CodeFeatures V19_With_Special_Name
public static final CodeFeatures V1_LOCAL_VAR_NOT_USED
public static final CodeFeatures V1_LOCAL_VAR_NOT_ASSIGNED
public static final CodeFeatures V2_SIMILAR_OBJECT_TYPE_WITH_NORMAL_GUARD
public static final CodeFeatures V5_SIMILAR_PRIMITIVE_TYPE_WITH_NORMAL_GUARD
public static final CodeFeatures V2_SIMILAR_OBJECT_TYPE_WITH_NULL_GUARD
public static final CodeFeatures V5_SIMILAR_PRIMITIVE_TYPE_WITH_NULL_GUARD
public static final CodeFeatures V4_Field_NOT_USED
public static final CodeFeatures V4_Field_NOT_ASSIGNED
public static final CodeFeatures V7_OBJECT_USED_IN_ASSIGNMENT
public static final CodeFeatures V8_PRIMITIVE_USED_IN_ASSIGNMENT
public static final CodeFeatures M1_OVERLOADED_METHOD
public static final CodeFeatures M2_SIMILAR_METHOD_WITH_SAME_RETURN
public static final CodeFeatures M3_ANOTHER_METHOD_WITH_PARAMETER_RETURN_COMP
public static final CodeFeatures M4_PARAMETER_RETURN_COMPABILITY
public static final CodeFeatures M5_MI_WITH_COMPATIBLE_VAR_TYPE
public static final CodeFeatures M6_INV_Invocation_INV_REPLACE_BY_VAR
public static final CodeFeatures M7_INV_Invocation_INV_REPLACE_BY_INV
public static final CodeFeatures M8_RETURN_PRIMITIVE
public static final CodeFeatures M9_RETURN_OBJECTIVE
public static final CodeFeatures M10_WRAPTTED_IN_OTHER_CALLS
public static final CodeFeatures M11_Satrt_With_Get
public static final CodeFeatures M12_Has_Var_Similar_In_Name
public static final CodeFeatures M13_Argument_Has_Primitive
public static final CodeFeatures M1_LOCAL_VAR_NOT_USED
public static final CodeFeatures M1_LOCAL_VAR_NOT_ASSIGNED
public static final CodeFeatures M2_SIMILAR_OBJECT_TYPE_WITH_NORMAL_GUARD
public static final CodeFeatures M5_SIMILAR_PRIMITIVE_TYPE_WITH_NORMAL_GUARD
public static final CodeFeatures M2_SIMILAR_OBJECT_TYPE_WITH_NULL_GUARD
public static final CodeFeatures M5_SIMILAR_PRIMITIVE_TYPE_WITH_NULL_GUARD
public static final CodeFeatures M4_Field_NOT_USED
public static final CodeFeatures M4_Field_NOT_ASSIGNED
public static final CodeFeatures M7_OBJECT_USED_IN_ASSIGNMENT
public static final CodeFeatures M8_PRIMITIVE_USED_IN_ASSIGNMENT
public static final CodeFeatures M9_METHOD_CALL_WITH_NORMAL_GUARD
public static final CodeFeatures M10_METHOD_CALL_WITH_NULL_GUARD
public static final CodeFeatures M12_METHOD_CALL_WITH_TRY_CATCH
public static final CodeFeatures C1_SAME_TYPE_CONSTANT
public static final CodeFeatures C2_SAME_TYPE_CONSTANT_VAR
public static final CodeFeatures C2_SAME_TYPE_VAR
public static final CodeFeatures C3_TYPEACCESS_ACTUAL_VAR
public static final CodeFeatures C4_SIMILAR_TYPEACCESS_ACTUAL_VAR
public static final CodeFeatures C5_USES_ENUMERATION
public static final CodeFeatures CON1_OVERLOADED_CONSTRUCTOR
public static final CodeFeatures CON2_SIMILAR_CONSTRUCTOR
public static final CodeFeatures CON3_WRAPTTED_IN_OTHER_CALLS
public static final CodeFeatures CON4_Return_Primitive
public static final CodeFeatures CON5_Of_Class
public static final CodeFeatures CON6_Argument_Has_Primitive
public static final CodeFeatures CON9_METHOD_CALL_WITH_NORMAL_GUARD
public static final CodeFeatures CON10_METHOD_CALL_WITH_NULL_GUARD
public static final CodeFeatures CON12_METHOD_CALL_WITH_TRY_CATCH
public static final CodeFeatures E1_LOCAL_VAR_NOT_USED
public static final CodeFeatures E1_LOCAL_VAR_NOT_ASSIGNED
public static final CodeFeatures E2_SIMILAR_OBJECT_TYPE_WITH_NORMAL_GUARD
public static final CodeFeatures E5_SIMILAR_PRIMITIVE_TYPE_WITH_NORMAL_GUARD
public static final CodeFeatures E2_SIMILAR_OBJECT_TYPE_WITH_NULL_GUARD
public static final CodeFeatures E5_SIMILAR_PRIMITIVE_TYPE_WITH_NULL_GUARD
public static final CodeFeatures E4_Field_NOT_USED
public static final CodeFeatures E4_Field_NOT_ASSIGNED
public static final CodeFeatures E7_OBJECT_USED_IN_ASSIGNMENT
public static final CodeFeatures E8_PRIMITIVE_USED_IN_ASSIGNMENT
public static final CodeFeatures E9_METHOD_CALL_WITH_NORMAL_GUARD
public static final CodeFeatures E10_METHOD_CALL_WITH_NULL_GUARD
public static final CodeFeatures E1_RETURN_PRIMITIVE
public static final CodeFeatures E2_COMPATIBLE_INVOCATION_PAREMETER_RETURN
public static final CodeFeatures E3_COMPATIBLE_INVOCATION_PAREMETER
public static final CodeFeatures O1_IS_LOGICAL
public static final CodeFeatures O1_IS_BIT
public static final CodeFeatures O1_IS_COMPARE
public static final CodeFeatures O1_IS_SHIFT
public static final CodeFeatures O1_IS_MATH
public static final CodeFeatures O1_IS_OTHERS
public static final CodeFeatures O2_LOGICAL_CONTAIN_NOT
public static final CodeFeatures O3_CONTAIN_NULL
public static final CodeFeatures O3_CONTAIN_01
public static final CodeFeatures O4_COMPARE_IN_CONDITION
public static final CodeFeatures O5_IS_MATH_ROOT
public static final CodeFeatures P4J_SRC_REMOVE_PARTIAL_IF
public static final CodeFeatures P4J_SRC_REMOVE_STMT
public static final CodeFeatures P4J_SRC_REMOVE_WHOLE_BLOCK
public static final CodeFeatures P4J_SRC_REMOVE_WHOLE_IF
public static final CodeFeatures P4J_SRC_REPLACE_COND_RF
public static final CodeFeatures P4J_SRC_REPLACE_STMT_RF
public static final CodeFeatures P4J_SRC_INSERT_CONTROL_RF
public static final CodeFeatures P4J_SRC_INSERT_GUARD_RF
public static final CodeFeatures P4J_SRC_INSERT_STMT_RF
public static CodeFeatures[] values()
for (CodeFeatures c : CodeFeatures.values()) System.out.println(c);
public static CodeFeatures valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null


-
This is just a demo for ap-scroll-top. In order to show »Scroll to Top« element, scroll down this page.
-
-
Thanks to Atmospherics for the photos!
This is just a demo for ap-scroll-top. In order to show »Scroll to Top« element, scroll down this page.
Thanks to Atmospherics for the photos!


{{< layout}} {{$pageTitle}}Required Documents{{/pageTitle}} {{$header}}
Before we can send your new passport we need to see extra documents.We’ll check and return them to you.
You need to send:
And 2 documents that show you're using your new name:
You need to send:
And 1 document that proves you changed your name:
And 1 document that shows you're using your new name
If you've changed your name more than once, you'll need to send proof of every name change.
If your documents aren't in English or Welsh you also need to get a certified translation.


Frequency Sweep Generator
Generate a rising or falling tone between two endpoint frequencies.
Start Frequency (Hz)
End Frequency (Hz)
Duration (Seconds)
Generate
Play
Download