What is the difference between EQ and IQ?
IQ is mostly about the brain and how it registers information. EQ is about
emotions and how a person interprets and control both their own and
other's emotional states.
What is IQ?
IQ, short for intelligence quotient, is a measure of a
person's reasoning abiity. An intelligence quotient (IQ) is a score
derived from one of several standardized tests designed to assess
intelligence.
In short, it is supposed to gauge how well someone can use information
and logic to answer questions or make predictions. IQ tests begin to
assess this by measuring short- and long-term memory. They also
measure how well people can solve puzzles and recall information
they’ve heard — and how quickly.
The abilities that are tested and outlined by IQ are the ability to
learn, understand and apply information to skills, logical reasoning,
word comprehension, math skills, abstract and spatial thinking, filter
irrelevant information.
What is EQ?
Emotional Quotient (aka emotional intelligence or EQ) is defined as
the way to perceive and interpret emotions. Being able to name and
regulate emotions to enhance your personal growth intellectually and
emotionally.
"Your EQ is the level of your ability to understand other
people, what motivates them and how to work cooperatively with
them,”
- Howard Gardner
EQ encompasses one's abilities to identify, evaluate, control and
express emotions ones own emotions; perceive, and assess other's
emotions; use emotions to facilitate thinking, understand emotional
meanings.
There are 5 categories of EQ:
-
Self-awareness: The ability to recognize
an emotion as it “happens”. The major elements of
self-awareness are:
-
Emotional awareness: The ability to recognize your
own emotions and their effects.
-
Self-confidence: Sureness about self-worth and
capabilities.
-
Self-regulation: You often have little
control over when you experience emotions. You can,
however, have some say in how long an emotion will last by
using a number of techniques to alleviate negative
emotions such as anger, anxiety or depression.Self-regulation involves:
-
Self-control: Managing disruptive impulses.
-
Trustworthiness: Maintaining standards of honesty and integrity.
-
Conscientiousness: Taking responsibility for your own performance.
-
Adaptability: Handling change with flexibility.
-
Innovation: Being open to new ideas.
-
Motivation: To motivate yourself for any
achievement requires clear goals and a positive attitude.
Although you may have a predisposition to either a
positive or a negative attitude, you can with effort and
practice learn to think more positively. Motivation is
made up of:
-
Achievement drive: Constantly striving to improve
or to meet a standard of excellence.
-
Commitment: Aligning with the goals of the group
or organization.
-
Initiative: Readying yourself to act on
opportunities.
-
Optimism: Pursuing goals persistently despite
obstacles and setbacks.
-
Empathy: The ability to recognize how
people feel. The more skillful you are at discerning the
feelings behind others’ signals the better you can control
the signals you send them. An empathetic person excels
at:
-
Service orientation: Anticipating, recognizing and
meeting clients’ needs.
-
Developing others: Sensing what others need to
progress and bolstering their abilities.
-
Leveraging diversity: Cultivating opportunities
through diverse people.
-
Political awareness: Reading a group’s emotional
currents and power relationships.
-
Understanding others: Discerning the feelings
behind the needs and wants of others.
-
Social skills: The development of good
interpersonal skills. Among the most useful skills are:
-
Communication: Sending clear messages.
-
Leadership: Inspiring and guiding groups and
people.
-
Change catalyst: Initiating or managing change.
-
Conflict management: Understanding, negotiating
and resolving disagreements.
-
Building bonds: Nurturing instrumental
relationships.
In an environment where you must work along side others, EQ plays an extremely large part in your success. So in other words...


VW CEO says new ID.3 car 40% cheaper to build than electric Golf
by Reuters1 / 3Employees work at a production line of a a new electric Volkswagen model ID.3 in Zwickau
FRANKFURT (Reuters) - Volkswagen's <VOWG_p.DE> new ID.3 electric vehicle will be 40% cheaper to build than the electric version of its Golf model, Chief Executive Herbert Diess told investors on Monday.
The battery in the new ID.3 can be used to add structural rigidity to the body and the modular layout of the battery allows for advantages in packaging and economies of scale.
"If you focus on an electric platform, all in all it accounts for a 40% reduction against the predecessor electric Golf," Diess said. "Most of it from cells and the battery system. Around 5-10% comes from dedicating an entire plant to electric vehicles."
This cost reduction is one of the reasons that Volkswagen is confident it can shift from making combustion-engined to electric cars without eroding the company's profit margin, VW said.
(Reporting by Edward Taylor; Editing by Ludwig Burger)


|
BitShares-Core
6.1.0
BitShares blockchain implementation and command-line interface software
|
provides stack-based nullable value similar to boost::optional More...
#include <optional.hpp>
Public Types | |
| typedef T | value_type |
Public Member Functions | |
| optional () | |
| ~optional () | |
| optional (optional &o) | |
| optional (const optional &o) | |
| optional (optional &&o) | |
| template<typename U > | |
| optional (const optional< U > &o) | |
| template<typename U > | |
| optional (optional< U > &o) | |
| template<typename U > | |
| optional (optional< U > &&o) | |
| template<typename U > | |
| optional (U &&u) | |
| template<typename U > | |
| optional & | operator= (U &&u) |
| template<typename U > | |
| optional & | operator= (optional< U > &o) |
| template<typename U > | |
| optional & | operator= (const optional< U > &o) |
| optional & | operator= (optional &o) |
| optional & | operator= (const optional &o) |
| template<typename U > | |
| optional & | operator= (optional< U > &&o) |
| optional & | operator= (optional &&o) |
| bool | valid () const |
| bool | operator! () const |
| operator bool () const | |
| T & | operator* () |
| const T & | operator* () const |
| T * | operator-> () |
| const T * | operator-> () const |
| optional & | operator= (std::nullptr_t) |
| void | reset () |
Friends | |
| template<typename U > | |
| class | optional |
| bool | operator< (const optional a, optional b) |
| bool | operator== (const optional a, optional b) |
provides stack-based nullable value similar to boost::optional
Simply including boost::optional adds 35,000 lines to each object file, using fc::optional adds less than 400.
Definition at line 20 of file optional.hpp.
| typedef T fc::optional< T >::value_type |
Definition at line 23 of file optional.hpp.
|
inline |
Definition at line 25 of file optional.hpp.
|
inline |
Definition at line 26 of file optional.hpp.
|
inline |
Definition at line 28 of file optional.hpp.
|
inline |
Definition at line 35 of file optional.hpp.
|
inline |
Definition at line 42 of file optional.hpp.
|
inline |
Definition at line 51 of file optional.hpp.
Definition at line 59 of file optional.hpp.
Definition at line 70 of file optional.hpp.
Definition at line 79 of file optional.hpp.
|
inlineexplicit |
Definition at line 191 of file optional.hpp.
|
inline |
Definition at line 187 of file optional.hpp.
|
inline |
Definition at line 193 of file optional.hpp.
|
inline |
Definition at line 194 of file optional.hpp.
|
inline |
Definition at line 196 of file optional.hpp.
|
inline |
Definition at line 201 of file optional.hpp.
Definition at line 86 of file optional.hpp.
|
inline |
Definition at line 95 of file optional.hpp.
|
inline |
Definition at line 109 of file optional.hpp.
|
inline |
Definition at line 123 of file optional.hpp.
|
inline |
Definition at line 137 of file optional.hpp.
|
inline |
Definition at line 152 of file optional.hpp.
|
inline |
Definition at line 169 of file optional.hpp.
|
inline |
Definition at line 207 of file optional.hpp.
|
inline |
Definition at line 224 of file optional.hpp.
|
inline |
Definition at line 186 of file optional.hpp.
Definition at line 213 of file optional.hpp.
Definition at line 218 of file optional.hpp.
Definition at line 233 of file optional.hpp.


About Yourself
Question: Tell me about yourself
Answer: This is the most innocent question and 30-40%
interviewer makes their 50% decision based on the answer you have
given for this question.
First Impression: This is the first impression you
are making with the interviewer. If you mess up the first impression
(similar while you are dating with someone), there is a very little
chance for you to recover.
things interviewer(s) is looking for
- Effective communication skill
- prioritize your work
- passion, dedication
- leadership, team player, solving problem
-
and anything very important/ achievement that makes you very unique
Strategy
- should be between 60-90 seconds
-
First talk about the best project you are working on in your current
job. If you are a fresh graduate talk about the best project you
have worked
- First: What was the problem, you or your team solved?
- Second: Why it was useful/important to solve that problem
-
Third: How you solve the problem? Talk about something
innovative/ out of the box you did
-
Fourth: What were the challenges and how you have overcame those
-
Fifth: Any feedback or appreciation (could be client feedback or
how many dollars you have saved, blah blah, blah) you have
received
-
Tell tittle of one or two project you have did. Simply one line
-
Tell 2 lines about your personal project/passion that matches with
the job you are applying
- What problem or why are doing it
- How you are doing it (technologies, approach, etc.)
-
Give him a option to choose. like, "if you want, i can talk more
about any of the projects i did at work or my personal project (tell
the name)"
Sample Answer: I am currently working in the web
development team at ABCD. The focus of the team .... . My day to day
activities are these. Recently I have worked on ... to solve this...
and this
Before doing this i have worked on
besides, i am interested in and i have
all my codes are at github
if you want i can talk more about


Jan hit the drum with drum sticks and had lots of fun. Jim hit the bin with a golf club and the bin got a dent. Joan hit the bug with her hand and it went splat. Jack hit a tere with his truck and bent the bumper. Jock hit a balloon with a bat and it drifted into the air. Jill had a hit with a song and it got into the top ten. Jed had a hit at tennis and lost. Jeff did not hit the ball with the cricket bat and got out for a duck: leg before wicket.
in-context


getline
So far we have been getting our input data from awk
’s main
input stream—either the standard input (usually your keyboard, sometimes
the output from another program) or the
files specified on the command line. The awk
language has a
special built-in command called getline
that
can be used to read input under your explicit control.
The getline
command is used in several different ways and should
not be used by beginners.
The examples that follow the explanation of the getline
command
include material that has not been covered yet. Therefore, come back
and study the getline
command after you have reviewed the
rest of
this Web page
and have a good knowledge of how awk
works.
The getline
command returns 1 if it finds a record and 0 if
it encounters the end of the file. If there is some error in getting
a record, such as a file that cannot be opened, then getline
returns −1. In this case, gawk
sets the variable
ERRNO
to a string describing the error that occurred.
If ERRNO
indicates that the I/O operation may be
retried, and PROCINFO["input", "RETRY"]
is set,
then getline
returns −2
instead of −1, and further calls to getline
may be attempted. See Retrying Reads After Certain Input Errors for further information about
this feature.
In the following examples, command stands for a string value that represents a shell command.
NOTE: When --sandbox is specified (see Command-Line Options), reading lines from files, pipes, and coprocesses is disabled.
getline
with No Argumentsgetline
into a Variablegetline
from a Filegetline
into a Variable from a Filegetline
from a Pipegetline
into a Variable from a Pipegetline
from a Coprocessgetline
into a Variable from a Coprocessgetline
getline
Variants


