Practicality With Rust: Setting Up A Project
24 Apr 2014- Setting Up A Project
- Error Handling
This is going to be the first of many articles on the subject. The goal is to provide resources on how to use Rust effectively.
Note: I'm going to be using Rust through the master branch, and I'll be updating this series if things change.
My Rust version:
$ rustc -v
rustc 0.11.0-pre (773eb8c 2014-05-17 13:08:43 -0600)
host: x86_64-apple-darwin
Let's Get Started!
Setting a new Rust project from scratch is somewhat cumbersome, currently. This will change in the future, with tools like Cargo (The future Rust package manager). For now, we'll be sticking to regular Makefiles.
 An executable? Both?), you might not need src/bin.rs
or src/lib.rs
, or you might need both. src/lib.rs
is the convention for a library, and src/bin.rs
is the convention for an executable.
Before we go any further, you'll want to edit the .gitignore
file.
# Compiled Object files
*.slo
*.lo
*.o
*.obj
# Compiled Dynamic libraries
*.so
*.dylib
*.dll
# Compiled Static libraries
*.lai
*.la
*.a
*.lib
# Executables
*.exe
*.out
*.app
*.rlib
target
Most of these were automatically added by Github for C++. Some that are most important are *.rlib
, *.dylib
and target
.
target
is where we'll dump what we compile, which we'll write in our Makefile.
Let's work on the Makefile.
RUSTC ?= rustc
RUSTC_FLAGS ?=
SRC = $(shell find src -name '*.rs')
all: libprojectname
libprojectname: $(SRC)
mkdir -p target
$(RUSTC) --out-dir target src/lib.rs
test: $(SRC)
mkdir -p target
$(RUSTC) --test --out-dir target src/lib.rs
./target/projectname
clean:
@rm -rf target
.PHONY: clean
This is all you need for a library. You can copy the libprojectname
target for an executable. The only difference is you'll want to point to src/bin.rs
instead of src/lib.rs
We can now compile our library with make
or make libprojectname
and compile and run all the tests through make test
.
There are more exotic Rust makefiles out there, but I wouldn't use most of the features they offer, and writing one is pretty straightforward.
Library
Let's start writing our library. We'll open up src/lib.rs
to get going.
// src/lib.rs
#![crate_id = "projectname"]
#![crate_type = "lib"]
We just wrote two annotations to add some metadata to the library.
Now, it's your turn. The next task is to actually write the library you're dreaming of.
Testing
Testing is pretty important. However, because Rust makes a lot more guarantees than other languages, you don't have to test simple stuff (like arguments, types, "constructors", etc...).
The main focus should be on computation and operations. Does this function have a side-effect? Does it do more than one thing? Have more than one result? Those should be signs that they need to be tested. Of course, if you have any unsafe code, it definitely should be tested and vetted.
Testing in Rust is built-in, so let's take advantage of that. We can place our tests along side the code we're testing. Typically, you'll want all the tests at the bottom of each file and wrapped within it's own module:
// src/lib.rs
// ... Whatever you wrote in the library would be here.
#[cfg(test)]
mod test {
#[test]
fn should_pass() {
assert_eq!(1, 3);
}
}
If you want to include data structures, functions that you wrote, you'll need to use the use x;
statement.
// src/lib.rs
// ... Whatever you wrote in the library would be here.
pub struct Foo {
i: int
}
#[cfg(test)]
mod test {
use super::Foo;
#[test]
fn should_pass() {
assert_eq!(1, 3);
}
}
Foo
will now be available to your tests.
Wrapping Up
I think I'll stop there. While Rust is still lacking rigorous documentation and tooling, you can still get the job done. I'll also mention that dealing with dependencies is a massive pain, and you'll be resorting to something like cargo-lite or following what people do in the C and C++ world (git submodules and such).
Want something covered next? Let me know either through my links at the top or the comment section!


