Faux Jambalaya
Yields: 8
Preparation time: 15
Cooking time: 240
Ingredients
-
1 can (14.5 ounce) diced tomatoes1 can (14.5 ounce) chicken broth1 can (6 ounce) tomato paste3 celery sticks, chopped2 medium green bell peppers, chopped1 medium onion, chopped5 garlic cloves, minced3 teaspoons dried parsley flakes2 teaspoons dried basil1 and a half teaspoons dried oregano1 teaspoons salt1 teaspoon cayenne pepper1 teaspoon hot pepper sauce1 pound boneless skinless chicken breasts, cut into 1-inch cubes1 pound smoked sausage, halved and cut into 1/4-inch slices
Directions
-
Note that veggies can be mixed and added. We usually don’t cook with celery, for exampleThrow that mess into the slow cooker and mix it up nicelyCook for 4hJust before this is done (bout 30 minutes) I’m going to add a pound of Medium Shrimp (peeled and tailless)….Just make sure they’re pink before serving


This program exposes them to the ‘cyber world’ and takes them
on a virtual tour of how their information travels in the cyberspace,
what are the concerns and the repercussions- why is it important
to protect their privacy on social networking sites like Facebook,
Twitter, Instagram, etc. Children get equipped with cyber defense arms
and do a deep dive into the cyber world infested with malware,
hackers, predators - the dark side. Children know their enemy
and learn how to defend themselves.
Earns a ‘Cyber Knight’ badge.


Currently, there are {{ data.ecosystem.plugins | length }} officially recognized plugins
Can't you find the plugin you are looking for? No problem, it's very easy to write one!
{{ contents | safe }}| Name | Description |
|---|---|
| {{ plugin.name }} | {{ plugin.description | md | safe }} |
Did you create a fastify plugin and want to list it here? Submit a PR and we will check it out!


The Durham, NC chapter of the Code for America Brigade.
We are a group of volunteer civic hackers working together to solve local issues and help people engage with Durham and the Triangle region of North Carolina.
Casual meetups for geeks, activists, policy makers, and journalists, every other week.
An open conversation online about Durham, what we're doing now, and what's next.
NC Food Inspector is a brand new app designed to give citizens easy access to public health scores at restaurants in our community.
Our next project! School Inspector is a app designed to provide residents with a easy way to learn about navigating the Durham Public School system.


