Listing some useful sed / awk liners to use with MySQL. I use these on occasion.
sed, awk & grep have many overlapping features. Some simple tasks can be performed by either. For example, stripping empty lines can be performed by either:
grep '.' awk '/./' sed '/./!d' grep -v '^$' awk '!/^$/' sed '/^$/d'
It's a matter of taste & convention which tool and variation to use. So for any script I suggest, there may be many variations, possibly cleaner, shorter; feel free to comment.
mysqldump
The output of mysqldump is in particular useful when one wishes to make transformation on data or metadata.
- Convert MyISAM tables to InnoDB:
mysqldump | sed -e 's/^) ENGINE=MyISAM/) ENGINE=InnoDB/'
I've had several occasion when people said this type of conversion assumes no 'ENGINE=MyISAM' snippet exists within row data. This is not so. The '^) ENGINE=MyISAM/' pattern strictly requires that this text is outside row data. No row data begins with a ')'. This is a safe conversion.
- Convert InnoDB to InnoDB plugin, compressed tables:
mysqldump | sed -e 's/^) ENGINE=InnoDB/) ENGINE=InnoDB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=8/'
- Slice out a specific database (assumes existence of the USE statement):
sed -n "/^USE \`employees\`/,/^USE \`/p"
- Slice out a specific table:
sed -n "/^-- Table structure for table \`departments\`/,/^-- Table structure for table/p"
- Combine the above two statements to slice a specific table from a specific database:
sed -n "/^USE \`employees\`/,/^USE \`/p" | sed -n "/^-- Table structure for table \`departments\`/,/^-- Table structure for table/p"
See also On restoring a single table from mysqldump.
my.cnf
Some my.cnf files are just a mess to read. Here's some normalizing scripts:
- Strip a my.cnf file from comments, remove blank lines, normalize spaces:
cat my.sandbox.cnf | sed '/^#/d' | sed '/^$/d' | sed -e 's/[ \t]\+//g'
- Same, but only present [mysqld] section parameters:
cat my.sandbox.cnf | sed -n '/^\[mysqld\]/,/^\[/p' | sed '/^\[/d' | sed '/^#/d' | sed '/^$/d' | sed -e 's/[ \t]\+//g'
- Only present [mysqld] section parameters, tab delimited (this is useful in exporting and comparing instance parameters):
cat my.sandbox.cnf | sed -n '/^\[mysqld\]/,/^\[/p' | sed '/^\[/d' | sed '/^#/d' | sed '/^$/d' | sed -e 's/[ \t]\+//g' | sed -e 's/=/\t/'
- Multi-word parameters in my.cnf can be written with either hyphens or underscores. innodb_file_per_table is the same as innodb-file-per-table, as well as innodb_file-per_table. The following normalizes the parameter names to using underscores only, keeping from changing values (e.g. 'mysql-bin' parameter value should not change). It isn't pretty!
cat my.sandbox.cnf | awk -F "=" 'NF < 2 {print} sub("=", "=~placeholder~=") {print}' | awk -F "=~placeholder~=" 'NF < 2 {gsub("-", "_", $0); print} NF==2 {gsub("-", "_", $1); print $1 "=" $2}'
awk '/./'
sed '/./!d'
grep -v '^$'
awk '!/^$/'
sed '/^$/d'


Get Your Personalized News Playlist With Google Assistant
by Stephanie MlotOne of my favorite memories of growing up is eating milk-soaked Teddy Grahams as talk radio played from my grandparents’ kitchen.
And while no one has an unironic receiver anymore, you can still listen to the sweet sounds of AM news broadcasts via smart speakers.
“At Google, we saw an opportunity to help move digital audio forward by focusing on audio news,” product manager Liz Gannes wrote in a blog post.
Enter Your News Update, a “smarter” way to listen to daily bulletins hosted by the Google Assistant.
Simply say, “Hey Google, play me the news” on any Assistant-enabled phone or speaker to hear a mix of short reports—chosen in that moment based on your interests, location, user history, and preferences—and top stories.
If you’re a Mets fan who follows the stock market and lives in Chicago (basically, my uncle), you might hear a story about the latest “L” construction, an analysis of last week’s baseball game, and a market update. As well as the latest national headlines.
“Keep listening and the experience will extend into longer-form content that dives deeper on your interests,” according to Gannes.
“In between stories,” she explained, “the Google Assistant serves as your smart news host that introduces which publishers and updates are next.”
The tech titan has spent two years building a library of global news sources, including ABC, CBS, USA Today, Fox News, The Washington Post, Reuters, Aljazeera, CNN, Associated Press, NBA, WNYC, Billboard, Economist, and more.
“The high-quality stories our partners provide are critical to creating a comprehensive yet intimate news experience for listeners,” Gannes said.
Your News Update is now available in English in the U.S., and will expand internationally next year. To find the feature, visit Assistant settings > You > News > News playlist format.
More on Geek.com:


HOME
COMMANDS
QUERY
roBOT
Hello I am a discord bot, people say I am really useful. I request everyone to try me out once. I would love to serve everyone.
Invite


${test_success}
| Project: | ${project.name} |
|---|---|
| Build ${build.buildNumber}: | ${build.url} |
| Date of build: | ${build.timestampString} |
| Build duration: | ${build.durationString} s |
| Allure Report: | ${build.url}allure/ |
| Total Behave Tests run: | ${total_count} |
|---|---|
| Failed: | ${failed_count} |
| Passed: | ${passed_count} |
| Skipped: | ${skipped_count} |
| Broken: | ${broken_count} |
| Success rate: | ${success_rate}% |


This is a demo of a "lite" version of the processing developed in the audio-to-tactile
project. Audio is represented with sparse, single-channel output, intended to
drive a single tactor with short clicks or buzzes in response to onsets.
Legend
audio envelope
smoothed envelope
onset threshold
sparse output