The Tigger Movie (2000) Reviewed by Eugene Novikov http://www.ultimate-movie.com/ Member: Online Film Critics Society
Featuring the voice talents of Jim Cummings, Nikita Hopkins, Ken Sansom, John Fiedler, Peter Cullen. Directed by Jun Falkenstein. Rated G.
You would expect the first theatrical feature based on the popular A. A. Milne Winnie the Pooh tales to be something memorable, children's entertainment for the ages. You'd think so, wouldn't you? Well, Disney never ceases to surprise us. This release seems purely perfunctory, made for a quick buck with no heart or much effort poured into it. It doesn't even star everybody's favorite bear (assuming you don't like Yogi). The Tigger Movie is pretty run-of-the-mill stuff; the youngest set of kids might enjoy it, but I doubt they'll want to watch it again or even remember it after a couple of days. Call me a Disney purist, but when it comes to their animation department, I expect the best and am rather irritated when I don't get it.
Pooh has crushingly little screen time because, as one might glean from the title, the focus of the film is Tigger, that lovable, striped companion. Unable to find anyone to "bounce" with him one afternoon, Tigger realizes that he might have a family somewhere and goes off searching for it. He looks for a family tree -- literally a tree, because he doesn't know any better. He's inevitably disappointed because even with the help of his moderately bouncy young kangaroo companion Roo, the search comes up empty.
Seeing their pal's disappointment, Pooh, Piglet, Rabbit and Iore plot to write a phony letter from his family and then have a phony family (them dressed in Tigger costumes) show up at Tigger's door. The final message, of course, is that friends are your family too and, as might be expected from a movie whose target audience's age is in the single digits, it is delivered with little subtlety. I'm perfectly fine with this as long as there is a certain grace and joie de vivre to the film. That's where this Tigger comes up short.
The animation is old-school and that's the way it's supposed to be. It has that very Pooh-ish storybook quality that fits the franchise like a glove; it's Disney's one cash cow that has refused to be taken over by high-tech gimmickery. What doesn't work is, well, everything else. Tigger's a pretty good character, but his babbling, word-butchering schtick gets old pretty fast. That's usually where the supporting players come to the rescue but The Tigger Movie doesn't let them be themselves. Winnie himself shows up only a couple of times so that he can do his trademark climbing-a-tree-after-honey-only-to-be-attacked-by- a-swarm-of-bees. Iore's presence, too, is merely for the sake of him being there. Piglet barely even opens his mouth. The Disney movie mill has stripped these beloved, age-old characters of almost all personality for the sake of commercialization and also to fit everyone into an 80-minute movie while focusing primarily on Tigger. The Winnie the Pooh series was so enduring because the characters worked together to solve a problem; this really is Tigger's movie.
I, of course, am not the target audience for this film so I am hard- pressed to say whether you should take your children to see this movie or not. The youngest set will almost certainly enjoy it. But when it comes to continuing the Pooh saga with grace and dignity, The Tigger Movie doesn't get the job done. It's passable, but I apparently wanted more than Disney could provide with a film that isn't their annual "animated feature."
Grade: C
©2000 Eugene Novikov
Sent via Deja.com http://www.deja.com/ Before you buy.
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


--- layout: post title: Earth Child date: '2004-08-11T17:35:00-04:00' tags: - '2004' tumblr_url: http://poetry.liabogoev.com/post/938803933/earth-child ---
This is that land of the
Earth Child
Born so free
and wild
It swims in the
river deep
It climbs up cliffs
so steep.
It resides in trees
that sway
On a quiet
breezy day.
But when you awaken
its ire
The wind in its
clamorous choir
will ring in
your ear
while it gives you
a hideous sneer.
This is the land
of the Child of Earth,
Giving you death,
Giving you birth…


The bailiff handed the defendant a hefty fine of 500 baht due to his reckless behavior which had led to the spread of a dangerous bacterial infection. [G|D]
The baseline of defense in the town was the bastion that protected citizens from being banished to far-off lands. [G|D]
The bally of the town had gathered at the bandstand to spread the message of goodness and eradicate all forms of badness. [G|D]
The backroom of the polling station was filled with the excited chatter of bachelors as they eagerly cast their ballot for the upcoming election. [G|D]


{% extends "global/Page.html" %} {% load otree static %} {% block title %} Payout of Earnings {% endblock %} {% block content %}
Your cumulative earnings for all 10 periods of the study will be converted to cash (at a rate of $0.07 per 1 point). This will be added to your $7.00 participation fee. The resulting amount will be paid to you electronically at the end of today’s session.
{% next_button %} {% endblock %}


| DOSE: |
repeated |
insufflated |
MDPV |
(powder / crystals) |
I normally wouldn't bother submitting a trip report, but because this substance is poorly documented I think it is important for people to be aware of what can happen.
I am very experienced with all types of drugs, but the ones that are relevant to this report include cocaine and amphetamines. I have done these drugs to death, and there may be some cross tolerance between them and MDPV.
I had bought a gram of MDPV from an online supplier, and because of my addictive personality I found it impossible to stop using it. I knew that this was a potential problem, but like everything else I had to find out the hard way. Anyway, I had been up for three days not eating or sleeping. I think the sleep deprivation may have played a large role in what happened.
I didn't have a milligram scale at the time, so unfortunately I don't know how much I had taken. I have since weighed this substance, and based on this information i can guess that I had been doing bumps in the 25 - 30 mg range. This is quite a large dose, but I think that a possible cross tolerance may have played a role in this.
This substance, like all stimulants, makes me very paranoid, but I have never experienced anything like this before. After I had finished off the gram, which was at the three day point, I started having very vivid hallucinations of people being in my house who refused to leave. These people were characters from the TV show Oz, in particular Vern Schillinger and his son Hank. Anyone who has seen the show will know what kind of guy this is, and what kind of mocking smile he has. I was extremely frightened and panicked.
I had been watching all the seasons back to back and I guess it got in my head. Anyway, I tried using conventional methods of making them leave, such as threatening them with my katana, but when this failed I called the police.  I can not stress enough how unusual it is for me to call the police for any reason. They ended up bringing me to the hospital where I was given 30 mg of Valium, which calmed me down. The combination is very nice actually.
After I got home I had more delusions of short little black clad Asians siting in my house who also refused to leave. These hallucinations were extremely vivid, and again
I tried threatening them, and of course it didn't work. At least I didn't call the cops this time. They weren't behaving in a threatening manner so I wasn't frightened this time. Still very unpleasant though. Anyway I finally fell asleep and all was well afterwards.
I have done this substance a second time with only 1/4 gram and I did get a bit paranoid, but nothing too serious. Treat this substance with respect and it's alright, although this is easier said than done. I hope this information is useful to someone, and may prevent a repeat incident.
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.


The only award show that matters.
If you want to nominate another movie please remove an existing nomination.
Just type in the name of the movie you want. Well do the search for you!


