History
Ancient
In the 13th century BC, Rameses the Great spread lies and propaganda portraying the Battle of Kadesh as a stunning victory for the Egyptians; he depicted scenes of himself smiting his foes during the battle on the walls of nearly all his temples. The treaty between the Egyptians and the Hittites, however, reveals that the battle was actually a stalemate.
During the first century BC, Octavian ran a campaign of misinformation against his rival Mark Antony, portraying him as a drunkard, a womanizer, and a mere puppet of the Egyptian queen Cleopatra VII. He published a document purporting to be Mark Antony's will, which claimed that Mark Antony, upon his death, wished to be entombed in the mausoleum of the Ptolemaic pharaohs. Although the document may have been forged, it invoked outrage from the Roman populace. Mark Antony ultimately killed himself after his defeat in the Battle of Actium upon hearing false rumors propagated by Cleopatra herself claiming that she had committed suicide.
During the second and third centuries AD, false rumors were spread about Christians claiming that they engaged in ritual cannibalism and incest. In the late third century AD, the Christian apologist Lactantius invented and exaggerated stories about pagans engaging in acts of immorality and cruelty, while the anti-Christian writer Porphyry invented similar stories about Christians.
Medieval
In 1475, a fake news story in Trent claimed that the Jewish community had murdered a two-and-a-half-year-old Christian infant named Simonino. The story resulted in all the Jews in the city being arrested and tortured; 15 of them were burned at the stake. Pope Sixtus IV himself attempted to stamp out the story; however, by that point, it had already spread beyond anyone's control. Stories of this kind were known as "blood libel"; they claimed that Jews purposely killed Christians, especially Christian children, and used their blood for religious or ritual purposes.
Early modern
After the invention of the printing press in 1439, publications became widespread but there was no standard of journalistic ethics to follow. By the 17th century, historians began the practice of citing their sources in footnotes. In 1610 when Galileo went on trial, the demand for verifiable news increased.
During the 18th century publishers of fake news were fined and banned in the Netherlands; one man, Gerard Lodewijk van der Macht, was banned four times by Dutch authorities—and four times he moved and restarted his press. In the American colonies, Benjamin Franklin wrote fake news about murderous "scalping" Indians working with King George III in an effort to sway public opinion in favor of the American Revolution.
Canards, the successors of the 16th century pasquinade, were sold in Paris on the street for two centuries, starting in the 17th century. In 1793, Marie Antoinette was executed in part because of popular hatred engendered by a canard on which her face had been printed.
During the era of slave-owning in the United States, supporters of slavery propagated fake news stories about African Americans, whom white people considered to have lower status.[83] Violence occurred in reaction to the spread of some fake news events. In one instance, stories of African Americans spontaneously turning white spread through the south and struck fear into the hearts of many people.
Rumors and anxieties about slave rebellions were common in Virginia from the beginning of the colonial period, despite the only major uprising occurring in the 19th century.  The serving governor of Virginia at the time, Governor William Gooch, reported that a slave rebellion had occurred but was effectively put down—although this never happened. After Gooch discovered the falsehood, he ordered slaves found off plantations to be punished, tortured and made prisoners.


--- layout: post title: Jekyll date: "2012-12-26" ---
Jekyll is a tool that can be used to build static HTML websites using a HTML template engine etc., however it's not perfect by itself, and the documentation for the plugins is rather crappy at times.
Unfortunately, you will need to install ruby (including -devel packages) and do whatever you need to do to get RubyGems installer.
More about Jekyll: http://jekyllrb.com/
Definitely worth installing is jekyll-asset-pipeline, it makes sure your CSS and JS files are combined and compressed, as well as making sure (with a little help) that LESS, SASS, CoffeeScript etc. is converted prior to this.
To get this working, read up on https://github.com/matthodan/jekyll-asset-pipeline/
To get LESS compilation working with Jekyll Asset Pipeline, you need to add some code to the jekyll_asset_pipeline.rb file you already created. I tried to look for a ready solution, but eventually ended up combining two-three solutions into something that works.
It uses the node.js lessc compiler to process the files and is written in a fairly unoptimal way in general, because I haven't got a clue of how to write Ruby and this was the first thing that I got to work.
This is the complete contents of that file for me now:
{{< highlight ruby >}} require 'jekyll_asset_pipeline' # Additions to jekyll-asset-pipeline module JekyllAssetPipeline # Compile LESS to CSS class LESSConverter < JekyllAssetPipeline::Converter # Dependencies require 'shellwords' # What filetypes we're interested in def self.filetype '.less' end # Function to convert input at @content to output via return def convert # Build a shell command to convert via lessc # echo "less content" | lessc - command = [ "echo", Shellwords.escape(@content), "|", "lessc", "-x", "-O2", "-" ].join(" ") # Execute the command and return stdout data return `#{command}` end end # Compress JavaScript class JavaScriptCompressor < JekyllAssetPipeline::Compressor require 'closure-compiler' def self.filetype '.js' end def compress return Closure::Compiler.new.compile(@content) end end end {{< /highlight >}}


SIMILE Widgets
Timeplot
Examples: Stats
Stats
Web Traffic
Web Crawlers Traffic
Newsfeed Traffic
Downloads (
log
|
lin
)


Dogs and Cats Machine Learning Audio Prediction
Cat or Dog?
Analyze Animal Image
Select Audio File:
Process Audio
Result shows here


%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
1. Download Glass Guardian Apk file from download link.
2. On Google Glass, navigate to Settings / Device Info and turn on debug.
3. Connect Google Glass to a computer, and make sure ADB is set up.
4. Open a terminal on the folder that contains GlassGuardian.apk.
5. Run the command: adb install GlassGuardian.apk.
6. Say "Ok Glass, protect me" to open the app.


The current limit of 9-10 server favorites is just sad, I'd like to see an extension to this page to allow at least 20, or more. If that isn't possible then maybe a separate page aside from Favorites with the same features that allows more to be added and tracked. Thanks!
BrainFooLong
Administrator
Sorry, you must wait for DICE to implement this.
Greetz


I am Aktar Zaman, a third year Computer Science student I enjoy building things. Specially if it's related to API stuff I am all up for the challenges. I also enjoy cooking during my free time. It makes me happy when I see people enjoying my food.


Perform Review
Please review and concur within 3 business daysof receipt of this package.
Review due in:2 Days 3 Hours
Lorem Package Name
| Routing # | PAM # | Group | Administrator | Status | Routing Started on | Comments |
|---|---|---|---|---|---|---|
Reviewers (in order of review)
Distribtion Options
Mary Meador, Please review the information below, make comments and give your concurrence. Thank you.
Files to Review
| File | Description |
|---|---|
I do not concur/approve
I concur/approve
This will complete the abstract review or if more review levels are beyond this point, this level will be completed.
This review iteration will require the abstract to be returned back to the center/HQ office with a "DO NOT proceed". (By default the "submitter" will be added to the end of this review package and then the HQ Partnership Office will be added after to confirm any changes to the abstract as the review continues). If a review will be done by a person other than the submitter for this package, the "Add Reviewer" button need to be used to manually add the new reviewer.
The NASA PO is issuing a "Final DO NOt Proceed' to close this record. If the initiating office is able to resolve the concerns described above, then they are requested to re-submit a new abstract. (This selection is rarely used.)
Reviewer Comments


---
layout: post
title: family wine label also orange one behind right
date: '2014-08-26T21:23:49-07:00'
tags:
- frombrett
tumblr_url: http://beekley.xyz/post/95886578176/family-wine-label-also-orange-one-behind-right
---
Family wine label. Also: orange one behind right.