Oral decoction infusion (L.) Leaves, cold plants use used plant Common cough Leaves; juice Cooling/cleanser Diabetes bush blood herbal leaves pressure Trinidad Asteraceae High survey traditional Leguminosae remedies medicinal Fever infection Womb stones Senna common commonly treatment water Stem TRAMIL {border-style Neurolaena citratus lobata rural leaves; px;} #ffffff;} Cymbopogon Kidney Stoppage cited crush significant Citrus Fig. Leonotis voucher (stem Leaves Vine knowledge medicine nepetifolia Caribbean Momordica Used alcohol charantia communities occidentalis shows specimen However, Lamiaceae citations, drink kidney leaves, limon Asthma Med Verbenaceae citations longa popular species Curcuma Gomphrena Wild bush, chew conducted data evidence extract globosa literature make soak squeeze study Rutaceae Tobago activity ailments different extracts health healthcare indica regarding support "womb clinical determine following grass persons properties sites swallow using "afterbirth". "cooling/cleanser" (Fig. (Jacq.) (add Afterbirth Amaranthaceae Bignoniaceae Caraille Cucurbitaceae Ethnopharmacol Juice Map Roots; Stachytarpheta anti-inflammatory aqueous cough/common ethnobotanical fruit hot infection" infusion, island plant; pre-clinical px; salt) studies survey, {font-family (Mill.) Bottom): Bryophyllum Cass. Clement Euphorbiaceae Herbal Malvaceae Photograph Phyllanthaceae Poaceae R.Br. Rough Stem; Top): Trinidad. Vahl White ___ according activities body collected. effects fever, field flowers; font-size heat isolated jamaicensis leaves), leaves); lemon modern oil pinnatum pound remedy taken treated uterine "afterbirth", "hot-cold" (DC.) (Lam.) (stem, (with Aloe Bontia Crassulaceae Flowers; Link Myoporaceae Oken Olive Osbeck Seed-under-leaf Shandilay Spondias Topical Wonder-of-the-world Zingiberaceae alata daphnoides diabetes diseases double; fever localities) mint, olive patients pharmacological pilot plant, primary provide questionnaire randomly selected similar stem treat use. vera "afterbirth" "stoppage-of-water" (Gramineae) (for ./S-()- Aloes Aristolochia Aristolochiaceae Arrahoo Bois Br. Burm.f. Cecropia Cough Double Dried Flowers, G.Don Hibiscus Jacq. Lam. Mary-Mary- Mimosa Mr. Piperaceae Res Rubiaceae Stapf Tamarindus Timarie, Tournefortia Urticaceae Xanthorrhoeaceae Zebapique bath border-color border-width cano childbirth. citations; close- coffee colleagues collected days disease door eat essential gel having hibiscus, hirsutissima identified identify large limited major mombin national oils oral peltata plants, population preparation pudica reached respondents roots); roots; rosa-sinensis rugosa sensitive shame significantly solid; specimens survey. urinary vitro wild your- {font-style {font-weight "stoppage %), ./--- ./j.jep... ./s--- Acanthaceae African Ageratum Altern Anacardiaceae Bay Berger Bidens Black Boraginaceae Calabash Carica Caricaceae Cat’s Complement Cordia Crescentia Cáceres DC. Decoction Dolichandra Euphorbia Fruit J.W.Moore L.G.Lohmann Lans Medicinal Meliaceae Myrtaceae Needle New Passreiter Pawpaw Peperomia Phyllanthus Pimenta Railway Roem. Sambucus Schult. Seaforth TRAMIL. Vervine Zebafam ailments, alba analgesic bachelor bay biological blister bold button canadensis chronic claw coconut communities. community complementary conyzoides courier; criteria cujete curassavica daisy, demonstrated does efficacy em; folkloric fractions fruit, grass. humoral hypertension identification indicated instrument laboratory lactones leaf, male manuscript. mice mixture names papaya pellucida people pilosa possessed pounded prepared provided pt;} rabbit racemosa rat remote reports results retention review root rum safety sage, sample showed single unguis-cati urban vivo wider


--- title: Icon size category: Icon usage order: 2 description: The size of an icon can be changed by changing the font-size CSS property. ---
font-size


{% extends 'main_base.html' %}
{% load static from staticfiles %}
{% block subtitle %}
SASS Dashboard Multiple Sites
{% endblock %}
{% block head %}
{% endblock %}
{% block body_content %}
SASS Dashboard Multiple Sites
SASS Summary
Download summary data :
|
Site Code
|
Average (min-max) SASS Score
|
Average (min-max) Number of Taxa
|
Average (min-max) ASPT
|
Number of assessments
|
Latest SASS Score
|
Latest Number of Taxa
|
Latest ASPT
|
Date of latest SASS assessment
|
Ecological Category
Too many ecoregions combination selected to show
all
charts. Combinations not displayed :
SASS Taxa per biotope
Download all SASS data :
|
|
|
| Taxa |
|
Sensitivity Weighting |
{% endblock %}
{% block foot %}
{% endblock %}


What Deborah Vanessa said about her relationship with Medikal
by MyNewsGHModel, Deborah Vanessa has after a year of dodging questions relating to her and Medikal spoken on their current state.
According to the mermaid, she is cool with Medikal unlike how reports suggests bad blood between the two.
She made this known when a follower on social media quizzed her about her relationship the Sowutuom JAY Z.
Meanwhile, Medikal has denied claims that he cheated on Derby hence their breakup.
He said “I never cheated on her. They were just rumours and sometimes when you listen to people too much that’s what happens. It’s not something I would like to address. I am not a cheat”.
Source:MyNewsGh.com/Ayeh Offei-Akoto/2019


Code: A02
- Fantail Goldfish is one of the captive-bred fancy goldfish varieties. It does not grow as large as other types of goldfish, which grows up to 6 inches.
Living environment
It is best kept in cold water. The tank that it is being kept in should be have open areas with heavily planted areas. It should be kept with a few other goldfishes.
Diet
- It is omnivorous and they generally eat all kinds of fresh, frozen and flake food. It is important to adjust the amount of food given at certain temperature at any given time.
Breeding
- It should be well fed on a varied diet to get them in spawning condition. The temperature in the tank should be lowered for a period of time to stimulate seasons to get them to breed. Slowly increase the temperature after they have been kept in cold water for a month.