Adventure Tour
Home
Adventure Tour
Relaxation Tour
About Us
Feedback
Tour Request Form
Full Name:
E-mail:
Phone Number:
Choose Your Desired Package:
3 Days & 2 Nights
5 Days & 4 Nights
7 Days & 6 Nights
Number of Tourists:
Tour Date:
Are You Vaccinated Against Covid-19 Or Not?
Yes
No
Submit


I am devoted to conducting my choirs. Besides gospel, classical and popular repertoire, we work a lot on vocal techniques. Weekly rehearsals, concerts, festivals and masses are the great opportunities to unite with the passionate people who love music!


My name is Kato S Herman. I am a new programming student who hopes to improve the world, one code at a time. Oh, and get paid for it! First,let me conquer HTML
And then CSS< Bootstrap, Node.js. And then more


I think you might have taken my stethoscope out of the hospital? I need it to listen to Heartbeats by Jose Gonzalez. Thanks!
Hi there, can we please get some further medical support from the ENT ward?
Just checking in to see whether the new messaging system works? It seems to work brilliantly well! I'm excited about the entirety of this app!


Dear ,
How's it going, ? Things are going well in Portland. Hope you're well. I'm glad we're friends, .
Sincerely,
Parker


×
An error occured. Please contact casi.
×
Login
Login with Token
Login
Please confirm your identity by logging in below.
Username
Password
Login
Login with Token
Enter your AoPSCoin Token below.
Login
View Transactions
Send Transaction
Help
To
Amount
Notes
Send
Thank you for using AoPSCoin. If you encounter any bugs or find any vulnerabilities, please contact casi. Documentation can be found
here
.
Logout


YiCon
Project Info
| Duration | 9 months (Feb - Nov, 2016) |
| Team Size | 1 (Solo project) |
| Genre | Serious game - Construction project simulation |
| Platform | PC |
| Technology | Unity, C# |
| Related links |
Notable Experience
- First solo project
- Conducted a literature review on serious game design methods and the state of using serious games for construction management education
- With guidance of my supervisor, designed and developed a serious game about construction project management, with focus on labor resource allocation
- Implemented a versatile system to give player timely feedback based on their performance
- Conducted playtesting sessions to evalute the effectiveness of the game
Introduction
This game is developed for my undergraduate final year project – “A Serious Game for Construction Education – Development and Evaluation”.
In this project, I explored the possibility of using serious games to address problems existing in undergraduate-level construction education, and tried to develop a game to achieve this goal. I am quite proud that most play testers said this game did help them understand the construction process and the dynamic nature of project management.
In this game, the player plays the role of a project manager, whose goal is to minimize project time and cost of a simulated project through optimizing labor allocation strategies. The User’s Manual was made to assist the conduction of play test and evaluation of the game, and covers all inputs methods and guidelines for playing this game.
I learned a lot from the process of making this game. As this is my final year project, I examined learning theories and design frameworks of serious games before diving to the design and development of this game, so I familiarized myself with the status of serious game research. During the design stage, I referred to a real construction project to make this game more realistic, and I practiced designing games with the DPE framework, which was proposed by Prof. Brian W. in 2007. I also got a taste of conducting play test sessions during the evaluation of this stage. Although I did not have enough time to modify the game design based on players’ feedback, I realized the importance of sufficient play tests during game development.


Each line in the area under Quotation is a quotation pattern (see Quote values). A quotation pattern includes:
- Left:
a quotation character that is inserted before a value.
- Right:
a quotation character that is inserted after a value.
- Escape:
an escape method or character for the cases when the quotation character is part of a value. The <duplicate> value means that if a quotation character occurs within a
value, it is doubled. You can specify your own escape character.
If there is more than one pattern, the first pattern is used.


Welcome to my quiz page.Have fun!
Name
Question 2
Which of the following is not a programming language?
C++Question 3
Which of the following is the best football player?
MessiQuestion 4
Which of the following was not an American presidential candidate?
TrumpQuestion 5
What is the capital city of Kenya?
RongaiThis is your score:


| 028:025 Khan | : |
Then there came to him one of the two women, walking shyly. She said: "Verily, my father calls you that he may reward you for having watered (our flocks) for us." So when he came to him and narrated the story, he said: "Fear you not. You have escaped from the people who are Zalimun (polytheists, disbelievers, and wrong-doers)." |
| 028:025 Maulana | : |
Then one of the two women came to him walking bashfully. She said: My father invites thee that he may reward thee for having watered for us. So when he came to him and related to him the story, he said: Fear not, thou art secure from the iniquitous people. |
| 028:025 Pickthal | : |
Then there came unto him one of the two women, walking shyly. She said: Lo! my father biddeth thee, that he may reward thee with a payment for that thou didst water (the flock) for us. Then, when he came unto him and told him the (whole) story, he said: Fear not! Thou hast escaped from the wrongdoing folk. |
| 028:025 Rashad | : |
Soon, one of the two women approached him, shyly, and said, "My father invites you to pay you for watering for us." When he met him, and told him his story, he said, "Have no fear. You have been saved from the oppressive people." |
| 028:025 Sarwar | : |
One of the women, walking bashfully, came to Moses and said, "My father calls you and wants to pay you for your watering our flocks." When Moses came to the woman's father and told him his whole story, he said, "Do not be afraid. Now you are secure from the unjust people." |
| 028:025 Shakir | : |
Then one of the two women came to him walking bashfully. She said: My father invites you that he may give you the reward of your having watered for us. So when he came to him and gave to him the account, he said: Fear not, you are secure from the unjust people. |
| 028:025 Sherali | : |
And one of the two women came to him, walking bashfully. She said, 'My father calls thee that he may reward thee for thy having watered our flocks for us.' So when he came to him and told him the story, he said, 'Fear not; thou hast escaped from the unjust people.' |
| 028:025 Yusufali | : |
Afterwards one of the (damsels) came (back) to him, walking bashfully. She said: "My father invites thee that he may reward thee for having watered (our flocks) for us." So when he came to him and narrated the story, he said: "Fear thou not: (well) hast thou escaped from unjust people." |
Concepts/Themes Covered: القصص والتاريخ > ابنتا شعيب The Stories and the History>Shuaib's Two Daughters القصص والتاريخ > موسى > امرأة موسى The Stories and the History>Moses>Moses's Wife
This tool uses eight English parallel translations for the Holy Quran imported from Mr. Clay Smith. You can also visit Qurany Concepts for browsing the Quran themes or topics. If you want to search the Holy Quran for keywords, please visit Qurany Keywords.