ggplot2
is a R
package dedicated to data visualization. It can greatly improve the quality and aesthetics of your graphics, and will
make you much more efficient in creating them.ggplot2
allows to build almost any type of chart. The R graph
ggplot2
examples.ggplot2
tips that you can apply to any chart, like customizing a title, adding annotation, or using faceting.
ggplot2
, a
good resource is probably this online course to go further.
fill
and color
ggplot2
allows to customize the shape colors thanks to its fill
and color
arguments. It is important to understand the diffence between both. Note that `color` and `colour` always have the same effect.
library(ggplot2) ggplot(mtcars, aes(x=drat)) + geom_density( color="purple", fill="#69b3a2", size=2 )
ggplot2
ggplot2
allows to automatically assign a marker color to a variable. Basically, you just have to specify the variable in the aes()
part of the call. Moreover, a legend comes for free.
library(ggplot2) ggplot(iris, aes(x=Sepal.Length, y=Sepal.Width, color=Species)) + geom_point(size=6)
ggplot2
ggplot2
provides a color scale by default. Several methods are available to change it:
→ Included in ggplot2
→ R Color Brewer
→ Viridis
→ All other: Paletteer
ggplot2
natively supports several methods to customize the color palette:
ggplot2
natively supports several methods to customize the color palette:
ggplot2
natively supports several methods to customize the color palette:
ggplot2
natively supports several methods to customize the color palette:
ggplot2
natively supports several methods to customize the color palette:
ggplot2
natively supports several methods to customize the color palette:
ggplot2
natively supports several methods to customize the color palette:
ggplot2
natively supports several methods to customize the color palette:
ggplot2
natively supports several methods to customize the color palette:
ggplot2
natively supports several methods to customize the color palette:
ggplot2
natively supports several methods to customize the color palette:
ggplot2
natively supports several methods to customize the color palette:
ggplot2
natively supports several methods to customize the color palette:
ggplot2
natively supports several methods to customize the color palette:
All the existing color palettes are available in Paletteer
. Just specify the package and palette names to use!
All the existing color palettes are available in Paletteer
. Just specify the package and palette names to use!
All the existing color palettes are available in Paletteer
. Just specify the package and palette names to use!
All the existing color palettes are available in Paletteer
. Just specify the package and palette names to use!
All the existing color palettes are available in Paletteer
. Just specify the package and palette names to use!
p <- ggplot(iris, aes(x=Sepal.Length, y=Sepal.Width, color=Species)) + geom_point(size=6)
p + scale_color_hue(h = c(180, 300))
p + scale_color_manual(values=c("#69b3a2", "purple", "black"))
p + scale_color_grey()
p + scale_color_brewer(palette = "BuPu")
p + scale_color_brewer(palette = "RdYlBu")
p + scale_color_brewer(palette = "Paired")
p + scale_color_brewer(palette = "PuOr")
p + scale_color_brewer(palette = "Spectral")
p + scale_color_brewer(palette = "Pastel1")
p + scale_color_viridis(discrete=TRUE, option="magma")
p + scale_color_viridis(discrete=TRUE, option="inferno")
p + scale_color_viridis(discrete=TRUE, option="plasma")
p + scale_color_viridis(discrete=TRUE, option="viridis")
p + scale_color_viridis(discrete=TRUE, option="cividis")
p + scale_color_paletteer_d(nord, aurora)
p + scale_color_paletteer_d(awtools, a_palette)
p + scale_color_paletteer_d(dutchmasters, milkmaid)
scale_color_paletteer_d(ggsci, nrc_npg)
p + scale_color_paletteer_d(ggthemes, calc)
p + scale_color_hue(h = c(180, 300))See all See all See all See all See all See all See all See all See all See all See all
I few stuff I often need to remember:
library(paletteer) ; paletteer_c(package = "scico", palette = "berlin", n = 10)


TCS endeavors to give early TCSers the power and ability to collaborate, ideate and innovate without being restricted to the confines of their work desk. One of the significant benefits is the flexibility and comfort of using your own device. The {{application_name}} is the app catalog for all the TCs owned apps. It is widely used among associates to download the apps according to their requirement. The objective is to provide associates easy access to the TCS owned apps.
Home for TCS Apps
{{application_name}} is a one stop place to explore wide range of TCS mobile applications. It provides easy download and update of all applications to its users.
Multiple Device Policy
{{application_name}} allows a user to register into it through five devices. It also provides user the facility to remove any of his devices through mobile application as well as web as web portal.
Fast and Reliable
Built using the latest tech stack, {{application_name}} works smoothly on a variety of latest mobile devices.
Interactive User Interface
{{application_name}} is an easy-to-navigate app that delivers a suite of key functionalities and mobile services through an intuitive, entertaining user interface.
{{user.comment}}
~{{user.name}}
{{user.title}}


Role: Experience design, UX research + visual design
Stakeholder: MileagePlus® Premier Program + Digital Merchandising at United Airlines
Deliverables: SME workshops, wireframe concepts, detailed design specs, accessibility documentation, digital assets for enterprise change management tools and consumer-facing media
United introduced a new PlusPoints currency to cover upgrades for domestic and international flights for their most frequent flyers who receive Global Premier Upgrade (GPU) and Regional Premier Upgrade (RPU) certificate benefits. With this transition, the legacy upgrade booking platform was redesigned with a brand new technology stack.
The redesign stretched beyond booking upgrades with the new PlusPoints currency, it included a redesign to using money and award miles to purchase upgrades. As one of the most sought-after benefits of flying, this project had direct impact to the highest ancillary revenue-driver for United. I served as the in-house UX lead on a hybrid team with agency designers, to redesign the upgrade booking experience.
A traveler can request an upgrade for their upcoming flight and for their upgrade benefit, the currency is a Regional Upgrade Certificate (RPU)/Global Upgrade Certificate (GPU).
Project kickoff
Design process
UX handoff
Sample assets for development
More details to come...
The upgrade booking experience supports the new PlusPoints upgrade currency in responsive web using modern design system and new services platform.