8.15. Exercises
| 8-1. | Conditionals. Study the following code:
# statement A
if x > 0:
# statement B
pass
elif x < 0:
# statement C
pass
else:
# statement D
pass
# statement E
Which of the statements above (A, B, C, D, E) will be executed if x < 0? Which of the statements above will be executed if x = = 0? Which of the statements above will be executed if x > 0?
| | 8-2. | Loops. Write a program to have the user input three (3) numbers: (f)rom, (t)o, and (i)ncrement. Count from f to t in increments of i, inclusive of f and t. For example, if the input is f == 2, t == 26, and i == 4, the program would output: 2, 6, 10, 14, 18, 22, 26.
| | 8-3. | range(). What argument(s) could we give to the range() built-in function if we wanted the following lists to be generated?
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9] [-20, 200, 420, 640, 860]
| | | | 8-4. | Prime Numbers. We presented some code in this chapter to determine a number's largest factor or if it is prime. Turn this code into a Boolean function called isprime() such that the input is a single value, and the result returned is true if the number is prime and False otherwise.
| | 8-5. | Factors. Write a function called getfactors() that takes a single integer as an argument and returns a list of all its factors, including 1 and itself.
| | 8-6. | Prime Factorization. Take your solutions for isprime() and getfactors() in the previous problems and create a function that takes an integer as input and returns a list of its prime factors. This process, known as prime factorization, should output a list of factors such that if multiplied together, they will result in the original number. Note that there could be repeats in the list. So if you gave an input of 20, the output would be [2, 2, 5].
| | 8-7. | Perfect Numbers. A perfect number is one whose factors (except itself) sum to itself. For example, the factors of 6 are 1, 2, 3, and 6. Since 1 + 2 + 3 is 6, it (6) is considered a perfect number. Write a function called isperfect() which takes a single integer input and outputs 1 if the number is perfect and 0 otherwise.
| | 8-8. | Factorial. The factorial of a number is defined as the product of all values from one to that number. A shorthand for N factorial is N! where N! == factorial(N) == 1 * 2 * 3 * ... * (N-2) * (N-1) * N. So 4! == 1 * 2 * 3 * 4. Write a routine such that given N, the value N! is returned.
| | 8-9. | Fibonacci Numbers. The Fibonacci number sequence is 1, 1, 2, 3, 5, 8, 13, 21, etc. In other words, the next value of the sequence is the sum of the previous two values in the sequence. Write a routine that, given N, displays the value of the Nth Fibonacci number. For example, the first Fibonacci number is 1, the 6th is 8, and so on.
| | 8-10. | Text Processing. Determine the total number of vowels, consonants, and words (separated by spaces) in a text sentence. Ignore special cases for vowels and consonants such as "h," "y," "qu," etc. Extra credit: create code to handle those special case.
| | 8-11. | Text Processing. Write a program to ask the user to input a list of names, in the format "Last Name, First Name," i.e., last name, comma, first name. Write a function that manages the input so that when/if the user types the names in the wrong order, i.e., "First Name Last Name," the error is corrected, and the user is notified. This function should also keep track of the number of input mistakes. When the user is done, sort the list, and display the sorted names in "Last Name, First Name" order.
EXAMPLE input and output (you don't have to do it this way exactly):
% nametrack.py
Enter total number of names: 5
Please enter name 0: Smith, Joe
Please enter name 1: Mary Wong
>> Wrong format... should be Last, First.
>> You have done this 1 time(s) already. Fixing input. . .
Please enter name 2: Hamilton, Gerald
Please enter name 3: Royce, Linda
Please enter name 4: Winston Salem
>> Wrong format... should be Last, First.
>> You have done this 2 time(s) already. Fixing input. . .
The sorted list (by last name) is:
Hamilton, Gerald
Royce, Linda
Salem, Winston
Smith, Joe
Wong, Mary
| | 8-12. | (Integer) Bit Operators. Write a program that takes begin and end values and prints out a decimal, binary, octal, hexadecimal chart like the one shown below. If any of the characters are printable ASCII characters, then print those, too. If none is, you may omit the ASCII column header.
SAMPLE OUTPUT 1
---------------
Enter begin value: 9
Enter end value: 18
DEC BIN OCT HEX
-------------------------------
9 01001 11 9
10 01010 12 a
11 01011 13 b
12 01100 14 c
13 01101 15 d
14 01110 16 e
15 01111 17 f
16 10000 20 10
17 10001 21 11
18 10010 22 12
SAMPLE OUTPUT 2
---------------
Enter begin value: 26
Enter end value: 41
DEC BIN OCT HEX ASCII
----------------------------------------
26 011010 32 1a
27 011011 33 1b
28 011100 34 1c
29 011101 35 1d
30 011110 36 1e
31 011111 37 1f
32 100000 40 20
33 100001 41 21 !
34 100010 42 22 '
35 100011 43 23 #
36 100100 44 24 $
37 100101 45 25 %
38 100110 46 26 &
39 100111 47 27 '
40 101000 50 28 (
41 101001 51 29 )
| | 8-13. | Performance. In Section 8.5.2, we examined two basic ways of iterating over a sequence: (1) by sequence item, and (2) via sequence index. We pointed out at the end that the latter does not perform as well over the long haul (on my system here, a test suite shows performance is nearly twice as bad [83% worse]). Why do you think that is?
|
|


- December 12, 2012 Left
- July 6, 2012 Moving to zsh from bash
- July 5, 2012 Using spellchecking with VIM
- July 5, 2012 Using tmux to copy text between two sessions
- July 3, 2012 Installing and developing Android applications on command line in OS X
- June 28, 2012 One terminal to rule them all - for the power users
- June 27, 2012 Why I support Arsenal/Germany at international football
- June 25, 2012 VIM Redux - Start thinking like a vimmer
- June 21, 2012 Power of VIM: Increment argument number value in methods calls
- March 19, 2012 rsyslog and absence of /var/log/messages in Ubuntu
- March 10, 2012 jekyll eats up error from your writing
- March 9, 2012 rvm, Rails 3.1, capistrano, Amazon EC2 - my first basic capistrano deployment script
- March 1, 2012 Amazon S3 bucket names - be very careful
- January 3, 2012 New year resolutions for 2012
- October 25, 2011 ssfs-bad-io
- October 19, 2011 Setting up Xmonad and fun with xinitrc/xsession
- October 14, 2011 Big changes and using blogofile with GitHub and BitBucket
- June 8, 2011 Finding an item based on computed value
- June 7, 2011 Blog moved to Blogofile - add Google Analytics
- June 2, 2011 Blog moved to Blogofile
- May 27, 2011 Welcome Back


Web Development Java Spring Boot .NET C# System Administration PowerShell BASH APM Build & Release Engineering Jenkins Maven Ant


Football: Lille confirm two members of coaching staff to join Mourinho at Tottenham
LILLE, France: Portuguese duo Joao Sacramento and Nuno Santos are to leave their jobs as coaches at Lille in order to become part of compatriot Jose Mourinho's staff at Tottenham Hotspur, the French club said on Wednesday (Nov 20).
Sacramento, 30, was the assistant coach to Christophe Galtier in northern France. He initially joined Lille in January 2017 and worked under former coach Marcelo Bielsa, who was sacked later that year.
Santos has worked as goalkeeping coach at Lille since the summer of 2018.
Now 46, he was a goalkeeper on the books at Benfica in 2000 when Mourinho began his coaching career with the Lisbon giants.
Both men were close to Luis Campos, the Portuguese transfer guru who works as an advisor for Lille and is also close to Mourinho, who was appointed Spurs manager earlier on Wednesday.
Mourinho even attended a Lille game last season following his sacking by Manchester United.


{% if likes_same_sport==True %}
volleyball!
it's fun
favorite players:
{% for player in players %}
{{player}}
{% endfor %} {% else %}
volleyball!
it's fun
{% endif %}


“Damn… it’s day again.”
Early in the morning, Lee Hyun was already deflated.
The South Korean Parliament, more prudent than His Prudence, had passed an unwanted bill nicknamed Leave No One Behind, which was devised to weed out social outcasts and misfits.
The whole stupidity was founded on a theory that asserted that those who were born and brought up in defective backgrounds created a higher rate of violent crimes and divorces.
According to the law, all Korean citizens who were twenty years old or above with noticeable defects in their background were required to visit a psychiatrist occasionally for a mental exam.
In short, Lee Hyun was eligible for it as he had lost his parents in his childhood, and his adolescence had been haunted by the loan sharks.
Lee Hyun went to the Great Society Rehabilitation Center.
“I feel like I’ve time traveled back to the sixties. Great Society, how lame.” Murmuring complaints, Lee Hyun walked into the rehab. The name suggested romantically decorated interiors. The reception room was filled with the twenty year-olds who came take medical tests under the Socially Inept Law, so he had to waste another hour waiting for his turn to register.
“Hi, I’m Lee Hyun. I’m here to take a mental test under Leave No One Behind.”
“I see. Please fill out this form.” A nurse in a white gown handed a piece of paper to Lee Hyun.
“What is this?”
“We will create a complete analysis of your mental state based on your answers to this questionnaire. If you fall into the category of the socially inept, you will be ordered to enter the rehab center and receive periodic treatment. In that case, the government will send a monthly check to your family in compensation.”
What an inhumane law. The government had done virtually nothing to support the disadvantaged when they were suffering horrifying childhoods, abused by their parents or cast out from school.
Now they had to accept a handicap if they wanted to apply to an undergraduate school when they were out of high school. Worse still, they were not even eligible for government jobs. The War on Terror presented a viable excuse to segregate the have-nots from the haves.
“Yes, Ma’am.”
Lee Hyun took the form and filled it out quickly. The pen didn’t leave the surface of the paper. Lee Hyun had thought of those questions for many years, so the answers were flowing from his heart.
“I’m done. Can I leave now?”
“Sure. Take this to cover your bus fare.”
At least, the government showed a small token of pity. Lee Hyun took the coins and left the asylum. Meanwhile, the questionnaire submitted by him started a row among the psychiatrists in the center.
* * *
Cha Eunhee, Ph.D. in psychiatry was laughing her head off as if her neck was broken. The doctor whose attitude earned her the nickname of Ice Queen, was laughing mindlessly in public was a rare sight to nurses.
“Did she finally succeed in communicating with her pet dog?”
“Guess so. Nothing is impossible for the Dr.”
Dr. Cha had immigrated to the United States with her parents, both diplomats, when she was young. She had graduated cum laude from Harvard University at the age of twenty, and earned her doctorate before she turned twenty-three.
Combining beauty and culture, yet puffed up with pride, she had never shown this level of humanity before, which became a topic on everyone’s lips. In the end, the chief nurse decided to put her head above the parapet.
“Dr. Cha, what’s so funny?”
“Check this out.”
Laughing so hard she was crying, Dr. Cha gave the chief nurse what she was holding in her hand. It was a single page of a form that someone had filed out under Leave No One Behind. The Seven short questions and equally short answers.
QuestionnaireName: Lee Hyun 1. What is your name?Lee Hyun 2. What is your profession?A great villain who will threaten world peace. 3. What are you doing?Filling out this questionnaire. 4. What are the three most memorable, or valuable, things that you have done in your life?Hit maximum level in the Continent of Magick. Played the online game for 204 hours running without eating or sleeping. Sold my account. 5. What do you think of politicians In power?Why can’t we just export them to China and Japan? 6. When did you recognize your social position?After I watched ‘Planet of the Apes’. 7. How would you describe your Identity In a single sentence?I am Da Dragon. |
The nurse looked taken aback when she finished reading the document.
“Don’t tell me—is this an excerpt from some graphic novel?”
“No. It looks like one of the subjects filled this out this morning. Can’t you see the stamp of confirmation right at the bottom?”
“A typical nutcase”
“You’re wrong again. If he were a nutcase, he wouldn’t be observing society as sarcastically and precisely as he did in this questionnaire.”
Against common sense, Dr. Cha concluded he was mentally normal. From a psychiatrist’s perspective, she could almost hear a scream of desperation rising from those answers.
To be able to ridicule society in such a way, this young man named Lee Hyun must have lived a colorless life in a world of cruelty.
“Whew.” The chief nurse could not help but sigh.
She had no reason to contradict the doctor’s conclusion. Nevertheless, she thought that either Dr. Cha, who had earned a Ph.D. in psychiatry in the United States and been idolized in globally recognized medical periodicals, was above normal, or this Lee Hyun guy was below normal.
‘Both of them are simply abnormal. Or they are normal, and I’m the only crazy one in the room. Maybe the hard truth is, the whole world has gone insane’, she thought as her head spun.
Dr. Cha picked up the form and got up.
“Society needs different kinds of people. Let it be. You don’t need to look deep into it. By the way, I’m going to show this to Seoyoon.”
“Patient Jeong Seoyoon?”
“Yes.”
“Do you think she will read it?”
“She will. Those who shut their mind are more likely to yearn for attention from outside. I just hope she will laugh this time.” Dr. Cha took the questionnaire that Lee Hyun had filled in and headed to the ward. Her destination was a special ward located on the 12th floor.
With the brand-new medical instruments and best doctors, furnished with a private swimming pool and an indoor gym, the room cost nearly twenty million won a day.
“Hi, Seoyoon, I’m here to see you,”
Beaming at her patient, Cha Eunhee entered the ward. A pale-faced girl lifted her head from a book that she was reading. Who, even among supermodels whose looks are their only highlights, would be overshadowed by her beauty—but her face was empty of emotion. Like a French doll, she seemed lifeless.
‘God gave her beauty, more than she could live with’Dr. Cha thought.
For the girl was so beautiful, she was overly-loved by her protective father. The taboo blurring the line between father and daughter had never been broken, but her mother was paranoid, suspicious of her husband.
Her mother had been jealous of her own daughter, resulting in relentless abuse in the early years, and then came the tragedy on the fateful day. Since then, the girl had lost the power of words.
Back when she was young, Seoyoon had been an angel trapped in an earthly body. Dr. Cha, who used to be a close friend of hers, always felt sorry that she was deprived of her fair share of love and innocence.
“Take a look at this. I’m not allowed to remove any document from my office, but I wanted to show it to you.” Dr. Cha gave the girl the form submitted by Lee Hyun.
Seoyoon’s lightless eyes glided over the paper. Dr. Cha hoped she would burst into laughter.
Do you know that, if you laugh this lime, against all odds, it will be your first time in five years? Dr. Cha thought.
But the still face shattered the doctor’s hopes. The girl looked over the questionnaire and just returned it to her. The doctor felt heartbroken as she remembered how bright Seoyoon had once been.
“Alright… Do you need anything else?” Dr. Cha asked.
Seoyoon gently shook her head.
“Then, feel free to call me anytime you need something.”
Dr. Cha slipped out of the room in silence.
“Did she laugh?” the nurse asked; she wasn’t permitted to enter the room.
Dr. Cha smiled bitterly. “It didn’t work again,” the nurse said.
“No. I can’t find a way to open her mind,” Dr. Cha said. “I must rehabilitate her to maintain the president’s faith in me—no, on behalf of Seoyoon…”
Countless of psychologists, psychiatrists and shamans had been hired to tackle Seoyoon’s condition, to no avail. None of them could melt her frozen heart. Now, nearly everyone gave up any hope for the girl.
The nurse was also tearful. She was sad that such a cute girl neither talked nor laughed, stuck alone in her own closed shell.
“Isn’t there any therapy or medicine to help her?” the nurse asked.
“A psychiatric remedy won’t work as long as the patient refuses to open her mind and accept reality,” Dr. Cha said.
“Then, she’s going to live like that for the rest of her life… ”
“We must do something to get her back. She just needs a cue, something that will lead her to face reality.”
“But it’s already been five years. Her consciousness might have gotten stuck by now—long gone.”
“It is our job to let that happen. No matter what, I will bring her back.” Dr. Cha’s resolution was fierce.
She had majored in psychiatry and voluntarily come to this hospital in order to save Seoyoon.
“I already started a new treatment a year ago.”
“I’ve never heard of it.”
“Of course not. It’s because I had to keep it secret. It’s Royal Road. She’s spending her days and nights in the game, except for medication and counseling,”
“Then—”
“Exactly. Let her start over in the fictional world. Take her out of the shell, and she will move on step by step where she can interact with others. I hope she will regain her lost faith in people, and feel emotions that she had never felt before, at least in virtual reality.”
Back home, Lee Hyun visited the item transaction site before he logged into Royal Road.
Though Lee Hyun had dealt only one item there so far his status was triple diamond. The account in the Continent of Magick was valued at over three billion won.
It alone elevated him to VIP prestige.
|
[Buy] Iron Sword +20 STR for 400,000 won |
|
[Buy] Rings 4 warriors. Offer. |
|
[Buy] Blue Boots for Ranger Class. 300,000 won – negotiable. |
|
[Buy] Earrings for Mages. Royal Road Kelly book value plus extra |
A list or items in demand was thousands or pages long. A keyword yielded millions of search results, but few of them actually reached a deal.
As plenty of users were eager to get hold of cool items, demand was high. The supply could not keep up with it.
The system favored sellers, and when one of them posted his item, the auction was wrapped up in minutes.
|
[Sell] Mace of Red Spirit 105/105 Durability w/ 96-105dmg +15 STR [100,000 won+@] |
|
[Sell] Shine’s Blessing Ring: Rare / Heals 3 MP per sec for 5 min [From 3,000,000 won] |
|
[Sell] Messiah Earring: Mag def. up. Fire magic +8% exp. [4,000,000 won] |
|
[Sell] Blacksmith’s Hammer of Thomas: 15% ? for success rate in forging weaponry. Enables you to produce upgraded weapons at 5,000,000 won |
Items in the top 10% of the auction boasted outrageous prices.
They were followed by lesser items beneath, which still amounted to at least a hundred thousand won.
This bull market signaled that items were in short supply.
If Weed had not been fortunate enough to obtain the iron sword in the beginning, he would have repeated commonplace quests here and there to collect a few coppers each time, and rushed to a blacksmith’s workshop to buy a crude sword before he headed to the field.
Otherwise, he would have to punch monsters, relying on the stats that he had accumulated by striking the scarecrow.
In that case, his attack power would have been halved without the effects of sword mastery. Compared to weapons and gear that were highly configured, craft items for blacksmith and tailoring were inexpensive. Items relevant to the sculptor class were not even available.
Royal Road had opened only fifteen months before. The users were still immersed in leveling up and adventure. Lee Hyun had not seen any other craftsmen.
Seventy percent of the continent was still uncharted, that is why many dungeons are still unexplored, and many quests unsolved. With an infinite opportunity presented before their eyes, only a few users dreamed of becoming craftsmen.
Rosenheim Kingdom was a relatively new world that had been discovered only six months before (according to real world time). The expedition party who first spotted the kingdom had earned tremendous monetary gains.
Rosenheim was far away from the center of the continent, but uncharted territories and unearthed dungeons were scattered everywhere, and strong monsters abounded. This was the primary reason why Lee Hyun chose Rosenheim to start his adventure.
“Did I start too late? No, I still have a chance to catch up,” he told himself.
Lee Hyun shook his head. While the competitors were leveling up and having adventure, Lee Hyun had worked out and collected information instead for one whole year to prepare. He didn’t want to sell his account anymore.
The procedure of an online game’s account transaction was trickier in a virtual reality game where an iris scan was taken to verify the player’s identity. Plus, Lee Hyun had to stay in the business rather than making a quick buck.
Royal Road had to support his family financially at least in the next five years.
“At this rate, Royal Road will give my family something to live off of for the next five, no, ten years. Then, I can afford to send Hye Yeon to college. Stability comes first. I’m a high school dropout, but Hye Yeon deserves a better life—” he said to himself.
Ring
The phone suddenly started ringing.
Lee Hyun looked around and realized that Grandma and Hye Yeon were out of the house, so he picked up the phone reluctantly.
“Hello. Who’s speaking?”
“Lee Hyun, is that you? You still sound rough on the phone, man. It’s me, Sanghoon.”
“Oh, it’s you. Sanghoon”
Lee Hyun had not heard this voice for a long time. Since I dropped out of high school, he thought bitterly.
“Hey, what’s up?” Lee Hyun asked.
 Isn’t it supposed be attended by the graduates only? It’s not even funny if a dropout like me shows up in the reunion.”
“But—”
“No buts. You know why I quit school. I don’t want anything to do with the school now. That’s it.”
“…”
“Do me a favor, Sanghoon. Don’t ever call me again.”
Slam
Lee Hyun dropped the phone and sighed deeply. It was a phone call that he didn’t want in the least.
If only he had been given an MIB-type memory eraser, then, without question, he would have erased the whole three years of high school—the worst memory and time in his life.
Back then, Lee Hyun had been beaten and threatened by the loan sharks. He had to sneak in to school. He had gone to school at dawn and left at midnight as if he were playing hide and seek.
For a couple of days, Lee Hyun had dodged the loan sharks, but they were smarter than he thought. They had hired street racketeers to pressurize the teachers.
Lee Hyun had been even told by his homeroom teacher to pay back his debt, right in front of his classmates.
The teacher had knelt before the lost student, pleading amid tears that he didn’t want to get involved in that madness.
“It was the last straw. I quit school the next day,” he said to himself.
Lee Hyun was a little curious what his friends were like in college. But showing his face in the reunion would only revive shameful moments.
‘The inescapable truth is, the only thing left for me to do is to play the virtual reality game.’ Lee Hyun finished lunch and slipped into the game again.
* * *
Weed never skipped his daily routine of settling down in front of Rodriquez’s manor from dawn to sunset. Who else would be able to cope with boring days such as this?
“What do you think about going hunting in the West Valley? Hippies have a high level, but if we team up together, they’re piece of cake.”
“I heard you joined an escort quest for the caravans bound for Eline Village?”
“The price of troll blood has soared lately by almost triple the usual amount. I’m afraid a big war’s coming.”
Plenty of conversations snuck into Weed’s ears.
Horses whinnied, carriages wheeled by.
Sitting by the main avenue, Weed could catch lots of information. He learned what was going on in the world. Without this type of fun, he would have given up already.
When Weed struck the scarecrow, he was at least enjoying a sense of becoming more powerful. It was self-torturing that he had to sit still under the harsh sunlight.
‘Didn’t Buddha face a wall for several days, meditating?’ he asked himself.
He was going through a similar experience, resolved to see Rodriguez.
For the last two days, Weed had met Pale and Irene to go hunting together. They were not as strong as he, so they earned EXPs more slowly.
Still, they could hunt monsters as they pleased, day and night. Thanks to their flexible schedule, they caught up with Weed’s level.
Thirty percent bonus on EXPs at night is technically canceled out by the fact that monsters are stronger by half than during daytime. More often than not, daytime hunting is more efficient for low-level users.
Plus, Weed was penalized by being undecided class-wise, so that he could not learn any skills. He would lag behind in skill levels if he converted to a class at a higher level than an average user. Last but not least, it tested his patience that he was wasting valuable time waiting in the middle of a street.
‘What can I do now? Sculpture mastery… sculptures…’ Weed looked around. He found a piece of wood that seemed to have been thrown off from a carriage’s wheel.
Picking up the piece of wood, Weed activated the sculpture skill “Carve this.”
Slide
As Weed’s hand was moving, the wood was cut here and there.
“What the! — ”
When the skill finished carving, Weed sighed. The once square piece of wood was whittled to a small circular piece.
“I’d better do it myself.”
 With his past experience of toiling in a textile factory focused his hands, and craft was like a second nature to him.
The engraving knife was so sharp that with just a touch, it carved through the wood. After a few attempts at trial and error, he finally carved the wooden piece into a short sword.
|
You gained expertise rating in Sculpture Mastery. |
|
You gained expertise rating in Handicraft skill. |
Two pop-up message windows appeared in cascade.
Weed learned something—that he didn’t need to rely on the sculpture skill to carve an object, and that when he used the skill, he had to recognize exactly what shape he was working on.
I’d better practice sculpture more often.
Bored, Weed gathered several pieces of wood and started carving them.
‘It’s fun in its own way.’
It suddenly struck Weed that when he was in grade school, his art teachers had praised him for being good at making things. What Weed carved usually turned out useless, but a few of them looked acceptable even to his eyes.
He spent five hours carving wooden pieces. It seemed odd that a man should sit down cutting wood with an engraving knife, but he felt it was better than killing time in vain.
|
Level up: Sculpture Mastery [2] Enables to produce more complicated works. |
Weed’s handicraft skill and sculpture mastery leveled up quickly because their comparatively low level needed a small amount of EXPs to reach the higher level.
“Wow.” Weed was awed.
As his level in sculpture mastery rose, various windows appeared while he was carving a piece of wood.
Visual tips were given, such as where to cut in a circle or what patterns were available. Weed could choose one of the tips, which was automatically processed. Even if he made an error, the sculpture mastery supplemented it to refine the final product.
Now he was making quality statues. Weed carved a fox that he had hunted the other night, and a wolf statue was easier than he had thought. He placed completed animated statues beside him.
Weed’s skill level was currently two, but Zahab’s Engraving Knife doubled it to four.
The knife was unique item that any sculptor would die for willingly. The problem is no one cares.
The sculptor class is near extinction. Even if there are some sculptor-wannabes left, their levels are mediocre, so it is hopeless to expect a good price for Zahab’s Engraving Knife.
When Weed finished the pieces of artwork—
“Art?”
ArtA gift in comprehending and practicing beauty, art renders meals and products elegant in an aesthetic and practical sense. Improves when you see, hear, smell, taste or touch beautiful things, or create artworks. |
“…”
Weed fell silent. Calculating the infinite potential promised by the art stat. Then, he made a quick decision.
“Delete the art stat!”
“Darn it!”
A user cannot create stats infinitely. The maximum number of stat slots is fifteen.
Weed found it intolerable that one of the slots was wasted on the art. Still, though he planned to fill them only with absolutely necessary ones.
‘Can’t help it!’
For Weed could not care less about the art stat. He swore that he would never distribute any stat bonus points to it.
He was relieved to know that the stat would increase automatically, but he was skeptical about how it would work.
Weed kept on carving wooden pieces. He was more interested in side effects than sculpture mastery itself, though.
“Sculpture mastery is good for nothing. But handicraft skill is worth effort in many areas. It will increase the attack power of swords, and archery relies on the hands. I can work on sensitive crafts, too.”
Handicraft skill is a necessity to influence everything everywhere.
|
You gained expertise rating in Handicraft skill. Enables you to learn cooking and tailoring skills. |
Weed’s handicraft skill level hit three as sculptural art helped him obtain EXPs faster.
It really pays off.
Weed was satisfied with a swift increase in his handicraft skill level. It was partly because the artworks that he had produced were, in fact, at level four thanks to Zahab’s Engraving Knife, but sculpture mastery was the main factor.
Cooking and tailoring skills, for example, affect the handicraft skill greatly, yet they cannot rival sculpture mastery in delicacy and adeptness.
Simply put, sculpture mastery is essential to improve handicraft skill. Needless to say, nobody would bother learning sculpture mastery in order to improve the handicraft skill.
“Shit, I will never learn tailoring.
Weed considered it positive to master the basic cooking skills so that he could enjoy delicious food with online recipes.
Not to mention that buying ingredients directly from a grocery store and cooking them with his hands was cheaper than ordering a meat in a fine restaurant.
Also, Weed could preserve stamina better by use of hand-made meals when he went out on a hunting mission for one or more weeks without returning to civilization. Instant food could not restore the stamina stat to full.
Besides, Weed was so haunted by the memory of toiling strenuously in a textile factory that he was resolved to refrain from learning the tailoring skill.
“I hate tailoring more than anything else. I’ll never, ever touch the damned thing,” he told himself.
Absorbed in working on statues, Weed didn’t realize that he was shadowed by black figures until his ears caught strange conversations.
“Wow, it’s lovely.”
“It looks like they’re real.”
“I’ve never seen such lively artwork before.”
Weed looked up in the direction of the shadows. There was a group of people viewing his statues with admiration.
A tiny, cute girl pointed her finger at the rabbit-like statue.
“Hi, ajussi, is it on sale?”
Weed would have gently corrected her that he was only a teenager, but the way a single woman in her thirties would react to an ‘old lady’ label.
But…
“Yes. What can I do for you, young lady?” Weed said, smiling politely, for he smelt money.
“I want that one. How much is it?”
Handing over the rabbit statue, Weed gave it a passing thought.
“It’s…” Weed was pressured to call for a fair price.
Dump those statues at a profit now, or they would sit there forever, ending up in a trash bin. He showed two fingers.
“I’ll take so much,” Weed said.
“Two silvers? It’s cheaper than I thought.” The girl paid two silver coins and picked up the statue.
“This rabbit’s really cute. I’ll keep it as souvenir.”
Stupefied, Weed stared at her back as she left pleasantly. Two fingers meant two copper coins. Only two coppers. But the girl paid one hundred times his call.
“Hey, I want to buy one.”
“Same here. I’ll take the two foxes over there.”
Weed’s statues sold well.
Small ones were priced at two silvers, large ones three. Fox and rabbit statues that he had hunted in the field around the Citadel were more popular than sword- or shield-shaped ones.
The animals looked cute, and customers preferred them in memory of their newbie-hood.
A Lv. 100 user could easily make a couple of gold a day. To them, two silvers were a bargain.
The stock of statues quickly sold out.
“Can you please make us a fox-shaped statue? A fox with nine tails. Can you do that?”
Weed contemplated it and nodded.
The request wasn’t as hard as it sounded. The standard form of a fox plus nine tails. Why not?
“Yes, sir. But you have to pay extra for a customized version.”
“How much is it?”
“Five silvers would do it.”
When the word ‘five’ came out of his mouth, Weed regretted that he might have gone overboard, but the buyers were quick to respond.
“Great. I want it. Then, you should make it look very beautiful. Please?”
In the Citadel, there is a sculpture shop, but it specializes in life-size statues, sometimes adorned with gold and gems, that are not affordable for most users. Since no one else was interested in sculpture mastery, those statues that Weed carved had a collectible value.
“Wow, it’s cool.”
Those who bought statues were excited, adoring their recent purchases.
“Can I get your name? So when I want to buy another one, I’ll look for you.”
“Weed – Sculptor Weed. If you ever want to have a statue to your liking, please feel free to contact me.”
“Thank you. See you later.”
Before sunset, rumors of the sculptor spread to the other ends of the Citadel and people came over to visit Weed.
“There he is.”
“I want you to make some statues for us.”
Weed had earned four silvers from overnight hunting the other night, but one or two statues made more money now. It took only ten minutes to carve a statue. As materials cost almost nothing, it was a very lucrative trade.
The next day, Weed stopped by a carpenter’s shop and bought wood in bulk. He began to mass produce statues.
As the handicraft skill and sculpture mastery upgraded, more beautiful and delicate pieces were churned out.
Needless to say, blessed by his high skill, they sold at a higher price and a quicker pace.
Successful masterpieces, one or two in every thousand, were even put up for auction.
His opinion of sculpture mastery changed slightly in the process – a part time job to secure a satisfactory amount of pocket money.


Greg Wiedeman
Menu
About
Writing
presentations
Code
CV
Processing Born-Digital Images at Scale
Gregory Wiedeman
University Archivist
University at Albany, SUNY
NSDA Content Interest Group
Born-Digital Photography at UAlbany
Began in 1999
Campus Photographer in Digital Media Department
Photographer is state employee, so images are public records!
Two periods, with gap in-between
1999-2010 wrote files to DVDs, Access DB
2012-present SmugMug service
Growth of Born-Digital Photography 1999-2010
1999-2010 Period
4 Boxes of DVDs, about 600 disks
about 20 CD-Rs
1.8 TB of data
Camera Raw files (.NEF, .CR2) and .JPG derivatives of used images
1999-2010 Period
Job number folder contained images, written on disk
Metadata in Access DB
Date
Photographers description of event
Costs, etc.
Previous Work
Student Assistant manually selecting images
Adding detailed item-level metadata
Upload to Luna DAMS
Small Percentage over years.
2012-present
SmugMug service
Online photo web app
about 20,000 images
Photographer Uploads selection of images with metadata
SmugMug has an API
Needs
Automation
Need to scale
No metadata creation, must describe themselves
Transparency
Researchers need context
Access
No restrictions, immediate public access
Presentation within existing collections (EAD)
Support reference work now
Using Python
Python is great at working with data across systems
Requests library to query SmugMug API
os library to read filesystem, copy files
Subprocess to call other command line tools
TSK, ImageMagick
Bagit-python
lxml to work with XML and EAD
Mass Image DVDs
Used BitCurator Forensic Machine
Ripping from disk ran into Filesystem issues
different ISO formats
Running dd was most dependable
5 external disk drives
Mass Image DVDs
Appraisal in Born-Digital Processing
Archives manage materials at scale
Time-limited project, initially less than 2 months
Other collections need attention
Appraisal Decisions
Not to retain camera raw permanently
Large, access barrier
Not a final product, proprietary
Convert all files to JPG
1.8 TB down to a managable 274 MB
Not spending time recovering all files
diminishing returns
JPEG compression!?
Edited, used pre-2010 images were JPGs
Why go back to unedited raw?
All post-2010 images through SmugMug were JPGs
JPG compression visually looked the best
Purpose of collection was to document university events
Users happy with JPGs
Not using compression is not a preservation strategy
In the Spirit of OAIS
Does appraisal conflict with OAIS?
SIPs are non-permanent .dd images and Access DB exports
AIPs are processed bags with metadata
DIPs are metadata in EAD, linked to JPGs on web server
The SIPs/AIPs
Crawling SmugMug
Wrote a crawler for SmugMug
Download all images
Periodically crawl for updates
Hash index to see if already downloaded
Package in to Bags with XML metadata file
Directory structure and descriptive metadata
Separate script to write metadata into EAD files
it broke
Access
Listed DVD albums in CSV
Student arranged into SmugMug directory structure with spreadsheet
Described image sets without Job numbers
Python script updated EAD-XML with directory structure
Each image set is a component with DAO link
Batch generated HTML files
Exposed as
XTF finding aid
Access
Things I’ve learned
This gets complicated
Just because you can script it, doesn’t mean its a sustainable workflow
You can put any junk in XML
Maintenance is an issue
Infrastructure first
Building Infrastructure
Stopped collecting from SmugMug for now
Arclight for archival description
Hyrax repository for digital archives content
connects to Arclight API
backed by data model
New
SIP/AIP Model
Validate to Spec using
Bagit-profiles
Future Plans
Network of open systems connected by REST APIs
Ingest utility
Make Bag according to Spec
Post to Hyrax, backed by Data Model
Post accession to ArchivesSpace
Processing utility
Any content processing
Post description to ArchivesSpace, exposed in Arclight
Post public content to Hyrax, linked to Arclight description
Processing Born-Digital Images at Scale


About
Work
Contact
Hey I'm Ilayda.
a web developer
These are some of my projects..
Xulapp (React Game)
Indecision Application (React)
Hangman Game
Note-taking Application
To-do Application
Tribute Page
Job Application Form
Online Sales Page
Technical Documentation Page
Let's work together...
Which ideas do you want to make real?
Facebook
GitHub
Instagram
Send a mail


| Total net profit | -39.68 | Gross profit | 31.57 | Gross loss | -71.25 |
| Profit factor | 0.44 | Expected payoff | -2.2 | ||
| Absolute drawdown | -39.68 | Maximal drawdown (%) | 42.15 (1706.48%) | ||
| Total trades | 18 | Profit trades (% of total) | 13 (72.22%) | Loss trades (% of total) | 5 (27.78%) |
| Long positions (won %) | 9 (66.67%) | Short positions (won %) | 9 (77.78%) | ||
| Largest | profit trade | 9.62 | loss trade | -30.71 | |
| Average | profit trade | 2.43 | loss trade | -14.25 | |
| Minimum | profit trade | 0.04 | loss trade | -2.72 | |
| Maximum | take profit in pips | 159.8 | stop loss in pips | 0.0 | |
| Average | take profit in pips | 157.2 | stop loss in pips | 0.0 | |
| Minimum | take profit in pips | 151.6 | stop loss in pips | 0.0 | |
| Maximum | Reward-Risk | 0.0 | Duration in minutes | 4986 | |
| Average | Reward-Risk | 0.0 | Duration in minutes | 1351.4 | |
| Minimum | Reward-Risk | 0.0 | Duration in minutes | 41 | |
| Maximum | consecutive wins (profit in money) | 6.0 (17.51) | consecutive losses (loss in money) | 2.0 (-33.51) | |
| Average | consecutive wins | 3.0 | consecutive losses | 1.0 |
| Total net profit | -20.01 | Gross profit | 16.22 | Gross loss | -36.23 |
| Profit factor | 0.45 | Expected payoff | -2.22 | ||
| Absolute drawdown | -20.01 | Maximal drawdown (%) | 35.02 (233.31%) | ||
| Total trades | 9 | Profit trades (% of total) | 6 (66.67%) | Loss trades (% of total) | 3 (33.33%) |
| Largest | profit trade | 7.38 | loss trade | -30.71 | |
| Average | profit trade | 2.7 | loss trade | -12.08 | |
| Minimum | profit trade | 0.06 | loss trade | -2.72 | |
| Maximum | take profit in pips | 159.8 | stop loss in pips | 0.0 | |
| Average | take profit in pips | 157.4 | stop loss in pips | 0.0 | |
| Minimum | take profit in pips | 156.2 | stop loss in pips | 0.0 | |
| Maximum | Reward-Risk | 0.0 | Duration in minutes | 1547.0 | |
| Average | Reward-Risk | 0.0 | Duration in minutes | 631.7 | |
| Minimum | Reward-Risk | 0.0 | Duration in minutes | 148.0 | |
| Maximum | consecutive wins (profit in money) | 4.0 (15.01) | consecutive losses (loss in money) | 2.0 (-33.51) | |
| Average | consecutive wins | 3.0 | consecutive losses | 1.0 |
| Total net profit | -19.67 | Gross profit | 15.35 | Gross loss | -35.02 |
| Profit factor | 0.44 | Expected payoff | -2.19 | ||
| Absolute drawdown | -29.55 | Maximal drawdown (%) | 31.61 (1534.47%) | ||
| Total trades | 9 | Profit trades (% of total) | 7 (77.78%) | Loss trades (% of total) | 2 (22.22%) |
| Largest | profit trade | 9.62 | loss trade | -24.64 | |
| Average | profit trade | 2.19 | loss trade | -17.51 | |
| Minimum | profit trade | 0.04 | loss trade | -10.38 | |
| Maximum | take profit in pips | 158.2 | stop loss in pips | 0.0 | |
| Average | take profit in pips | 157.0 | stop loss in pips | 0.0 | |
| Minimum | take profit in pips | 151.6 | stop loss in pips | 0.0 | |
| Maximum | Reward-Risk | 0.0 | Duration in minutes | 4986.0 | |
| Average | Reward-Risk | 0.0 | Duration in minutes | 2071.2 | |
| Minimum | Reward-Risk | Duration in minutes | 41.0 | ||
| Maximum | consecutive wins (profit in money) | 3.0 (3.41) | consecutive losses (loss in money) | 1.0 (-10.38) | |
| Average | consecutive wins | 2.0 | consecutive losses | 1.0 |


--- layout: page title: "Using The ISSN (International Serial Standard Number) as URN (Uniform Resource Names) within an ISSN-URN Namespace" description: "This document presents how the ISSN - International Standard Serial Number - which is a persistent number for unique identification of serials widely recognised and used in the bibliographic world, can be supported within the Uniform Resource Name (URN) framework as a specific URN namespace identifier. An ISSN URN resolution system using the ISSN identifier as Uniform resource Name within an ISN URN Namespace has been developed by the ISSN International Centre (ISSN-IC) and is operating as a demonstrator to evaluate all requirements to deploy it in an operational environment. This proceeds from concepts and proposals developed in several IETF RFCs emphasising the way to implement and to use \"recognised\" existing numbering system within the URN framework (RFC 2248, RFC 2141, RFC 2611)." ---
| Document Name: | RFC 3044 |
|---|---|
| Document URI: |
urn:ietf:rfc:3044
|
| Online Version: |
https://datatracker.ietf.org/doc/html/rfc3044
|
| Organization: | Internet Engineering Task Force (IETF) |
| Series: | Request for Comments (RFC) |
| Abstract: | This document presents how the ISSN - International Standard Serial Number - which is a persistent number for unique identification of serials widely recognised and used in the bibliographic world, can be supported within the Uniform Resource Name (URN) framework as a specific URN namespace identifier. An ISSN URN resolution system using the ISSN identifier as Uniform resource Name within an ISN URN Namespace has been developed by the ISSN International Centre (ISSN-IC) and is operating as a demonstrator to evaluate all requirements to deploy it in an operational environment. This proceeds from concepts and proposals developed in several IETF RFCs emphasising the way to implement and to use "recognised" existing numbering system within the URN framework (RFC 2248, RFC 2141, RFC 2611). |
issn
Return to ( Series | Organization | all Specifications )


pdf4tcl - Pdf document generation
This package provides a container class for generating pdf documents.
All coordinates and distances can be expressed with or without a unit. See UNITS for valid units. When the page is configured with -orient set to false, origin is in the bottom left corner. With -orient true (the default), origin is in the top left corner. Origin is displaced to account for margins, i.e. if margins are 100, the user coordinate (0,0) corresponds to (100,100) on the paper. Page option -orient can also affect the anchor point for things like images.
Any coordinates and distances can be expressed with or without an explicit unit. If no unit is given, the default unit for the document is used. A unit may be one of mm (millimeter), m (millimeter), cm (centimeter), c (centimeter), p (points) or i (inches). Commands returning coordinates or distances always return a double value in the document's default unit.
This command creates a new pdf4tcl object with an associated Tcl command whose name is objectName. This object command is explained in full detail in the sections OBJECT COMMAND and OBJECT METHODS. The object command will be created under the current namespace if the objectName is not fully qualified, and in the specified namespace otherwise. If objectName is %AUTO% a name will generated. The return value is the newly created object's name.
The options and their values coming after the name of the object are used to set the initial configuration of the object. See OBJECT CONFIGURATION.
This call returns the size of a named paper type, e.g. "a4". Paper names are case insensitive. The argument paper may also be a two element list with values as accepted by ::pdf4tcl::getPoints. The return value is a list with width and height in points.
This call returns the list of known paper types.
This call translates a measurement to points (1/72 inch). The format of val is 'num ?unit?' where num is a valid integer or double. See UNITS for valid units. If no unit is given, the value is interpreted as points.
This call loads a TTF font from file to be used by any pdf4tcl objects. The basefontname is used to reference this font. To use this base font in documents, a font with some encoding must be created from it using createFont or createFontSpecEnc.
This call creates a base font from TTF binary data.
This call loads a Type1 font from two files (.afm and .pfb) to be used by any pdf4tcl objects. The basefontname is used to reference this font. To use this base font in documents, a font with some encoding must be created from it using createFont or createFontSpecEnc.
This call creates a base font from AFM text and PFB binary data.
This call creates a font that can be used in documents from a base font. The given encoding defines the (up to) 256 unicode characters that can be drawn when fontname is selected. To use more characters, multiple fonts need to be created and selected based on what needs to be written.
pdf4tcl::loadBaseTrueTypeFont BaseArial "arial.ttf" pdf4tcl::createFont BaseArial MyArial cp1251 pdf4tcl::loadBaseType1Font BaseType1 "a010013l.afm" "a010013l.pfb" pdf4tcl::createFont BaseType1 MyType1 cp1251 pdf4tcl::new mypdf -paper a4 -compress 0 mypdf startPage mypdf setFont 10 MyArial set txt "\u042D\u0442\u043E \u0442\u0435\u043A\u0441\u0442 \u043D\u0430 \u0440\u0443\u0441\u0441\u043A\u043E\u043C\ \u044F\u0437\u044B\u043A\u0435. This is text in Russian." mypdf text $txt -bg #CACACA -x 50 -y 100 mypdf setFont 10 MyType1 mypdf text $txt -x 50 -y 200 mypdf write -file fonts.pdf mypdf destroy
This call creates a font that can be used in documents from a base font. The subset must be a list of (up to 256) unicode values which are the characters that can be drawn when fontname is selected.
pdf4tcl::loadBaseTrueTypeFont BaseArial "arial.ttf" # Subset is a list of unicodes: for {set f 0} {$f < 128} {incr f} {lappend subset $f} lappend subset [expr 0xB2] [expr 0x3B2] pdf4tcl::createFontSpecEnc BaseArial MyArial $subset pdf4tcl::new mypdf -paper a4 mypdf startPage mypdf setFont 16 MyArial set txt "sin\u00B2\u03B2 + cos\u00B2\u03B2 = 1" mypdf text $txt -x 50 -y 100 mypdf write -file specenc.pdf mypdf destroy
This call returns the list of known font names, i.e. those accepted in a call to setFont. This includes the default fonts and fonts created by e.g. ::pdf4tcl::createFont.
This call translates an RGB color value to a CMYK color value. It is used internally if -cmyk was set at object creation to translate colors. You can redefine this procedure to provide your own translation.
This call translates a CMYK color value to an RGB color value. It is used internally to translate colors. You can redefine this procedure to provide your own translation.
This call concatenates PDF files into one. Currently the implementation limits the PDFs a lot since not all details are taken care of yet. Straightforward ones like those created with pdf4tcl or ps2pdf should work mostly ok.
This call extracts form data from a PDF file. The return value is a dictionary with id/info pairs. The id is the one set with -id to addForm, if the PDF was generated with pdf4tcl. The info is a dictionary with the following fields:
All commands created by ::pdf4tcl::new have the following general form and may be used to invoke various operations on their pdf object.
The method method and its arg'uments determine the exact behavior of the command. See section OBJECT METHODS for the detailed specifications.
The method returns a list of all known options and their current values when called without any arguments.
The method behaves like the method cget when called with a single argument and returns the value of the option specified by said argument.
The method reconfigures the specified options of the object, setting them to the associated values, when called with an even number of arguments, at least two.
The legal options are described in the section OBJECT CONFIGURATION.
This method expects a legal configuration option as argument and will return the current value of that option for the object the method was invoked for.
The legal configuration options are described in section OBJECT CONFIGURATION.
This method destroys the object it is invoked for. If the -file option was given at object creation, the output file will be finished and closed.
This method starts a new page in the document. The page will have the default page settings for the document unless overridden by option. See PAGE CONFIGURATION for page settings. This will end any ongoing page.
This method ends a page in the document. It is normally not needed since it is implied by e.g. startPage and finish. However, if the document is built page by page in e.g. an event driven environment it can be good to call endPage explicitly to have all the page's work finished before reentering the event loop.
This method starts a new XObject in the document. An XObject is a reusable drawing object and behaves just like a page where you can draw any graphics. An XObject must be created between pages and this method will end any ongoing page. The return value is an id that can be used with putImage to draw it on the current page or with some forms. All page settings (PAGE CONFIGURATION) are valid when creating an XObject. Default options are -paper = {100p 100p}, -landscape = 0, -orient = document default, -margin= 0.
This method ends an XObject definition. It works just like endPage.
This method ends the document. This will do endPage if needed. If the -file option was given at object creation, the output file will be finished and closed.
This method returns the generated pdf. This will do endPage and finish if needed. If the -file option was given at object creation, nothing is returned.
This method writes the generated pdf to the given filename. If no filename is given, it is written to stdout. This will do endPage and finish if needed. If the -file option was given at object creation, an empty file is created.
Add an interactive form at the given position and size. Supported types are text and checkbutton. Option -init gives an initial value for the form. Option -id gives the form an ID that must be unique within a document. If not given, one will be generated. For a text, option -multiline enables multi line editing. For a checkbutton, options -on and -off can be given an xobject (created with startXObject) to control its appearance.
This method returns the size of the available area on the page, after removing margins. The return value is a list of width and height, in the document's default unit.
Draws the contents of the canvas widget path on the current page. The return value is the bounding box in pdf page coordinates of the area covered. Option -bbox gives the area of the canvas to be drawn. Default is the entire contents, i.e. the result of $path bbox all. Options -x, -y, -width and -height defines an area on the page where to place the contents. Default area starts at origin, stretching over the drawable area of the page. Option -sticky defines how to place the contents within the area. The area is always filled in one direction, preserving aspect ratio, unless -sticky defines that the other direction should be filled too. Default -sticky is nw. If option -bg is true, a background is drawn in the canvas' background color. Otherwise only objects are drawn. Default is false. Option -fontmap gives a dictionary mapping from Tk font names to PDF font names. Option -textscale overrides the automatic downsizing made for tk::canvas text items that are deemed too large. If -textscale is larger than 1, all text items are reduced in size by that factor.
Fonts:
If no font mapping is given, fonts for text items are limited to PDF's builtins, i.e. Helvetica, Times and Courier. A guess is made to chose which one to use to get a reasonable display on the page.
An element in a font mapping must exactly match the -font option in the text item. The corresponding mapping value is a PDF font family, e.g. one created by pdf4tcl::createFont, possibly followed by a size. It is recommended to use named fonts in Tk to control the font mapping in detail.
Limitations:
Option -splinesteps for lines/polygons is ignored.
Stipple offset is limited. The form x,y should work.
Window items require Img to be present and must be visible on-screen when the canvas is drawn.
This method sets metadata fields for this document. Supported field options are -author, -creator, -keywords, -producer, -subject, -title, -creationdate and -format.
Add a bookmark on the current page.
This method embeds a file into the PDF stream. File data is considered binary. Returns an id that can be used in subsequent calls to attachFile.
This method adds a file annotation to the current page. The location of the file annotation is given by the coordinates x, y, width, height. The annotation is rendered by default as a paperclip icon, which allows the extraction of the attached file. An fid from a previous call to embedFile must be set as well as a description, which is shown by the PDF viewer upon activating the annotation.
set fid [$pdfobject embedFile "data.txt" -contents "This should be stored in the file."] $pdfobject attachFile 0 0 100 100 $fid "This is the description"
This method sets the font used by text drawing routines. If fontname is not provided, the previously set fontname is kept.
This method returns the width of a string under the current font.
This method returns the width of a character under the current font.
Set coordinate for next text command.
Increment position by dx, dy for the next text command.
This method returns the current text coordinate.
Moves text coordinate down and resets x to where the latest setTextPosition was. The number of lines to move down can be set by spacing. This may be any real number, including negative, and defaults to the value set by setLineSpacing.
Set the default line spacing used be e.g. newLine. Initially the spacing is 1.
Get the current default line spacing.
Draw text at the position defined by setTextPosition using the font defined by setFont.
Draw the text string str wrapping at blanks and tabs so that it fits within the box defined by x, y, width and height. An embedded newline in str causes a new line in the output. If str is too long to fit in the specified box, it is truncated and the unused remainder is returned.
Get information about current font. The available metrics are ascend, descend, fixed, bboxb, bboxt and height.
A limited set of image formats are directly understood by pdf4tcl, currently some JPEG, some PNG, and some TIFF formats. To use unsupported formats, use Tk and the Img package to load and dump images to raw format which can be fed to putRawImage and addRawImage.
Put an image on the current page. The image must have been added previously by addImage or addRawImage. The id is the one returned from the add command.
Put an image on the current page. Works like putImage except that the raw image data is given directly.
image create photo img1 -file image.gif set imgdata [img1 data] mypdf putRawImage $imgdata 60 20 -height 40
Add an image to the document. Returns an id that can be used in subsequent calls to putImage. Supported formats are PNG, JPEG and TIFF.
Add an image to the document. Works like addImage except that the raw image data is given directly.
image create photo img1 -file image.gif set imgdata [img1 data] set id [mypdf addRawImage $imgdata] mypdf putImage $id 20 60 -width 100
This method returns the height of the image identified by id.
This method returns the size of the image identified by id. The return value is a list of width and height.
This method returns the width of the image identified by id.
Colors can be expressed in various formats. First, as a three element list of values in the range 0.0 to 1.0. Second, in the format #XXXXXX where the Xes are two hexadecimal digits per color value. Third, if Tk is available, any color accepted by winfo rgb is accepted.
Sets the background color for text operations where -bg is true.
Alternative calling form, to set color in CMYK color space.
Sets the fill color for graphics operations, and the foreground color for text operations.
Alternative calling form, to set color in CMYK color space.
Sets the stroke color for graphics operations.
Alternative calling form, to set color in CMYK color space.
Sets the width for subsequent line drawing. Line width must be a non-negative number.
Sets the dash pattern for subsequent line drawing. Offset and any elements in the dash pattern must be non-negative numbers. on off is a series of pairs of numbers which define a dash pattern. The 1st, 3rd ... numbers give units to paint, the 2nd, 4th ... numbers specify unpainted gaps. When all numbers have been used, the pattern is re-started from the beginning. An optional last argument sets the dash offset, which defaults to 0. Calling setLineDash with no arguments resets the dash pattern to a solid line.
Sets the width and dash pattern for subsequent line drawing. Line width and any elements in the dash pattern must be non-negative numbers. args is a series of numbers (not a tcl list) which define a dash pattern. The 1st, 3rd ... numbers give units to paint, the 2nd, 4th ... numbers specify unpainted gaps. When all numbers have been used, the pattern is re-started from the beginning. This method do not support offsetting the pattern, see setLineDash for a more complete method.
Draws a line from x1, y1 to x2, y2
If x4, y4 are present, draws a cubic bezier from x1, y1 to x4, y4 with control points x2, y2 and x3, y3. Otherwise draws a quadratic bezier from x1, y1 to x3, y3, with control point x2, y2
Draw a polygon. There must be at least 3 points. The polygon is closed back to the first coordinate unless -closed is false in which case a poly-line is drawn.
Draw a circle at the given center coordinates.
Draw an oval at the given center coordinates.
Draw an arc, following the given oval. The arc starts at angle phi, given in degrees starting in the "east" direction, counting counter clockwise. The arc extends extend degrees.
Draw an arrow. Default angle is 20 degrees.
Draw a rectangle.
Create a clip region. To cancel a clip region you must restore a graphic context that was saved before.
Save graphic/text context. (I.e. insert a raw PDF "q" command). This saves the settings of at least these calls: clip, setBgColor, setFillColor, setStrokeColor, setLineStyle, setLineWidth, setLineDash, setFont, and setLineSpacing. Each call to gsave should be followed by a later call to grestore in the same page.
Restore graphic/text context. (I.e. insert a raw PDF "Q" command).
All pdf4tcl objects understand the options from PAGE CONFIGURATION, which defines default page settings when used with a pdf4tcl object. The objects also understand the following configuration options:
pdf4tcl::new mypdf -paper a3 mypdf startPage mypdf setFont 12 Courier mypdf text "Hejsan" -x 50 -y 50 mypdf write -file mypdf.pdf mypdf destroy
doctools
document, pdf
Copyright © 2007-2016 Peter Spjuth
Copyright © 2009 Yaroslav Schekin


Specification Issues
JUEL tries to be as close as possible to the EL specification. However, the spec isn't always clear, leaves some details open and sometimes even seems to be incorrect. For these certain gaps, JUEL had to make decisions that could not be derived from the specification. We still hope that the specification could be updated to make things more clear. Until then, we will have this section to list the specification issues.
-
In section 1.19, "Collected Syntax", the specification defines Nonterminal
LValueInner (which describes an lvalue expression) as
LValueInner ::= Identifier | NonLiteralValuePrefix (ValueSuffix)*
This would mean - since NonLiteralValuePrefix can be expanded to a nested expression or function invocation - that ${(1)} or ${foo()} were lvalue expressions. JUEL considers this to be a bug and guesses that the above should read asLValueInner ::= Identifier | NonLiteralValuePrefix (ValueSuffix)+
instead. -
In section 1.2.3, "Literal Expressions", the specification states that "the escape characters \$ and \# can be used to escape what would otherwise be treated as an eval-expression". The specification doesn't tell us if '\' is used to escape other characters in literal expressions, too. Consequently, JUEL treats '\' as escape character only when immediately followed by '${' and '#{'.
NoteExpression \\${ evaluates to '\${', whereas \$ evaluates to '\$' and \\ evaluates to '\\'. -
In section 1.3, "Literals", the specification states that "Quotes only need to be escaped in a string value enclosed in the same type of quote". This suggests that, e.g., "You could escape a single quote in a double-quoted string, but it's not necessary". JUEL guesses that you can't and that the above should read as "Quotes can only be escaped in a string value enclosed in the same type of quote".
NoteThe '\' in expression ${'\"'} doesn't escape the double quote. -
From section <IP_ADDRESS>, "Eval-expressions as method expressions", it is clear that a single identifier expression, e.g. ${foo}, can be used as a method expression. However, the specification doesn't tell how to evaluate such a method expression! Unfortunately, there's no obvious guess, here... JUEL evaluates method expression ${foo} as follows (let paramTypes be the supplied expected method parameter types, returnType the expected return type):
- Evaluate ${foo} as a value expression
-
If the result is an instance of java.lang.reflect.Method
- if the method is not static, then error.
- if the method's parameter types do not match the paramTypes, then error.
- if returnType is not null and the method's return type does not match returnType, then error.
- If MethodExpression.invoke(...) was called, invoke the found method with the parameters passed to the invoke method.
- If MethodExpression.getMethodInfo(...) was called, construct and return a new MethodInfo object.
-
JUEL 2.2.6 and later:
If the result is an instance of javax.el.MethodExpression
- If MethodExpression.invoke(...) was called, delegate to invoke(...) on the found method expression.
- If MethodExpression.getMethodInfo(...) was called, delegate to getMethodInfo(...) on the found method expression.
- Otherwise, error
-
Section 1.6, "Operators [] and .", describes the semantics of base[property]. If property is null, the speciification states not to resolve null on base. Rather, null should be returned if getValue(...) has been called and a PropertyNotFoundException should be thrown else. As a consequence, it would not be possible to resolve null as a key in a map. We think that this restriction is not really wanted and more generally, that property == null should not even have been treated as a special case. We have made an enhancement request, hoping that this will be changed in the future. Because this has been explicitly stated in the spec, we had to implement it this way. However, JUEL's builder supports a feature NULL_PROPERTIES to let you resolve null like any other property value.
NoteAssume that map resolves to a java.util.Map. Further assume that feature NULL_PROPERTIES is enabled. Evaluating ${base[null]} as an rvalue (lvalue) will get (put) the value for key null in that map. - Section 1.19, "Collected Syntax" defines Nonterminal IntegerLiteral to be an unsigned integer constant. Then it is said that "The value of an IntegerLiteral ranges from Long.MIN_VALUE to Long.MAX_VALUE". We take that as a hint that the spec wants us to parse integer literals into Long values. However, the positive number |Long.MIN_VALUE| cannot be stored in a Long since Long.MAX_VALUE = |Long.MIN_VALUE| - 1. We think that the specification should have said that "The value of an IntegerLiteral ranges from 0 to Long.MAX_VALUE". Consequently, JUEL rejects |Long.MIN_VALUE| =<PHONE_NUMBER>854775808 as an illegal integer literal.
- Section 1.19, "Collected Syntax" defines Nonterminal FloatingFointLiteral to be an unsigned floating point constant. Then it is said that "The value of a FloatingPointLiteral ranges from Double.MIN_VALUE to Double.MAX_VALUE". We take that as a hint that the spec wants us to parse floating point literals into Double values. However, since Double.MIN_VALUE is the smallest positive value that can be stored in a Double, this would exclude zero from the range of valid floating point constants! We think that the specification should have said that "The value of a FloatingPointLiteral ranges from 0 to Double.MAX_VALUE". Consequently, JUEL accepts 0.0 as a legal floating point literal.


Inicio Horarios
CvLAC Correo
Correo
CvLAC
Copyright © All rights reserved | This template is made with by Colorlib


Demo
Features
- Local data source (Server/API DataSource is on its way)
- Filtering
- Sorting
- Pagination
- Inline Add/Edit/Delete
- Flexible event model
Is it free?
Yes, ng2-smart-table is absolutely free and MIT licensed. That basically means you can use it as you want to.
How can I support you guys?
If you have a second:
- Star our GitHub repo
- Create pull requests, submit bugs, suggest new features
- Follow us on Twitter
- Like our page on Facebook
Can I hire you?
Yes! We are available for hire. Visit our homepage or simply leave us a note at<EMAIL_ADDRESS>We will be happy to work with you!


Server is up and running!
Interactive API Documentation can be found at /api-docs.
If you used docker-compose up, Angular App should be at http://localhost:8080.
To create users either use /api-docs or Postman (or
similar) and POST the following data:
POST http://localhost:3000/user
Headers: Content-Type application/json
Body: raw
{
"email"<EMAIL_ADDRESS>"firstName": "Darth",
"lastName": "Vader",
"role": "Night Manager"
}
More information can be found on GitHub at https://github.com/duluca/lemon-mart
Powered by


rpsftmPlus.Rmd
This vignette gives a short introduction to the R-package rpsftmPlus. The package implements useful functionalities to create sensible default plots and reports of analysis performed using the rpsftm package.
The package can be installed using the following commands in the R console.
# install package from github devtools::install_github( 'Roche/Global-HTA-Evidence-Open', subdir = "Rpackages/rpsftmPlus" )
library(rpsftmPlus) #> Warning: replacing previous import 'rpsftm::cox.zph' by 'survival::cox.zph' when #> loading 'rpsftmPlus' library(rpsftm) library(survival) #> #> Attaching package: 'survival' #> The following object is masked from 'package:rpsftm': #> #> cox.zph library(ggplot2) library(dplyr) #> #> Attaching package: 'dplyr' #> The following objects are masked from 'package:stats': #> #> filter, lag #> The following objects are masked from 'package:base': #> #> intersect, setdiff, setequal, union library(reshape2)
We first need to derive time on experimental treatment and add to the data frame.
| id | def | imm | censyrs | xo | xoyrs | prog | progyrs | entry | rx |
|---|---|---|---|---|---|---|---|---|---|
| 1 | 0 | 1 | 3 | 0 | 0 | 0 | 3 | 0 | 1 |
| 2 | 1 | 0 | 3 | 1 | 2.653 | 0 | 3 | 0 | 0.1157 |
| 3 | 0 | 1 | 3 | 0 | 0 | 1 | 1.738 | 0 | 1 |
| 4 | 0 | 1 | 3 | 0 | 0 | 1 | 2.166 | 0 | 1 |
| 5 | 1 | 0 | 3 | 1 | 2.122 | 1 | 2.885 | 0 | 0.2643 |
Now we can fit an rpsftm model as in the repsftm documentation
These analysis are not related to the rpsftm analysis. They just use the rpsftm object as a useful way to capture information on survival and switching in a single object.
The first plot to review shows the exposure to experimental treatment in control arm prior to event or censoring. This assumes only a single switch per patient (either control -> experimental or experimental -> control respectively. Each line represents a single patîent.
ggexposure(imm.fit) #> Warning: `transmute_()` was deprecated in dplyr 0.7.0. #> Please use `transmute()` instead. #> See vignette('programming') for more help
The second plot to consider shows the patient status over time. These are mutually exclusive states. I.e. the total percent of patients at risk is the sum of patients at risk on control and experimental.
ggatrisk(imm.fit)
The plot data can be retrieved using the rpsftm.atrisk() function for tabulation.
rpsftm.atrisk(imm.fit, eval.times = c(0,1,2,3)) %>% dcast(Arm + Status ~ Time, value.var = "Count") %>% pander::pander()
| Arm | Status | 0 | 1 | 2 | 3 |
|---|---|---|---|---|---|
| Randomized to Control | At risk on Control | 500 | 375 | 147 | 4 |
| Randomized to Control | At risk on Experimental | 0 | 68 | 92 | 6 |
| Randomized to Control | Censored | 0 | 0 | 126 | 321 |
| Randomized to Control | Event | 0 | 57 | 135 | 169 |
| Randomized to Experimental | At risk on Control | 0 | 0 | 0 | 0 |
| Randomized to Experimental | At risk on Experimental | 500 | 451 | 267 | 22 |
| Randomized to Experimental | Censored | 0 | 0 | 114 | 335 |
| Randomized to Experimental | Event | 0 | 49 | 119 | 143 |
This plot allows an assessment of the impact of switching. It shows hypothetical results for different levels of discount. A flat line indicates no impact of switching on results while a sloping line indicates that the switch does affect the results.
ggdiscount(imm.fit) #> Warning: `data_frame()` was deprecated in tibble 1.1.0. #> Please use `tibble()` instead.
The following plots are useful to assess if an rpsftm model has converged.
This shows the evaluated values of psi in the g-estimation. For convergence should be a single root. In this case it appears fine.
ggpsi(imm.fit)
This shows the latent survival times for both arms. For convergence should be a overlapping per randomization. In this case it appears fine.
gglatent(imm.fit)
Assumming all diagnostics are fine and switching does impact the results can now look at the rpsftm results.
This shows the observed survival for both arms alongside the latent survial time for the control arm (as detected by rpsftm).
ggcfact(imm.fit)
This function fits a cox model comparing the observed experimental time to latent control time. Importantly it corrects the variance of the coefficient to account for the g-estimation procedure i.e. it inflates the variance based on the itt p-value.
rpsftm.coxph(imm.fit) %>% summary() #> Call: #> coxph(formula = rpsftm.formula(x), data = cfact.df) #> #> n= 1000, number of events= 285 #> #> coef exp(coef) se(coef) z Pr(>|z|) #> .arm -0.2633 0.7685 0.1376 -1.914 0.0556 . #> --- #> Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1 #> #> exp(coef) exp(-coef) lower .95 upper .95 #> .arm 0.7685 1.301 0.5869 1.006 #> #> Concordance= 0.529 (se = 0.016 ) #> Likelihood ratio test= 4.72 on 1 df, p=0.03 #> Wald test = 4.72 on 1 df, p=0.03 #> Score (logrank) test = 4.74 on 1 df, p=0.03
This function refits an rpsft model with modified treatment effect in the control arm. This allows assessment of the sensitivity to the common treatment effect assumption.
# 50% efficacy for switchers imm.fit.s1 <- rpsftm.refit(imm.fit, k = 0.5) imm.fit.s1 %>% rpsftm.coxph() %>% summary() #> Call: #> coxph(formula = rpsftm.formula(x), data = cfact.df) #> #> n= 1000, number of events= 300 #> #> coef exp(coef) se(coef) z Pr(>|z|) #> .arm -0.2453 0.7825 0.1282 -1.914 0.0556 . #> --- #> Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1 #> #> exp(coef) exp(-coef) lower .95 upper .95 #> .arm 0.7825 1.278 0.6086 1.006 #> #> Concordance= 0.528 (se = 0.015 ) #> Likelihood ratio test= 4.44 on 1 df, p=0.04 #> Wald test = 4.43 on 1 df, p=0.04 #> Score (logrank) test = 4.45 on 1 df, p=0.03
# 80% efficacy for switchers imm.fit.s2 <- rpsftm.refit(imm.fit, k = 0.8) imm.fit.s2 %>% rpsftm.coxph() %>% summary() #> Call: #> coxph(formula = rpsftm.formula(x), data = cfact.df) #> #> n= 1000, number of events= 292 #> #> coef exp(coef) se(coef) z Pr(>|z|) #> .arm -0.2688 0.7643 0.1404 -1.914 0.0556 . #> --- #> Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1 #> #> exp(coef) exp(-coef) lower .95 upper .95 #> .arm 0.7643 1.308 0.5804 1.006 #> #> Concordance= 0.53 (se = 0.015 ) #> Likelihood ratio test= 5.1 on 1 df, p=0.02 #> Wald test = 5.1 on 1 df, p=0.02 #> Score (logrank) test = 5.13 on 1 df, p=0.02


You are about to be redirected to Kayden's Portfolio
Protected by Portfolio Sure Redirect
Destination: https://kaydenportfolio.fruittybob.com


--- layout: page title: "Media Types for Sensor Measurement Lists (SenML)" description: "This specification defines media types for representing simple sensor measurements and device parameters in the Sensor Measurement Lists (SenML). Representations are defined in JavaScript Object Notation (JSON), Concise Binary Object Representation (CBOR), eXtensible Markup Language (XML), and Efficient XML Interchange (EXI), which share the common SenML data model. A simple sensor, such as a temperature sensor, could use this media type in protocols such as HTTP or CoAP to transport the measurements of the sensor or to be configured." ---
| Document Name: | Internet Draft ietf-core-senml |
|---|---|
| Document URI: |
urn:ietf:id:ietf-core-senml
|
| Online Version: |
https://datatracker.ietf.org/doc/html/draft-ietf-core-senml
|
| Organization: | Internet Engineering Task Force (IETF) |
| Series: | Internet Draft (I-D) |
| Abstract: | This specification defines media types for representing simple sensor measurements and device parameters in the Sensor Measurement Lists (SenML). Representations are defined in JavaScript Object Notation (JSON), Concise Binary Object Representation (CBOR), eXtensible Markup Language (XML), and Efficient XML Interchange (EXI), which share the common SenML data model. A simple sensor, such as a temperature sensor, could use this media type in protocols such as HTTP or CoAP to transport the measurements of the sensor or to be configured. |
application/senml+cbor
,
application/senml+exi
,
application/senml+json
,
application/senml+xml
Return to ( Series | Organization | all Specifications )


My Model M Experience
I owned keyboards, both mechanical and rubber dome in the past. The membrane keyboard had MX Red switches, which were linear. Linear switches were ideal for gaming purposes, but I wanted to purchase a keyboard that gave good tactile feedback. I was initially looking for a mechanical keyboard with MX Blues or MX Browns, but then I came across articles and videos praising the IBM Model M as the ideal keyboard for typists. Later, I found out the Model M keyboards were still being made by a company called Unicomp, so I popped over to their website and placed an order for a keyboard. I initially wanted to get a Mini-M model, but they were still under development at the time, so I opted instead for a Classic Model M with a USB connection, which my personal keyboard that I own can be pictured below.
Overall, I enjoy using the Model M. The keys have good travel, and they give amazing tactile feedback during use. They are consider to be quite noisy, on par with MX Blue switches, but I personally enjoy the sound. It has nice amount of weight to it, weighting about 7 pounds. It also has a small notch on the top that can be used to hold pencils and pens, which is pretty neat. The keyboard is quite expensive, costing me $104.00 before taxes, so I would suggest looking for a cheaper mechanical keyboard from Amazon first unless you know exactly what you want. I knew that I wanted to feel the buckling springs and the classic design that harkons back to the 1980s, so I'm very pleased with the overall quality of the product. If you are interested in purchasing a Model M, I would suggest looking into either the Mini Model M, or the New Model M linked at the bottom of the history page here.


CompAudio [options] AFileA [AFileB]
Compare audio files, printing statistics
This program gathers and prints statistics for one or two input audio files. With one input file, this program prints the statistics for that file. With two input files, the signal-to-noise ratio (SNR) of the second file relative to the first file is also printed. For this calculation, the first audio file is used as the reference signal. The "noise" is the difference between sample values in the files.
For SNR comparisons between multi-channel audio files, the data are treated as as a single channel. For stereo files, the SNR calculated is the same as if the two channels contain the real and imaginary components of complex samples.
For each file, the following statistical quantities are calculated and printed for each channel.
Xm = SUM x(i) / N
sd = sqrt[ (SUM x(i)^2 - Xm^2) / (N-1) ]
Xmax = max(x(i))
Xmin = min(x(i))
The above values are reported as a percent of full scale. For instance for a file with 16-bit integer data, full scale is 32768.
An optional delay range can be specified when comparing files. The samples in file B are delayed or advanced relative to those in file A by each of the delay values in the delay range. For each delay, the SNR with optimized gain factor (see below) is calculated. For the delay corresponding to the largest SNR (with optimized gain), the full regalia of file comparison values is reported.
In calculating the SNR for stereo files, the channels are considered to represent the real and imaginary parts of a complex signal. For multi-channel files, the comparisons are carried out on samples in each channel, unless the number of channels is large. In that case, the samples in the files are considered to be a single channel.
SUM |xa(i)|^2 SNR = --------------------- . SUM |xa(i) - xb(i)|^2
SNR = 1 / (1 - r^2) ,
SUM xa(i)*xb'(i) r = ------------------------------------- . sqrt[ SUM |xa(i)|^2 * SUM |xb(i)|^2 ]
SUM xa(i)*xb'(i) Sf = ---------------- . SUM |xb(i)|^2
SUM xa(i)^2 SS(k) = 1 + ------------------------- . eps + SUM [xa(i)-xb(i)]^2
SSNR = 10 * log10( 10^[SUM log10(SS(k)) / N] - 1 ) dB.
If any of these SNR values is infinite, only the optimal gain factor is printed as part of the message (Sf is the optimized gain factor),
"File A = Sf * File B".
The comparison between the files also include maximum absolute difference between samples of the files and the number of samples that differ as a percentage of the number of samples in all channels.
An example of the output for stereo files with integer 16-bit data over a range of delays is shown below.
Delay: 20, SNR = 5.25 dB (File B Gain = 0.558) Delay: 21, SNR = 65.4 dB (File B Gain = 0.667) Delay: 22, SNR = 5.25 dB (File B Gain = 0.558)
File A: Channel 1: Number of Samples: 23829 Std Dev = 855.02 (2.609%), Mean = -9.9431 (-0.03034%) Maximum = 4774 (14.57%), Minimum = -6156 (-18.79%) Active Level: 946.7 (2.889%), Activity Factor: 81.6% Channel 2: Number of Samples: 23829 Std Dev = 427.5 (1.305%), Mean = -4.9737 (-0.01518%) Maximum = 2387 (7.285%), Minimum = -3078 (-9.393%) Active Level: 473.34 (1.445%), Activity Factor: 81.6% File B: Channel 1: Number of Samples: 23829 Std Dev = 1282.4 (3.914%), Mean = -14.886 (-0.04543%) Maximum = 7160 (21.85%), Minimum = -9233 (-28.18%) Active Level: 1418.6 (4.329%), Activity Factor: 81.7% Channel 2: Number of Samples: 23829 Std Dev = 641.2 (1.957%), Mean = -7.4417 (-0.02271%) Maximum = 3580 (10.93%), Minimum = -4617 (-14.09%) Active Level: 709.29 (2.165%), Activity Factor: 81.7% Best match at delay = 21 SNR = 6.023 dB SNR = 65.39 dB (File B Gain = 0.667) Seg. SNR = 6.02 dB (256 sample segments) Max Diff = 3077 (9.39%), No. Diff = 46127 (573 runs)
See routine CopyAudio for a description of other options.
P. Kabal / v10r3 2020-11-30


Conventions
Do not push to DEV
Go through the whole process of creating a branch, create and get an approval of a pull request and then merge your branch to dev
1 Commit per Branch - Merge your commits
Detailed commits
Wrong:
- oopsi #NONE
- fixed some stuff in pm #123
- renamed file
- now there is a sheker in pm
Types
- feat - A new feature
- fix - A bug fix
- docs - Documentation only changes
- style - Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
- refactor - A code change that neither fixes a bug nor adds a feature
- perf - A code change that improves performance
- test - Adding missing tests
- chore- Changes to the build process or Auxiliary tools and libraries such as documentation generation
Good:
- fix(pm): no sheker in pm view
- feat(profile): added sheker
- docs(pm): docs for sheker
- test(pm): more sheker tests
- style(pm): missing color in pm
- pref(gulp): made x task async
Branch Names
Wrong:
- RPV#36135GeneralBugFix
- ShekerUnitTest
Good:
- fix/rpv-validations
- test/sheker-get-value
Pull Requests
What is required:
* Code Style
* Testing (for new features)
* Performance
Who is required:
* Team Leader
* Experienced Programmers
* Related Programmers
Versioning


Enter your room code below!
Submit
Sample Topic
Other Topic
OR
To vote, go to
battledecks.herokuapp.com
and enter
2345
Contestants
Start
Round 1
Contestant:
John Doe
Topic:
Slides:
Start
Topic
Sample Topic
Other Topic
OR
30s


Type Function Library storyboard.* Return value none Revision Current Public Release (2013.2076) Keywords storyboard, scene, overlay, showOverlay Sample code /CoronaSDK/SampleCode/Interface/Storyboard See also storyboard.hideOverlay()
overlayBegan event
overlayEnded event
Load a scene above the currently active scene, leaving the currently active scene in-tact. This is commonly referred to as a "pop up" scene. This function supports all scene transition effects that are available for use with storyboard.gotoScene().
When an overlay scene is shown (and the transition effect is complete, if an effect is specified), the currently active (non-overlay) scene will receive an overlayBegan event.
When an overlay scene is closed (which can be done using storyboard.hideOverlay()), the currently active (non-overlay) scene will then receive an overlayEnded event.
NOTE: If you want to prevent touches from "going through" the overlay scene to the underlying, currently active scene, you can use the isModal
option when calling storyboard.showOverlay()
.
Only ONE overlay scene can be shown at a time. If you call storyboard.gotoScene(), storyboard.removeAll(), storyboard.purgeAll(), or attempt to show a different overlay scene, the current overlay scene will be removed—it is completely dependent on the scene that was active when the overlay was originally shown.
Another important note is that you should be careful with how you call overlay scenes, and what you have them do. For example, if you have an overlay show after a time delay, you should probably make sure that scene transitions don’t occur before the delay duration has been reached (or just be sure to cancel the timer). You should also remove an overlay before attempting to change currently active scenes via storyboard.gotoScene().
storyboard.showOverlay( sceneName [, options ] )
String. This is the name of the desired scene to load as an overlay. Any scene can be used an overlay scene (though an overlay scene should not display another overlay, so it should not listen for overlayBegan or overlayEnded events)
Table. Contains several scene transition-related options (such as effect, custom parameters, etc). See the next section for how you should format this table.
options
This table takes a number of different options. All of which are optional, but some depend on other options to be set.
local options =
{
effect = "fade",
time = 400,
params =
{
sample_var = "anything",
custom = "you want",
data = "here"
}
}
String. Represents the effect you would like to use for the scene transition. See the next section for a list of supported effects. If no effect is specified, the scene transition will happen instantaneously.
Number. The duration of time the effect should last. This is only taken to account if the effect
is also set. Default: 500 (milliseconds)
Table. You may optionally pass any kind of custom data that you want transferred to the overlay scene via event listeners. This data can be accessed via event.params in the "createScene", "willEnterScene", and "enterScene" events of the overlay scene.
Boolean. When set to true
, this prevents touches from "going through" the overlay scene to the underlying "active" scene. Default is false
.
The following is a list of supported strings for the effect
key of the options table:
-- samplescene.lua
local storyboard = require "storyboard"
local scene = storyboard.newScene()
function scene:createScene( event )
-- scene creation code goes here
end
scene:addEventListener( "createScene" )
function scene:enterScene( event )
-- display scene overlay
local options =
{
effect = "fade",
time = 400
}
storyboard.showOverlay( "overlay_scene", options )
end
scene:addEventListener( "enterScene" )
-- the following event is dispatched once the overlay is in place
function scene:overlayBegan( event )
print( "Showing overlay: " .. event.sceneName )
end
scene:addEventListener( "overlayBegan" )
-- the following event is dispatched once overlay is removed
function scene:overlayEnded( event )
print( "Overlay removed: " .. event.sceneName )
end
scene:addEventListener( "overlayEnded" )
return scene


Preparation time
over 2 hours
Cooking time
over 2 hours
Serves
Serves 6-8
Dietary
For the toffee, place all of the toffee ingredients into a pan and bring to the boil.
Place a sugar thermometer into the pan and continue to cook until the temperature reads 128C/260F, then plunge the base of the pan into cold water. Immediately pour the toffee into a cold heatproof glass bowl and whisk well.
Add one tablespoon of cold water and whisk until the toffee has thickened, then pour onto a shallow baking tray lined with baking parchment. Allow to cool until firm.
For the pavlova, preheat the oven to 140C/285F/Gas 1.
Place the egg whites into a clean bowl and whisk until soft peaks form when the whisk is removed.
Add 300g/10½oz of the sugar, one tablespoonful at a time, whisking constantly, until stiff peaks form when the whisk is removed and the mixture appears glossy and smooth.
Add the cornflour and vinegar and whisk to combine.
Cut the toffee into chunks. Add half of the toffee to the meringue mixture and fold in gently.
Line a baking tray with parchment paper and spoon the meringue and toffee mixture onto the tray in a large round shape.
Place into the oven to bake for ten minutes, then turn the oven off and leave for at least 2-3 hours (preferably overnight), until crisp but uncoloured. Remove from the oven and cool. Transfer to a serving plate.
Place the remaining 150g/5oz caster sugar and the water into a pan over a medium heat and bring to the boil. Reduce the heat and simmer until it forms a caramel.
Pour half of the caramel onto a baking tray lined with baking parchment and allow to cool. Keep the remaining caramel warm.
Whisk the double cream until soft peaks form when the whisk is removed.
Fold in the remaining toffee pieces, two thirds of the melted chocolate and almost all of the warm caramel.
Spoon the cream, chocolate and caramel mixture into the centre of the meringue.
Drizzle with the remaining melted chocolate and caramel.
Break the cool, set caramel into shards and place in the centre of the pavlova. Serve immediately.


UseJPEGImageDecoder()
Syntax
UseJPEGImageDecoder()Description
Enables the JPEG (Joint Picture Expert Group) image support for the CatchImage(), LoadImage(), CatchSprite() and LoadSprite() functions.
Parameters
None.
Return value
None.
Remarks
All formats are supported, including the progressive format. The JPEG format makes use of destructive compression (lossy), what this means, is that the picture loses a certain amount of the original information when that picture is compressed. This compression algorithm is actually one of the best available, it will dramatically decrease the image size without the introduction of a lot of visible artifacts.
See Also
UseJPEGImageEncoder(), LoadImage(), CatchImage(), LoadSprite(), CatchSprite()
Supported OS
All


Package org.drip.capital.simulation
Interface PathEnsemble
- All Superinterfaces:
EnsemblePnLDistributionGenerator
- All Known Implementing Classes:
CapitalSegmentPathEnsemble
,CapitalUnitPathEnsemble
public interface PathEnsemble extends EnsemblePnLDistributionGenerator
PathEnsemble exposes the Ensemble of Capital Paths from the Simulation PnL Realizations. The
References are:
- Bank for International Supervision(2005): Stress Testing at Major Financial Institutions: Survey Results and Practice https://www.bis.org/publ/cgfs24.htm
- Glasserman, P. (2004): Monte Carlo Methods in Financial Engineering Springer
- Kupiec, P. H. (2000): Stress Tests and Risk Capital Risk 2 (4) 27-39
- Module = Portfolio Core Module
- Library = Capital Analytics
- Project = Basel Market Risk and Operational Capital
- Package = Economic Risk Capital Simulation Ensemble
- Author:
- Lakshmi Krishnamurthy
-
Method Summary
Modifier and Type Method Description boolean
addPathPnLRealization(PathPnLRealization pathPnLRealization)
Add the specified Path PnL Realizationint
count()
Retrieve the Number of Paths Simulateddouble
expectedShortfall(double confidenceLevel)
Compute Expected Short-fall given the Confidence Level by Percentagedouble
expectedShortfall(int confidenceCount)
Compute Expected Short-fall given the Confidence Level by Countint
idiosyncraticEventIncidenceCount(java.lang.String event)
Retrieve the Occurrence Count for the specified Idiosyncratic Eventjava.util.Map<java.lang.String,java.lang.Integer>
idiosyncraticEventIncidenceCountMap()
Retrieve the Idiosyncratic Event Incidence Count MapCapitalUnitPnLAttribution
pnlAttribution(double confidenceLevel)
Construct the Contributing PnL Attribution given the Confidence Level by PercentageCapitalUnitPnLAttribution
pnlAttribution(int confidenceCount)
Construct the Contributing PnL Attribution given the Confidence Level by CountCapitalUnitPnLAttribution
pnlAttribution(java.util.List<java.lang.Integer> pathIndexList)
Construct the Contributing Path Attribution given the Path Index Listjava.util.Map<java.lang.Double,java.util.List<java.lang.Integer>>
pnlListMap()
Retrieve the PnL List Mapint
systemicEventIncidenceCount(java.lang.String event)
Retrieve the Occurrence Count for the specified Systemic Eventjava.util.Map<java.lang.String,java.lang.Integer>
systemicEventIncidenceCountMap()
Retrieve the Systemic Event Incidence Count Mapdouble
var(double confidenceLevel)
Compute VaR given the Confidence Level by Percentagedouble
var(int confidenceCount)
Compute VaR given the Confidence Level by CountMethods inherited from interface org.drip.capital.simulation.EnsemblePnLDistributionGenerator
ensembleDistribution, grossFSPnLList, grossIdiosyncraticStressPnLList, grossPnLList, grossSystemicStressPnLList
-
Method Details
-
addPathPnLRealization
Add the specified Path PnL Realization- Parameters:
pathPnLRealization
- Path PnL Realization- Returns:
- The Path PnL Realization successfully added
-
pnlListMap
java.util.Map<java.lang.Double,java.util.List<java.lang.Integer>> pnlListMap()Retrieve the PnL List Map- Returns:
- The PnL List Map
-
systemicEventIncidenceCountMap
java.util.Map<java.lang.String,java.lang.Integer> systemicEventIncidenceCountMap()Retrieve the Systemic Event Incidence Count Map- Returns:
- The Systemic Event Incidence Count Map
-
idiosyncraticEventIncidenceCountMap
java.util.Map<java.lang.String,java.lang.Integer> idiosyncraticEventIncidenceCountMap()Retrieve the Idiosyncratic Event Incidence Count Map- Returns:
- The Idiosyncratic Event Incidence Count Map
-
count
int count()Retrieve the Number of Paths Simulated- Returns:
- The Number of Paths Simulated
-
systemicEventIncidenceCount
int systemicEventIncidenceCount(java.lang.String event)Retrieve the Occurrence Count for the specified Systemic Event- Parameters:
event
- The Systemic Event- Returns:
- Occurrence Count for the specified Systemic Event
-
idiosyncraticEventIncidenceCount
int idiosyncraticEventIncidenceCount(java.lang.String event)Retrieve the Occurrence Count for the specified Idiosyncratic Event- Parameters:
event
- The Idiosyncratic Event- Returns:
- Occurrence Count for the specified Idiosyncratic Event
-
var
double var(int confidenceCount) throws java.lang.ExceptionCompute VaR given the Confidence Level by Count- Parameters:
confidenceCount
- Confidence Level by Count- Returns:
- VaR
- Throws:
java.lang.Exception
- Thrown if the VaR cannot be computed
-
var
double var(double confidenceLevel) throws java.lang.ExceptionCompute VaR given the Confidence Level by Percentage- Parameters:
confidenceLevel
- Confidence Level by Percentage- Returns:
- VaR
- Throws:
java.lang.Exception
- Thrown if the VaR cannot be computed
-
expectedShortfall
double expectedShortfall(int confidenceCount) throws java.lang.ExceptionCompute Expected Short-fall given the Confidence Level by Count- Parameters:
confidenceCount
- Confidence Level by Count- Returns:
- Expected Short-fall
- Throws:
java.lang.Exception
- Thrown if the VaR cannot be computed
-
expectedShortfall
double expectedShortfall(double confidenceLevel) throws java.lang.ExceptionCompute Expected Short-fall given the Confidence Level by Percentage- Parameters:
confidenceLevel
- Confidence Level by Percentage- Returns:
- Expected Short-fall
- Throws:
java.lang.Exception
- Thrown if the VaR cannot be computed
-
pnlAttribution
Construct the Contributing PnL Attribution given the Confidence Level by Count- Parameters:
confidenceCount
- Confidence Level by Count- Returns:
- The Contributing PnL Attribution
-
pnlAttribution
Construct the Contributing PnL Attribution given the Confidence Level by Percentage- Parameters:
confidenceLevel
- Confidence Level by Percentage- Returns:
- The Contributing PnL Attribution
-
pnlAttribution
Construct the Contributing Path Attribution given the Path Index List- Parameters:
pathIndexList
- Path Index List- Returns:
- The Contributing Path Attribution
-


Welcome to the paypal converter
{{message}}{{total | currency}}
Today's Rates:
- 1 CAD -> {{ 1 / data.rates.CAD | number: 2}} USD
- 1 USD -> {{ data.rates.CLP | number: 2}} CLP
{{direct_message}} {{direct | currency}}
Today's Rates:
{{direct_message}} {{direct | currency}}