Popular Categories
Loading ...
Popular Categories
-
#
-
A
- Adorable
- Adorable Japanese
- Adultery
- Affair
- African
- Aged
- Amateur
- Amateur Anal Sex
- Amateur Blowjob
- Amateur In Gangbang
- Amateur Interracial Sex
- Amateur Lesbian
- Amateur MILF
- Amateur Teen (18/19)
- Amateur Threesome
- Amateur Wife
- Anal
- Anal Casting
- Anal Compilation
- Anal Creampie
- Anal Gape
- Anal Orgasm
- Anal Pain
- Anal Sex In Homemade
- Anal Squirt
- Anime
- Arab
- Asian
- Asian Amateur
- Asian Anal Sex
- Asian Big Cock
- Asian Big Tits
- Asian Clit
- Asian Creampie
- Asian Hot Mom
- Asian Lesbian
- Asian Massage
- Asian Mom
- Asian Trans
- Ass Worship
- Assfingering
- Audition
-
B
- Babe
- Babysitter
- Barebacking
- BBC (Big Black Cock)
- BBW
- BBW Anal Sex
- BBW Teen (18/19)
- BDSM
- Beach
- Bear
- Beauty
- Bedroom
- Begging
- Behind The Scenes
- Bend Over
- Best Friend
- Big Ass
- Big Clit
- Big Cock
- Big Cock Anal Sex
- Big Natural Tits
- Big Nipples
- Big Pussy
- Big Tits
- Big Tits Anal Sex
- Bikini
- Bimbo
- Bisexual
- Bisexual Cuckold
- Black Cock
- Blond Teen (18/19)
- Blonde
- Blooper
- Blowjob
- Blowjob & Cum
- Blowjob & Cumshot
- Bondage
- British Amateur Wife
- British Mom
- Bus
- Busty
- Busty Amateur
- Busty MILF
- Busty Teen (18/19)
-
C
- Canadian
- Car
- Cartoon
- Casting
- Caught
- Caught Cheating
- Caught Masturbating
- Celebrity
- CFNM
- Cheating
- Cheating Mom
- Cheating Wife
- Chinese
- Chinese HD
- Chinese In Homemade
- Chinese Massage
- Chinese Mom
- Chinese Teen (18/19)
- Chubby
- Chubby Amateur
- Chubby Mature
- Chubby Teen (18/19)
- Classic
- Clothed Sex
- Club
- College Girl
- College Party
- Compilation
- Cougar
- Creampie
- Creampie Compilation
- Creampie Eating
- Creampie In Gangbang
- Creampie Mature
- Creampie MILF
- Creampie Mom
- Creampie Teen (18/19)
- Creamy Pussy
- Crossdressing
- Cuckold
- Cuckold Humiliation
- Cum Drenched
- Cum Eating
- Cum In Ass
- Cum In Mouth
- Cum In Mouth Compilation
- Cum In Pussy
- Cum Inside
- Cum On Tits
- Cum Swallowing
- Cum Twice
- Cumshot Compilation
- Czech Casting
- Czech Couple
-
D
-
E
-
F
- Face Fuck
- Face Sitting
- Fantasy
- Feet
- Female Ejaculation
- Female Orgasm
- Femdom
- FFM
- Filipina/Filipino
- Fingering Orgasm
- First Time
- First Time Anal
- First Time Lesbian
- Fisting
- Flat Chested
- Foursome
- French
- French Amateur
- French Hot Mom
- French Lesbian
- French Mature
- Friend
- Friend's Mom
- Friend's Sister
- Futanari
-
G
-
H
-
I
-
J
- Japanese
- Japanese Beauty
- Japanese Big Tits
- Japanese Cheating
- Japanese Doctor
- Japanese Group Sex
- Japanese HD
- Japanese Hot Mom
- Japanese Lesbian
- Japanese Massage
- Japanese Mature
- Japanese MILF
- Japanese Mom
- Japanese Orgasm
- Japanese Small Tits
- Japanese Teen (18/19)
- Japanese Teen Anal Sex (18/19)
- Japanese Threesome
- Japanese Vintage
- Japanese Wife
- JAV (Japanese Adult Video)
- Jerk Off Encouragement
- JOI (Jerk Off Instructions)
-
K
-
L
- Lactating
- Ladyboy
- Latex
- Latina
- Lesbian
- Lesbian Anal Sex
- Lesbian Asslick
- Lesbian Face Sitting
- Lesbian Fisting
- Lesbian Granny
- Lesbian In Homemade
- Lesbian In Threesome
- Lesbian Massage
- Lesbian MILF
- Lesbian Mom
- Lesbian Orgasm
- Lesbian Orgy
- Lesbian Pissing
- Lesbian Seduce
- Lesbian Slave
- Lesbian Squirt
- Lesbian Teacher
- Lesbian Teen (18/19)
- Lingerie
- Loads of Cum
-
M
- Machine Fucking
- Maid
- Massage
- Massage Fuck
- Massage Orgasm
- Masturbating
- Masturbation Solo
- Mature
- Mature & Young (18-25)
- Mature Amateur
- Mature Anal Sex
- Mature BBW
- Mature Handjob
- Mature In Solo
- Mature Lesbian
- Mexican
- Mexican Hot Mom
- Midget
- MILF
- MILF Anal Sex
- Milk
- Milking Machine
- Miniskirt
- Missionary
- MMF
- Mom
- Mom Anal Sex
- Mom Handjob
- Mom Massage
- Mom POV
- Mom Vintage
- Money
- Monster Cock
- Monster Cock Anal Sex
- Mutual Masturbation
-
N
-
O
-
P
-
Q
-
R
-
S
- Saggy Tits
- Secretary
- Seduce
- See Through
- Self Suck
- Sex Doll
- Sex Tape
- Share Wife
- Short Hair
- Shower
- Shy
- Sissy
- Skank
- Skinny
- Skinny Anal Sex
- Skinny Mature
- Slave
- Sleepover
- Small Cock
- Small Tits
- Smoking
- Socks
- Solo
- Sologirl
- Spanked
- Squirt
- Squirt Compilation
- Sri Lankan
- SSBBW
- Stockings
- Story
- Straight Guy
- Stranger
- Strap-On Guy
- Strap-On Lesbian
- Stripping
- Stupid Girl
- Submissive
- Surprise
- Swallow Compilation
- Swinger
-
T
- Taiwanese
- Taxi
- Teacher
- Teacher & Student
- Teen (18/19)
- Teen Anal Sex (18/19)
- Teen Big Ass (18/19)
- Teen In Gangbang (18/19)
- Teen In Threesome (18/19)
- Tgirl
- Thai
- Thai Trans
- Thick
- Threesome
- Threesome In Homemade
- Tied Up
- Tight
- Tight Pussy
- Tiny Tits
- Toon
- Torture (BDSM)
- Toys
- Trans
- Trans Big Cock
- Trans Compilation
- Trans Cumshot Compilation
- Trans Domination
- Trans Fucks Girl
- Trans Fucks Guy
- Trans Fucks Trans
- Trans In Solo
- Trans In Threesome
- Transvestite
- Tricked
- Truth Or Dare
- Turkish
- Twink
-
U
-
V
-
W
-
Y