This is a test for checking repeated authentication dialog problem in draw.io. It will execute a request every 10 seconds.
Loading page...
Run this test for at least the time
it normally takes for the dialog to appear twice, if you can leave it open for longer, that helps us.
Please do not close this window or tab!


| rpretty {labeling} | R Documentation |
R's pretty algorithm implemented in R
rpretty(dmin, dmax, m = 6, n = floor(m) - 1, min.n = n%/%3, shrink.sml = 0.75, high.u.bias = 1.5, u5.bias = 0.5 + 1.5 * high.u.bias)
dmin |
minimum of the data range |
dmax |
maximum of the data range |
m |
number of axis labels |
n |
number of axis intervals (specify one of
|
min.n |
nonnegative integer giving the
minimal number of intervals. If |
shrink.sml |
positive numeric by a which a default
scale is shrunk in the case when |
high.u.bias |
non-negative numeric, typically
|
u5.bias |
non-negative numeric multiplier favoring
factor 5 over 2. Default and 'optimal': |
vector of axis label locations
Justin Talbot<EMAIL_ADDRESS>Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988) The New S Language. Wadsworth & Brooks/Cole.


THE EXORCIST A film review by Chad Polenz Copyright 1997 Chad Polenz
** (out of 4 = fair) 1973, R, 122 minutes [2 hours, 2 minutes] [horror/drama] starring: Jason Miller (Father Damon Karras), Ellen Burstyn (Christine MacNeil), Linda Blair (Regan MacNeil), Max von Sydow (Father Merrin), written and produced by William Peter Blatty (based on his novel), directed by William Friedkin.
"The Exorcist" puts itself forward as a completely logical story that just happens to be about demonic possession. Unfortunately, the harder it tries not to be a mindless horror flick, the more it becomes one.
The story is simple; an innocent 12-year-old girl, Regan MacNeil (Blair), becomes possessed by a demonic spirit. At first, her mother Christine (Burstyn), along with some medical doctors think she has a lesion in her brain which is causing her to act so strange, but when no physical evidence is found, they assume it's a psychological disorder. Then the possibility of spiritual possession is brought up. At first Christine scoffs the idea, but then believes it after finding no other explanation.
Now, this story is fine and the film does a good job in creating a suspenseful mood since we seem to be the only ones who can see the obvious. Horror stories thrive on this kind of element, so when the evil things happen we can say to the naysayers, "Told you so." However, the manner in which the film actually breaks down the plot and uses this element is quite exploitative.
The entire first act moves very slowly. There are scenes intended to establish the setting as everyday normality, but don't add up to anything. Since this is a horror movie there are also short scenes intended to scare us but don't. For example, Christine hears constant rumblings in the attic and believes it to be rats, but when she checks to see if the traps the butler set are working, they turn out to be empty. Another scene shows the lights in the house flickering for no reason, but no one seems to notice.
There is also a sketchy scene in which Regan shows her mother a Ouija board and says something about communicating with a being of another existence. When Regan ultimately becomes possessed, is it because the Ouija board is actually a demonic game? Whatever the reason is, it doesn't seem believable she would become possessed at all.
Although the film tells its story seriously and presents the horrific as plausible, the way it comes across is too transparent. I found it impossible to believe no one thought Regan might be possessed after she speaks with a demonic voice that is straight from the horror cliches, or when she flops around her bed uncontrollably, or when her face and body start to mutate and her eyes glaze over (there's medical evidence for all of this!?). Even her own mother nor a priest is convinced when the furniture starts moving on its own (nah, that happens all the time!).
Where there is evil there must be good to counter it, and the film's good force is represented by Father Damon Karras (Miller). Unfortunately, Karras is having self doubts, and when his mother dies he feels guilty and weak. Christine goes to Karras for help, but he warns her he could end up causing more harm than good. The doubting religious servant in the midst of trouble is such a cliche and the film placates to the audience by using him as a weak good force to combat the powerful evil. Even Karras' first name is obviously symbolic.
The demon inside Regan could have been a much more interesting "character." When it overpowers Regan's body and attacks people, it screams obscenities which sound like the demon learned from watching horror movies. Father Karras even engages in dialogue with the demon, and I think it would have been interesting if he had asked it about the specifics of Hell. Or more importantly, why, out of the people in the world did it choose to posses Regan? If the devil is supposed to be so smart, why not posses someone more important and powerful? These questions aren't even asked, let alone answered. Instead, the demon blatantly tries to get under Karras' skin by reading his mind.
The last few scenes aren't nearly as intense as they should be. A world renown exorcist, Father Merrin (von Sydow), is called in to help Father Karras exorcise the demon. The actual ending itself could be seen as a great poetic victory, but because everything seems so cheesy it doesn't work well.
The true horror to "The Exorcist" is supposed to be derived from the film's basis in reality. Compared to most horror films, it is realistic, but there are simply too many unbelievable aspects and other flaws to take it seriously, and thus it isn't scary. (4/23/97) (6/11/97)
please visit Chad'z Movie Page @ http://members.aol.com/ChadPolenz/index.html
The review above was posted to the
rec.arts.movies.reviews newsgroup (de.rec.film.kritiken for German reviews).
The Internet Movie Database accepts no responsibility for the contents of the
review and has no editorial control. Unless stated otherwise, the copyright
belongs to the author.
Please direct comments/criticisms of the review to relevant newsgroups.
Broken URLs inthe reviews are the responsibility of the author.
The formatting of the review is likely to differ from the original due
to ASCII to HTML conversion.
Related links: index of all rec.arts.movies.reviews reviews


-    ☰
-
-
- Contact Us
- About Us
- Register
CAPRICON WOMAN
Capricorn Woman In Love
When a Capricorn woman falls in love, she will have to make a decision to face her own feelings before she gives in to them and starts enjoying the relationship. In most cases, she will choose her partner wisely, with a lot of thought, and she will not make the “wrong” decision. Her sense of responsibility can be such a strong priority, that she won'tallow herself to take any risks, always choosing the safe thing to do and the safe partner to be with. This can make her deeply unsatisfied, but she won'tbe able to understand that there is no room for rational decisions when love is in question, no more than there is room for brain in matters of the heart.
Capricorn Woman In Relationships
When she chooses a partner, this is a woman that has the need to stay loyal, and often doesn'tunderstand why anyone wouldn'tbe. The equation in her head is quite simple, and for as long as her relationships make any sense, she will stay in them with no intention to disappoint or leave. When she feels the time has come for things to end, all of her boundaries have probably been crossed and there’s a slim chance there will be turning back on her decision. She is serious and strict, but her love goes very deep, and unless she is dissatisfied with her own life, she will support her partner and make them very happy.
Can You Trust Your Capricorn Woman
This is a woman that has no reason to lie, unless if fear overflows her common sense. The only thing that can make her act on instinct is panic fear, and if she doesn'tfeel any, she will have no reason to be dishonest. In general, she lives by the principle “an eye for an eye” and although she knows that all debts get settled by nature, when she is angry enough she might take justice into her own hands. This is the only situation in which she might decide to lie, out of spite and the need to return the favor to an unfaithful partner. However, this will make her feel that guilt we mentioned before, and she will probably avoid situations of this kind.
Understanding Your Capricorn Woman
To understand this woman, you need to find a way to respect her but not take her seriously. This is a very difficult task, for she will give it her best shot to convince you that she is tough, strong, and that there is nothing she cannot handle in life. In fact, she is extremely sensitive, always shying away from her own heart, taking everything as a personal issue and sacrificing her own benefit for other people. If she doesn'tend up in a role of a victim, there is a great chance she will take on the responsibility for everyone else’s lives, and this is something you shouldn'tallow to happen.
Capricorn Woman Likes and Dislikes
She is an incredible rock to lean on at any time, even when she lacks compassion and an understanding for the usual, everyday problems of mankind. She is reliable and strong, ready to share and take responsibility, while focused on her goals, determined and able to endure. On the other hand, she is strict, always expecting her partner to be even better than she is, and this is not easily accomplished. She is prone to a feeling of guilt and often slaves away to come to a certain point that she might not even need.
How To Chose A Gift For Your Capricorn Woman
A Capricorn woman is often too practical for a typical feminine gift, but also likes to smell good and feel good and cozy in her own skin. It is not easy to choose a gift for her, for she exalts Mars as much as her ruler is exalted in Libra, the sign ruled by Venus. This is why she seems to be torn up between the things she needs and the things she loves. The best choice here is to find a gift she will use, but is also beautiful and chosen by her. When she sees something hanging in the window and reacts to it, pick up the signal, return there to buy it when you are alone, and wait for her birthday, New Year’s Eve, or your anniversary to surprise her with it. The surprise will be even better if this is something she thinks too expensive or makes a rational choice not to have it, as if she settled for loving it from a distance.


In the picture you can see the Eiffel Tower
The best known symbol of France and Paris. It was named after Gustav Eiffel, whose company designed and built the tower in 1889. This lattice tower is made of puddle iron. The tower stands on four legs and has a sharp peak on the top.
The tower is the tallest structure in Paris and the most-visited paid monument in the world; 6.98 million people ascended it in 2011. The tower received its 250 millionth visitor in 2010.
The tower is 324 metres tall, about the same height as an 81-storey building. Its base is square, 125 metres on a side.
The tower has three levels for visitors, with restaurants on the first and second. The third level observatory's upper platform is 276 m above the ground, the highest accessible to the public in the European Union.
5 things to bring on a Seine river cruise
The Seine might be one of the world's most scenic urban rivers, flanked by exquisite monuments such as Notre Dame and the Arc de Triomphe. A cruise is the best way to enjoy it as long as you don't forget anything essential! Here's what to pack.Even if all's calm on the City of Love's streets, its river is exposed and highly susceptible to strong winds. Even in summer you might need a good jacket!Again, the Seine is exposed and so are you. If you're not seeing the sights by night, you'll want to see them on a sunny day. Keep yourself protected!
The Louvre Palace and the pyramid
The Louvre is the world's largest museum and houses one of the most impressive art collections in history. The magnificent, baroque-style palace and museum — LeMusée du Louvre in French — sits along the banks of the Seine River in Paris. It is one of the city's biggest tourist attractions.The National Assembly opened the Louvre as a museum in August 1793 with a collection of 537 paintings. The museum closed in 1796 because of structural problems with the building. Napoleon reopened the museum and expanded the collection in 1801, and the museum was renamed Musée Napoléon.


JavaScript Functions
This example calls a function which performs a calculation and returns the result:


--- layout: post title: '06/04/12 PHD comic: Working' categories: - Fun tags: [] status: publish type: post published: true meta: _elasticsearch_indexed_on: '2012-06-08 14:12:16' --- PHD Comics via 06/04/12 PHD comic: Working.


A cross platform solution to node's spawn.
$ npm install cross-spawn
Node has issues when using spawn on Windows:
All these issues are handled correctly by cross-spawn
.
There are some known modules, such as win-spawn, that try to solve this but they are either broken or provide faulty escaping of shell arguments.
Exactly the same way as node's spawn, so it's a drop in replacement.
$ npm test
Released under the MIT License.


Popup Multi Select jQuery Plugin Example
AGRICULTURE
GROCERY
ACCOUNTING
HEALTH CARE
ADVERTISING
INTERNET PUBLISHING
AEROSPACE
INVESTMENT BANKING
AIRCRAFT
LEGAL
AIRLINE
MANUFACTURING
APPAREL & ACCESSORIES
MOTION PICTURE & VIDEO
AUTOMOTIVE
MUSIC
BANKING
NEWSPAPER PUBLISHERS
BROADCASTING
ONLINE AUCTIONS
BROKERAGE
PENSION FUNDS
BIOTECHNOLOGY
PHARMACEUTICALS
CALL CENTERS
PRIVATE EQUITY
CARGO HANDLING
PUBLISHING
CHEMICAL
REAL ESTATE
COMPUTER
RETAIL & WHOLESALE
CONSULTING
SECURITIES & COMMODITY EXCHANGES
CONSUMER PRODUCTS
SERVICE
COSMETICS
SOAP & DETERGENT
DEFENSE
SOFTWARE
DEPARTMENT STORES
SPORTS
EDUCATION
TECHNOLOGY
ELECTRONICS
TELECOMMUNICATIONS
ENERGY
TELEVISION
ENTERTAINMENT & LEISURE
TRANSPORTATION
EXECUTIVE SEARCH
TRUCKING
FINANCIAL SERVICES
VENTURE CAPITAL
FOOD, BEVERAGE & TOBACCO


Project Lamp
Previous
Next
Hardware
https://workspace.circuitmaker.com/Projects/Details/Wouter-Devinck/LedBoard
https://workspace.circuitmaker.com/Projects/Details/Wouter-Devinck/LampController
https://workspace.circuitmaker.com/Projects/Details/Wouter-Devinck/LampBreakout
Software & FPGA
https://github.com/wouterdevinck/lamp/
CI/CD
Firmware & FPGA
https://travis-ci.org/wouterdevinck/lamp/
Simulation application
https://ci.appveyor.com/project/wouterdevinck/lamp/
Docker images
ESP32 build tools
https://hub.docker.com/r/wouterdevinck/lamp-buildenv-mcu/
FPGA build tools
https://hub.docker.com/r/wouterdevinck/lamp-buildenv-fpga/
3D models
http://a360.co/2miYawg
Documentation
http://lamp.wouterdevinck.be/
Todo list
https://trello.com/b/MGPEvZd2/lamp


Baking the Shaobing
问题描述 :
Now YY feels hungry again, so he asks LMY for food. But LMY is not at home. Fortunately, YY finds a piece of shaobing (a Chinese styled cake) in the kitchen.
This shaobing looks rather tempting. It has a shape of a simple polygon with N vertices, and its mess is evenly distributed. LMY had hung a string from the ceiling to the gravity center of the shaobing, so that the whole shaobing keeps balanced and lies in a horizontal plane although there is only one point hanging.
When YY starts to enjoy the shaobing, tragedy occurred… It is raw!
There is only one stove in the kitchen. Its cooking area lies in a horizontal plane and has a shape of a circle. YY has adjusted it to the same plane where the shaobing lies to cook it. The circle is centered at (x0, y0), with radius r. After turning on the stove, the part of the shaobing lying on the cooking area will be cooked.
However, the stove cannot be moved. So is the hanging point of the shaobing, or it may fall to the ground. The string can be moved, but YY cannot move it, because LMY has some special use with it. After all, YY can only rotate the shaobing by the hanging point.
YY is so hungry that he cannot wait for the whole shaobing to be cooked. He wants to rotate it to a best angle, cook it and then eat the cooked part, to comfort his stomach in a fastest way.
What angle should the shaobing be rotated to, so that the cooked part is the biggest?
输入:
The first line consists of three integers x0, y0 and r, indicating the position and radius of the stove’s cooking area.
The second line contains an integer N (3<=N<=15), indicating the number of vertices of the shaobing.
In the third line there are N pairs of integers (x1, y1), (x2, y2), …, (xN, yN), indicating the coordinates of the vertices of the shaobing, in counterclockwise order.
All coordinates are in the range -1000 to 1000, inclusively.
There is a blank line separating test cases.
Input ends with a line where x0=y0=r=0, and this line should not be processed.
输出:
The first line consists of three integers x0, y0 and r, indicating the position and radius of the stove’s cooking area.
The second line contains an integer N (3<=N<=15), indicating the number of vertices of the shaobing.
In the third line there are N pairs of integers (x1, y1), (x2, y2), …, (xN, yN), indicating the coordinates of the vertices of the shaobing, in counterclockwise order.
All coordinates are in the range -1000 to 1000, inclusively.
There is a blank line separating test cases.
Input ends with a line where x0=y0=r=0, and this line should not be processed.
样例输入:
0 0 1 3 0 0 1 0 0 1 0 0 0
样例输出:
0.5000
我好像看到了打火机？
我好像看到了打火机？
我好像看到了打火机？
我好像看到了打火机？
我好像看到了打火机？
我好像看到了打火机？
给力，赞一个
刚开始学习，为啥会报错了
这是什么鬼，怎么多头文件
88行是多余的，可以删除
很棒的网站，加油！⛽
第二种解法如果数组有重复元素 就不正确
和编译器有关吧，我用的g++正常。头文件可能还需要一个<string.h>
正是我要找的，适合新手
&这是C语言？
哎，path[0]应该是从零开始吧，为什么是赋值1呢？
理解错了。。。。。谢谢楼主~~


adult.Rd
The "Adult" data set from UCI machine learning repository. Raw data have been processed
and an outcome
column added.
https://archive.ics.uci.edu/ml/datasets/Adult
Description (copied from UCI):
Extraction was done by Barry Becker from the 1994 Census database. A set of reasonably clean records was extracted using the following conditions: ((AAGE>16) && (AGI>100) && (AFNLWGT>1)&& (HRSWK>0))
Prediction task is to determine whether a person makes over 50K a year (column outcome
).


Coming Very Soon
You can subscribe to get notified once it’s launched. Find us and get in touch.
Subscribe Now


<% include _header.html %>
<% include _slidebar.html %>
Theme:
Editable Table
Editable Table Sample
Data Tables
Editable Table
Editable Table
Add New
Tools
Print
Save as PDF
Export to Excel
Username
Full Name
Points
Notes
Edit
Delete
Mosaddek
Mosaddek Hossain
1234
super user
Edit
Delete
Dulal
Dulal Khan
434
new user
Edit
Delete
Sumon
Sumon Ahmed
232
super user
Edit
Delete
vectorlab
dk mosa
132
elite user
Edit
Delete
Admin
Admin lab
462
new user
Edit
Delete
Rafiqul
Rafiqul dulal
62
new user
Edit
Delete


Security Levels¶
In many cases, a cryptographic primitive is not just “secure” or “insecure”. Rather, it may meet some notion of security and not another. A classic example is encryption, where a scheme can be secure in the presence of eavesdropping adversaries (EAV), in the presence of chosen-plaintext attacks (CPA) or in the presence of chosen-ciphertext attacks (CCA). These three levels of security also form a hierarchy (any scheme that is secure in the presence of chosen-ciphertext attacks, is secure against chosen-plaintext attacks and so on). The choice of which level of security to require, depends on the application. We remark that it is not always wise to take the “most secure” scheme since this sometimes comes with a performance penalty. In addition, in some cases (like in commitments), the security levels are non-comparable.
Protocols that by definition need to work with primitives that hold a specific security level are responsible for checking that the primitives meet the security level requirements. For example, an encryption scheme that is secure under DDH should check that it receives a Dlog Group with security level DDH
.
The library therefore includes a hierarchy of security level classes; These classes have no methods and are only markers. Each concrete class that is based on any security level should derive the relevant class, to declare itself as secure as the security level class.


| DOSE: |
15 mg |
oral |
2C-E |
(powder / crystals) |
Set: I was very happy to be experiencing 2ce for the first time. I wasn't depressed in the least before the trip.
Setting:I was lucky enough to recently have some 45mg of 2ce shipped to me by a friend so i decieded to give it a try. I took 15mg and started a little online chatroom. Everyone was very excited over the drug since a lot of them were also waiting the arival of a sample of it. I had just eaten to prolong the effects untill a friend got back home.
---
+1 hour: I played the flashback movie and that sparked the first paranoia in me. I was greatly upset by the drug at that point. I couldn't get it out of my mind that that movie was how my entire trip would be.
+1.25 hours: I decieded it would be a good idea to go downstairs and watch some TV with my younger sister. As I left I noticed that the screen names on my buddy list were bending tword me whichever way I went.
+1.25 hours: I went downstairs and turned on Aqua Teen Hunger Force and sat down. I was very very cold from the 2ce and due to the fact that the AC was on and I had a fan blowing on me. I think it was mainly the drug though, I normally do not shiver in that room. I was still very nervous so i deceided to get some more food.
+1.5 hours: I walked to the kitchen, I felt taller but at the same time shorter. I grabbed a bag of pretzels to take back to the living room. When I got back I laid down and watched some more ATHF. I noticed the sky on the show changing so I commented on it to see if it was just me. My sister said she noticed that too (Good Im not crazy yet I thought).
+1.75 hours: I looked down at the floor and saw paterns and fracticals forming. I decieded to go upstairs back to the chatroom before anyone noticed I was on 2ce.
+1.75 hours:As I walked upstairs I noticed that I seemed to flow up the stairs rather than walk. I sat down and noticed that life kept getting farther and farther away from me somehow.
+2 hours: The computer monitor kept sucking me in. My Background picture on my desktop kept turning into images, I remember fry and bender from futurama as well as a dying soldier... The images turned into fracticals then I turned into a fractical myself. I kept falling in and out of reality, my vision kept moving and then I lost track of time.
+4 hours: I finally snapped back into semi-reality when the guy who shipped me the chemical reminded me that it was all just a drug.
+5 hours: My vision still was jerking around.
+5.25 hours I went into my bed and thought about how the world works and how silly life really is. I started thinking that the world was pointless but kept trying to keep a good outlook so the trip didn't go bad again.
5.5 hours: I went back online and I kept trying to contact people in hopes that they would keep my mind from going crazy again.
7.5 hours: My vision returned to semi-normal with the only problem being blurriness. The bluriness was as if I was going to cry.
+9.5 hours: I finally fell asleep
+22.5 hours: I awoke very sore all over. My body felt as though it had just swam 20 miles non-stop. My mind was very alert constantly although the expression on my face looked tired. This continued for about another 24-36 hours. I was able to sleep fine and function normally during this time
---
In the end, I think that 2ce is a very helpful drug if I were in the right mindset and if I were completely ready for the experience and knew exactly what to expect. Nothing could have prepared me for what I experienced.
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.


Gary’s Calculator
问题描述 :
Gary has finally decided to find a calculator to avoid making simple calculational mistakes in his math exam. Unable to find a suitable calculator in the market with enough precision, Gary has designed a high-precision calculator himself. Can you help him to write the necessary program that will make his design possible?
For simplicity, you only need to consider two kinds of calculations in your program: addition and multiplication. It is guaranteed that all input numbers to the calculator are non-negative and without leading zeroes.
For simplicity, you only need to consider two kinds of calculations in your program: addition and multiplication. It is guaranteed that all input numbers to the calculator are non-negative and without leading zeroes.
输入:
There are multiple test cases in the input file. Each test case starts with one positive integer N (N < 20), followed by a line containing N strings, describing the expression which Gary’s calculator should evaluate. Each of the N strings might be a string representing a non-negative integer, a "*", or a "+". No integer in the input will exceed 109.
Input ends with End-of-File.
Input ends with End-of-File.
输出:
There are multiple test cases in the input file. Each test case starts with one positive integer N (N < 20), followed by a line containing N strings, describing the expression which Gary’s calculator should evaluate. Each of the N strings might be a string representing a non-negative integer, a "*", or a "+". No integer in the input will exceed 109.
Input ends with End-of-File.
Input ends with End-of-File.
样例输入:
3 100 + 600 3 20 * 4 2 + 500 5 20 + 300 * 20
样例输出:
Case 1: 700 Case 2: 80 Case 3: Invalid Expression! Case 4: 6020
void mult(char a[],char b[],char s[]) { int i,j,k=0,alen,blen,sum=0,res[165][165]={0},flag=0;//通过设置数组可以改变精度这个为165位 char result[165]; alen=strlen(a);blen=strlen(b); for (i=0;i<alen;i++) for (j=0;j<blen;j++) res[i][j]=(a[i]-'0')*(b[j]-'0'); for (i=alen-1;i>=0;i--) { for (j=blen-1;j>=0;j--) sum=sum+res[i+blen-j-1][j]; result[k]=sum%10; k=k+1; sum=sum/10; } for (i=blen-2;i>=0;i--) { for (j=0;j<=i;j++) sum=sum+res[i-j][j]; result[k]=sum%10; k=k+1; sum=sum/10; } if (sum!=0) {result[k]=sum;k=k+1;} for (i=0;i<k;i++) result[i]+='0'; for (i=k-1;i>=0;i--) s[i]=result[k-1-i]; s[k]='\0'; while(1) { if (strlen(s)!=strlen(a)&&s[0]=='0') strcpy(s,s+1); else break; } }
解题转自：http://blog.csdn.net/dst111188/article/details/12318453
(adsbygoogle = window.adsbygoogle || []).push({});
想起一首游戏插曲
想起一首游戏插曲
想起一首游戏插曲
想起一首游戏插曲
想起一首游戏插曲
想起一首游戏插曲
想起一首游戏插曲
想起一首游戏插曲
想起一首游戏插曲
想起一首游戏插曲
想起一首游戏插曲
想起一首游戏插曲
想起一首游戏插曲
想起一首游戏插曲
想起一首游戏插曲
第15行代码，/n/n，应该改为\n\n
很强大啊，佩服
int L[m+1][n+1];这样定义出错，这个在gcc上可以编译通过 在VS上不行 应该改为new 或者vector
bottes vernies blanches
I appreciate the efforts you men and women place in to share blogs on such sort of matters, it was certainly useful. Keep Posting!
涨姿势了
不错，赞一个！
很强大啊，佩服
递归还真是一门学问，学习了
我觉得是D哎……
网站不错
真心不错，力顶作者
很好的思路，可以借鉴
因为是要把从字符串s的start位到当前位在hash中重置，修改提交后能accept，但是不修改居然也能accept


Search Items -->
*..* DOLLAR SAVING STORE *..*
!Welcome to the world of online shopping!
!Here we offer you the best products!
New Deals
||
Festive Offers
||
About Us
||
Contact Us
Login
|
More
|
Wishlist
|
Cart
Electronics
Mobiles
Mi
Realme
Samsung
OPPO
Apple
Vivo
Honor
Asus
Redmi8A
Mobile Assesssories
Mobile Cases
Mobile Chargers
Memory Card
Mobile Cables
Mobile Holders
Smart Headphones
ScreenGuards
Power Banks
Smart Tech
Smart Watches
Smart Glasses
Smart Bands
Health Care Appliances
BP Monitors
Weighing Scale
TV & Appliances
Television
Mi
Vu
Thomson
Samsung
LG
BPL
Nokia
Motorola
Shop By Screen Size
24 & below
28-32
39-43
48-55
Washing Machine
Fully Automatic Front Load
Semi Automatic Top Load
Fully Automatic Top Load
Air Conditioner
Inverter AC
Split ACs
Window ACs
Shop By Brand
LG
Hitachi
Carrier
LLoyd
Refrigerator
Single Door
Double Door
Tripple Door
Side by Side
Convertible
Kitchen Appliances
Microwave Ovens
OTG
Juicer/Mixer/Grinder
Electric Kettle
Induction Cooktops
Chimneys
Hand Blenders
Sandwich Makers
Pop Up Toasters
Electric Cookers
Wet Grinders
Food Processors
Coffee Makers
Dishwashers
Small Home Appliances
Irons
Water Purifiers
Fans
Air Coolers
Inverters
Vacuum Cleaners
Sewing Machines
Water Geysers
Immersion Rods
Voltage Stabilizers
Top Brands
Livpure
Philips
Bajaj
IFB
Eurekka Forbes
Men & Women
Winter Wear
Sweaters& Pulllovers
Sweatshirts
Jackets
Cardigans
Shrugs
Coat & Blazers
Western Wear
Top, T-Shirts
Dresses & Skirts
Jeans
Leggings & Jeggings
Rrousers & Capris
Lingerie
Bras
Night Dresses
Ethnic Wear
Sarees
Kurtas & Kurtis
Dress Material
Lehanga
Blouse
Ethnic Bottoms
Anarkali Suits
Petticoats
Dupattas
Burqas
Foot Wear
Flats
Heels
Wedges
Shoes
Boots
Sports Shoes
Casual Shoes
Slippers & Flip-Flop's
Personal Care
Hair Straightners
Hair Dryers
Epilators
Beauty Products
Make Up
Skin Care
Hair Care
Bath & Spa
Deodrants & Perfumes
Jewellery
Artificial Jewellery
Silver Jewellery
Precious Jewellery
Coins & Bars
Accessories
HandBags
Shoulder Bags
Totes
Sling Bags
Clutches
Wallets & Belts
Luggage & Travel
Kids & Baby
Boy's Clothing
Polos & T-Shirts
Ethnic
Shorts
Girl's Clothing
Dresses & Skirts
Ethnic wear
T-shirts & Tops
Baby Boy's Clothing
Body Suits
Polos & T-Shirts
Baby Girl's Clothing
Body Suits
Dresses
Boy's Footwear
Sandals
Sports Shoes
Girl's Footwear
Flats & Bellies
Sports Shoes
Toys
Remote Control Toys
Educationaol Toys
Soft Toys
Cars & Die-cast Vehicles
Outdoor Toys
Action Figures
Board Games
Musical Toys
Puzzles
Toy Guns
Party Supplies
Helicopter & Drones
School Supplies
School Bags
School Combo Sets
Lunch Box
Baby Care
Diapers
Wipes
Baby Grooming
Baby Food
Baby Bath, Hair & Skin Care
Baby Bathing Accesssories
Baby Oral Care
Nursing
Baby Gear
Baby Feeding Bottles
Baby Cleaners & Safety
Baby Proofing
Baby Gift Sets
Home & Furnitures
Kitchen & Cookware
Pans
Tawas
Pressure Cookers
Kitchen tools
Gas Stoves
Tableware & Dinnerware
Coffee Mugs
Dinner Sets
Barware
Kitchen Storage
Watter Bottles
Lunch Boxex
Flasks
Casseroles
Kitchen Containers
Bedroom Furniture
Beds
Mattresses
Wardrobes
Livingroom Furniture
Sofa
Sofa Beds
TV Units
Dinning Tables & Chairs
Coffee Tables
Shoe Racks
Office & Study Furniture
Kids Room Furniture
DIY Furniture
Bean Bags
Collaspsible Wardrobes
Furnishing
Bedsheets
Curtains
Cushions & Pillows
Blankets
Kitchen & Table Linen
Floor Coverings
Smart Home Automation
Smart Security System
Smart Door Locks
Home Improvement
Tools & Measuring Equipments
Home Utilities & Organizers
Lawn & Gardening
Bathroom & Kitchen Fittings
Home Decor
Paintings
Clocks
Wall Shelves
Stickers
Showpieces & Fingurines
Home Lighting
Bulbs
Wall Lamp
Table Lamp
Ceiling Lamp
Emergency Lights
Pet Supplies
Cats
Dogs
Rabbit
Fish & Aquatics
Previous
Next
Thanks A Lot! Visit Again!


DR.VINCENT UMEH FEDERAL MINISTRY OF PETROLUEM RESOURCES(F.M.P.R) LAGOS NIGERIA. ATTN:SIR, REQUEST FOR ASSISTANCE- STRICTLY CONFIDENTIAL I am Dr VINCENT UMEH, an accountant in the Ministry of petroleum Resources (MPR) and a member of a three-man Tender Board in charge of contract review and payment approvals. I came to know of you in my search for a reliable person to handle a very confidential transaction that involves the transfer of a huge sum of money to a foreign account. It may sound strange but exercise patience and read on. There were series of contracts executed by a consortium Multinational in the Oil industry in favor of Ministry of Petroleum Resources among which were: 1. The extension of pipeline network within Nigeria for crude oil, Down stream products distribution and subsequent evacuation- US$ 195 Million. 2. Contract for the Turn Around Maintenance (TAM) of the various refineries in the country~ US$ 152Million. 3. The construction of storage tanks for petroleum products (Depots) US$240 Million. The original values of this contract were deliberately over invoiced to the sum of US $35.5million American Dollars which has now been approved and is now ready to be transferred being that the companies that actually executed these contracts has been fully paid and project officially commissioned. consequently, my colleagues and I are willing to transfer the total amount to your account for subsequent disbursement since we are Civil Servant and are prohibited by the Code of Conduct Bureau (Civil Servant Laws) from opening operating foreign account in our names. Needless to say, the trust posed on you at this juncture is enormous. In return, we have agreed to offer you 30% of the transferred sum while 10% shall be set aside for accidental expenses (Internal & External) between the parties in the course of the transfer. We will mandate you to draw up an investment plan for us of which you will control since we cannot bring our shares back to Nigeria. We are very interested in investing in real estate in your country. You must however note that this transaction is subjected to the following terms and conditions: 1. Our conviction of your transparent honesty and diligence. 2. That you would treat this transaction with utmost secrecy and confidentiality because of the circumstances we now find ourselves. 3. That the funds would be transferred to an account over which you have absolute control. Modalities have been worked out at the highest level of the presidency at the Central Bank of Nigeria for the immediate transfer of the funds within 14 working days, subject to your satisfaction of the above stated terms. Our assurance is that your role is 100% risk free. To accord this transaction, the legality it deserves and for mutual security of the parties involved and the funds, the whole approval procedures will be officially and legally processed with your name or the name of your company you may nominate as the bonafide beneficiary. Also, be informed that our main reason of contacting you is for the obvious reason that we will want to invest these funds in the real estate. It is our believe that you can be ofimmense help in this regards. Kindly expedite action so as to enable us include this transaction into this batch as payment to foreign contractors is usually carried out on quarterly basis. Please, contact me as soon as possible on my private e-mail address<EMAIL_ADDRESS>Best regards, DR.VINCENT UMEH ------------------------------------------------- HKNETMAIL.COM Free WEB MAIL Service by HKNET


Module textredux
The Textredux module allows you to easily create text based interfaces for the Textadept editor and offers a set of text based interfaces.
It currently contains the following modules:
- textredux.core. The core module provides basic components to create text based interfaces.
- textredux.fs. Contains text based interfaces for file io operations, i.e. open file, save file as well as snapopen functionality.
- textredux.buffer_list. A text based buffer list replacement, which in addition to being text based also offers an easy way to close buffers directly from the list.
- textredux.hijack. Hijacks Textadept, replacing all keyboard shortcuts with text based counterparts. Additionally, it replaces the traditional filtered list with a Textredux list for a number of operations.
How to use it
Download and put the Textredux module in your .textadept/modules/
directory.
Having installed it, there are two ways you can use Textredux. Note that due to Textredux re-using colors defined in your theme file, loading Textredux modules should be wrapped using events.INITIALIZED.
1) Cherrypick the functionality you want from the different modules by assigning
key bindings to the desired functions. As an example, if you would like to use
the text based file browser and normally opens files using Ctr-O
, then the
following code in your init.lua
would do the trick:
events.connect(events.INITIALIZED, function()
textredux = require 'textredux'
keys.co = textredux.fs.open_file
end)
2) If you can't get enough of text based interfaces and the joy they provide,
then the textredux.hijack module is for you. Simple place this in your
init.lua
:
events.connect(events.INITIALIZED, function()
require 'textredux.hijack'
end)
As the name suggest, Textredux has now hijacked your environment. All your regular key bindings should now use Textredux where applicable. Clicking the menu will open the standard dialogs.
Customizing
Please see the module documentation for the various modules for configurable settings.
Info:
- Copyright: 2011-2012
- License: MIT (see LICENSE)
- Author: Nils Nordman