{{inline-css}}
Secret surveillance and dubious orders - with a campaign lasting several months, the European Union removed civilian rescuers from the Mediterranean Sea. Documents published for the first time now show how Italian authorities proceeded against German NGO "Jugend Rettet".
Even if German media hardly ever report on it: Refugees continue to die in the Mediterranean. In January 2018 alone, almost 200 people drowned fleeing to Europe. The EU member states are trying to distract attention from their failure instead of saving lives. The humanitarian corridor over the Mediterranean has been systematically hampered by the EU in recent months.
Libyan militias have declared not only their own waters, but also adjacent international waters as a restricted area for civilian sea rescue missions. The reasons for the flight from Libya remain: The conditions in Libyan camps are inhuman.
The EU is not afraid to cooperate with the Libyan dictatorship. In order to block the Mediterranean route from Libya to Europe, EU member states also targeted civil society organisations - documents published for the first time now show how sea rescue was criminalised step by step last year.
In the spring of 2017, Europe's attention is on the Mediterranean. At least 1000 people have already drowned in the Mediterranean from January to April. The increasingly nervous EU cannot produce a coherent concept to stop the dying. That is why civil society is taking the initiative: Twelve NGOs, supported by tens of thousands of people from all over Europe, have bought or chartered their own ships for sea rescue. Among them is the German organization "Jugend Rettet", which saves people's lives with the ship "Iuventa" in the central Mediterranean Sea.
The Italian Maritime Rescue Coordination Council (MRCC), which reports to the Italian Ministry of the Interior, is responsible for coordinating rescue services. It provides organisations with the procedures for sea rescue: If the authority receives information from one of its various sources about boats in distress at sea, it orders nearby ships to go there. Rescue operations must be discussed with the MRCC. Until reaching a safe harbor, it is up to the MRCC to decide what to do with refugees on board.
{{image name="mrcc-rosie-scammell" language="de" type="content"}}"Jugend Rettet" made the MRCC look bad in April: On Easter weekend, the "Iuventa" was unable to manoeuvre on the high seas for two days in view of numerous sea rescues and had to make an emergency call. The small ship, which offers just enough space below deck for a crew of 16 people, had 400 refugees on board. Hundreds of other people in the area around the "Iuventa" were in distress at sea. The MRCC, however, was unable to send larger ships to the scene for two days. It was strongly criticised in the international press.
On May 6th, the "Iuventa" receives unusual orders from the MRCC from Rome, which make the crew listen up. Instead of handing over rescued refugees to a larger ship, which will take them safely to a port, the small "Iuventa" is said to be able to take 75 refugees to the Italian port of Lampedusa overnight. After tough negotiations, most of the refugees can be transferred to other ships. However, five of them must still be brought to Lampedusa by the "Iuventa" itself. The MRCC rejects the offer of other ships to take in refugees instead of the "Iuventa". The crew must obey. If a ship has rescued refugees on board, the MRCC can determine what happens to them. Although a total of 14 refugee boats are in distress at the same time, the ship has to abort the current mission.
At the port of Lampedusa, the crew is received by the Italian authorities' emergency services: Members of the Coast Guard, local police and elite anti-terrorist units. Also a German-speaking policeman is among them. The crew will be interrogated, the Iuventa searched. While the ship is in port, 23 more emergency calls arrive at the rescue centre in Rome, for which the "Iuventa" cannot help. At least five boats cannot be supplied by the remaining rescue vessels during the upcoming storm in the Mediterranean. Their fate is still unclear.
As investigation documents from the Italian authorities will show later on, the security forces in the port will place a bug on the bridge of the "Iuventa" on this occasion. In the coming months, you will hear all the conversations in the ship's control room. They also monitor the phones of Italian crew members and supporters. With a large-scale surveillance operation, Italian investigators are now focusing on the people who are saving lives in the Mediterranean.
The MRCC's unusual orders will increase in the coming weeks. On 19 May, the "Iuventa" is to leave the area of operation at the will of the MRCC to bring 26 refugees to Lampedusa. Although the refugees could be handed over to a large ship of the Italian coast guard, they are to be handed over by the "Iuventa" directly in Lampedusa. The crew explains to the MRCC that the passage by small boat is unsafe. Even the Italian coastguard cannot understand the MRCC's behaviour. However, the coordinating centre will continue to give instructions without giving any reasons.
The MRCC's action will be repeated on 12 June. Once again, the "Iuventa" is ordered to Lampedusa with 28 refugees on board, although other ships could accommodate the people. On 19 May and 12 June, the "Iuventa" will be received by the police and the coast guard at the port of Lampedusa and the crews will be interrogated again. Again, the "Iuventa" cannot answer emergency calls from the sea rescue area at this time.
Obviously, the policemen's interrogation is also about alleged contact with a ship called "Shada", a ghost ship allegedly involved in arms smuggling. As it will become clear later on, the authorities accuse "Jugend Rettet" of having exchanged views with the crew of the "Shada". They're not presenting evidence of that. They can only show that the ships were close to each other on one day. However, the investigators' own records also show that completely different actors were present at the time in question: The Italian police ship Sirio409p inspected the "Shada".
The incident shows: The authorities are apparently working on collecting material that they can use against "Jugend Rettet".
The 18th of June 2017 begins with an emergency call before sunrise. The MRCC instructs the "Iuventa" to rescue a wooden boat that is still in Libyan waters at 4:40 in the morning. When the ship arrives at 6:20 a. m. at the sea border between Libya and international territory, it meets three wooden boats and a rubber boat with refugees from Libya. On the instructions of the MRCC,"Jugend Rettet" starts evacuating the boats together with another NGO, which was also sent to the rescue centre.
In the course of the rescue, another rubber boat from Libya will be added. An additional NGO also reaches the base and helps to rescue refugees from the boats. The "Iuventa" takes a total of 97 refugees on board, other refugees arrive on other ships. Both rubber boats are still being destroyed in the water.
{{image name="iuventa" language="de" type="content"}}In the confusing scenery, so-called Engine Fisher from the Libyan coast are added. This is not uncommon in the zone off Libya. They unscrew the engines from the other boats, take the three wooden boats in tow and drive back to Libya.
The Italians will later accuse "Jugend Rettet" of having worked with the Libyans. They don't have proof of that. The photographs presented by the Italian investigators are misleadingly titled.
The MRCC does not want to stand up for "Jugend Rettet" in this context. The authorities themselves had ordered the organisation to the place of deployment and coordinated the emergency rescue, as the deployment protocols show. In the following weeks the MRCC's behaviour will become even more questionable.
At the end of July, the EU is forced to take action in the light of media reports of dying in the Mediterranean. It does not focus on human rights violations in Libya, however, but targets rescue workers: while the military is awarded medals for rescue operations, the German Interior Minister Thomas de Maiziére accuses civilian organisations of committing crimes in the Mediterranean Sea. The EU wants the Sailors to sign a Code of Conduct. Among other things, it stipulates that Italian police officers should be allowed to board civilian ships and that small ships such as the "Iuventa" should no longer be allowed to hand over refugees to larger ships, where they could be better served. It quickly becomes apparent that most organisations, including "Jugend Rettet", will not sign the text. A report by the scientific service in the Bundestag describes parts of the document as contrary to international law. Nevertheless, the Italian Minister of the Interior, to whom the MRCC is also subordinate, threatens to deny organisations access to Italian ports.
On 1 August, one day after the deadline for signature of the Code of Conduct expires,"Iuventa" receives an emergency call from the MRCC. At 5:32 a. m., the ship is unusually instructed to sail in the central Mediterranean Sea in an area with a width of 700 nautical miles and a search grid at a distance of three nautical miles. Normally, such a search operation is assigned a case number by the control center. However, this is not the case. It would take 40 hours to complete the grid. The MRCC is therefore proposing that the civil search aircraft "Moonbird" should also be sent out to the MRCC. The pilots could leave the search area within a few hours. However, the MRCC rejects: The center would send its own helicopter, so there is a risk of collision. Even after eight hours the helicopter is not visible above the search area. The ship of another rescue mission may not participate in the search and the dinghy of the "Iuventa" may not be let into the water. Instead, the MRCC cancels the search in the early evening - with no result.
Immediately afterwards, the MRCC instructs the "Iuventa" to approach the port of Lampedusa with two refugees on board. When the ship arrives there the following night at 2 a. m., not only the usual police officers and the coast guard are waiting for the ship, but also journalists. In the morning, articles appear in all Italian media that accuse "Iuventa" of crimes, illustrated with photos from Italian secret service archives.
The crew will be interrogated and the ship confiscated during the day. The order for this was signed on August 1, as the investigation documents show - while the "Iuventa" had to drive a search pattern in the Mediterranean Sea by order of the MRCC.
On 2 August, the "Iuventa" is set on Lampedusa and brought to Sicily by the Italian authorities. The Italian coastguard begins a mission within Libyan territorial waters to "stop migration flows", as Italy says. On 7 August, the EU-funded Libyan coastguard in international waters threatens the rescue ship of the Spanish organisation "Open Arms" and shoots at the crew. Like other civilian rescuers, they continue to drive missions, but at a much higher risk. On August 10, the Libyan military declares its own "search and rescue zone" within 70 miles of Libya and prohibits NGOs from driving in it, even though this is contrary to international law. Militias supported by the EU prevent refugees from leaving Libya. The Mediterranean route is closed. The MRCC coordinates considerably fewer sea rescue operations. In Italy, the campaign for the parliamentary elections begins.
The "Iuventa" remains confiscated even after a trial, a complaint so far unsuccessful. Further missions of civilian rescue ships must be broken off in the face of threats from Libyans. Public awareness of the deaths in the Mediterranean Sea is falling sharply in the face of the forced withdrawal of organisations.
The EU continues to cooperate with Libya, despite the desolate conditions in the camps there and the criminal behaviour of the so-called Libyan coastguard.
The dossier is based on the investigation documents of the Italian Public Prosecutor's Office, e-mail traffic between Italian authorities and Jugend Rettet, mission logs and interviews with crews of Jugend Rettet.
Text – Arne Semsrott
Entwicklung – Gustav Pursche
Gestaltung – Nadine Stammen


Dropping tests
问题描述 :
In a certain course, you take n tests. If you get ai out of bi questions correct on test i, your cumulative average is defined to be
.
Given your test scores and a positive integer k, determine how high you can make your cumulative average if you are allowed to drop any k of your test scores.
Suppose you take 3 tests with scores of 5/5, 0/1, and 2/6. Without dropping any tests, your cumulative average is . However, if you drop the third test, your cumulative average becomes .
输入:
The input test file will contain multiple test cases, each containing exactly three lines. The first line contains two integers, 1 ≤ n ≤ 1000 and 0 ≤ k < n. The second line contains n integers indicating ai for all i. The third line contains n positive integers indicating bi for all i. It is guaranteed that 0 ≤ ai ≤ bi ≤ 1, 000, 000, 000. The end-of-file is marked by a test case with n = k = 0 and should not be processed.
输出:
For each test case, write a single line with the highest cumulative average possible after dropping k of the given test scores. The average should be rounded to the nearest integer.
样例输入:
3 1 5 0 2 5 1 6 4 2 1 2 7 9 5 6 7 9 0 0
样例输出:
83 100
温馨提示:
To avoid ambiguities due to rounding errors, the judge tests have been constructed so that all answers are at least 0.001 away from a decision boundary (i.e., you can assume that the average is never 83.4997).
解题代码:
//* @author: import java.util.Scanner; import java.util.Arrays; public class Main{ public static void main(String args[]){ Scanner sc=new Scanner(System.in); int i,j,n,k; while (sc.hasNext()) { n=sc.nextInt(); k=sc.nextInt(); if(n==0) break; int num[]=new int[n]; int den[]=new int[n]; double scores[]=new double[n]; for (i=0;i< n;i++) num[i]=sc.nextInt(); for (i=0;i< n;i++) den[i]=sc.nextInt(); double lb = 0, ub = 1; for (i = 0; i < 100; i++) { double x = (lb+ub)/2; for (j = 0; j < n; j++) scores[j] = num[j] - x*den[j]; Arrays.sort(scores); double total = 0; for (j = k; j < n; j++) total += scores[j]; if (total >= 0) lb = x; else ub = x; } System.out.printf("%d\n",(int)(100*lb + 0.5)); } } }
正在练习，很有帮助
妈呀！这个模板好长OwQ！
前排支持
因为要修改链表头(指针)，所以要用指针的指针
给力的文章，例子也非常好
int L[m+1][n+1];这样定义出错，这个在gcc上可以编译通过 在VS上不行 应该改为new 或者vector
给力，赞一个
第二个方法好！
学习了。找到这题
很棒的网站，加油！⛽
总结的很全面，学习了！
好网站，肯定会火的
有的，已更新
具体实现上有所差别，但思路是一样的


hosting services xiahefan.cc - icecrystals at github blog.xiahefan.cc - cnzhikai at github paint.xiahefan.cc - hzhikai97 at google blogger academic.xiahefan.cc - cnzhikai at google blogger


Very accommodating with excellent customer service and we really loved their food, ordered chap chae, bangus sisig, sweet and sour pork 👌👌👌
Customer
One of my fave places to eat here in BLS! Yummy food all the time! You go in hungry and leave with happy tummy!
Customer
Ohhh how I enjoyed the food! Especially the Tofu with Kangkong in Oyster Sauce...
Must-try the Sizzling squid, sisig, and the Pancit Bihon and Canton too! Great service, excellent food, cozy venue! Will definitely come back!
Customer
The bistek rice bowl is a bit sour rather than the usual somewhat salty taste. I wasn’t expecting the slightly crunchy outer skin of the beef which I really like. There’s a good amount of food in the dish for P100. If you like your bistek a bit sour then I suggest you order this one. I prefer something that’s salty 🙂.
Customer


{% extends 'base.html'%}
{% block content%}
Congratulations to Ashlee J (Year 12) who has qualified for the 2019 Junior Australian Track Cycling Team. Ashlee will be competing in Frankfurt, Germany at the UCI Junior Track Cycling World Championships from 14 to 18 August 2019. This is a wonderful achievement during her final year of School and we wish Ashlee the very best of luck as she takes on the world’s best Juniors.
Read more CommentSince its inception in 1995, Cyclingnews has grown to become the world leader on the internet for the sport of cycling. The site is the passionate cycling fan's first port of call for news, race results, tech, live race coverage, race photography, interviews, features, diaries, video content, fitness and forums.
Read more Comment