update 4-3: changed a parameter because it was incorrect
Starting from Exchange 2007 several functionalities are offered via web services also known as Exchange Web Services (EWS). Functionalities offered by EWS are for example free/busy and Out Of Office.
Several clients can benefit from EWS among them Outlook 2007 and higher, Entourage with EWS extension and Outlook 2011. The last two clients are only available for Mac and don’t use MAPI to send/receive e-mail but do use EWS to do this. Another Mac related product is Apple Mail which works the same as Entourage and Outlook 2011.
On your local network this will not be the issue in most cases but if you are publishing your Exchange environment to the internet you might see some unwanted traffic. The reason why? Well if you are publishing EWS with the default authentication methods users can login using their username and password.  Outlook Anywhere is not enabled since you only allow full Outlook access when users are connected via VPN.
Now comes the fun when using Entourage, Outlook 2011 or Apple Mail your users will be able to send/receive their mail. This because they are using EWS and EWS is published either directly or more secure via a reverse proxy. This because you can use to reverse proxy to prevent the publishing of EWS. Although this may not be an option as we will see later in this blog.
How to solve this? Well it depends if you are not having Entourage and Outlook 2011 client on your local network you can choose to block both clients.
To configure this on your Exchange server run the following cmdlet:
Set-OrganizationConfig –EWSAllowEntourage $false –EWSAllowMacOutlook $false –EWSAllowApplicationAccessPolicy: EnforceAllowList
Let’s explain the parameters used:
- EWSAllowEntourage: specifies if Entourage is allowed or not
- EWSAllowMacOutlook: specifies if Outlook 2011 is allowed or not
- EWSAllowApplicationAccessPolicy: specifies if other applications are allowed to use EWS by using either allow (EnForceAllowList) or block (EnForceBlockList) specific applications/services
The last parameter is a little bit tricky since this will also block other applications/services that want to use EWS. This due to the fact that we not used the AllowList parameter. A few examples of these applications/services are: OCS/Lync clients and BlackBerry Server.
To allow those applications we will need to find out which client is trying to connect EWS does use the user agent string. The user string can be found by searching in the IIS log for example:
2012-08-03 12:07:40 <IP_ADDRESS> POST /EWS/Exchange.asmx – 443 – <IP_ADDRESS> Microsoft+Office/12.0+(Windows+NT+5.1;+Microsoft+Office+Outlook+12.0.6425;+Pro)
2012-08-03 00:03:14 <IP_ADDRESS> GET /autodiscover/autodiscover.xml – 443– <IP_ADDRESS> OC/4.0.7577.4051+(Microsoft+Lync+2010) 200 0 0 0
Below a list of user agent strings used by some popular programs:
- BlackBerry Servers: Mozilla/4.0+
- Microsoft OCS 2007 R2: OC/3.5.*.*
- Microsoft Lync 2010: OC/4.*.*.*
- Microsoft Lync Web App: CWA/4.*.*.*
- Microsoft Lync Phone Edition: OCPhone/4.*.*.*
Let’s change the earlier scenario a little bit:
_Your company only wants to allow users to use ActiveSync and OWA for e-mail access. Outlook Anywhere is not enabled since you only allow full Outlook access when users are connected via VPN. The company decides to implement Microsoft Lync 2010 and wants to use all options including the Outlook integration options. Lync is allowed to be used without setting up a VPN connection._
In this case we will need to exclude the Lync 2010 client from being blocked if it tries to use EWS:
Set-OrganizationConfig –EWSAllowEntourage $false –EWSAllowMacOutlook $false –EWSApplicationAccessPolicy: EnforceAllowList –AllowList {“*OC*”}
By using the above cmdlet we will only allow the OCS 2007 R2 and Lync 2010 client to use the EWS functionality.
Another way to block the EWS access is using your F5 appliance, if you have one of course. A good description on how to configure your F5 to support this can be found here written by fellow MVP Tom Pacyk.