--- layout: archive title: Zulip Chat Archive permalink: /stream/113488-general/topic/performance.20Lean.20vs.20Z3.html ---
I just saw that Leonardo de Moura was one of the principal architects of both Z3 and Lean. That is awesome! Are there any benchmarks on Z3 vs Lean performance?
they are not directly comparable
I understand that Z3 is an SMT solver. Does Lean at some point also not contain some sort of solver?
No
Lean has a bunch of tactics, some of which may call solvers, but most don't
The solver is this chatroom in Lean
have you got some spare CPU cycles? We're trying to prove some theorems
there are some algorithms that may have been borrowed from Z3, for example, cc
and eblast
, but TBH they aren't used very often
Kevin Buzzard said:
have you got some spare CPU cycles? We're trying to prove some theorems
Anything related to physics ?
what kind of physics?
Classical mechanics, GR, or PDEs
I think it would be really cool to see GR foundations in lean. We have stuff on manifolds and "holors" (what physicists call tensors), but I don't think we have anything to do with Riemannian manifolds and geodesics
Well, I've completed the natural number game, and would appreciate unrusting my relativity, so if people know how I could start, I would welcome that.
Or is there anything done on Lagrangian/Hamiltonian formalisms?
Here's a paper; maybe it's useful? https://arxiv.org/pdf/1005.0960v2.pdf
It's a synthetic development, which may or may not be interesting to you...
I found it by searching; it was some Harvard student's senior thesis to formalize this in Coq: https://dash.harvard.edu/handle/1/38811518
Miguel Raz Guzmán Macedo said:
Well, I've completed the natural number game, and would appreciate unrusting my relativity, so if people know how I could start, I would welcome that.
Going from the properties of addition and multiplication of natural numbers to relativity maybe a slightly too big jump....
Andrew Ashworth said:
I found it by searching; it was some Harvard student's senior thesis to formalize this in Coq: https://dash.harvard.edu/handle/1/38811518
Hey, this includes the Coq code he used. Maybe transcribing it into Lean is just manageable. Would you happen to know a similar effort in Coq to prove the Hamiltonian or Lagrangian formalisms?
Also, @Kevin Buzzard what's the big difference between the performance of proof vs tactic mode in Lean? Does a succesful tactic proof get compiled down to a term proof?
Yes, you can use #print
to see the resulting term
Tactic mode is usually slower than term mode, as tactics have to construct the term. You may be surprised to find that it's not always slower, because term mode also has automation behind it, namely elaboration, and this can also be significantly expensive in some cases.
However you have to ask yourself if the speed gain is worth it. Don't get caught in the micro-optimization trap
(says the guy who decided to write his own theorem prover because lean was too slow)
Ha, thanks Mario! You would know if anyone has reimplemented the Lean kernel in Rust right?
I don't think anybody has done that
Step 1: be familiar with the calculus of inductive constructions. Step 2: be familiar with the implementation of functional programming language compilers. Step 3: draw the owl in Rust
Actually it has been done, see nanoda
But you never know. Somebody here a few weeks ago wanted to implement the Lean kernel on an FPGA
is that the kernel or just a type-checker?
what's the difference?
Does elaboration, unification, type-class inference not count as part of the kernel? ¯\_(ツ)_/¯
I would consider none of that part of the kernel
I suppose you could call it part of the type checker front end
I guess my definition is wrong. Is there a type-checker for that?
To me type checker and kernel are mostly synonymous. There are no implementations of the lean front end other than lean
(which I consider to be a serious trustworthiness hole)
but it's hard to do otherwise because lean is so complicated
the reason lean is slow has little to do with the implementation and everything to do with what it is being asked to do
If you ever try tracing anything you will realize that lean is doing a phenomenal amount of work
For typeclass inference in particular I am amazed that lean is able to perform as well as it does considering how much it has to churn through
Andrew Ashworth said:
It's a synthetic development, which may or may not be interesting to you...
Sorry, what does synthetic mean here?
It means that the treatment is syntactic, using axioms for basic rules about relativity etc. rather than defining things as you would in regular mathematics, using e.g. functions on an infinite dimensional complex vector space
wait, I got confused whether we are talking about general relativity or quantum mechanics. Well, the point is the same
Ah, works for me! Thanks Mario.
You'd better not do both in Lean because they contradict each other, right?
No, the relation is akin to models of a formal theory
I guess that would be more of a reason to try and formalize it - see what breaks up.
you should be able to prove that the "semantic" version is an instance of the axioms of the "syntactic" version
You only get into trouble if you start making ontological claims like "nothing exists except for points that are described by the syntactic theory" therefore your models are necessarily countable
So in some respects, the syntactic / synthetic approach is more general, but the semantic approach has the advantage that you can prove facts by reference to the model itself, there is no constraint on how you conduct a proof
I think Kevin meant "general relativity and quantum mechanics contradict each other", not "synthetic vs semantic".
Ah, I missed that. Although it would be pretty tricky to actually derive a contradiction since they are so incompatible
it would be like proving that the unit circle is disjoint from a lemon
it would be like proving that the unit circle is disjoint from a lemon
I saw this message popping up as an out of context desktop notification, it was pretty weird (and I didn't guess it was answering one of my messages).
I think that's undecidable in Lean
{% endraw %}Last updated: Apr 24 2020 at 19:02 UTC


| Image | Title | Author | Price | Number | Sum |
|---|---|---|---|---|---|
| {{book.title}} | {{book.author}} | ${{book.price}} | {{book.bookNumber}} | ${{book.linePrice}} |
Name: {{model.order.receiver}}
Address: {{model.order.address}}
Phone: {{model.order.telephone}}
Purchased Date: {{model.formatTime(model.order.time)}}
Status: {{model.order.status}}
Price: ${{model.order.totalPrice}}


동해물과 백두산이 마르고 닳도록 하느님이 보우하사 우리나라 만세 무궁화 삼천리 화려강산 대한사람 대한으로 길이 보전하세
O say, can you see, by the dawn’s early light, What so proudly we hailed at the twilight’s last gleaming, Whose broad stripes and bright stars, through the perilous fight, O’er the ramparts we watched, were so gallantly streaming? And the rockets’ red glare, the bombs bursting in air, Gave proof through the night that our flag was still there; O say, does that star-spangled banner yet wave O’er the land of the free and the home of the brave?
HTML5 is a markup language used for structuring and presenting content on the World Wide Web. It is the fifth and last[3] major HTML version that is a World Wide Web Consortium (W3C) recommendation. The current specification is known as the HTML Living Standard. It is maintained by a consortium of the major browser vendors (Apple, Google, Mozilla, and Microsoft), the Web Hypertext Application Technology Working Group (WHATWG). - Wikipedia
HTML5 is a markup language used for structuring and presenting content on the World Wide Web. It is the fifth and last[3] major HTML version that is a World Wide Web Consortium (W3C) recommendation. The current specification is known as the HTML Living Standard. It is maintained by a consortium of the major browser vendors (Apple, Google, Mozilla, and Microsoft), the Web Hypertext Application Technology Working Group (WHATWG). - Wikipedia
Cascading Style Sheets (CSS) is a style sheet language.
Cascading Style Sheets (CSS) is a style sheet language.
Cascading Style Sheets (CSS) is a style sheet language.
Cascading Style Sheets (CSS) is a style sheet language.


I noticed just how I would look for distraction or escape when pressed with something difficult. A willingness to attempt to take the path of least resistance. In saying that I was surprised how well I was able to notice this feeling coming on and push through. Finally letting go of habits of comparison was a healthy but difficult one that will be continually worked on, learning to focus on just myself made the process more fulfilling for myself and while under the stress of learning at such a fast rate not being stress about where you are on some imaginary hierarchy you've built in your own head is nice change.
For me these three aspects ensure that throughout this process I am bringing my best self to the situation with the right intentions for me and the others that I interact with.
How in some cases I could feel stuck just like I feel in the tech work, trying to dig deeper or analysis my own reasoning/thoughts to get to the answers I am know to be correct for myself.
The vulnerability of the process. To be fully present and tend to the core work as it asks requires a true honesty due to the nature of the questions asked.
Regardless of how technically capable someone might be in all work and especially tech where its so collaborative if you are not able to work with others you will cause more troubles/discomfort that any talent you might have will be worth.
I do not think it is a waste of time at all. In line with the answer to the above question, making sure you are aware of the person you are and how to interact with others or how challenges/problems affect you and the others around is key to making sure that you are able to address anything that needs addressing so you can be a part of a wider team and contribute your worth.


{% extends 'base.html' %} {% load static %} {% load i18n %} {% block page_title %} {% trans "Thanks for participating!" %} {% endblock %} {% block content %}
If you’re talking about your learning circle on social media, please mention @p2pu and #learningcircles so we can follow your journey.


Basic Features
To use Workflowy simply type right on the screen. Write some text and it turns into a bullet point. You can add more bullets and nested bullets, as well as a note which appears underneath attached bullet in a lighter colour.
Bullets can be marked complete, export, copy, and delete any bullet by accessing the bullet menu by clicking on its bullet.
Freemium
You can sign up for Workflowy for free, but the free version has some limitations. It only allows 500 lists or bullets per month, two choices for typeface (serif and sans serif), and no theme support.
Pro accounts, on the other hand, can be backed up to Dropbox, contain an unlimited number of lists, and have a range of options in themes and typefaces. The Pro account costs $4.99 per month or $49 per year.
Pros
- Deeply nested lists to categorize information
- Hiding complete tasks
- Collaborative editing with other users
- The ability to embed other lists into your lists
- Filter through lists with #tags, @filters and full text search
- Keyboard shortcuts
Cons
- Lack of some useful features such as due dates, deadlines, flags, and calendar integration
- Dropbox backup and password protection requires a Pro account
- Limited support on some older browsers and devices such as Windows Phone 7.8 and lower
- Pro version is only worth getting if you write over 500 bullets per month
The Bottom Line
Workflowy is a great webapp for creating nested-lists and collaborating with others. With is simplistic design it is easy to use but lacks some useful features.


Auxilliary Tool:
A data structure that collects statistics about the performance of a GentleBoostCascadedClassifier on some ImageDataSet.
More...
#include <StructTypes.h>
Public Attributes | |
| double | num_hits |
| Number of objects that were known to be in a given image that the detector found. | |
| double | num_misses |
| Number of objects that were known to be in a given image that the detector did not find. | |
| double | num_false_alarms |
| Number of objects reported by the detector which were not known to be objects in the image. | |
| double | hit_ratio |
| Ratio of hits to total number of known objects: hits/(hits+misses). | |
| double | threshold |
| Threshold on object detector confidence used to calculate the reported performance for a given image. | |
| std::vector< cv::Rect > | hits |
| Locations in the image of hits. | |
| std::vector< cv::Rect > | misses |
| Locations in the image of misses. | |
| std::vector< cv::Rect > | false_alarms |
| Locations in the image of false alarms. |
Auxilliary Tool:
A data structure that collects statistics about the performance of a GentleBoostCascadedClassifier on some ImageDataSet.


Breakdown of the structure or structures of the system, which comprise software elements, the externally visible properties of those elements, and the relationships among them.
in the end, architecture boils down to whatever the important stuff is
Martin Fowler
Un insieme di regole e vocaboli che descrivono un'astrazione di una famiglia di sistemi.
Fisicamente separati:
Nasce per lo sviluppo di GUI desktop ('80), è diventata poi popolare nello sviluppo di applicazioni web.
thin vs thick client
Si è evoluto in varianti come HMVC, MVA, MVP, MVVM
Relativamente nuovo (~2010)
Do one thing and do it well
.. is a haphazardly structured, sprawling, sloppy, duct-tape-and-baling-wire, spaghetti-code jungle.
[..] Information is shared promiscuously among distant elements of the system, often to the point where nearly all the important information becomes global or duplicated.
[..] Only those who are unconcerned about architecture, and, perhaps, are comfortable with the inertia of the day-to-day chore of patching the holes in these failing dikes, are content to work on such systems.Brian Foote and Joseph Yoder
Regole informali per migliorare la qualità del software
The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time.
Ninety-ninety rule, Tim Cargill
/


WARNING
Deleting this cluster will remove all resources attached to it, and may lead to data loss. Are you sure you want to delete it? Provisioning will be stopped and all infrastructure will be destroyed. Are you sure you want to proceed?


What is IPv4 CIDR calculator?
CIDR is the short for Classless Inter-Domain Routing, an IP addressing scheme that replaces the older system based on classes A, B, and C. A single IP address can be used to designate many unique IP addresses with CIDR. A CIDR IP address looks like a normal IP address except that it ends with a slash followed by a number, called the IP network prefix. CIDR addresses reduce the size of routing tables and make more IP addresses available within organizations.
This Subnet/CIDR calculator allows you to enter a IPv4 CIDR range and calculates IP addresses, Network Size, Subnet Mask, Min and Max Host etc.


Unibond xx
It's
Win
a Toyota Proace
Click to Enter
or
Win
a Toyota Hilux
Click to Enter
Purchase Qualifying Products
Two Big Prizes to be Won with
Unibond
Competition Closed


For the last couple of months I’ve been pretty hooked into audio projects, specially music creation related. This was the first quick project I’ve built to hopefully end up with a semi-modular synthesizer in a very distant future. The main idea is to basically build a bunch of the simple building blocks of a modular synth in the worst way possible, using Altoids tins and project boxes instead of a rack, which will make patching a real nightmare, but I’m sure will look even messier than a rack modular synth.
The project turned up rather well, it was designed to be extremely simple and easy to build, and had to fit inside the tin with the 9V battery and the connectors, this lead to some restrictions in the size of the circuit (compromises).
As you can clearly see the circuit is extremely simple, but gets the job done quite well. I’ve used the simplest method of voltage controlled attenuation, the LED coupled with a LDR, this gives it very low distortion, but a very slow attack speed compared to other designs. The circuit accepts a 0-3V CV signal which controls the current thought the LED, so more CV means the input signal will be attenuated!
You can also notice something weird in the CV input jack, that’s a very handy trick to incorporate a power switch into a project, I learned this method from DIY stompboxes around the internet. The idea is that you connect your power negative to the ring (right channel) of a stereo jack, so that when you connect a mono plug into the socket, the ring and sleeve will be shorted out, connecting your power negative to your circuit’s ground.
The circuit is pretty simple and was made as a quick hack to do some audio experiments, but feel free to play around with it, and feedback is always welcome!


DATE
MEMORANDUM FOR
82 MDG/AEROSPACE MEDICINE COUNCIL
FROM:
82 MDG/SGP
SUBJECT:
Meeting Minutes of the Deployment Availability Working Group (DAWG)
- PLACE: Commander's Conference Room
- DATE AND TIME OF MEETING: 18 Dec 2014, 1530 hrs.
- CHAIRPERSON: Lt Col (Dr.) Manoj Ravi
- ATTENDANCE:
- Members present:
- Lt Col (Dr.) Ravi, SGP
- SSgt Henson, MSME
- Members absent:
- Member 1
- Member 2
- Member 3
- Member 4
- Guests:
- Guest 1
- Guest 1
- Guest 1
- Guests:
- Guest 1
- Guest 1
- Guest 1
- 2
- 3
- 4
- 5
- 6
- 3
- 4
- 5
- 6
- 3
- 4
- 5
- 6


Elder Spiron:
As an association of the most successful traders, we are in charge of exporting goods made by Dwarven craftsmen to other areas and importing goods and resources that we need.
Since we understand great craftsmanship and the value of the noble artisan spirit, we support many craftsmen and artists, and sometimes trade in antiques.
Return


Landing Page
Special Projects
This story is part of a series of specially designed stories that represents some of the best journalism The Post has to offer. Check out the rest of the special projects here.
SAM GÜT
Z
Z
Z
04.04.17
In the middle of the semester, students track their grades, study for exams and try to meet up with friends in the process. When balancing school and social life, sleep can be waved off as no big deal and is often neglected.
People may think having poor sleep habits will only lead to groggy mornings and mild fatigue throughout the day, but a lack of sleep can also be detrimental to a young person’s health.
“People have terrible sleep habits in general,” Susan Borchers, a private practice doctor for Ohio Health, said. “I can treat most insomniacs by just talking to them and educating them about their sleep habits.”
One in three adults don’t get enough sleep, according to the Centers for Disease Control and Prevention. If bad sleeping habits are not corrected at a young age, people run the risk of obesity, anxiety and depression, Borchers said.
It’s being mindful about activities college students don’t think twice about — napping or consuming large amounts of caffeine — that can prevent such difficulties later in life.
Anyone who chronically gets less than 6 hours of sleep per night is said to have sleep deprivation.
Students often wake up early for classes or go to bed late as a result of schoolwork. Some days, it may be both. When weekends arrive, it’s an opportunity to catch up on lost sleep from the week.
Even though people try to make up for a lack of sleep by sleeping in, having a regular sleep pattern will help prevent multiple mental and physical health problems, Peggy Zoccola, an associate professor of psychology, said. Studies show that adults who get less than six or more than nine hours of sleep per night have a shorter life expectancy than those who get the recommended •six to eight hours a night.
“It’s not the same as getting a full night sleep each night,” Borchers, who is board certified in sleep and pulmonary medicine, said.
It’s not uncommon for students to walk to their classes with a coffee cup, energy drink or bottle of soda in hand.
An 8-ounce cup of coffee averages between 130 and 150 mg of caffeine. A healthy maxiumum amount of caffeine a person can intake per day is about 400 mg.
Melly Miller, a bartender at The C.I., is used to staying up until 4 a.m. because of her shifts on the weekends. Her weekends are not used for catching up on sleep, but to make money.
During the week, she buys an espresso drink from Brenen’s Coffee Cafe every day. Miller, a junior studying nursing, says she mostly does it because she was up until 2 a.m. the night before studying. In addition, she drinks a pre-workout mix that contains caffeine.
Caffeine keeps her going throughout the day, and as a nursing student with a part-time job, it’s an easy choice for her.
“I forget a lot of stuff in lectures, and I fall asleep in class,” Miller said. “I’m always tired.”
It’s a common misconception that the more caffeine people drink, the more alert they will be. However, caffeine is not a remedy for a significant lack of sleep.
“If you’re sleepy and you want to feel, at least, a little bit more alert, a little bit of caffeine can help with that perception and in some cases can improve cognitive performance,” Zoccola said. “But it doesn’t overcome severe sleep deprivation.”
Everyone reacts to caffeine differently, and for some people, it can make it difficult to fall asleep at night if they drink caffeine late in the day. If a person has insomnia, avoiding caffeine after lunchtime can help them fall asleep.
According to a 2008 study from the University of Kentucky, more than 78 percent of college freshmen at Marshall University consumed more than 200 mg of caffeine per day. Drinking too much caffeine over long periods of time can cause significant physical problems such as heart palpitations and tremors.
Safe amount of caffeine a day: 400mg
An 8 oz cup of coffee (depending on strength): 130-150 mg
5 Hour Energy: 200 mg
8 oz cup of black tea: 60-90 mg
12 oz can of Red Bull: 111 mg
12 oz can of soda: 29 mg
1 Hershey's Chocolate Milk Bar: 9 mg
After a long night of drinking, many people can’t wait to get home, eat a Big Mamma’s burrito and hit the hay. However, if they had too much to drink, they will not be getting the restorative sleep their body needs.
“Alcohol is a terrible sleeping pill,” Borchers said.
Alcohol decreases REM sleep, which is when the brain becomes more active about 90 minutes after falling asleep. Alcohol also increases the amount of time it takes to get to a person’s first REM cycle. Drinking so much that someone “blacks out” is not the same thing as sleeping and it disrupts restorative sleep a person needs each night.
Many people who go to sleep after drinking experience early morning awakening, which is when a person wakes up much earlier than they usually do and has trouble falling back asleep because of the way alcohol affects the brain and “disrupts the architecture of sleep,” Zoccola said.
Ultimately, many students consider catching up on sleep or sleeping responsibly second-best to a social life. “Students would rather be out partying on than sleeping,” Miller said.
Stage 1: light-stage sleep; happens within minutes of falling asleep; relatively brief stage that introduces your brain to sleep
Stage 2: fairly light stage sleep; brain waves slow down; a person should wake up from a power name after this stage
Stage 3 and 4: beginning of deep sleep; body becomes less responsive to outside stimuli; this is the restorative stage of sleep
REM: Rapid Eye Movement; 90 minutes after initially falling asleep; brain becomes more active; dreaming occurs; important for learning and memory function, according to the National Sleep Foundation.
Cassie Gibson is the kind of person who can’t sleep in a bed other than her own. It throws off her routine if she does.
“Sleeping in the same place is part of the reason why I can’t nap in random places,” Gibson said. If the place she sleeps at doesn’t reflect her bedroom, dark and quiet, then she knows she will have a restless night.
Situational insomnia is when a person cannot get into a good deep sleep if they are in an unusual place. Some people are less sensitive to the environment in which they sleep, but it can decrease the quality of their sleep if they aren’t in their own bed each night.

When Sophie Keeper goes to bed in her dorm room, she never falls asleep right away.  An hour after she’s in bed, she typically turns on her side and checks her phone. Thirty minutes later, she gives up and turns on Netflix to try and lull her to sleep.
Consistent sleep is difficult for Keeper, but napping is a different story.
“I can nap anywhere, anytime any day,” she said. Her friends even note that she sleeps on their futon more than they do.
Naps can be useful if a person is sleeping for 30 minutes or less, also known as a “power nap,” Zoccola said. If a person naps for much longer than that, it will throw off their sleep cycle and cause insomnia. Most doctors prefer patients to get the majority of their sleep in one block at night, Borchers said.
Staying up all night to study for prolonged periods of time will not actually help students looking to cram for an exam or trying to get assignments done. Sleep deprivation, even short term, can lead to cognitive problems such as impaired judgment and decision making, loss of memory and inability to concentrate.
“Before an exam is not the time to stay up all night,” Zoccola said. “You need your sleep in order to be engaging in those cognitive activities.”
Gibson, a freshman studying biological sciences, incorporates her sleep schedule into her studies for health reasons. Gibson has 8 a.m. classes. If she stays up too late, then she knows she’s not going to retain anything in her classes, which includes a lot of memorization and application.
Even with her intensive studies, Gibson has never felt the need to pull an all-nighter. She can't speak for herself in the future, but it's an option she has wanted to avoid so far in her college career.
It is more beneficial for a person to get a full-night sleep before a big exam or presentation than trying to retain lots of information when their energy is low.
“(Students are) really hurting themselves when they do that,” Borchers said.
A definition has been clarified to reflect accurate information.
Landing Page
This story is part of a series of specially designed stories that represents some of the best journalism The Post has to offer. Check out the rest of the special projects here.


We buy tables!
- incubate interactive technologies
- synergize sticky communities
- brand bricks-and-clicks metrics
- expedite B2B platforms
- generate 24/365 e-tailers
- disintermediate cutting-edge technologies
- engineer next-generation convergence
- engineer one-to-one e-business
- transition collaborative infomediaries
- maximize wireless infrastructures
- matrix collaborative infrastructures
- benchmark holistic convergence
- drive e-business e-tailers


|
, years old, from . My birthday is . I was graduated from with my Bachelor's Degree on . Experience
{{#experience}}
{{name}}{{organization}}
{{f_start_date}} - {{f_end_date}}
{{.}} {{/description}}SkillsProgramming Languages & ToolsOther Supporting Skill
Education
{{#education}}
{{name}}{{description}}
{{start_year}} - {{end_year}}
Personal Traits{{#personal_traits}} {{name}} {{description}}. {{/personal_traits}} Organization & Voluntary
{{#organization}}
{{role}}{{name}}
{{start_year}} - {{end_year}}
{{description}} |


Fresenius (FSNUF) Bryan, Garnier & Co. European Healthcare Conference - Slideshow
by SA Transcripts, https://seekingalpha.com/author/sa-transcriptsThe following slide deck was published by Fresenius SE & Co. KGaA in conjunction with this event.
The following slide deck was published by Fresenius SE & Co. KGaA in conjunction with this event.


Access FAT16 and FAT32 volumes on SD and SDHC cards.
More...
#include <SdVolume.h>
List of all members.
Detailed Description
Access FAT16 and FAT32 volumes on SD and SDHC cards.
Constructor & Destructor Documentation
| SdVolume::SdVolume |
( |
| ) |
[inline] |
Member Function Documentation
| uint8_t SdVolume::blocksPerCluster |
( |
| ) |
const [inline] |
- Returns:
- The volume's cluster size in blocks.
| uint32_t SdVolume::blocksPerFat |
( |
| ) |
const [inline] |
- Returns:
- The number of blocks in one FAT.
| cache_t* SdVolume::cacheClear |
( |
| ) |
[inline] |
Clear the cache and returns a pointer to the cache. Used by the WaveRP recorder to do raw write to the SD card. Not for normal apps.
- Returns:
- A pointer to the cache buffer or zero if an error occurs.
| uint32_t SdVolume::clusterCount |
( |
| ) |
const [inline] |
- Returns:
- The total number of clusters in the volume.
| uint8_t SdVolume::clusterSizeShift |
( |
| ) |
const [inline] |
- Returns:
- The shift count required to multiply by blocksPerCluster.
| uint32_t SdVolume::dataStartBlock |
( |
| ) |
const [inline] |
- Returns:
- The logical block number for the start of file data.
| bool SdVolume::dbgFat |
( |
uint32_t |
n, |
|
|
uint32_t * |
v |
|
) |
| [inline] |
Debug access to FAT table
- Parameters:
-
| [in] | n | cluster number. |
| [out] | v | value of entry |
- Returns:
- true for success or false for failure
| uint8_t SdVolume::fatCount |
( |
| ) |
const [inline] |
- Returns:
- The number of FAT structures on the volume.
| uint32_t SdVolume::fatStartBlock |
( |
| ) |
const [inline] |
- Returns:
- The logical block number for the start of the first FAT.
| uint8_t SdVolume::fatType |
( |
| ) |
const [inline] |
- Returns:
- The FAT type of the volume. Values are 12, 16 or 32.
| int32_t SdVolume::freeClusterCount |
( |
| ) |
|
Volume free space in clusters.
- Returns:
- Count of free clusters for success or -1 if an error occurs.
| bool SdVolume::init |
( |
Sd2Card * |
dev | ) |
[inline] |
Initialize a FAT volume. Try partition one first then try super floppy format.
- Parameters:
-
| [in] | dev | The Sd2Card where the volume is located. |
- Returns:
- The value one, true, is returned for success and the value zero, false, is returned for failure. Reasons for failure include not finding a valid partition, not finding a valid FAT file system or an I/O error.
| bool SdVolume::init |
( |
Sd2Card * |
dev, |
|
|
uint8_t |
part |
|
) |
| |
Initialize a FAT volume.
- Parameters:
-
| [in] | dev | The SD card where the volume is located. |
| [in] | part | The partition to be used. Legal values for part are 1-4 to use the corresponding partition on a device formatted with a MBR, Master Boot Record, or zero if the device is formatted as a super floppy with the FAT boot sector in block zero. |
- Returns:
- The value one, true, is returned for success and the value zero, false, is returned for failure. Reasons for failure include not finding a valid partition, not finding a valid FAT file system in the specified partition or an I/O error.
| uint32_t SdVolume::rootDirEntryCount |
( |
| ) |
const [inline] |
- Returns:
- The number of entries in the root directory for FAT16 volumes.
| uint32_t SdVolume::rootDirStart |
( |
| ) |
const [inline] |
- Returns:
- The logical block number for the start of the root directory on FAT16 volumes or the first cluster number on FAT32 volumes.
| static Sd2Card* SdVolume::sdCard |
( |
| ) |
[inline, static] |
The documentation for this class was generated from the following files:
- Arduino/libraries/SdFat/SdVolume.h
- Arduino/libraries/SdFat/SdVolume.cpp


Susan's parents loan them $1000 to help them move into a new apartment. They ask that Susan pay the money back in 2 years with 4% simple interest. How much will they owe?


Depending on your browser settings you may not be able to view pages in Initiative Tracker that require a login (such as the D&D compendium). This is related to a browser security issue called "3rd party cookies". You are required to log on to the secure page (since Initiative Tracker just shows pages that you have a valid right to be at) but your browser prevents you because its worried about the remote page creating a 3rd party coookie. If you are experiencing this issue, then your browser is configured to reject 3rd party cookies. Which is generally a good thing. Fortunately most browsers have a mechanism to allow 3rd party cookies from specific sites.
The easiest way to get around this issue is to just enable 3rd party cookies. However, that is not reccomended, because it would allow data mining advertising companies to potentially track your progress across the web. Instead you should just allow cookies from specific sites you intend to use with Initiative Tracker.
"I just came back to the site and my data is gone!"
On June 29, 2009 the way the application stores data changed slightly. A small subset of users will not be able to access their data with the new version. The new version cannot access your data because of security restrictions. You can however continue to use the old version which can read your data. You can find it at:
http://www.initiativetracker.com/recovery
At some point in the future I plan to implement an utility to import/export data, at which point you should be able to export your data from the recovery page and import it into the main page.
If the link provided does not help then this is a serious bug please Report It.
"I added a page and now whenever I start InitiativeTracker, once its finished loading it switches to that page."
This can happen if a page has automatic code to break itself out of other sites that contain it. Sites sometimes do this to prevent other sites from including their content and passing it off as their own. If you add such a site, as soon as Initiative Tracker loads it, it will force your browser to its own site.
In the future I would like to detect this behaviour and prevent it somehow, but in the meantime there is something you can do if this happens to you.


---
layout: post
title: Ah, Eigenclass
date: 2014-05-08 11:13:23.000000000 -05:00
type: post
published: true
status: publish
categories:
- Ruby on Rails
tags: []
meta:
reblog_snapshot: "O:8:\"stdClass\":7:{s:5:\"title\";s:14:\"Ah, Eigenclass\";s:4:\"type\";s:4:\"post\";s:9:\"mime_type\";s:0:\"\";s:6:\"format\";b:0;s:12:\"modified_gmt\";s:19:\"2014-05-08
16:24:31\";s:9:\"permalink\";s:59:\"http://fifthsurprise.wordpress.com/2014/05/08/ah-eigenclass\";s:7:\"content\";s:4085:\"
There is a point in a Ruby-ist's life where you dig
a little too deep into the depths of metaprogramming.\r\n\r\nSometimes the result
is incredibly cool, like Rails. Rails uses a lot of metaprogramming in order to
save you a lot of effort.\r\n\r\nFor example, there's some nifty work being done
in order to create the find_by methods through combining method_missing and the
Eigenclass. This particular post is about the Eigenclass but you can find a pretty
good explanation of method_missing
here.
But for more about Eigenclass, read on. \r\n\r\nActive Record will
provide dynamic finders for every known attribute on your table.\r\n\r\nSo if
your
Client model has a filed
first_name, you can have find_by_first_name
for free.\r\n\r\nCalling find_by_first_name works dynamically through the use
of method_missing in Object. Rails overrides method_missing for Active Record
so that the method can be dynamically defined.\r\n\r\nSpecifically:\r\n\r\n[code
language=\"ruby\"]\r\ndef method_missing(name, *arguments, &block)\r\n
\ match = Method.match(self, name)\r\n\r\n if match && match.valid?\r\n
\ match.define #define the method\r\n send(name, *arguments, &block)\r\n
\ else\r\n super\r\n end\r\nend\r\n[/code]\r\n\r\nAnd this is where the method
actually gets defined:\r\n\r\n[code language=\"ruby\"]\r\ndef define\r\n model.class_eval
<<-CODE, __FILE__, __LINE__ + 1\r\n def self.#{name}(#{signature})\r\n
\ #{body}\r\n end\r\n CODE\r\nend\r\n[/code]\r\n\r\nSo we're defining a method
on to a class dynamically based on the attributes, which is pretty neat. But where
is this method? Is it somehow within the model's class?\r\n\r\nActually it's hiding
out in the Eigenclass (or the ghost class). What the heck is this?\r\n\r\nLet's
start with the name, which will help frame this post. Eigen means \"own\" in German/Dutch.
Class refers to the Ruby Class. So Eigenclass would be \"own class\". Hold on
to that, because we'll need to remember this down the line.\r\n\r\nSo first, some
ruby code:\r\n\r\n[code language=\"ruby\"]\r\nclass Animal\r\nend\r\n\r\nclass
Dog < Animal\r\nend\r\n\r\nhippo = Animal.new\r\n\r\npug = Dog.new\r\npoodle
= Dog.new\r\n\r\n#define an instance method/ singleton method\r\nclass <<
pug\r\n def snore\r\n \"ZzzzZZZzzz*snort*ZZZZzzz\"\r\n end\r\nend\r\n\r\npug.snore
#=> \"ZzzzZZZzzz*snort*ZZZZzzz\"\r\npoodle.snore #=> NoMethodError\r\nhippo.snore
#=> NoMethodError\r\n\r\n#define a class's instance variable\r\nclass Dog\r\n
\ def bark\r\n \"Woof woof\"\r\n end\r\nend\r\n\r\npug.bark\r\npoodle.bark\r\nhippo.bark\r\n\r\n#define
a class variable\r\nclass Dog\r\n class << self\r\n def types\r\n
\ \"Pug and Poodle\"\r\n end\r\n end\r\nend\r\n\r\nDog.singleton_methods
#=> [[0] types() Dog]]\r\npoodle.singleton_methods #=>\r\npug.singleton_methods
#=> [[0] types() Dog]]\r\n[/code]\r\n\r\nIn this example, I've defined
a class Animal and a subclass of Dog with various instances of each. As you can
see, you can define various methods and classes on the Class level or instance
level. These methods don't exist in the ether though. They're actually stored
in an anonymous class associated with either the instance or the class itself.
This anonymous class is the Eigenclass (the specific object's \"own\" class).\r\n\r\nThe
Eigenclass is anonymous but is inherited from a superclass's eigenclass. So every
class has its own hidden Eigenclass that the point to and ineherit from. The singleton
methods are actually instance methods of the associated Eigenclass.\r\n\r\nHow
is this getting used?\r\n\r\nWell let's say a Rails User model has an email attribute.
It would be useful to find a User based on the email (Ex. User.find_by_email(\"foo@foo.com\")).
Rails overrides method_missing so you can generate the right code to dynamically
find the object based on a given class attribute. But even more importantly, a
singleton method is defined on User's Eigenclass. This is applied on the class
level but could also be applied on the instance level.\r\n\r\nPowerful stuff!
\";}"
post_id: '118'
blog_id: '63964475'
is_reblog: '1'
_publicize_pending: '1'
author:
login: broberts65
email<EMAIL_ADDRESS>display_name: Bob Roberts
first_name: ''
last_name: ''
---
I never knew how this worked nor heard of Eigenclass but have used find_by.... Nice clear explanation :)


Diversify your technology arsenal with an all-new full-feature
Trading Platform to get ahead of your competition
xStation requires no installation. Allow your clients to trade from any location or device on the go.
All client settings, technical analysis, watch lists and work spaces are saved on the central server, ready to access again from any computer.
Perform all trading actions including pending orders from xStation’s advanced charting system.
Clients will have access to 20+ technical indicators including Fibo, Elliot Waves, Chart Overlay and more.
Close all trades in one go. Or, close only the losing or winning active trades.
Your clients will never need to ask what a pip or swap is, or how much they will earn when the market moves 10 pips. The advanced trading calculator works it all out for them.
Attract more newbie traders with an easy-to-learn Copy-Trading Platform
Our social trading community consists of only real traders, not promoted industry “gurus”.
Let your clients see the current sentiment in the market from all xSocial community traders. Split by country, winners, losers or an individual trader’s watch list.
xSocial traders can not only copy other signal providers, but also use contrary strategies and copy other traders’ decisions in the opposite direction.
xSocial traders can create their own individual watch lists and observe only the traders they want, filtering by a wide range of values including instrument, number of trades, win % etc.
Keep your data at your premises without giving up cloud computing benefits
With xVault all client data including trades, logs, orders etc are stored and backed up safely, giving you confidence and peace of mind should you ever need to migrate the data in future.
xVault fulfils the requirements of most capital market regulators as it offers you access to all client data at any time, in case connection to the cloud server is unavailable.
FX
Commodities
ETFs
Indices
Stocks
*Crypto!
XSTATION - web, mobile & desktop platforms available
XSOCIAL - easy investments via copy-trading
xMAM - ultimate instrument for fund managers
From 1:1 up to 1:1000
XRISK - smart liquidity aggregation and trade execution
XVAULT - data storage on your premises
To schedule your free consultation, fill out the form below.


About Me
I’m originally from Brazil being living in Orlando for about 15 years and am pretty comfortably to call Orlando home. I’ve work in the hospitality industry for many year and my last 4 years I’m working with online hotels reservations, on the commercial side of the business and this tech company made me develop a curiosity for what’s behind. Coding!
Coding looks so complex and so simple at the same time that more I don’t understand more I want to dig and find the answers. It’s a complete new scenario for me and I’m pretty sure this curiosity will become a passion.
I’m a fun guy love to travel meet new people, culture and food from all over the world. Have a passion for music and festivals been to many of them across the globe with crazy friends like myself.
Lorem ipsum dolor sit amet consectetur adipisicing elit.  Alias pariatur inventore unde sed, a consectetur?
Lorem ipsum dolor sit, amet consectetur adipisicing elit. Voluptatibus eos, eius saepe error veritatis veniam, itaque maiores perferendis, officiis rem laboriosam illum magni facilis vitae natus debitis quis earum reiciendis.


The class MDC implements a mapped diagnostic context. More...
#include <mdc.h>
Static Public Member Functions | |
| static QString | get (const QString &rKey) |
| static QHash< QString, QString > | context () |
| static MDC * | instance () |
| static void | put (const QString &rKey, const QString &rValue) |
| static void | remove (const QString &rKey) |
Related Functions | |
(Note that these are not member functions.) | |
| QDebug | operator<< (QDebug debug, const MDC &rMDC) |
The class MDC implements a mapped diagnostic context.
| static QHash<QString, QString> Log4Qt::MDC::context | ( | ) | [static] |
| static QString Log4Qt::MDC::get | ( | const QString & | rKey | ) | [static] |
| void Log4Qt::MDC::put | ( | const QString & | rKey, | |
| const QString & | rValue | |||
| ) | [inline, static] |
| void Log4Qt::MDC::remove | ( | const QString & | rKey | ) | [inline, static] |
| QDebug operator<< | ( | QDebug | debug, | |
| const MDC & | rMDC | |||
| ) | [related] |
Writes all object member variables to the given debug stream rDebug and returns the stream.
MDC(thread:"main" context:QHash(("login", "Peter")("database", "UAT")) )


USAGE TIPS
- Click Capture to make a new snipping, or
- Press CTRL+V to paste from the Clipboard,
- Drag & Drop an image from another program.
- Press ESC key to cancel a selection at any time.
- When selecting an area:
- CTRL key changes the selection mode,
- SPACE key toggles fixed margins.
- Use the Marker mode to highlight any objects.
- Use the Colors mode to pick exact colors from the image.
- The resulted image can be copied to the clipboard or can be saved to a file.


High School
College
Tango Restaurant
Pi Kappa Alpha - University of Washington
Ballard New Tribune
I took my first programming class at North Seattle College in 2014, and picked it up fairly quickly. I continued taking classes in computer science, learning elements of Python, Java, and HTML. After working in a restaurant for 5 years, I decided I no longer wished to work during the evenings, and made the decision to enroll at Epicodus with the goal of starting a career in CS.
Toby is an eight-year-old golden retriever, who loves to steal Kevin's food every chance he gets. He is a very friendly and loveable dog, who will get along with everyone, and knows all the other dogs in the neighborhood. His favorite activity (other than eating) is roaming through Carkeek Park. I am very lucky to have him. Note: Toby is MY dog, and as much as you want to take him home with you I will not allow that to happen.


Police Clerk Sergio Nieto Gets 6 Years in Prison For Secretly Filming Cops in Bathroom - Reports
On 115 secretly recorded videos of 69 of clerk's colleagues, high-ranking police officers included, they have been caught either changing outfits or using the bathroom facilities, the Long Beach Post says.
A police clerk has been sentenced to six years in jail for taking covert photos of his colleagues when they were using a bathroom in California's Long Beach Police Department, according to the New York Post.
“This case was disturbing on many levels, but it is the complete betrayal of trust that many people cannot fathom”, Long Beach City Prosecutor Doug Haubert said in a statement. “This is the most serious case of invasion of privacy I have seen in my 20 years as a prosecutor.”
29-year-old Sergio Nieto allegedly had been making recordings of the cops and other police staff for over three months.
He also confessed to taking photos of 24 Hour Fitness' clients, according to the paper.
Nieto was caught after a police officer noticed a cell phone pointed at him in a bathroom stall and identified the perpetrator by his shoes, court documents revealed.


Create your Web Vitals report
This tool can be used to create a Web Vitals report for any site that uses the
web-vitals JavaScript library to send data to Google Analytics.
This report will display a histogram and timeline of each Web Vitals metric, and it will also let you compare results across different segments to help you better understand how these metrics correlate with your business goals. 🔍
For additional usage instruction, refer to the project README on GitHub. 📖
Report
Results Breakdown
By top countries and pages


| File | Statements | Branches | Functions | Lines | |||||
|---|---|---|---|---|---|---|---|---|---|
| src/ | 42.98% | 49/114 | 26.19% | 11/42 | 25% | 4/16 | 42.98% | 49/114 | |
| src/data/ | 82.4% | 103/125 | 65.15% | 43/66 | 88.89% | 16/18 | 82.4% | 103/125 | |
| src/nodes/ | 62.21% | 326/524 | 43.8% | 120/274 | 40.98% | 25/61 | 62.93% | 326/518 | |
| src/repository/ | 65.95% | 122/185 | 54.08% | 53/98 | 72.22% | 13/18 | 67.22% | 121/180 | |
| src/utils/ | 46.75% | 79/169 | 11.84% | 9/76 | 45.45% | 10/22 | 46.75% | 79/169 |


Comet parameter: remove_precursor_peak
- This parameter controls excluding/removing any precursor signals
from the input MS/MS spectrum.
- An input value of 0 will not perform any precursor removal.
- An input value of 1 will remove all peaks around the precursor m/z.
- An input value of 2 will remove all charge reduced precursor peaks
as expected to be present for ETD/ECD spectra.
- This parameter works in conjuction with
remove_precursor_tolerance
to specify the tolerance around each precuror m/z that will be removed.
- Valid values are 0, 1, and 2.
- The default value is "0" if this parameter is missing.
Example:
remove_precursor_peak = 0
remove_precursor_peak = 1
remove_precursor_peak = 2


CSS is widely considered the weakest point in the web technology stack. It's a copy-paste language with very little room for maintainability or reusability.
No, because often times, you end up needing to override the majority of the class. Lets look at Evernote's standardized buttons. They look like this:
These buttons have a ton of attributes set, including many CSS3 properties that require vendor prefixes, since they're not fully standardized. Lets take a look.
.general-button { display: inline-block; zoom: 1; min-width: 100px; margin: 0px; padding: 8px 12px; border: 1px solid #B2B2B2; height: auto; background: whiteSmoke; float: none; background-color: #EFEFEF; background-image: -moz-linear-gradient(top, whiteSmoke, #E6E6E6);
background-image: -ms-linear-gradient(top, whiteSmoke, #E6E6E6); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(whiteSmoke), to(#E6E6E6)); background-image: -webkit-linear-gradient(top, whiteSmoke, #E6E6E6); background-image: -o-linear-gradient(top, whiteSmoke, #E6E6E6); background-image: linear-gradient(top, whiteSmoke, #E6E6E6); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f5f5f5', endColorstr='#e6e6e6', GradientType=0); color: #747474; line-height: 18px; font-family: helvetica, arial, sans-serif; font-size: 13px;
font-style: normal; font-variant: normal; font-weight: normal; text-align: left; text-decoration: none; text-indent: 0; text-justify: auto; text-outline: none; text-overflow: clip; text-shadow: none; text-transform: none; text-wrap: normal; color: #3B3B3B; text-align: center; -webkit-border-radius: 2px;
-moz-border-radius: 2px; border-radius: 2px; -webkit-box-shadow: 0px 0px 0px #000000; -moz-box-shadow: 0px 0px 0px #000000; box-shadow: 0px 0px 0px #000000; -webkit-transition: all 0.2s ease 0; -moz-transition: all 0.2s ease 0; -ms-transition: all 0.2s ease 0; -o-transition: all 0.2s ease 0; transition: all 0.2s ease 0; -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
And then there's also hover states, potential active states, etc.
What would have to change in order to have a green button instead of the gray one? This would seem like a nice use case for overrides, but it turns out to be impractical.
Lets go back to the previous slides and take a look at what font, color, and vendor prefixed settings we'd have to change by hand in our override. Boop beep
We have this nice set of standardized colors, both company-wide, and specific to the web project. But if you want to use the colors in CSS, you have to have a plain text file open with the list of hex codes and try to remember which one is which. Then you have to copy-paste them throughout your code.
And if the design team decides that #ACE2E8 should really be #ACE3C7, you have to go through every file in the codebase and run a substitution.
Evernote's "web client" pages aren't split into separate versions for mobile browsers. They adapt to different screen resolutions. This is due to a modern CSS tool -- Media Queries.
Let you define custom styles based on page width.
Aside from the obvious problem that Media Queries suffer from the same lack of variables as everything else, they also are annoying to work with, since they in effect duplicate large parts of your code throughout the page. Ex.
.foo { width: 10px; } /* later down the page */ @media only screen and (min-width: 479px) and (max-width: 650px) { .foo { width: 30px; } }
Less is a compiler written in JavaScript that produces excellent CSS. Don't worry, it can run server side pretty easily through Rhino on top of Java. It also has a simple command line tool.
Less is backwards compatible with CSS, so it's easy to learn. It just adds a few useful things, without imposing a standard library:
@standard-width: 150px; @en-dark-green: #2E7044; .bordered(@width: @standard-width) { border: 2px solid @en-dark-green; padding: 8px; margin-bottom: 4px; width: @width; } .ex-standout { .bordered(); font-size: 11px; } .ex-standout-wider { .bordered(300px); font-size: 11px; }
@standard-width: 150px; @en-dark-green: #2E7044; .bordered(@width: @standard-width) { border: 2px solid @en-dark-green; padding: 8px; margin-bottom: 4px; width: @width; } .ex-new { background-color: @cool-gray; .ex-standout { width: @standard-width / 3; } }
encss ├── base-import.less ├── button.less ├── dialog.less ├── extra │ └── settings │ ├── panel.less │ ├── settings-import.less │ ├── settings-widget.less │ └── tab.less ├── footer.less ├── gmail-connect.less ├── grid.less ├── helpicon.less ├── input.less ├── misc-classes.less ├── utility.less ├── variable.less └── wrapper.less header.less layout.less
#gradient > .radial(@cool-gray, @boring-gray);
.inline-block();
.unselectable() { -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
Throughout the source, there'll be lines like these, that ensure that the page is laid out correctly
width: @column-width * 5;
For example, we can examine the friend referral page
.wrapper#container { background-color: @white; border: 1px solid @boring-gray; margin: @column-width auto 0; padding: @column-width; width: @column-width * 23; position: relative; @media @phone-portrait { width: @column-width * 9; padding: @column-width / 2; } @media @phone-landscape { width: @column-width * 11; } @media @tablet-portrait { width: @column-width * 20; } }


If you can see this text, your browser does not support iframes. View the content of this inline frame within your browser.


I am a very simple card. I am good at containing small bits of information.One common flaw we've seen in many frameworks is a lack of support for truly responsive text. While elements on the page resize fluidly, text still resizes on a fixed basis. To ameliorate this problem, for text heavy pages, we've created a class that fluidly scales text size and line-height to optimize readability for the user. Read morearrow_forward
I am a very simple card. I am good at containing small bits of information. I am convenient because I require little markup to use effectively. Read morearrow_forward
I am a very simple card. I am good at containing small bits of information. I am convenient because I require little markup to use effectively. Read morearrow_forward
I am a very simple card. I am good at containing small bits of information. I am convenient because I require little markup to use effectively. Read morearrow_forward
I am a very simple card. I am good at containing small bits of information.One common flaw we've seen in many frameworks is a lack of support for truly responsive text. While elements on the page resize fluidly, text still resizes on a fixed basis. To ameliorate this problem, for text heavy pages, we've created a class that fluidly scales text size and line-height to optimize readability for the user. Read morearrow_forward
I am a very simple card. I am good at containing small bits of information. I am convenient because I require little markup to use effectively. Read morearrow_forward
I am a very simple card. I am good at containing small bits of information. I am convenient because I require little markup to use effectively. Read morearrow_forward
I am a very simple card. I am good at containing small bits of information. I am convenient because I require little markup to use effectively. Read morearrow_forward


Jinia:
(Beams, her smile wide)
Thank you so much. Freya's threat won't end here. Like I said, we have to stop her before she tries to conquer the world with her icy grip. Let us meet at the Queen's Garden. I'll talk to the butler and let him know you're coming. See you there.
"See you."


Open your JavaScript console to see some debug info.
This is to force scrolling and see the computed mouse coords


cfn-tool-macros
- built-in macros for common use cases
Documentation for the built-in macros provided by cfn-tool
(1).
The cfn-tool
(1) macro expander provides the built-in macros described in this
manual to satisfy the needs of some common use cases, for example:
Bind expressions to names which may be referenced in multiple places within a template.
Package files or directories from the local filesystem for upload to S3 and insert the S3 URI into the template.
Evaluate bash
(1) or JavaScript snippets to generate content or perform side
effects (eg. generate a UUID with uuidgen
(1) or run npm install
to
prepare an AWS Lambda for packaging).
Load JavaScript modules to add custom macros to the macro expander.
And various other affordances to reduce the AWS CloudFormation boilerplate required for common use cases.
The macro expander merely adds to the set of macros provided by AWS CloudFormation
itself (eg. !Ref
, !Sub
, etc.) — plain vanilla CloudFormation templates
are fully compatible with cfn-tool
.
The YAML schema supoprted by cfn-tool
includes the JSON types (ie. the JSON
null
, bool
, int
, float
, str
, seq
, and map
types) plus the YAML
merge type (the merge key, <<
).
All of the macros in this manual may be invoked as "short tags" (like !Sub
ARG) or as "full tags" (like { Fn::Sub:
ARG }
). The YAML reader
transforms short tags to their corresponding full tag forms; this happens
before macros are expanded, so the macro expander sees only the full tags.
However, there are a few quirks to be aware of. These are explained below.
Short tags applied to scalar arguments (eg. !Ref Thing
) can not be chained,
as the YAML syntax does not support this. For example, the following will raise
a syntax error:
!Ref !Ref Thing
To make this easier, all macros accepting scalar arguments also accept a list
of a single item when preprocessed by cfn-tool
. This includes the macros
provided by CloudFormation itself. The above example can be achieved with
cfn-tool
as follows:
!Ref [ !Ref Thing ]
Which expands to:
{"Ref": {"Ref": "Thing"}}
This may seem pointless because the above is not a valid reference in AWS
CloudFormation, but it does actually make sense when Thing
is a dynamic
binding (via !Let
below) which resolves to a string at macro expansion time.
Macros which return objects may be merged into a document with the YAML merge
operator, <<
. For example, if the !Baz baf
macro expands to {Qux: zot}
it
can be merged into a document as follows:
Thing:
Foo: bar
<<: !Baz baf
Which expands to:
Thing:
Foo: bar
Qux: zot
This syntax is also valid for top level forms in a template, of course.
The following are the macros provided by cfn-tool
, and extensions to some of
the macros provided by AWS CloudFormation. CloudFormation-provided macros which
are not extended by cfn-tool
are not described here. See the EXAMPLES
section below for a demonstration of how to use each macro.
These macros provide a way of declaring which version of cfn-tool
is required
to process the template.
!CfnToolVersion
VERSIONcfn-tool
processing the template is at least
VERSION in the semver sense, and less than the next major version. In
other words, this macro asserts that the version of cfn-tool
is
compatible with VERSION and raises an exception if this is not the case.These macros are an attempt to reduce the amount of boilerplate required to accomplish various common CloudFormation template patterns.
!Mappings
MAPPINGEstablishes global mappings and returns a CloudFormation Mappings
section.
When this macro is used in a nested stack the global mappings established
in the parent stack are deep-merged with the MAPPING, which can be {}
when no new mappings are desired. Mappings set in the nested stack are not
propagated back to the parent.
!Outputs
MAPPINGPopulates the CloudFormation Outputs
section from a simple MAPPING of
keys and values. Additional directives can be provided in the keys of the
MAPPING (such as the Name
property), as shown in the EXAMPLES
section
below. References in the keys are interpolated as with !Sub
.
!Parameters
[
NAME-PROPS, ... ]
Populates the CloudFormation Parameters
section from a sequence of
NAME-PROPS. Each NAME-PROPS in the sequence is a string of the parameter
NAME followed by optional KEY=VALUE properties, separated by spaces.
For example, a NAME-PROPS string could be "Param1 Type=Number Default=42"
.
The default Type
is String
, and only the NAME is required.
!Resources
MAPPINGPopulates the CloudFormation Resources
section from the MAPPING whose
keys may contain the Type
and top-level properties, with the Properties
of the resource provided by the value associated with this key. Note that
within the !Resources
macro body, regular vanilla CloudFormation is still
valid and is passed through verbatim.
!Tags
MAPPINGExpands a simple MAPPING to a list of resource tag structures with Key
and Value
properties.
These macros bind values to names which can be referenced from multiple places within a template.
!Let
MAPPINGEstablishes bindings for the scope of the template. Each value of MAPPING
is bound to the name given by its key. These are dynamic bindings —
the bound values are expanded when they are referenced in the document, not
when they are bound. The !Let
expression itself expands to null
and
does not appear in the final document.
!Let
[
MAPPING, EXPR ]
Establishes bindings for the scope of a single expression. The first item in the sequence is the MAPPING of binding pairs, and the second item is the EXPR to be expanded within the scope of these bindings, and whose expansion is returned as the result.
!Globals
MAPPINGEstablishes global bindings for the scope of this template and all nested templates. Globals bound in child templates are not propagated to the parent.
These macros are used to refer to resources, mappings, attributes, etc.,
including bindings and other constructs introduced by the cfn-tool
macro
system.
!Ref
NAMEThe CloudFormation !Ref
intrinsic function has been extended to support
various new types of references in addition to its normal functionality.
The type of reference is denoted by a sigil prefixing the name: $
for
environment variables, %
for Mapping
section FindInMap
lookups, @
for !GetAtt
resource attributes, and *
for ImportValue
lookups.
Bound names (see Binding Macros
above) are referenced with no prefix.
!Ref
NAME.
NAME[.
NAME...]Multiple unprefixed NAMEs separated by dots references a value inside
a complex data structure bound by a !Let
binding, similar to the
!FindInMap
AWS CloudFormation intrinsic function. An exception is thrown
if the reference can not be resolved.
!Ref
[
NAME.
NAME[.
NAME...], NOTFOUND ]
Resolves multiple NAMEs separated by dots as above, however if the reference can not be resolved the NOTFOUND value is returned. The NOTFOUND can be any value and it may contain macros.
!Sub
TEMPLATEReferences inside the curly-brace ${
...}
in the TEMPLATE may be any
name understood by !Ref
. For example, ${$FOO}
in the TEMPLATE would
be substituted with the value of the FOO
environment variable and
<EMAIL_ADDRESS>would be substituted with !GetAtt
MyRole.Arn
.
!Var
TEMPLATEExpands to an !ImportValue
expression, with !Sub
style interpolation of
the TEMPLATE.
These macros package files or directories from the local filesystem, upload them to S3, and return the S3 coordinates in different forms as their result. All of these macros accept an argument which can be either a PATH or a MAPPING.
!Package
PATHReturns a mapping with S3Bucket
and S3Key
properties, for example to
use for the Code
property of an AWS::Lambda::Function
resource.
!Package
{
Path
: PATH, Parse
: BOOL, CacheKey
: KEY }
Returns a mapping as above. The Path
property is required. The Parse
property indicates whether the PATH is a YAML template that should be
parsed and macroexpanded before packaging. The CacheKey
property allows
the user to provide a string which will be used instead of the MD5 hash of
the package contents when determining the filename in S3.
!PackageURI
PATH-OR-MAPPINGReturns the S3 URI (ie. the s3:// protocol URI) of the package.
!PackageURL
PATH-OR-MAPPINGReturns the HTTPS URL (ie. the https://s3.amazonaws.com/... URL) of the object.
!PackageTemplateURL
PATH-OR-MAPPINGLike PackageURL
above, with the Parse
option set to true
.
These macros allow the user to read files from the local filesystem and incorporate the data into the template.
!File
FILEReads a local file and returns its contents as a string. The path is resolved relative to the directory containing the template.
!Md5File
FILEComputes the MD5 digest of the FILE, returning a string. The path is resolved relative to the directory containing the template.
!TemplateFile
FILEReads a local YAML file, parses it, expands macros, and merges the result
into the document. The path is relative to the directory containing the
template in which the !TemplateFile
macro is expanded.
These macros are used to serialize and deserialize values in a template (eg. when a resource property expects a JSON payload which might be easier to type out in YAML when writing the template).
!JsonDump
DATAReturns a JSON string representing the given DATA.
!JsonParse
JSONParses the JSON string, returning the result as data.
!Md5
TEXTComputes the MD5 digest of the TEXT, returning a string.
!YamlDump
DATAReturns a YAML string representing the given DATA.
!YamlParse
YAMLParses a YAML string and returns the resulting data.
These macros provide the user with the ability to evaluate commands in a shell to generate values and names for use in templates. The results are cached with a compound cache key derived from the template path, the MAPPING (if present), and the BODY.
!Js
BODYEvaluates a JavaScript function BODY string, returning the result. The
working directory is set to the template directory, and the this
object
is set to the CfnModule
instance (see the MODULE API
section below).
!Js
[
MAPPING, BODY ]
Evaluates the JavaScript function BODY string as above, with local variables set according to the given MAPPING.
!Shell
SCRIPTEvaluates a shell SCRIPT string in bash
(1), returning its output on
stdout
as a string. If the output ends with a newline it is removed. Only
a single trailing newline is removed — add an extra newline to the
script's output if preserving the trailing newline is desired.
!Shell
[
MAPPING, SCRIPT ]
Evaluates a shell SCRIPT in bash
(1) as above, with variables set
according to the given MAPPING.
These macros allow the user to merge objects in various ways, deep or shallow.
!DeepMerge
[
MAPPING, ... ]
Performs a deep merge of the MAPPINGs and returns the result.
!Merge
[
MAPPING, ... ]
Performs a shallow merge of the MAPPINGs and returns the result.
These macros comprise the control flow and special forms provided by the macro expansion environment.
!Do
[
EXPR, ... ]
These macros allow the user to add his own custom macros or extend the capabilities of the built-in macro system within the scope of the template.
!Require
FILELoads the given FILE as a JavaScript module. The default export of this
module is called with one argument: the CfnModule
instance (see the
MODULE API
section below). The FILE's path is resolved relative to the
template's directory. The !Require
macro itself expands to null
and
does not appear in the final document.
!Require
[
FILE, ... ]
As above, but loads multiple JavaScript files.
These bindings are set by cfn-tool
and are referenced in a template via the
!Ref
macro: eg. !Ref
CfnTool.TemplateFile.
CfnTool
.BaseDir
The absolute path of the directory in which cfn-tool
was executed. Note
that this is not necessarily the same as the current working directory,
which is usually the directory containing the current template file.
CfnTool
.TemplateFile
The path of the current template file relative to the BaseDir
above.
CfnTool
.Version
The version of cfn-tool
currently processing the template.
The module API is provided for use by custom JavaScript that is evaluated
during macro expansion. The API is exposed by an instance of the CfnModule
class that is passed to the JavaScript environment. In the BODY of a !Js
macro the API is bound to the this
object. In a module loaded by the
!Require
macro the API is passed as an argument to the function exported by
the module. Note that some of the API methods are only available in modules
loaded via !Require
— these methods are indicated with an asterisk
(*
).
defmacro(
NAME, [LONG, ]FUNCTION)
Defines a new macro with short tag !
NAME and long tag Fn::
NAME, or
LONG if specified. The FUNCTION receives a single argument, the form
to be expanded. The location in the template where the macro was called
is replaced by the value returned by FUNCTION. The returned value may
also contain macro calls, which are automatically expanded as required.
The new macros is immediately available anywhere in the template in which
it was defined, but not in nested or parent templates.
macroexpand(
FORM)
Expands all macros in FORM, recursively and repeatedly, until FORM has been completely expanded and is suitable for consumption by CloudFormation. This method is used mostly by macros to process their arguments when code walking is necessary.
verbose(
MESSAGE[, BODY])
Logs a verbose level MESSAGE, with an optional BODY string containing additional information to be displayed.
info(
MESSAGE[, BODY])
Logs an info level MESSAGE, with an optional BODY string containing
additional information to be displayed (the BODY is suppressed except
when the user has specified the --verbose
option).
warn(
MESSAGE[, BODY])
Logs a warning level MESSAGE, with an optional BODY string containing additional information to be displayed.
error(
MESSAGE[, BODY])
Aborts the program, logging an error level MESSAGE with an optional BODY string containing additional information to be displayed.
options()
Returns the instance's configuration options. These options include command
line options set by the user and a few additional flags set internally by
cfn-tool
. Read only.
state()*
Returns the module's state object which can be used to store data. This object is propagated to nested templates. Changes to the state object are not propagated from nested templates back to the parent.
bindings()
Returns the current bindings (see Binding Macros
above). Read only.
withBindings(
BINDINGS, FUNCTION)
Creates a new scope with the BINDINGS and calls FUNCTION with no arguments, then restores the previous scope and returns the FUNCTION's result.
withCache(
KEY, FUNCTION)*
Each module is provided with its own cache. If KEY, which can be any JSONable value, is found in the cache the associated value is returned. Otherwise, FUNCTION is called with no arguments and the result is cached and returned.
withCwd(
DIR, FUNCTION)
Sets the current working directory to DIR and calls the FUNCTION with no arguments, then restores the previous working directory and returns the FUNCTION's result.
tmpPath(
NAME)
Constructs a path for a file named NAME in the temporary directory
managed by cfn-tool
. This directory is automatically deleted on exit.
userPath(
PATH)
Resolves PATH relative to cfn-tool
's working directory. This is the
path the user expects to see, as the working directory is set to the
template's directory during macro expansion.
md5(
STRING)
Returns the MD5 hash of the STRING.
The following examples demonstrate how to use the macros described above. Each
example consists of an INPUT
template (the source) and a RESULT
template
reflecting the final document with all macros expanded. Some macros in the
examples refer to a file in the local filesystem, in which case the contents
and path of the file (relative to the INPUT
template) is provided in a FILE
section.
!DeepMerge
# INPUT
Foo: !DeepMerge
- Numeros:
Uno: 1
Dos: 2
Cuatro: 4
- Numeros:
Dos: two
Tres: three
# RESULT
Foo:
Numeros:
Uno: 1
Dos: two
Tres: three
Cuatro: 4
!Do
# INPUT
Foo: !Do
- !Shell make -C project build
- !Package project/dist
# RESULT
Foo:
S3Bucket: mybucket
S3Key: 6806d30eed132b19183a51be47264629.zip
!File
# FILE: ./doit.sh
#!/bin/bash
name=joe
echo "hello, $name"
# INPUT
Script: !File ./doit.sh
# RESULT
Script: |
#!/bin/bash
name=joe
echo "hello, $name"
!Globals
# FILE: template2.yml
Foo: !Ref Foo
# INPUT
<<: !Globals
Foo: 4242
Thing1:
Foo: !Ref Foo
Thing2: !TemplateFile template2.yml
# RESULT
Thing1:
Foo: 4242
Thing2:
Foo: 4242
!Js
# INPUT
Foo: !Js "return 'hello, world!'"
Bar: !Js
- GREET: salve
NAME: orbis
- "return GREET + ', ' + NAME + '!'"
# RESULT
Foo: hello, world!
Bar: salve, orbis!
!JsonDump
# INPUT
Foo: !JsonDump
Bar:
Baz: baf
# RESULT
Foo: '{"Bar":{"Baz":"baf"}}'
!JsonParse
# INPUT
Foo: !JsonParse '{"Bar":{"Baz":"baf"}}'
# RESULT
Foo:
Bar:
Baz: baf
!Let
# INPUT
<<: !Let
Foo: !If [ Bar, Baz, Baf ]
Foop: !Ref Foo
Barp: !Let
- Foo: !Shell echo hello, world!
- !Ref Foo
# RESULT
Foop: !If [ Bar, Baz, Baf ]
Barp: hello, world!
!Mappings
# FILE: template2.yml
<<: !Mappings
Foo:
Bar:
Qux: zot
# INPUT
<<: !Mappings
Foo:
Bar:
Baz: baf
Template2: !TemplateFile template2.yml
# RESULT
Mappings:
Foo:
Bar:
Baz: baf
Template2:
Mappings:
Foo:
Bar:
Baz: baf
Qux: zot
!Merge
# INPUT
Foo: !Merge
- Uno: 1
- Dos: 2
Tres: 3
# RESULT
Foo:
Uno: 1
Dos: 2
Tres: 3
!Outputs
# INPUT
<<: !Outputs
Key1: !Ref Val1
Key2 Name=key2-${AWS::Region}: !Ref Val2
# RESULT
Outputs:
Key1:
Value:
Ref: Val1
Key2:
Value:
Ref: Val2
Name: !Sub key2-${AWS::Region}
!Package
# INPUT
Code: !Package foo/
# RESULT
Code:
S3Bucket: mybucket
S3Key: 6806d30eed132b19183a51be47264629.zip
!PackageURI
# INPUT
Foo: !PackageURI foo/
# RESULT
Foo: s3://mybucket/6806d30eed132b19183a51be47264629.zip
!PackageURL
# INPUT
Foo: !PackageURL foo/
# RESULT
Foo: https://s3.amazonaws.com/mybucket/6806d30eed132b19183a51be47264629.zip
!PackageTemplateURL
# INPUT
Foo: !PackageTemplateURL infra/mytemplate.yml
# OUTPUT
Foo: https://s3.amazonaws.com/mybucket/6806d30eed132b19183a51be47264629.yml
!Parameters
# INPUT
<<: !Parameters
- Foo
- Bar Type=Number Default=42
# RESULT
Parameters:
Foo:
Type: String
Bar:
Type: Number
Default: 42
!Require
# FILE: ./lib/case-macros.js
module.exports = (api) => {
api.defmacro('UpperCase', (form) => form.toUpperCase());
api.defmacro('LowerCase', (form) => form.toLowerCase());
};
# INPUT
<<: !Require ./lib/case-macros
Foo: !UpperCase AsDf
Bar: !LowerCase AsDf
# RESULT
Foo: ASDF
Bar: asdf
!Resources
# INPUT
<<: !Resources
MyBucket AWS::S3::Bucket Condition=Create DependsOn=[Foo,Bar]:
BucketName: !Ref Name
Tags: !Tags { System: core }
# RESULT
Resources:
MyBucket:
Type: AWS::S3::Bucket
Condition: Create
DependsOn:
- Foo
- Bar
Properties:
BucketName: !Ref Name
Tags:
- Key: System
Value: core
!Shell
# INPUT
Foo: !Shell uuidgen -t
Bar: !Shell
- GREET: hello
NAME: world
- echo "$GREET, $NAME!"
# RESULT
Foo: 53480aea-8c46-11eb-a4b0-61c2b0470324
Bar: hello, world!
!Tags
# INPUT
Tags: !Tags
Foo: Bar
Baz: Baf
# RESULT
Tags:
- Key: Foo
Value: Bar
- Key: Baz
Value: Baf
!TemplateFile
# FILE: ./foo/config.yml
Foo: !Let
- Baz: baf
- Bar: !Ref Baz
# INPUT
Config: !TemplateFile ./foo/config.yml
# RESULT
Config:
Foo:
Bar: baf
!Var
# INPUT
Foo: !Var supercollider-${AWS::Region}
# RESULT
Foo:
Fn::ImportValue:
!Sub supercollider-${AWS::Region}
!YamlDump
# INPUT
Foo: !YamlDump
Bar:
Baz: baf
# RESULT
Foo: |
Bar:
Baz: baf
!YamlParse
# INPUT
Foo: !YamlParse |
Bar:
Baz: baf
# RESULT
Foo:
Bar:
Baz: baf
Please open an issue: https://github.com/daggerml/cfn-tool/issues.
Man pages for the cfn-tool
commands:
cfn-tool
(1)cfn-tool-deploy
(1)cfn-tool-transform
(1)cfn-tool-update
(1)Copyright © 2021 Micha Niskin<EMAIL_ADDRESS>, distributed under
the following license:
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


[gecode-users] Segmentation Fault with fzn-gecode
Jean-Noël Monette
jean-noel.monette at it.uu.se
Fri Oct 24 13:26:36 CEST 2014
Hi,
I get a Segmentation Fault with the fzn-gecode compiled with Gecode
4.3.1 when running, for instance, the file
"minizinc-1.6/tests/evaluation/flatzinc/queens4.fzn" from the official
MiniZinc distribution. Some other files (I only checked
"minizinc-1.6/tests/evaluation/flatzinc/bool_clause.fzn") work fine.
I am running Linux Mint 17 on 64 bits but I know that Pierre Flener has
also encountered the bug on his Mac (don't know the exact version) with
different FlatZinc models. I did "./configure", "make", and "make
install" without any arguments.
Cheers,
Jean-Noël
More information about the users
mailing list


He is the elemental Master of Creation. He is the First Spinjitzu Master'second-born son. He is Garmadon's little brother. He is Misako's brother-in-law. And Lloyd's paternal uncle. Nadakhan ravaged Ninjago and trapped Wu in the Sword of Souls though these events were undone by Jay's final wish. On the Day of the Departed Wu was met with a revived Morro Morrow helped Wu reunite the ninja during Yang's scheming. Wu later confronted Acronix Acronix once struck him with the Forward Time Blade.
Wu grew up learning the art of the ninja alongside his older brother. Garmadon, who was infected with evil. They fought together as a team against evil for many years. Until Garmadon's corruption completed and he was later sent to the Underworld. Around a decade later Wu trained a group of teenagers in the ways of Spinjitzu. One wu was hit with the Forward Time Blade. That caused him to fastly age. Though his health was restored by the Reversal Time Blade. He sacrificed himself in a bid to defeat the Time Twins And then he got lost in time. The loss of Wu left Lloyd in charge of the ninja. Master Wu is the wise. But elderly mentor of the ninja. And the Master of Creation. He is the First Spinjitzu Master's second-born son. Garmadon's younger brother. Misako's brother-in-law, and Lloyd's paternal uncle. Wu grew up learning the art of the ninja alongside his older brother, Garmadon
So they could protect the land his father created. Wu guided the ninja in many fights against his brother And the Serpentine. Wu also guided the ninja in fighting and the Overlord. When the Nindroid crisis began Wu was corrupted into a cyborg. And they made it their goal to find Wu. Wu returned as a baby. Because he was hit with the Reversal Time Blade. When wu was a baby the ninja found him in a jungle. The efects of both blades impacted him. Garmadon was infected with evil. They fought together as a team. Against evil for many years. Until Garmadon's corruption completed. And he was subsequently banished to the Underworld. Around a decade later, Wu trained a group of teenagers in the ways of Spinjitzu. So they could protect the land his father created. His father is the First Spinjistu Master.
But was purified after the Digital Overlord was vanquished. After the ninja went to a mysterious island to save Zane. Wu once joined the Elemental Masters to fight Chen and his Anacondrai warriors. After Garmadon was sent to the Cursed Realm and the close of the war Wu's first pupil, Morro, escaped the Cursed Realm. Wu trained Nya to harness her element (Water) allowing her to destroy Morro's master. One time he was on a ship in the jungle when he was a baby he learned to walk and talk and drink tea over night. When wu was turned and kidnapped by the Sons of Garmadon Until he was rescued by Cole. Little Wu was with the original four ninja aboard the Bounty . Until they used Traveler's Tea in ninjago to save themselves ending up in the first Realm of Oni and Dragons.


GREEK MYTHOLOGY
Purpose
The ancient Greeks created myths to:
- worship their gods
- create heroes
- teach morals
- explain the world around them
Central Figures
Some figures from Greek Mythology include:
| Name |
Species |
Power |
| Zeus |
god |
lightning |
| Herakles |
human |
super strength |
| Artemis |
goddess |
chastity |
| Gaia |
titan |
nature |
And you can be a figure from Greek Mythology too!
You can read more about Greek Mythology HERE though, the page is barebones and hardly contains any info compared to this one...


×
Add account
Name
Username/Email
Password
Generate Password
Comment
Toggle navigation
Self Hosted Password Manager
Logout
Passwords
(current)
Passwords
Add
id
Name
Username
Password
Comment
Options


BATMAN RETURNS A film review by Steve Rhodes Copyright 1997 Steve Rhodes
RATING (0 TO ****): ** 1/2
After recently having suffered through the press screening of Joel Schumacher's BATMAN & ROBIN, we decided to check out one of Tim Burton's originals. BATMAN RETURNS is the second in the Batman series and the last to be directed by Tim Burton. Correctly criticized at the time of its release in 1992 as being too dark, it nevertheless has more imagination and energy than Schumacher's latest two (BATMAN FOREVER and BATMAN & ROBIN).
As in all the Batman films, the landscape is populated by a cornucopia of quirky characters. Danny DeVito plays the mistreated Oswald Cobblepot, who comes back to Gotham City as the Penguin to wreak havoc on Gotham City's occupants. With the dark circles under his eyes, his black lipstick, and his beak of a nose, the sewer living Penguin is at once both pitiful and scary.
Ever creepy Christopher Walken plays the evil industrialist Max Shreck. His moral compass does nothing but spin, and he is happy to do whatever it takes, including pushing his bullied secretary out the window, to achieve his financial goals. When she comes back to life, he casually remarks that there are always higher windows.
Easily the best and only memorable performance in the picture is turned in by Michelle Pfeiffer as Max's secretary, Selina Kyle. Before her death, Pfeiffer seems totally out of character as a ditzy and helpless woman with hair as frazzled as her brain. After her resurrection by some local alley cats, she metamorphoses into Catwoman, ever strong and out to get all of those men who have made her downtrodden.
Catwoman gets most of the better lines in the script by Sam Hamm and Daniel Waters. "Hello honey, I'm home," she announces when she comes home. "Oh, I forgot. I'm not married." It is her sly and understated intonation that makes the show's best line: "I am Catwoman. Hear my roar." In print, it has no punch, but as delivered by Pfeiffer, it has a beautiful and poetic energy.
Although many actors have tried to wear Batman's heavy rubber suit and ended up looking silly, none more so that George Clooney, Michael Keaton gives the most satisfying rendition. His Bruce Wayne and Batman are dark and brooding like all of Burton's films. Without the levity of Catwoman, BATMAN RETURNS would have been too much of a downer to take.
The batmobile has more gadgets than any vehicle James Bond ever drove. Bo Welch's art deco sets look like they came from Albert Speer's design studio. And Danny Elfman's dramatic music is full of symphonic power making the show resemble an elaborate and macabre opera.
Most of the violence is at the rock 'em, sock 'em cartoonish level, but some can be downright gory. In a scene that reminds one of CHINATOWN, the Penguin is given a pair of giddily happy, image consultants by his mentor Max. The Penguin hates the idea so much that he tries to bite off one of their noses.
BATMAN RETURNS drags frequently, and Burton has trouble controlling his dark tendencies, but still, thanks mainly to Pfeiffer, it remains one of the better of an overhyped and too often unwatchably bad series. Then again, since the series has generated a reported 4 billion dollars in Batman merchandise sales, the quality of the films themselves are only of secondary importance.
BATMAN RETURNS runs too long at 2:06. It is rated PG-13 for sometimes gory violence. The show would be fine for kids around 8 and up depending on how sensitive they are to gore. My son Jeffrey, age 8, thought the movie was "good," but he did get scared and had to cover his eyes during several scenes. In a somewhat marginal call, I give the film thumbs up and ** 1/2.
**** = A must see film. *** = Excellent show. Look for it. ** = Average movie. Kind of enjoyable. * = Poor show. Don't waste your money. 0 = Totally and painfully unbearable picture.
REVIEW WRITTEN ON: June 28, 1997
Opinions expressed are mine and not meant to reflect my employer's.
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


The eye of a human being is a microscope, which makes the world seem bigger than it really is.
Kahlil Gibran
Microscopy for 3DSlicer
The work has been developed specifically with histological sections of regenerated skin after injury. These images have been obtained from an optical microscope, and Masson’s trichrome stain has been used. This is a three-colour staining protocol used in histology, suited for distinguishing cells from surrounding connective tissue. This project in its first stage has adapted a segmentation algorithm in a new 3DSlicer module.
The framework used consists of the tools: Spyder cross-platform on Windows with WinPython as the main IDE, OpenCV, VTK and ITK libraries, and finally, 3DSlicer –version 4.10.0-, the application to run the adapted algorithms. This application supports python 2.7, and is the version being used.
The segmentation is the process used to simplify or change the representation of an image into another image easier to analyze. It allows the localization of objects and boundaries in the image. With the segmentation process labels are assigned to pixels that in an image share certain characteristics. The result of an image segmentation process is a set of segments that collectively cover the entire image, it could also be a set of contours (contour lines also called isoline, isopleth, or isarithm), extracted from the image.
In a first stage, the method applied is the watershed transformation, where a gray scale image can be seen as a topographic relief, and markers are seen as water sources. The relief is progressively flooded, creating larger and larger lakes. The algorithm supposes that the higher gray level of a pixel is probably the relief that separates two or more regions. The barriers created give the segmentation result.
Here are the main steps followed for this segmentation:
- Implementation of the threshold segmentation to obtain binary images.
- Labeled of regions:
- Regions which we are sure of being objects (color 1).
- Regions which we are sure of being background or non-objects (color 2).
- Regions which we are not sure of anything (label 0).
- Implementation of the watershed algorithm.
- Coloured of the pixels of the image where the marker is equal to -1.
The watershed, thus obtained, corresponds to the region of the partition.
In a second stage it’s been implemented the thresholding method, based on a clip-level (threshold value), it turns the gray-scale image into a binary one. The key element of this method is the selection of the threshold value for an only level, or values when multiple-levels are selected. These values must be established so that the pixels that are between each pair of limits will form an object. The Otsu method has been used to define the threshold value. This method is based on the selection of a minimum between two modes (peaks), which amount to minimizing intra-class variances.