Port Scanning Tool: finding-PORTy
What is it?
finding-PORTy is a proof of concept fully functional port scanning tool designed to check open ports, check live host in a network, stealth scans, and keep activity data for later use. I wrote it on Python 3 so the codebase is supposed to be easily understandable and modified for further use.
here’s what it looks like
|\ o
| \ o
|\ / .\ o
| | ( ======[finding-PORTy v1.]======
|/ \ /
| /
|/
===[OPTIONS]===
[1] Scan Open Ports
[2] Ping Sweep Live Host (Loud)
[3] TCP Scan (Stealth)
[4] Show Activities
[5] Remove History
[0] Exit
Action:
What’s the Souce?
souce: https://github.com/AdrianDucao/finding-PORTy
Conclusion
Learning curve is a minor setback with Socket Module, read Python 3 Documentations OS Documentation, CSV documentation, the python3 network programming, and some stack overflow for errors really helped.
Happy Coding.


Martin Brightfield: Hi, this is Martin.
Adroushan Gasparyan: Hello. Is this Mr. Brightfield speaking?
Martin: Yeah, that's me, but just call me Martin.
Adroushan: Very well, Martin. This is Adroushan Gasparyan from Melik-Baumgartner. You recall, we communicated a few days ago?
Martin: Of course! It's great to finally talk to you.  Have you read my book?
Adroushan: Well, I promised I would take a look at it, so I skimmed it yesterday. The basic plot does show some promise, but the writing needs a lot of work. As it is, we're not interested, but if you could polish it up a bit, I might be willing to give it another chance.
Martin: That's amazing! I am actually working on a second edition as we speak. I know some literature experts, so tightening up the writing won't be a problem.
Adroushan: That's good to hear. Resubmit it when you're ready, and I'll give it another look. Oh, one more thing. The current plot is a bit too subversive for our taste, but I think that's easily fixed. Young people nowadays don't want to burn down the establishment and join hippie communes or whatever. They want successful consultancy careers. Perhaps you could make it so that the main character fixes the problems of the flawed society instead of just leaving?
Martin: I'm not sure... That's kind of a major change. The main character is supposed to liberate people.
Adroushan: Of course, but Martin Heidegger demonstrated that most people are happiest living "inauthentic" lives as part of a group. What better way to liberate people than to help them live together as part of a strong society?
Martin: Are you sure Heidegger said that? Maybe I should ask my gf. She knows that kind of stuff.
Adroushan: Gee ef?
Martin: Sorry, my girlfriend.
Adroushan: Oh, sure, you do that. Just keep in mind that the plot will need to be restructured a bit, if you want us to publish your book.
Martin: Ok, I'll figure it out. Thanks for calling!
Adroushan: You're welcome.


|
M480 BSP V3.05.005
The Board Support Package for M480 Series
|
#include <qei_reg.h>
Data Fields | |
| __IO uint32_t | CNT |
| __IO uint32_t | CNTHOLD |
| __IO uint32_t | CNTLATCH |
| __IO uint32_t | CNTCMP |
| __IO uint32_t | CNTMAX |
| __IO uint32_t | CTL |
| __IO uint32_t | STATUS |
@addtogroup QEI Quadrature Encoder Interface(QEI) Memory Mapped Structure for QEI Controller
| QEI_T::CNT |
[0x0000] QEI Counter Register
| Bits | Field | Descriptions |
| [31:0] | CNT | Quadrature Encoder Interface Counter
A 32-bit up/down counter When an effective phase pulse is detected, this counter is increased by one if the bit DIRF (QEI_STATUS[8]) is one or decreased by one if the bit DIRF(QEI_STATUS[8]) is zero This register performs an integrator which count value is proportional to the encoder position The pulse counter may be initialized to a predetermined value by one of three events occurs: 1. Software is written if QEIEN (QEI_CTL[29]) = 0. 2. Compare-match event if QEIEN(QEI_CTL[29])=1 and QEI is in compare-counting mode. 3. Index signal change if QEIEN(QEI_CTL[29])=1 and IDXRLDEN (QEI_CTL[27])=1. |
| QEI_T::CNTCMP |
[0x000c] QEI Counter Compare Register
| Bits | Field | Descriptions |
| [31:0] | CNTCMP | Quadrature Encoder Interface Counter Compare
If the QEI controller is in the compare-counting mode CMPEN (QEI_CTL[28]) =1, when the value of CNT(QEI_CNT[31:0]) matches CNTCMP(QEI_CNTCMP[31:0]), CMPF will be set This register is software writable. |
| QEI_T::CNTHOLD |
[0x0004] QEI Counter Hold Register
| Bits | Field | Descriptions |
| [31:0] | CNTHOLD | Quadrature Encoder Interface Counter Hold
When bit HOLDCNT (QEI_CTL[24]) goes from low to high, the CNT(QEI_CNT[31:0]) is copied into CNTHOLD (QEI_CNTHOLD[31:0]) register. |
| QEI_T::CNTLATCH |
[0x0008] QEI Counter Index Latch Register
| Bits | Field | Descriptions |
| [31:0] | CNTLATCH | Quadrature Encoder Interface Counter Index Latch
When the IDXF (QEI_STATUS[0]) bit is set, the CNT(QEI_CNT[31:0]) is copied into CNTLATCH (QEI_CNTLATCH[31:0]) register. |
| QEI_T::CNTMAX |
[0x0014] QEI Pre-set Maximum Count Register
| Bits | Field | Descriptions |
| [31:0] | CNTMAX | Quadrature Encoder Interface Preset Maximum Count
This register value determined by user stores the maximum value which may be the number of the QEI counter for the QEI controller compare-counting mode |
| QEI_T::CTL |
[0x0018] QEI Controller Control Register
| Bits | Field | Descriptions |
| [2:0] | NFCLKSEL | Noise Filter Clock Pre-divide Selection
To determine the sampling frequency of the Noise Filter clock . 000 = QEI_CLK. 001 = QEI_CLK/2. 010 = QEI_CLK/4. 011 = QEI_CLK/16. 100 = QEI_CLK/32. 101 = QEI_CLK/64. |
| [3] | NFDIS | QEI Controller Input Noise Filter Disable Bit
0 = The noise filter of QEI controller Enabled. 1 = The noise filter of QEI controller Disabled. |
| [4] | CHAEN | QEA Input to QEI Controller Enable Bit
0 = QEA input to QEI Controller Disabled. 1 = QEA input to QEI Controller Enabled. |
| [5] | CHBEN | QEB Input to QEI Controller Enable Bit
0 = QEB input to QEI Controller Disabled. 1 = QEB input to QEI Controller Enabled. |
| [6] | IDXEN | IDX Input to QEI Controller Enable Bit
0 = IDX input to QEI Controller Disabled. 1 = IDX input to QEI Controller Enabled. |
| [9:8] | MODE | QEI Counting Mode Selection
There are four quadrature encoder pulse counter operation modes. 00 = X4 Free-counting Mode. 01 = X2 Free-counting Mode. 10 = X4 Compare-counting Mode. 11 = X2 Compare-counting Mode. |
| [12] | CHAINV | Inverse QEA Input Polarity
0 = Not inverse QEA input polarity. 1 = QEA input polarity is inversed to QEI controller. |
| [13] | CHBINV | Inverse QEB Input Polarity
0 = Not inverse QEB input polarity. 1 = QEB input polarity is inversed to QEI controller. |
| [14] | IDXINV | Inverse IDX Input Polarity
0 = Not inverse IDX input polarity. 1 = IDX input polarity is inversed to QEI controller. |
| [16] | OVUNIEN | OVUNF Trigger QEI Interrupt Enable Bit
0 = OVUNF can trigger QEI controller interrupt Disabled. 1 = OVUNF can trigger QEI controller interrupt Enabled. |
| [17] | DIRIEN | DIRCHGF Trigger QEI Interrupt Enable Bit
0 = DIRCHGF can trigger QEI controller interrupt Disabled. 1 = DIRCHGF can trigger QEI controller interrupt Enabled. |
| [18] | CMPIEN | CMPF Trigger QEI Interrupt Enable Bit
0 = CMPF can trigger QEI controller interrupt Disabled. 1 = CMPF can trigger QEI controller interrupt Enabled. |
| [19] | IDXIEN | IDXF Trigger QEI Interrupt Enable Bit
0 = The IDXF can trigger QEI interrupt Disabled. 1 = The IDXF can trigger QEI interrupt Enabled. |
| [20] | HOLDTMR0 | Hold QEI_CNT by Timer 0
0 = TIF (TIMER0_INTSTS[0]) has no effect on HOLDCNT. 1 = A rising edge of bit TIF(TIMER0_INTSTS[0]) in timer 0 sets HOLDCNT to 1. |
| [21] | HOLDTMR1 | Hold QEI_CNT by Timer 1
0 = TIF(TIMER1_INTSTS[0]) has no effect on HOLDCNT. 1 = A rising edge of bit TIF (TIMER1_INTSTS[0]) in timer 1 sets HOLDCNT to 1. |
| [22] | HOLDTMR2 | Hold QEI_CNT by Timer 2
0 = TIF(TIMER2_INTSTS[0]) has no effect on HOLDCNT. 1 = A rising edge of bit TIF(TIMER2_INTSTS[0]) in timer 2 sets HOLDCNT to 1. |
| [23] | HOLDTMR3 | Hold QEI_CNT by Timer 3
0 = TIF (TIMER3_INTSTS[0]) has no effect on HOLDCNT. 1 = A rising edge of bit TIF(TIMER3_INTSTS[0]) in timer 3 sets HOLDCNT to 1. |
| [24] | HOLDCNT | Hold QEI_CNT Control
When this bit is set from low to high, the CNT(QEI_CNT[31:0]) is copied into CNTHOLD(QEI_CNTHOLD[31:0]) This bit may be set by writing 1 to it or Timer0~Timer3 interrupt flag TIF (TIMERx_INTSTS[0]). 0 = No operation. 1 = QEI_CNT content is captured and stored in CNTHOLD(QEI_CNTHOLD[31:0]). Note: This bit is automatically cleared after QEI_CNTHOLD holds QEI_CNT value. |
| [25] | IDXLATEN | Index Latch QEI_CNT Enable Bit
If this bit is set to high, the CNT(QEI_CNT[31:0]) content will be latched into CNTLATCH (QEI_CNTLATCH[31:0]) at every rising on signal CHX. 0 = The index signal latch QEI counter function Disabled. 1 = The index signal latch QEI counter function Enabled. |
| [27] | IDXRLDEN | Index Trigger QEI_CNT Reload Enable Bit
When this bit is high and a rising edge comes on signal CHX, the CNT(QEI_CNT[31:0]) will be reset to zero if the counter is in up-counting type (DIRF(QEI_STATUS[8]) = 1); while the CNT(QEI_CNT[31:0]) will be reloaded with CNTMAX (QEI_CNTMAX[31:0]) content if the counter is in down-counting type (DIRF(QEI_STATUS[8]) = 0). 0 = Reload function Disabled. 1 = QEI_CNT re-initialized by Index signal Enabled. |
| [28] | CMPEN | The Compare Function Enable Bit
The compare function in QEI controller is to compare the dynamic counting QEI_CNT with the compare register CNTCMP( QEI_CNTCMP[31:0]), if CNT(QEI_CNT[31:0]) reaches CNTCMP( QEI_CNTCMP[31:0]), the flag CMPF will be set. 0 = Compare function Disabled. 1 = Compare function Enabled. |
| [29] | QEIEN | Quadrature Encoder Interface Controller Enable Bit
0 = QEI controller function Disabled. 1 = QEI controller function Enabled. |
| QEI_T::STATUS |
[0x002c] QEI Controller Status Register
| Bits | Field | Descriptions |
| [0] | IDXF | IDX Detected Flag
When the QEI controller detects a rising edge on signal CHX it will set flag IDXF to high. 0 = No rising edge detected on signal CHX. 1 = A rising edge occurs on signal CHX. Note: This bit is only cleared by writing 1 to it. |
| [1] | CMPF | Compare-match Flag
If the QEI compare function is enabled, the flag is set by hardware while QEI counter up or down counts and reach to the CNTCMP(QEI_CNTCMP[31:0]). 0 = QEI counter does not match with CNTCMP(QEI_CNTCMP[31:0]). 1 = QEI counter counts to the same as CNTCMP(QEI_CNTCMP[31:0]). Note: This bit is only cleared by writing 1 to it. |
| [2] | OVUNF | QEI Counter Overflow or Underflow Flag
Flag is set by hardware while CNT(QEI_CNT[31:0]) overflows from 0xFFFF_FFFF to zero in free-counting mode or from the CNTMAX (QEI_CNTMAX[31:0]) to zero in compare-counting mode imilarly, the flag is set while QEI counter underflows from zero to 0xFFFF_FFFF or CNTMAX (QEI_CNTMAX[31:0]). 0 = No overflow or underflow occurs in QEI counter. 1 = QEI counter occurs counting overflow or underflow. Note: This bit is only cleared by writing 1 to it. |
| [3] | DIRCHGF | Direction Change Flag
Flag is set by hardware while QEI counter counting direction is changed. Software can clear this bit by writing 1 to it. 0 = No change in QEI counter counting direction. 1 = QEI counter counting direction is changed. Note: This bit is only cleared by writing 1 to it. |
| [8] | DIRF | QEI Counter Counting Direction Indication
0 = QEI Counter is in down-counting. 1 = QEI Counter is in up-counting. Note: This bit is set/reset by hardware according to the phase detection between CHA and CHB. |


Twitter Bootstrap Modals..
This is an example of using HTMX to remotely load modal dialogs using Twitter Bootstrap.
Open Modal


There are two modes in RedNotebook, the edit mode and the preview mode.
The main text field is the container for your normal diary entries like this one:
Today I went to the pet shop and bought a tiger. Then we went to the pool park and had a nice time playing ultimate frisbee. Afterwards we watched "Life of Brian".
As you see, the text can be formatted bold, italic, --struck through-- and underlined. As a convenience there is also the "Format" button.
A blank line starts a new paragraph, two backslashes \\ result in a newline.
To see the result, click on the "Preview" button. You can also see how this text was formatted by looking at its source.
Lists can be created by using the following syntax, if you use "+" instead of "-" you can create a numbered list:
- First Item - Indented Item - Do not forget two blank lines after a list
Tagging is easy. Just use #hashtags like on twitter.
RedNotebook lets you insert images, files and links into your entries. To do so, select the appropriate option in the "Insert" pull-down menu above the main text field. The text will be inserted at the current cursor position. Note that currently, the things you insert are only linked to, but not copied into your journal directory.
With the insert button you cannot insert links to directories on your computer. Those can be inserted manually however (``[Home file:///home/]`` becomes Home).
You can reference days in your journal by simply writing the date in [YYYY-MM-DD] format. A date like 2019-02-14 will be rendered as a clickable link in preview mode.
Alternatively, you can name your references. For example,
[Today #2019-02-14] was a good day.
will be shown as
Today was a good day.
RedNotebook supports templates. Click on the arrow next to the "Template" button to see some options. You can have one template for every day of the week and unlimited arbitrarily named templates. The files 1.txt to 7.txt in the template directory correspond to the templates for each day of the week. The current weekday's template will be filled into the text area when you click on "Template". You can open the template files from inside RedNotebook by opening the menu next to the "Template" button.
On the left you find the search box. Double-clicking on a day in the search results lets you jump to it.
You can search for text or dates (e.g. 2014, 2014-01, 2014-01-19).
The most frequently used words will appear in the word cloud on the left. Its contents are only refreshed when RedNotebook starts and when the journal is saved.
If a word appears in the cloud that you don't want to see there, right-click and select to hide it. Alternatively, you can open the Preferences dialog and add the word to the cloud blacklist. Short words with less than five letters can be white-listed there as well. [Regular expressions http://docs.python.org/library/re.html] are allowed in the lists. If you want to hide words with special characters, you can escape them with a backslash: 3\.50\?
You can limit the number of displayed words by tweaking the 'Tags in cloud' configuration option. If this option is set to 0, no tags are displayed.
You can hide the word cloud by adding the regular expression .* to the blacklist. This will filter out all words.
RedNotebook supports spellchecking your entries. This feature needs the
pyenchant library (python-enchant
on Ubuntu). Spellchecking can be
turned on and off by toggling the menu item in the "Edit" menu.
You can select the spellchecking language by right-clicking on the main text area (in edit mode) and choosing it from the submenu "Languages".
You can add more aspell dictionary files to the directory <RedNotebook Dir>\lib\aspell-0.60\. If RedNotebook is running, you need to restart it for new dictionaries to be recognized. You can find aspell dictionaries at ftp://ftp.gnu.org/gnu/aspell/dict/0index.html. Please read the README files included in the tarballs for information on how to compile the necessary files.
Make sure you check out the customizable options in the preferences dialog. You can open this dialog by clicking on the entry in the "Edit" menu.
Everything you enter will be saved automatically at regular intervals and when you exit the program. To avoid data loss you should backup your journal regularly. "Backup" in the "Journal" menu saves all your entered data in a zip file.
In the "Journal" menu you also find the "Export" button. Click on "Export" and export your diary to Plain Text, PDF, HTML or Latex.
Since version 0.9.2 you can also directly export your journal to PDF.
If the option does not show up in the export assistant, you need to
install pywebkitgtk version 1.1.5 or later (the package is sometimes
called python-webkit
).
Latex caveats
Make sure to type all links with the full path including the protocol:
Syncing RedNotebook with a remote server is easy. You can either use a cloud service like Dropbox or save your journal to your own server.
If you have a Dropbox account, you can just save your journal in a subdirectory of the Dropbox folder in your home directory.
With Linux you can have your journal directory on a remote server. To use the feature you have to connect your computer to the remote server. This is most easily done in Nautilus by clicking on "File" -> "Connect to Server". Be sure to add a bookmark for the server. This way you can see your server in Nautilus at all times on the left side. The next time you open RedNotebook you will find your server in the "New", "Open" and "Save As" dialogs. There you can select a new folder on the server for your journal.
If you have your own server, you might want to try Conduit or Unison. To sync or backup your journal you have to sync your journal folder (default is "$HOME/.rednotebook/data/") with a folder on your server.
Obviously you have to be connected to the internet to use that feature. Be sure to backup your data regularly if you plan to save your content remotely. There are always more pitfalls when an internet connection is involved.
Using RedNotebook from multiple operating systems on the same computer is also possible. Save your journal with "Journal->Save As" in a directory all systems can access. Then on the other systems you can open the journal with "Journal->Open".
Optionally, you can also share your settings and templates. The
relevant setting is found in the file "rednotebook/files/default.cfg".
There you can set the value of userDir
to the path where you want
to share your settings between the systems.
RedNotebook can be run in portable mode. In this mode, the template directory, the configuration and the log file are saved in the application directory instead of in the home directory. Additionally, the path to the last opened journal is remembered relatively to the application directory.
To use RedNotebook on a flash drive on Windows, run the installer and select a directory on your USB drive as the installation directory. You probably don't need the "Start Menu Group" and Desktop icons in portable mode.
To activate portable mode, change into the files/ directory and in the default.cfg file set portable=1.
Unfortunately, you cannot add links to files on network shares directly with the file selection dialog (this is due to a bug in GTK 2, it is fixed in GTK 3, but RedNotebook still uses GTK 2 [bug on launchpad https://bugs.launchpad.net/ubuntu/+source/gtk+2.0/+bug/304345]). However, it is possible to enter links directly, for example ``[U: file:///U:/]`` to reference the mapped drive letter [U file:///U:/].
In recent RedNotebook versions you can export your journal directly to PDF, so this section may be obsolete. However, some people may prefer to export their journal to Latex first and convert it to PDF later. Here is how you do it:
For the conversion on Linux you need some extra packages: texlive-latex-base and texlive-latex-recommended. Maybe you also need texlive-latex-extra. Those contain the pdflatex program and are available in the repositories of most Linux distros.
You can convert the .tex file to PDF by using the following commands:
pdflatex your-rednotebook-export.tex makeindex your-rednotebook-export pdflatex your-rednotebook-export.tex
If you omit the last two commands, your PDF won't have an index of tags.
If you run into any problems during the conversion, the easiest way to solve them is to install a latex editor (e.g. [Kile http://kile.sourceforge.net]) and do the conversion with it. That way you can see the errors right away and get rid of them by editing the file.
You can open an exported Latex file with Texniccenter and convert it to PDF with MikTex. Visit www.texniccenter.org and www.miktex.org for the programs and instructions. Basically, you have to download both programs, open the .tex file with Texniccenter and select "Build Output" from the "Output" menu. The program will then create the PDF in the same directory.
| General | |
|---|---|
| Show help | <Ctrl> + H |
| Find | <Ctrl> + F |
| Export | <Ctrl> + E |
| Spellcheck | F7 |
| Fullscreen | F11 |
| Navigation | |
| Go back one day | <Ctrl> + PageUp |
| Go forward one day | <Ctrl> + PageDown |
| Go to today | <Alt> + Home (Pos1) |
| Insert | |
| Insert link | <Ctrl> + L |
| Insert date/time | <Ctrl> + D |
| Format | |
| Bold | <Ctrl> + B |
| Italic | <Ctrl> + I |
| Monospace | <Ctrl> + M |
| Underline | <Ctrl> + I |
| Strikethrough | <Ctrl> + K |
| Remove format | <Ctrl> + R |
You can find more shortcuts in the menus in the main menu bar.
You can use e.g. TrueCrypt to encrypt your journal. The general idea is to create and mount an encrypted folder with TrueCrypt and put your journal files in there.
In many Linux distributions it has become pretty easy to encrypt your entire home partition. I would recommend to do that to anyone who wishes to protect her/his diary and all other personal files. This method is especially useful for laptop users, because their computers are more likely to be stolen. If you encrypt your home partition all RedNotebook data will be encrypted, too.
You can use a GTK3 compatible theme to change the appearance of your
RedNotebook installation. Once you find a GTK3 compatible theme, copy
the theme into <RedNotebook Dir>\share\themes
, e.g.,
C:\Program Files (x86)\RedNotebook\share\themes
and then edit
C:\Program Files (x86)\RedNotebook\etc\gtk-3.0\settings.ini
to
comment out the current theme setting and add your own.
For example, for using the FlatStudio
theme, download the *.tar.gz
file and extract it. Out of the four themes -- FlatStudio,
FlatStudioDark, FlatStudioLight, FlatStudioGray -- pick one of the
folders (e.g., FlatStudioDark) and copy it into
<RedNotebook Dir>\share\themes
. Then edit
etc\gtk-3.0\settings.ini
so it looks similar to this:
[Settings] # gtk-theme-name=win32 gtk-theme-name=FlatStudioDark
Finally, relaunch RedNotebook.
You can add multiple entries to a single day by using different journals (one named "Work", the other "Family"), separating your entries with different titles (=== Work ===, === Family ===) and using horizontal separator lines (20 "="s).
If you'd like to see the week numbers in the calendar, you can set the value of weekNumbers to 1 in the configuration file. This file normally resides at $HOME/.rednotebook/configuration.cfg.
If you want to change RedNotebook's language, setting the environment variable LANG (Linux) or LANGUAGE (Windows) to a different language code should be sufficient. Language codes have e.g. the format "de_DE" or "de_DE.UTF-8" (German). To set the language to English you can also set the code to "C". Before you change the language make sure you have the required language packs installed. Otherwise an error will be shown.
On Linux, start a terminal and call LANG=de_DE.utf8
. Then in the
same terminal, run rednotebook
. The language change will be gone
however once you close the terminal.
On Windows, set or create a LANGUAGE environment variable with the desired code:
You can insert titles into your post by adding "="s around your title text. = My Title = is the biggest heading, ===== My Title ===== is the smallest heading. A title line can only contain the title, nothing else.
Numbered titles can be created by using "+" instead of "=". ""+ My Title +"" produces a title like "1.", +++++ My Title +++++ produces a title like <IP_ADDRESS>.1
To insert custom code into your entries surround the code with single quotes. Use 2 single quotes for inline insertions and 3 single quotes if you want to insert a whole paragraph. For paragraphs be sure to put the single quotes on their own line.
| Text | Output |
|---|---|
''Red'' |
Red |
''$a^2$'' |
$a^2$ (a2 in Latex) |
This feature can be used to insert e.g. Latex formulas:
''' $$\sum_{i=1}^{n} i =rac{ncdot (n+1)}{2}$$ '''
will produce a nice looking formula in the Latex export.
To insert preformatted text preserving newlines and spaces, you can use the backquotes (`). Use 2 backquotes for inline insertions and 3 backquotes if you want to insert a whole paragraph. For paragraphs be sure to put the backquotes on their own line.
Two examples (have a look at the source to see how it's done):
To install rednotebook use sudo apt-get install rednotebook
.
class Robot: def greet(self): print 'Hello World' robot = Robot() robot.greet()
Formatting commands inside two pairs of "" are not interpreted (""**not bold**"").
Comments can be inserted after percent signs (%). They will not be shown in the preview and the exports. The % has to be the first character on the line.
To get a list of your entries search for "-". You can sort the resulting list chronologically by pressing the "Date" button.
usage: rednotebook [-h] [--version] [--date START_DATE] [journal] RedNotebook is a modern desktop journal. It lets you format, tag and search your entries. You can also add pictures, links and customizable templates, spell check your notes, and export to plain text, HTML, Latex or PDF. positional arguments: journal (optional) Specify the directory storing the journal data. The journal argument can be one of the following: - An absolute path (e.g. /home/username/myjournal) - A relative path (e.g. ../dir/myjournal) - The name of a directory under $HOME/.rednotebook/ (e.g. myjournal) If the journal argument is omitted then the last session's journal path will be used. At the first program start, this defaults to "$HOME/.rednotebook/data". optional arguments: -h, --help show this help message and exit --version show program's version number and exit --date START_DATE load specified date (format: YYYY-MM-DD)
The content of a RedNotebook journal is saved in a directory with many files, not just one file. The directory name is used as a name for the journal.
In the directory there are several files all conforming to the naming scheme <year>-<month>.txt (e.g. 2010-05.txt). Obviously these files correspond to months (e.g. May 2010).
Each month file contains plain text for the days of that month. The text is actually YAML markup. Without the (unnecessary) python directives the files look like this:
24: {text: "This is a normal text entry."} 25: Ideas: {"Invent Anti-Hangover machine": null} text: "This is another text entry, shown in the main text area."
As you can see, the data format uses a dictionary (hashmap) for storing the information. The outer dictionary has the day numbers as keys and the day content as values. The day values consist of another dictionary. It can have a key "text" whose value will be inserted in the main content area. Additionally there can be multiple other keys that stand for the categories that belong to that day. Each category contains a dictionary mapping category entries to the null value.
In summary the data format is a hierarchy of dictionaries. This way the format can be easily extended if the need for that arises.
All textual content can be formatted with http://txt2tags.org markup.
If you have any questions or comments, feel free to post them on the mailing list or contact me directly.
There is no software without bugs, so if you encounter one please drop me a note. This way RedNotebook can get better, not only for you, but for all users.
Bug reports should go here, but if you don't know how to use that site, a simple mail is equally fine.


apiNumberAction()
apiNumberAction() : \AppBundle\Controller\lucky
This method will generate lucky number with template generated in controller itself with randow number
Returns
\AppBundle\Controller\lucky —number data in json format for api usage
Here goes the description of the class. It should explain what the main purpose of this class is.
.. Main Purpose of LuckyController is to generate lucky number.
createMonsterAction(\Symfony\Component\HttpFoundation\Request $request) : \AppBundle\Controller\Monster
This method will be used for create character of monster. Form will be showed in html.
| \Symfony\Component\HttpFoundation\Request | $request |
Creation Page in HTML
createAttackAction(\Symfony\Component\HttpFoundation\Request $request) : \AppBundle\Controller\Attack
This method will be used for create types of attacks. Form will be showed in html.
| \Symfony\Component\HttpFoundation\Request | $request |
Creation Page in HTML
insertAttackAction(\Symfony\Component\HttpFoundation\Request $request) : \AppBundle\Controller\Success
This method will be used for create types of attacks. Insert attacj data will be inserted.
| \Symfony\Component\HttpFoundation\Request | $request |
or Failure message will be displayed.
insterMonsterAction(\Symfony\Component\HttpFoundation\Request $request) : \AppBundle\Controller\Character
This method will be used to add character of monster.
| \Symfony\Component\HttpFoundation\Request | $request |
monster wil be added.
healingShopAction(\Symfony\Component\HttpFoundation\Request $request) : \AppBundle\Controller\Profile
This method will be used for shopping more life for the user if user runs out of life.
| \Symfony\Component\HttpFoundation\Request | $request |
Page in HTML
buyHealthAction(\Symfony\Component\HttpFoundation\Request $request) : \AppBundle\Controller\Profile
This method will be used for shopping more health for the user if user runs out of life.
| \Symfony\Component\HttpFoundation\Request | $request |
Page in HTML


東のエデン (Eden of The East) Taking conspiracy theory for main theme of this series, makes me confused for the first three episodes. The magic in this anime seems to be logical. Where the power of people itself ,used to save their own life. Juiz itself is an operator that have all access depends on what task that her master request. The logic of this series even deeper when us know who's the culprit behind all this game.
Good combination combining conspiracy, game of life, and romance, but not deep enough, 7/10.


{% extends "base.html" %} {% block "content" %}
An error occurred and has been logged. We're looking into it. Please try again.


Character Generator
You will play {{ character_race }} {{ character_class }}, who fights using {{ weapon }}.
Now that you have your character, it's time to play. The fun of D&D is in playing the game!
* New Character *


Will apply to:
Hello world
Hello CSS students!
Will not apply to:
Hi CSS students!
Will apply to:
Hello!
Hi!
Ello!
Will not apply to:
Hi!
Hei!
Firstname:
Lastname:


JavaScript Fireworks
"twitter" AND "awesome"
github.com/kennethkufluk/js-fireworks
Number of items on the screen:
0


MOF files are compiled into the WMI repository using mofcomp.exe.
A MOF file that is put in the %SystemRoot%\System32\wbem\mof\ directory is automatically compiled and registered into the WMI repository on WinXP.
It is defined in the registry key HKLM\SOFTWARE\Microsoft\WBEM\CIMOM\
Note: MOF files aren't autocompiled on Vista +
But we can have mofcomp.exe install them locally or remotely.
The file mofcomp.log located in %SystemRoot%\System32\wbem\mof\Logs\ contains the logs about MOF files compilations
This auto-compilation feature was used by Stuxnet: 2 files were uploaded on the targeted remote machine using MS10-061
It is important to remember that the MOF self-install directory is of course only writeable by an Administrator. That's why, MOF files are really interesting in two kinds of situations:
- When we are able to upload a file to a remote machine, into an arbitrary destination path (with Administrator privileges in order to be able to write into the MOF self-install directory). This is the example of MS10-061 with StartDocPrinter API.
- In a post-exploitation context, when we have already escalated our privileges to Administrator on a Windows machine.
The first situation is of course relatively rare.
Nevertheless, it's interesting to notice that Metasploit provides a function generate_mof() in the file lib/msf/core/exploit/wbemexec.rb. This function uses the trick described in this article to autostart the consumer. For example, it is used by the exploit of MS10-061: exploits/windows/smb/ms10_061_spoolss [13].
The psexec module (modules/exploits/windows/smb/psexec) also uses it when MOF_UPLOAD_METHOD is selected
The Bees Knees
If set up with care, it is very difficult to detect and even worse to remove. MOF's, in essence, are compiled scripts that describe Common Information Model (CIM) classes which are compiled into the WMI repository. As a method for persistence we will be creating a MOF which
(1) listens for en event (or events) and
(2) will take some action (or actions) when the event is triggered.
Premise:
A MOF file must consist of (at least) the following three components:
an __EventFilter which uses the WMI Query Language (WQL) to detect a specific event,
an Event Consumer Class which defines a certain action and
a __FilterToConsumerBinding which binds an event and an action together.


Preparation time
less than 30 mins
Cooking time
10 to 30 mins
Serves
Serves 1
A delicious twist on the traditional stir-fry, with easy-to-make meatballs.
Preheat the oven to 160C/140C Fan/Gas 3. Run a sharp knife down the centre of the sausages and peel off the skins. Break up the sausage meat and put it in a bowl. Finely chop a spring onion and add it to the bowl. Add the ginger, coriander stalks, 1 teaspoon soy sauce, half the garlic and chilli flakes and the sesame oil, if using. Mix well.
Roll the mixture into four large meatballs. Heat a teaspoon of the vegetable oil in a large frying pan or wok and cook the meatballs for 5–10 minutes, turning often, or until browned all over and cooked through. Transfer to a baking tray and place in the oven to keep warm.
Meanwhile, cook the noodles according to the packet instructions (or bring a pan of water to the boil, add the noodles and cook for 3 minutes). Drain and rinse under cold water.
Thinly slice the remaining two spring onions. Heat the remaining vegetable oil in the frying pan and add the remaining garlic and chilli flakes, the sliced spring onions and carrot and stir-fry for 2–3 minutes, or until beginning to soften. Add the noodles, beansprouts and remaining soy sauce and stir-fry for 2 minutes.
Add the meatballs and stir. Sprinkle with the coriander leaves, and more soy sauce if necessary, and serve immediately.


Mushrooms (P. Cubensis)
Every year I go to a small town outside of Amsterdam to attend a string music festival with some other kids my age, and every year we have a tradition of smoking a lot of the pot and eating a lot of the shrooms. This year was different however, only 2 people (me and 'Jim') wanted to try the shrooms. We went into a smartshop by the flower district in Amsterdam and asked the guy what we should take. He suggested splitting a box of P Cubensis from Medellin, Colombia (my birthplace actually). A box of shrooms there contains 8 mushrooms of roughly the same size, although I am still not sure how many grams it is all together.
Anyway, that night we ate the mushrooms plain. I ate 3 (my stomach already felt slightly uncomfortable) and Jim ate 4, leaving one medium-sized one left. we had eaten some beef jerky and teddy grams an hour earlier. Again, I have no idea how many grams this was, but judging from the fact one mushroom definitely weighed more than a dollar bill (.999 grams), we ate about 5 grams each. this was Jim's first time tripping shrooms, and my 6th.
THE EXPERIENCE
T-0:15--We run downstairs to find 'Ally' who was going to smoke a joint with us. We find her and she says she can't. For some reason, the fact she couldn't join us was very funny. Me and Jim looked at each other and walk quickly out of the hotel onto the back grounds near the woods, and crack up. We laugh and laugh for about 10 minutes. I remember shouting '45 minutes my ass!' (in reference to the effects setting in).
T-0:30--We trot further back into the woods and everything becomes more and more funny. I already begin to get the lightness in the chest and that intangible tingle along my shoulders. My hands feel as if they are only attached by strings to my shoulders, and my head sort of lulls. At this point I start to feel slightly nauseous, but I can easily ignore it. We also find that our hand-eye coordination is greatly improved. We can throw the hacky sack we have as high up as we want and catch it no matter where it goes. Weird.
T-0:45--We decide to sit down on a bench that gave us a slight view of the hotel. When we sit down, we notice that the ground starts to shift. We amuse ourselves and continue to laugh at the patterns and shapes we see. Typical shrooms stuff: trees melt, the ground flows, the air breathes and faces look very scary. We had trouble looking up at the sky though, becuase all the leaves were moving cuz of wind and it totally blew our minds. I feel more and more nauseous and at this point my skin starts to feel like it might fall off. But Jim happens to be a chatterbox when he trips, so I just listen to him and don't think about my body.
T-1:00--At this point I realize this is the hardest peaking I've ever experienced (except on DXM).  I light my lighter and we stare at the flame for at least 5 minutes. It gives us a great sense of well-being and joy. We stare and the earth and feel grounded. We still have trouble looking at the sky. At one point I try and my eyes hurt (it's dusk); a little leaf-man is running around and cackling. When we look at water we feel like we're floating, or at least I do. So basically we discover the 4 basic elements. I have a sensation of being 'the first man on earth.' Everything is complicated to understand, and the question 'why' zooms thru my mind constantly.
T-1:30--We were probably still peaking at this point. Cold, sweaty, hard to walk at first.  Jim stands up (we've been sitting staring for about 45 minutes) and exclaims 'Woah! We can DO things!' so we walk about, still tripping VERY hard. We were at the tip of the peak for at least 10 minutes, which was hard to handle. We were walking in a straight line, and could talk with each other very well. In fact, if the passerby overheard us they would probably think nothing was wrong with us.
T-2:00 to 3:00--Theres a town about 10 minutes walking from the hotel, and we decide to go there for no reason. Now we have started having a very deep discussion. We talk about everything. The main topic was HOW everything existed...we didn't touch on the WHY. We talked about how the mind worked, how we interacted with other people, why humans had drive to do what we did, why we wore clothes, how our brains are arranged, a lot of stuff. The whole time I'm noticing that my throat feels dusty and odd, and my mouth feels like its about a foot back from where it should be. My thoughts are endless and everything still looks very weird. We walk to town and then come back and sit down on a different bench.
T-3:00--We talk about how similar we are and how odd it is we met. We have the same interests (psych and people) and are at the camp for the same reason (to chill and learn some new tricks on cello). We discuss why everyone else is there (to major in music and make it their life) and how we could never do that and why. Talked about girls and love and life and about what I wanted to do. A very good deep honest and insightful convo. At this point I'm just chilly (it's now about 12 midnight and it gets cold at night in holland). I basically get to know Jim up and down in a matter of a few hours. I also remembered this thing I only remember when I'm on shrooms ... shroom de ja vu.
T-4:00--The whole time we thought about going inside to see people. I could have, but I didn't want to, and Jim was still wild-eyed and pale, so I avoided the idea as much as I could. But we decided to go in.  Throughout the whole time I kept forgetting I had eaten the mushrooms.
T-4:30--We listened to music, I discovered I was hungry and ate an apple. The music sounded fantastic. We took notes on our expeirence, which is what I'm writting this from (hey, we're psych nerds). Then something REALLY weird happened. We were looking at each other and then started to say the exact same things for a really long time it went something like 'Dude. No way! Woah. Stop. Hehehe! No seriously, stop.' exactly at the right intervals we jinxed for about 20 seconds. And I can safely say that after that, my skin felt normal, my mouth went back into place, and my arms existed again.
The rest of the night we felt very gassy and stoned. Jim didn't like it but I was used to it. We toyed with the idea of smoking pot but we ended up not. I didn't feel like rolling a joint. All in all, I'd say it was the best and most intense shroom trip I've had, as well as the most memorable. I found out a lot about the way I think and the way I view other people. Me and Jim are going to remain close, and remained close the rest of our time there.
Experience Reports are the writings and opinions of the individual authors who submit them.
Some of the activities described are dangerous and/or illegal and none are recommended by Erowid.


Engineer Lekon:
Excellent! For a beginner, you've done very well. I guess this proves that you learned the collection skill after all. Congratulations! These are very valuable, so collect as many as possible.


{% extends 'server_ui/templates/base.html' %} {% block title %}{{ settings.SITE_TITLE }}{% endblock %} {% block header %} {% endblock %} {% block content %}
Helios is truly verifiable. Each voter obtains a ballot tracker which can be checked against the Ballot Tracking Center to ensure that the ballot was received and tallied appropriately. What this means is that no one, not even the administrators of the Helios Voting system, can alter your vote.
Many voting systems claim to be voter-verifiable. We believe voter-verifiability is critically important, and we support the efforts of other organizations to help improve the voting machines used in public-office elections. However, we believe that more extensive verifiability is needed, with voters able to ensure that the tallying process, not just the recording of their ballot, was performed correctly. We call that “true verifiability.” Others have called this concept “end-to-end verifiability” or “open-audit.”
Helios takes great care to protect the secrecy of your vote. Your vote is encrypted inside your browser before it is even sent to the server. Even on older browsers, your vote is encrypted before you log into Helios. In all cases, your vote is stored in the database only in encrypted form. Helios then uses advanced cryptographic techniques to combine all of the encrypted votes into an encrypted tally, and only the tally is decrypted. This means that your ballot is never individually decrypted. To provide for the highest level of privacy, Helios lets election administrators designate multiple trustees. All trustees must be involved in decryption, which further ensures that only the tally, never the individual votes, are decrypted.
A typical tracking number, say for shipping a package, is more or less a random number: it means nothing other than the label on your package. It’s conceivable that your package gets there, tracking number intact, but its contents destroyed. In the digital world, we’re able to produce a special kind of tracking number that is far from random: it is a fingerprint of the encryption of your vote. So, if your ballot tracker makes it all the way to the tally, you know that not only did your ballot make it into the tally, you also know that it wasn’t tampered with in the process.
No, there are other systems. Scantegrity, Prêt à Voter, STARVote, Wombat Voting, all provide true verifiability in paper-based voting systems. We like those systems, and we like the people behind those systems. VoteHere, a company that has since folded, was a pioneer in this area, too. The Helios System packs a number of innovations focused on enabling true verifiability for online elections to help everyone get a taste if this groundbreaking technology. But we are not the only game in town.
No, you should not. Online elections are appropriate when one does not expect a large attempt at defrauding or coercing voters. For some elections, notably US Federal and State elections, the stakes are too high, and we recommend against capturing votes over the Internet. This has nothing to do with Helios itself: we just don’t trust that people’s home computers are secure enough to withstand significant attacks.
If you’d like to use a truly verifiable voting system for your public-office election, we recommend an in-person election. Helios could be adapted to the in-person, precinct voting setting, but we have not done this work yet, and we intend to focus on online elections first.


Home
Find a Pet
Find a Dog
Find a Cat
Find Other Pets
Pet Care
User Management
Pet Management
Sign Out
back
Sign Up
Name
UserName
Password
Email
Phone


At this fall’s interspeech, we’ll be presenting a paper on our prosoBeast, an annotation tool for looking at intonation:
Gerazov B. and M. Wagner (2021). ProsoBeast Prosody Annotation Tool. Proceedings of Interspeech. 2621–2625 [doi][archive] [git] [video]
Abstract:
The labelling of speech corpora is a laborious and time-consuming process. The ProsoBeast Annotation Tool seeks to ease and accelerate this process by providing an interactive 2D representation of the prosodic landscape of the data, in which contours are distributed based on their similarity. This interactive map allows the user to inspect and label the utterances. The tool integrates several state-of-the-art methods for dimensionality reduction and feature embedding, including variational autoencoders. The user can use these to find a good representation for their data. In addition, as most of these methods are stochastic, each can be used to generate an unlimited number of different prosodic maps. The web app then allows the user to seamlessly switch between these alternative representations in the annotation process. Experiments with a sample prosodically rich dataset have shown that the tool manages to find good representations of varied data and is helpful both for annotation and label correction. The tool is released as free software for use by the community.
A 3 min video presentation of the paper is available here:


Draw a Bezier Curve through a set of 2D Points in iOS
May 12, 2015
We got this issue couple of days back where we needed to smooth a line graph like below. It seemed strange that this was not as trivial by the Bezier methods provided by Core Graphics. So we embarked on a journey to find a generic solution.
In the above figure, red line shows the points we have. blue line represents the cardinal curve we want to create. Cardinal curve goes through all the points.
UIBezierPath
First the basics. there are two kinds of curves in UIBezierPath. Both of the curves need additional control points to define the curvature. we will need to calculate the control points to generate a smooth curve passing through given points.
- Quadratic
- Cubic
Quadratic
Quadratic curve has one control point which defines how the curvature of the bezier should be.
[bezierPath addQuadCurveToPoint:destPoint controlPoint:cp1];
here P0 is starting point and P2 is ending point. P1 is the Control Point.
Cubic
Cubic curve has two control ponints which define its curvature.
[bezierPath addCurveToPoint:destPoint controlPoint1:cp1 controlPoint2:cp2];
here P0 is starting point and P3 is ending point. P1 is the Control Point 1.P2 is the Control Point 2.
Cardinal Curves
This curve passes through all given points and each segment can be composed of cubic spline segments. We will need to figure out all the control points for each of the points.
Approximating with Cubic is easier and we go with that direction.
Solution
consider the control points we need. see that at T2, the handle is paralled to the neighboring points. in order to calculate this, we will compute the derivatives at each point which would give us the tangents.
the green bars are the computed derivatives at each of the points. first and last points would go towards the neighboring points.
- each pair of points act as start and end of the curve
- for each start and end of curve we will compute the control points required
- for first and last point of the curve the control points will go towards the second and previous point respectively
- for any given point, the control points(T2) are tangents , tangent is parallel to previous two points and hence we can compute using derivatives at each point
Equations
Let P0 , P1 ... Pn be the points.
point derivatives can be computed by
we need to calculate the control points from these. we can calculate those using.
Once we have the control points, we can easily compose the Bezier Path.
Alpha is a tension. which gives the amount of smoothness needed in the curve.
ObjC Pseudo Code
NSMutableArray *points = [[NSMutableArray alloc] init];
//populate points with CGPoint
NSMutableArray *derivative = [[NSMutableArray alloc] init];
for(NSInteger j=0;j<points.count;j++) {
CGPoint prev = points[MAX(j-1,0)];
CGPoint next = points[MIN(j+1,points.count-1)];
derivative[j] = (next - prev) / 2;
}
UIBezierPath *path = [UIBezierPath bezierPath];
for(NSUInteger i=0;i<points.count;i++) {
if(i==0) {
[path moveToPoint:points[i]]
} else {
CGPoint endPoint = points[i];
CGPoint cp1 = points[i-1]+ derivative[i-1]/tension;
CGPoint cp2 = points[i] + derivatives[i]/tension;
[path addCurveToPoint:endPoint controlPoint1:cp1 controlPoint2:cp2];
}
}
return path;
Code
Complete project at : YKBezierAdditions


Performs support vectors analysis for data sets with survival outcome. Three approaches are available in the package: The regression approach takes censoring into account when formulating the inequality constraints of the support vector problem. In the ranking approach, the inequality constraints set the objective to maximize the concordance index for comparable pairs of observations. The hybrid approach combines the regression and ranking constraints in the same model.
| Version: | 0.0.5 |
| Depends: | survival |
| Imports: | pracma, quadprog, kernlab, Matrix, stats, Hmisc |
| Suggests: | testthat |
| Published: | 2018-02-05 |
| Author: | Cesaire J. K. Fouodo |
| Maintainer: | Cesaire Fouodo <fouodo at imbs.uni-luebeck.de> |
| BugReports: | https://github.com/imbs-hl/survivalsvm/issues |
| License: | GPL-2 | GPL-3 [expanded from: GPL] |
| URL: | https://github.com/imbs-hl/survivalsvm |
| NeedsCompilation: | no |
| Materials: | README NEWS |
| CRAN checks: | survivalsvm results |
| Reference manual: | survivalsvm.pdf |
| Package source: | survivalsvm_0.0.5.tar.gz |
| Windows binaries: | r-devel: survivalsvm_0.0.5.zip, r-release: survivalsvm_0.0.5.zip, r-oldrel: survivalsvm_0.0.5.zip |
| OS X binaries: | r-release: survivalsvm_0.0.5.tgz, r-oldrel: survivalsvm_0.0.5.tgz |
| Old sources: | survivalsvm archive |
Please use the canonical form https://CRAN.R-project.org/package=survivalsvm to link to this page.


Practice
CEV Challenges
CH01
CH02
CH03
CH04
CH05
CH06
CH07
CH08
CH09
CH10
Mini-ideas
NEWS
PHONE
SHELL
TABLE
WINDOW
GAMEBOY
Copy-trial
Mixer
Unfinished
PASSWORD
CALCULATOR


Higher Math
问题描述 :
You are building a house. You’d prefer if all the walls have a precise right angle relative to the ground, but you have no device to measure angles. A friend says he has a great idea how you could ensure that all walls are upright: All you need to do is step away a few feet from the wall, measure how far away you are from the wall, measure the height of the wall, and the distance from the upper edge of the wall to where you stand. You friend tells you to do these measurements for all walls, then he’ll tell you how to proceed. Sadly, just as you are done, a timber falls on your friend, and an ambulance brings him to the hospital. This is too bad, because now you have to figure out what to do with your measurements yourself.
Given the three sides of a triangle, determine if the triangle is a right triangle, i.e. if one of the triangle’s angles is 90 degrees.
输入:
The inputs start with a line containing a single integer n. Each of the n following lines contains one test case. Each test case consists of three integers 1 <= a, b, c <= 40000 separated by a space. The three integers are the lengths of the sides of a triangle.
输出:
The inputs start with a line containing a single integer n. Each of the n following lines contains one test case. Each test case consists of three integers 1 <= a, b, c <= 40000 separated by a space. The three integers are the lengths of the sides of a triangle.
样例输入:
2 36 77 85 40 55 69
样例输出:
Scenario #1: yes Scenario #2: no
题意：输入三角形三边长，判断是否是直角三角形。
mark：勾股定理，最大边40000，运算中间数最大是3.2*10^9，比int的上界2.2*10^10小，因此不用担心溢出。
代码：
# include <stdio.h> int main () { int T, a, b, c ; int nCase = 1 ; scanf ("%d", &T) ; while (T--) { scanf ("%d%d%d", &a, &b, &c) ; if (a*a+b*b==c*c || a*a+c*c==b*b || b*b+c*c==a*a) printf ("Scenario #%d:\nyes\n\n", nCase++) ; else printf ("Scenario #%d:\nno\n\n", nCase++) ; } return 0 ; }
转自：http://www.cnblogs.com/lzsz1212/archive/2012/01/06/2315250.html
(adsbygoogle = window.adsbygoogle || []).push({});
正在练习，很有帮助
给你一组数据吧：29 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 1000。此时的数据量还是很小的，耗时却不短。这种方法确实可以，当然或许还有其他的优化方案，但是优化只能针对某些数据，不太可能在所有情况下都能在可接受的时间内求解出答案。
嗯，是写错了，文中以更改。MAX ( L(X[0..m-2], Y[0..n-1]), L(X[0..m-1], Y[0..n-2])
wt[n - 1]没错，因为下标是[0...n-1]
第二种想法，我想来好久，为啥需要一个newhead，发现是把最后一个节点一直返回到嘴上面这层函数。厉害，这道题之前没样子想过。
这一题的代码这样提交时错误的~少考虑了很多情况
隐藏最深的bug是(start+end)/2有可能上溢
多谢支持！
为什么不直接用STL排序呢？
赞一个
这个问题别太纠结了，不同的编译器结果不一


[1]
Really Small; Terrible Design
[2]
Small ipod.; Major Step Back -Can't Use It In Car or Boat.Bad Design


{# Automatically extends the right outer layout and also handles AJAX siutations #}
{% extends data.outerLayout %}
{% block title %}
{# Create a useful, SEO-friendly title tag based on what we have #}
{% if data.piece %}
{{ data.piece.title }}
{% elseif data.page %}
{{ data.page.title }}
{% else %}
{{ apos.log('Looks like you forgot to override the title block in a template that does not have access to an Apostrophe page or piece.') }}
{% endif %}
{% endblock %}
{% block extraHead %}
{#
This block outputs its contents in the HTML document's "head".
It is a good place to put extra "script", "link" and "meta" tags.
#}
{% endblock %}
{% block beforeMain %}
{#
We recommend you use the beforeMain block for global page components
like headers or navigation.
#}
{% endblock %}
{% block main %}
{#
Usually, your page templates in the apostrophe-pages module will override
this block. It is safe to assume this is where your page-specific content
should go.
#}
{% endblock %}
{% block afterMain %}
{{ apos.singleton(data.global, 'footer', 'footer') }}
{% endblock %}


Ballarat man allegedly flees police, found hiding under car in retirement village
A 29-year-old Ballarat man has been charged after allegedly fleeing from and assaulting police officers.
Just before 5.30pm on Friday, Dareton Traffic and Highway Patrol Command officers stopped the Ballarat man in a Holden Commodore on Beverley Street in Wentworth - north of Mildura on the NSW/Victoria border - for a random breath test.
He was arrested for an outstanding warrant before allegedly fleeing on foot.
He allegedly ran to a retirement village and damaged property before hiding under a vehicle in the yard. He was then found by a female officer.
Police allege a violent struggle occurred, with a 66-year-old member of the public being punched in the face and bitten on the finger.
More police were called to the scene and the Ballarat man was eventually arrested.
He was taken to hospital with a laceration to his leg, while other police officers were also allegedly injured - a senior constable suffered a dislocated shoulder, a sergeant suffered a knee injury and three constables sustained minor injuries.
The Ballarat man was released from hospital and charged with 14 offences at Dareton Police Station:
- Assault police officer in execution of duty without actual bodily harm
- Escape police custody
- Enter enclosed land not prescribed premises without lawful excuse (x7)
- Aggravated enter dwelling with intent - knowing people there
- Resist officer in execution of duty (x2)
- Assault occasioning actual bodily harm
- Resist person aiding officer
Three outstanding warrants were also executed, and he has been refused bail to appear in Broken Hill court.
More to come.


--- layout: page title: About permalink: /about/ no_header: true ---
I believe that working code is not enough. The code must be better than just working and I like to call that kind of code - elegant. Elegant code is a perfection within deadlines delivered by pragmatic developer. I want to be a guy who is delivering elegant code.
I'm full stack software developer and consultant in Future Processing, Gliwice, Poland.
I'm wannabe Domain Driven Designer and Architect with working implementations. Huge fan of functional programming and Software Craftsmanship. Polyglot programmer, I guess...
Feel free to contact me on Twitter, by e-mail or check out my GitHub.
The content of this site is under MIT License if there is no other information on particular page.
This page is hosted on GitHub, was generated by Jekyll and was written in Neovim VIM.


404 - Not Found
The page you are trying to access does not exist.
Please go back by clicking back button in browser.


The onclick event is used to trigger a function when an element is clicked on.
Click the button to trigger a function that will output "Hello World" in a p element with id="demo".


Title
chess.cpp
- Author
- Lior Bragilevsky
Related
chess.h
Project
chessCAMO
- Version
- 2.1
- Date
- July 9th, 2020
chessCAMO is a newly proposed chess variant that stands for Calculations Always Make Opportunities and was inspired by the very popular chess variant Crazyhouse.
The "CAMO" portion comes from the idea that in this variant, at any turn, a player can sacrifice making a move to replace one of their pieces with a piece from the "piece reservoir". This has the affect of camouflaging each piece that is currently on the board.
Variant's Rules
- The piece reservoir is limited in size and cannot be re-stocked with pieces.
- Once a player decides to use a piece from the reservoir to replace one of his existing pieces on the board, their turn is over.
- An obvious rule is that player cannot use the reservoir while in check as they must make a move to avoid check.
- Additionally, just like in the Crazyhouse variant, a player cannot directly promote a pawn from the reservoir. That is a pawn from the reservoir must be placed on the board first and is only allowed to be promoted on the next move.


Apple’s Mac Pro and Pro Display XDR are still launching in Canada in December
It remains unclear how much the Mac Pro and Pro Display XDR will cost in Canada
by Patrick O'RourkeApple’s high-end Mac Pro desktop and Pro Display XDR are still launching in December.
However, Canadian pricing for both devices has not been revealed, though we can confirm that the Mac Pro and Pro Display XDR will be available to purchase on Apple.ca.
The new Mac Pro features a look that ditches the ‘trash can’ design of the previous Mac Pro in favour of the cheese grater-like aesthetic. The desktop was also built with modularity in mind, allowing users to expand the computer to their specific needs.
The 2019 Mac Pro features a new Intel Xeon processor with up to 28 cores. A PCI expansion has returned, with eight internal PCI slots in total. It’s also possible to configure the computer with up to 1.5TB of RAM.
Apple’s ‘Pro Display XDR’ monitor is set to still launch in December as well. The display measures in at 32-inches and includes 6K resolution and HDR support.
For more on the Mac Pro and Pro Display XDR, check out my first look at the high-end from their reveal back in June.
In the U.S., the Mac Pro starts at $5,999 USD (about $8,060 CAD). The Pro Display XDR starts at $4,999 USD (roughly $6,716 CAD). Canadian pricing for the Pro Display XDR has not been confirmed by Apple yet.