| Total net profit | -0.03 | Gross profit | 3.35 | Gross loss | -3.38 |
| Profit factor | 0.99 | Expected payoff | -0.0 | ||
| Absolute drawdown | -0.03 | Maximal drawdown (%) | 1.5 (102.04%) | ||
| Total trades | 15 | Profit trades (% of total) | 6 (40.0%) | Loss trades (% of total) | 9 (60.0%) |
| Long positions (won %) | 3 (33.33%) | Short positions (won %) | 12 (41.67%) | ||
| Largest | profit trade | 1.47 | loss trade | -0.53 | |
| Average | profit trade | 0.56 | loss trade | -0.38 | |
| Minimum | profit trade | 0.01 | loss trade | -0.1 | |
| Maximum | take profit in pips | 111.5 | stop loss in pips | -40.0 | |
| Average | take profit in pips | 40.2 | stop loss in pips | -28.2 | |
| Minimum | take profit in pips | 0.4 | stop loss in pips | -7.7 | |
| Maximum | Reward-Risk | 8.7 | Duration in minutes | 14292 | |
| Average | Reward-Risk | 1.8 | Duration in minutes | 1880.7 | |
| Minimum | Reward-Risk | 0.0 | Duration in minutes | 6 | |
| Maximum | consecutive wins (profit in money) | 3.0 (0.78) | consecutive losses (loss in money) | 3.0 (-0.93) | |
| Average | consecutive wins | 1.0 | consecutive losses | 2.0 |
| Total net profit | -0.62 | Gross profit | 0.19 | Gross loss | -0.81 |
| Profit factor | 0.23 | Expected payoff | -0.21 | ||
| Absolute drawdown | -0.62 | Maximal drawdown (%) | 0.81 (426.32%) | ||
| Total trades | 3 | Profit trades (% of total) | 1 (33.33%) | Loss trades (% of total) | 2 (66.67%) |
| Largest | profit trade | 0.19 | loss trade | -0.41 | |
| Average | profit trade | 0.19 | loss trade | -0.41 | |
| Minimum | profit trade | 0.19 | loss trade | -0.4 | |
| Maximum | take profit in pips | 45.8 | stop loss in pips | -31.0 | |
| Average | take profit in pips | 29.0 | stop loss in pips | -27.3 | |
| Minimum | take profit in pips | 13.9 | stop loss in pips | -20.8 | |
| Maximum | Reward-Risk | 1.5 | Duration in minutes | 983.0 | |
| Average | Reward-Risk | 1.0 | Duration in minutes | 345.7 | |
| Minimum | Reward-Risk | 0.7 | Duration in minutes | 20.0 | |
| Maximum | consecutive wins (profit in money) | 1.0 (0.19) | consecutive losses (loss in money) | 2.0 (-0.81) | |
| Average | consecutive wins | 1.0 | consecutive losses | 2.0 |
| Total net profit | 0.59 | Gross profit | 3.16 | Gross loss | -2.57 |
| Profit factor | 1.23 | Expected payoff | 0.05 | ||
| Absolute drawdown | -0.0 | Maximal drawdown (%) | 1.47 (100.0%) | ||
| Total trades | 12 | Profit trades (% of total) | 5 (41.67%) | Loss trades (% of total) | 7 (58.33%) |
| Largest | profit trade | 1.47 | loss trade | -0.53 | |
| Average | profit trade | 0.63 | loss trade | -0.37 | |
| Minimum | profit trade | 0.01 | loss trade | -0.1 | |
| Maximum | take profit in pips | 111.5 | stop loss in pips | -40.0 | |
| Average | take profit in pips | 43.0 | stop loss in pips | -28.4 | |
| Minimum | take profit in pips | 0.4 | stop loss in pips | -7.7 | |
| Maximum | Reward-Risk | 8.7 | Duration in minutes | 14292.0 | |
| Average | Reward-Risk | 2.0 | Duration in minutes | 2264.4 | |
| Minimum | Reward-Risk | Duration in minutes | 6.0 | ||
| Maximum | consecutive wins (profit in money) | 2.0 (0.59) | consecutive losses (loss in money) | 3.0 (-0.93) | |
| Average | consecutive wins | 1.0 | consecutive losses | 2.0 |


Healing creative scars
My ultimate secret weapon for self improvement
25 June 2017 | 27 April 2018
learning self improvement journalingWant to skip to the practical part?
Are you aware of your problems?
 He didn’t have many hobbies: gaming. He didn’t have many friends. Playing outside is okay as long as the 4 AA batteries are fully charged and the sun isn’t shining too bright and the playing is confined to one square meter. As the boy grew up, his taste for music didn’t broaden: it narrowed.  Twenty years later, that boy who became a man still has a hard time unthinking he cannot draw or run or swim.
That is called a creative scar and can be very deadly. If someone ever says to you “haha, you can’t X”, chances are that you’ll tend to believe that person. Effects? Next time you’ll think twice before doing X again. No way someone will laugh at you for doing something silly, right? So forget X, let’s try Y instead. But why should you? Because one or two persons who have no idea what X is all about claim to know if you are good at it or not?
The problem gets worse if you are not aware that you have in facts such a scar. If you’re not aware, then how on earth are you going to do something about it? The answer is you won’t. You’re stuck in the “Unconsciously incompetent” stage of competency. A diagram from Wikipedia might help to sketch the situation a bit:
Unconsciously incompetent: The individual does not understand or know how to do something and does not necessarily recognize the deficit.
There are a lot like-minded diagrams or flow charts or resumes out there that try to tell you the same. The Shu, Ha, Ri learning principles of martial arts explained here assume that you are willing to improve meaning you’d already be in the consciously incompetent stage.
Okay, so how do you move from the bottom part of the pyramid all the way to the top? That’s where self improvement comes into play.
Unlocking your consciousness
That boy how grew up to be a Nintendo fanboy has a blog and you’re reading it. His music taste has broadened a lot, he’s no longer a black and white thinker but started seeing shades of gray (50?). I do not know exactly when this all happened but I’ll tell you it did not happen in a day or a week. It took me at least 7 years. In august 2010, I bought a cheap Moleskine notebook knock-off and started jotting down some notes. Those things typically included:
- Lists. I love lists. Your favorite (gameboy) game? Top 5 good food! What about movies? Birthday wanted lists etc etc.
- Regrets. Too bad I don’t have many friends to play boardgames with.
- Wishes. I’d love to run 10km once. Wow, that seems highly unlikely, as I remember someone said I can’t run. Still… Would be cool. Like to visit Japan someday. Or walk on the Great Wall of China, why not.
- Brain dumps. A Momentary Lapse of Reason. How I feel on a given moment.
Somehow, thanks to lots and lots and lots of writing, I started to become more aware of my own thoughts and feelings. In that time I read a lot of self help books - 9 out of 10 were junk, but I kept small summaries in my notebook. Somehow, some quotes or key giveaways still lingered in my extended analog memory, ready to be reread and executed. I always liked to write - otherwise I wouldn’t be writing this article right here - but using a pen and ink to write down thoughts felt great. I finally had a way to track what I was doing or should be doing.
Of course concepts like journaling aren’t new at all: Roman emperor and philosopher Marcus Aurelius wrote down how he should behave centuries ago. Great minds like Wittgenstein, John Locke and Seneca also loved writing. The medium was and is a great fit for rapid note taking - whether it’s ideas or feelings, that doesn’t really matter. As long as you do something with it afterwards. Or not - that’s okay too.
So I did not try to reinvent the wheel: I merely looked and copied what worked for me. That very same thing might not work for you at all - you might be one of those digital whizz kids that like to use Evernote or Google Keep. I’m more of an analog guy: it enables me to sketch, write, make mind maps and paste pictures. But what should you do with your piece of work?
The Quantified Self
My favorite American Timothy Ferris has the answer to that. It’s called “quantify yourself”: don’t just gather data but also normalize it, tune it, change yourself, push yourself, re-gather data and analyze it further. Since the sudden increase in popularity on smart watches, it’s rather easy for anyone to keep track of their health. Steps per day, sleep cycle, calories intake, you name it and your trusty watch will track it for you. There’s even a conference on Quantified Self full of (technology) enthusiasts eager to share their experience with recording and adjusting stuff to make the world a better place.
But tracking itself isn’t enough. Tim Ferris monitors his own body in extreme detail: after taking vitamins, before and after a workout, … Then he alters his daily routine. It’s called modern self optimization. Tim is all about improving yourself and he even hosts an extreme successful podcast called the Tim Ferris Show. Subjects as “Maximizing Strength, Improving Mindset, and Becoming the World’s Fittest Man” are not uncommon on the show, it’s certainly worth checking out. Tim is also a fan of “morning pages” in the morning: 5 minutes of writing in your journal before you do anything else. Except for getting out of bed (and maybe meditating) of course.
It is possible to become world-class in just about anything in six months or less. Armed with the right framework, you can seemingly perform miracles, whether with Spanish, swimming, or anything in between.
David Allen’s Getting Things Done, or GTD, works more or less the same: there are clear differences between recording thoughts and executing them. When you surf to the webpage of GTD, you’re greeted with this lovely quote from David himself:
Your mind is for having ideas, not holding them.
That is a powerful way of saying you should have a system that holds those ideas. In GTD, you re-read your captured ideas once or twice a week and decide what to do with them. Did you change your mind? Scratch those notes or throw away the loose page. Did you connect one idea with another, but is it still ripening like a nicely aged bottle of wine? Then connect them and add additional thoughts. But again, the key part is re-reading and re-prioritizing everything. If something you think about involves work that is less than 10 minutes, you have the option to execute it right there instead of taking note of it.
Those notes in my journal set me on track to identify what I wanted to do the most and helped me actually realize them. I’ll list some examples here because I like to list stuff, not because I like to brag what I did. Maybe I also do, but it’s to show you what a person is capable of - if you have the willpower to sit through some emotional and physical pain.
 Now I run 10km.
- The only books I loved to read were fantasy to escape from this world. Now I run a lot of non-fiction books on any subject.
- I decided that I should finally learn to draw.
- After falling in love with sourdough bread, I decided to follow a three year long night class to become a professional baker, and did an intensive internship, combined with my full-time job.
These examples might sound trivial to you, but mean the world to me. Everything wasn’t a simple “okay let’s do that” thought but came up organically by tracking what I was thinking on a given moment. When I notice I complain a lot about my bad drawing skills, I might - finally - do something about that.
Before journaling, I simply had no idea!
Serendipity
One of the most influential (on a personal level) books I’ve read is Where good ideas come from by Steven Johnson. One particular chapter struck me as very helpful. Steven talks about the collision of ideas by pairing them up “by accident”. It’s called serendipity. Imagine going to the library with one or two books in your mind to search for. When you enter the library, a few books are displayed as ‘new’ and you pick up one of them and start reading the cover. Browsing like that makes you connect the dots and eventually stumble upon new, interesting and exciting stuff. I usually go back home with other books than I intended to and never regret the decision after reading them.
The same is true for your bag of ideas that you call your journal. The more ideas that are compressed together on the A5 pages (in my case), the higher the chances that you’ll come up with something new based on those ideas. Again, one clear requirement is re-reading what you’ve written down. Some people like order and try to keep separate journals on ideas for the house, things from work and emotional thoughts. I am not one of those: I like my journals to be as organic as possible: let it grow, I say. I write whatever comes to me, and the next day the next thought is written down beside the previous one. Everything underneath each other. That might not work for you - just try some things and see what you like. Digital tools make tagging and searching a lot easier but require you to keep your cellphone closeby. I just happen to like fountain pens a lot more than cellphones.
Thanks to the serendipitous work of my journals, I got interested in a lot of subjects that I thought were not something for me. Let’s take up another list:
- I like cooking. After a few journals, I like cooking and bread baking and fermenting and I’m now a vegetarian.
- I like drawing. After a few journals, I would like to know more about book binding, calligraphy and turning my own wooden fountain pen.
- I like learning. Now I like teaching, philosophy and Buddhism.
Thanks to a chain of new ideas and things to try out, you get to discover new ideas and things to try out. It’s an adventure, and it never stops.
More on learning how to learn in the earlier samurai learning mindset blog post.
Responsibility - for yourself
Chances are you’ve already heard from Christopher Avery’s Responsibility Process ™. I won’t go into detail here but the model consists of different components that actually match the competency model I mentioned above: there’s denial (you’re not aware of any problems), there’s justify/blame (you’re aware but not willing to do something about it), there’s obligation/shame (you’re doing something about it because you have to) and finally there’s responsibility. Writing down thoughts feels like stepping through that model - at least in the beginning, it does. You’re not sure you’re ready to admit that you might benefit from writing at all. But after your first or second small success you feel obliged to continue.
Nobody can help you like you can help yourself. And you can’t help others, if you don’t help yourself first. There is no Growing Smart Together if there is no Growing Smart Alone. It’s your responsibility to get the best out of yourself - how you do it is up to you. I am happy with my secret weapon: journaling. It has proven to be extremely effective for the past seven years now.
That’s exactly what it feels like.
In practice
There are a lot of techniques involved in efficient journaling I like to save for a future blog post to be linked here. (Update: it’s here!) But in practice, it all boils down to just starting to write. Do what works for you. If you decide to buy a journal, consider scanning in pages after it’s full. I archive everything in Evernote but that requires tagging manually and soaks op a lot of hours. GTD is a nice way to keep track of things to do - if you’re the kind of person who likes TODOs. I also like pasting pictures, doodling and sketching and even scrap-booking. Whatever that works.
Travel journals, details of book reviews, course summaries you’ve followed, loose notes, gardening schemes, … It’s all there waiting for you to discover. Have fun connecting the dots!


#!/bin/bash
#@author JaminB
#https://github.com/milccdc/State-ccdc
#Will report any process started after the script is iniciated.
ps -A | cut -d ':' -f3 | cut -d ' ' -f2 | sort -k2 > snapshot
while true;
do
current_proc=`ps -A | cut -d ':' -f3 | cut -d ' ' -f2 | sort -k2`
snapshot_proc=`cat snapshot`
echo NEW PROCESSES:
diff -w <(echo "$current_proc") <(echo "$snapshot_proc") > possiblyBad
i=1
cat possiblyBad | while read line
do
if [ $(( $i%2 )) == 0 ]; then
echo $line | cut -d '<' -f2
fi
(( i=i+1 ))
done
sleep 3
clear
done