Bootstrap routines for nested linear mixed effects models fit using either 'lme4' or 'nlme'. The provided 'bootstrap()' function implements the parametric, semi-parametric (i.e., CGR), residual, cases, and random effect block (REB) bootstrap procedures.
| Version: | 0.1.0 |
| Depends: | R (≥ 3.1.2) |
| Imports: | boot, plyr, dplyr, Matrix, nlmeU, RLRsim |
| Suggests: | lme4 (≥ 1.1-7), nlme, testthat, mlmRev |
| Published: | 2016-07-15 |
| Author: | Adam Loy [aut, cre], Spenser steele [aut] |
| Maintainer: | Adam Loy <loyad01 at gmail.com> |
| BugReports: | https://github.com/aloy/lmeresampler/issues |
| License: | GPL-3 |
| URL: | https://github.com/aloy/lmeresampler |
| NeedsCompilation: | no |
| Materials: | README NEWS |
| CRAN checks: | lmeresampler results |
| Reference manual: | lmeresampler.pdf |
| Package source: | lmeresampler_0.1.0.tar.gz |
| Windows binaries: | r-devel: lmeresampler_0.1.0.zip, r-release: lmeresampler_0.1.0.zip, r-oldrel: lmeresampler_0.1.0.zip |
| OS X binaries: | r-release: lmeresampler_0.1.0.tgz, r-oldrel: lmeresampler_0.1.0.tgz |
Please use the canonical form https://CRAN.R-project.org/package=lmeresampler to link to this page.


Player versus environment game types makes up the majority of the game.
PvE story missions can be played either solo or as part of a "fireteam" of up to three players.
Initially, although there was an order to the story missions, they could be played in any order as more missions became available.


Im playing with an arduino and one CT and AC - AC on analog pins.
The circuits for CT an AC-AC are powered from 3.3V.
The board (arduino) from 5V (USB).
Can I use a precise voltage reference ? (I have one with 4.096V)
Do I need to change anything ? (arduino AREF is set to external and has the VREF connected to it).
And code changes needed for calculations to the voltage read by the analog pins ?
Re: Analog voltage reference with a precise voltage reference.
You will be using only 80% of the input range, unless you shift the bias voltage to 2.048 V by changing resistors. You need to tell emonLib that your reference is 4.096 V, and the starting point for the digital filters is no longer half way (assuming you don't change the bias resistors). You'll need to modify your copy of emonLib to achieve this. If you look at emonlib.cpp, it should be fairly obvious what you need to do.
I've never tried that configuration, so I don't know what else you might need to do.
Re: Analog voltage reference with a precise voltage reference.
So if I shift the bias voltage to 2.048V and set the SupplyVoltage to 4.096V it should work ?
Re: Analog voltage reference with a precise voltage reference.
I can't see a reason why not. You'll probably want to run one of Robin's utility sketches to check that the input is biased to the right place and the waveforms look right, and of course you can if you wish adjust the voltage divider/burden resistor to take advantage of the 25% or so extra input swing you have.
Re: Analog voltage reference with a precise voltage reference.
Thx, and where do I find the sketches ?
Had no luck finding them.
EDIT: found them! Which one should I use ?
Re: Analog voltage reference with a precise voltage reference.
Which one should I use ?
This one: http://openenergymonitor.org/emon/sites/default/files/rawSamplesTool.ino_.zip
or
this one: http://openenergymonitor.org/emon/sites/default/files/RawSamplesTool_4ss_2.ino_.zip
Re: Analog voltage reference with a precise voltage reference.
Do I need to change anything ? (arduino AREF is set to external and has the VREF connected to it).
Just be aware that EnergyMonitor::readVcc() unconditionally sets it back to AVCC, not by calling analogReference() but by directly banging on ADMUX.
I think for your hardware you want a modified readVcc() that unconditionally returns 4096 and NEVER writes to ADMUX.
Re: Analog voltage reference with a precise voltage reference.
dBC:
Do you have any information about the stability of the internal reference? We know the initial value is imprecise (1.0 < 1.1 < 1.2 V), but what effect does supply voltage, ageing and temperature have? I can't find any specific information for the 328P, only generic data on band-gap devices generally.
Re: Analog voltage reference with a precise voltage reference.
I've only ever used the 2.56V internal reference available on some AVR devices (including the 2560 used for the measurements below), and like you I've not been able to find any specific data. My 3.3V Vcc is stable down to the mV, so of the parameters you listed, temperature is the only one I've studied in detail, and it's not that great.
The attached plot shows the 2.56V bandgap over a 12C temperature range. It varies by 4.569mV or about 0.18%, or about 1.8 AtoD units, so it's barely stable enough for a 10-bit AtoD. Since moving to 14-bit AtoD conversions (courtesy of oversampling) I've also moved to an external Vref, which is more temperature stable (approx 30ppm/degC, or about 5x better than the measured internal bandgap performance).
Re: Analog voltage reference with a precise voltage reference.
That's useful knowledge, thanks. As you say, not that great but a lot better than the ±10% of the initial value. I've always been a little dubious over the use of the nominal value of the Vcc supply as the basis of the calculations, because of the effect of device tolerance, temperature, load and supply variations on the true value, but the data seemingly doesn't exist to prove the question one way or the other.
Re: Analog voltage reference with a precise voltage reference.
Yes, I guess it comes down to which you think is the more stable: Vcc, or the 1.1V bandgap used by readVcc() in order to "measure" Vcc.
Re: Analog voltage reference with a precise voltage reference.
what effect does supply voltage, ageing and temperature have?
Here's two plots (one for the 328 the other for the 328P) that show Bandgap vs Vcc at three different temperatures for the 328, and four different temps for the 328P.
Taken from the Atmel datasheet:
www.atmel.com/images/Atmel-8271-8-bit-AVR-Microcontroller-ATmega48A-48PA-88A-88PA-168A-168PA-328-328P_datasheet_Complete.pdf pages 485 and 510.
Couldn't find any data on ageing. :-(
Re: Analog voltage reference with a precise voltage reference.
A good find, Bill, thanks. I can do some sums with that.


Btcpay
Transcript By: Bryan Bishop
Tags: Security, Privacy, Wallet
Category: Conference
How to make everyone run their own full node
Nicolas Dorier
Building on Bitcoin, 2018
https://twitter.com/kanzure/status/1014166857958461440
I am the maintainer of Nbitcoin and btcpay. I am a dot net fanboy. I am happy that the number of people working on bitcoin in C# has spread from one about four years ago to about ten in this room toay. That’s great. I work at DG Lab in Japan.
The goal of my talk is to continue what Jonas Schnelli was talking about. He was speaking about how to get the best wallet and get the three components of security, privacy and trust. I have a solution I think.
So to be clear, I am not doing an ICO, I am not starting a company, I am not asking for funding. I need open-source developers, not money.
btcpay was started as a reaction to B2X, which was a shitcoin that died before being born. I really liked bitpay in the past and I was shocked when they started getting political. As someone that advised people to use bitpay originally, I felt that they broke my trust and I decided to make an open-source version that shares the same API such that if you have your backend already working with bitpay then you can switch and use btcpay without rewriting your backend basically. It started as a project mainly for merchants, but btcpay is not about merchants. My goal is that every user should be able to run a full node.
Why are full nodes important?
 No hostage situations, like central parties trying to redefine bitcoin. And this can unleash programmable aspects of this form of money.
Why does Alice not run a full node?
She can receive money on her mobile wallet just fine. She doesn’t care about decentralization until it is too late. She can use Trezor or Ledger desktop app just fine and it works. Bitcoin QT always needs to sync when she needs to use it. You need to wait hours.  It’s not user friendly, despite lots of work that Jonas Schnelli has done on the UI. Also, it takes a lot of space, except in pruned nodes.
How to make the dog eat its medicine?
 That was btcpay in a nutshell.
Wallets using block explorer, like copay, or Samurai Wallet… but it’s bad for privacy. If you are the one running the block explorer then you can spy on what the user is doing. Using bip37, with bloom filters, it’s terrible for privacy because now not only— in the case of block explorer, only the block explorer company can see your UTXO, but in the case with bloomfilters, all of the network can try to sniff your transactions and the user experience is also really bad because you still need to sync. Another type of wallet, the client-side filtering like bip158, which is better privacy but the synchronization is still needed.
Someone put a bitcoin full node on mobile phones. It has a bad user experience due to the syncing, and it’s resource consuming (storage, bandwidth, power). Bandwidth can be pretty poor in developing countries. It’s not perfect, so.
Lightning makes things even worse because now you need layer 1 tradeoffs as well as layer 2 tradeoffs. And you are unable to reliably receive payments because you might be offline. And you need occassional connectivity in order to update your channels and so on.
We should try to make mobile do everything. What if having an always connected bitcoin server was easier and cheaper than paying for a Netflix subscription?
A mobile app have good UX but is occassionally connected. Hosting a server has bad UX but it’s always connected.
A lot of good tools in bitcoin but they are difficult to integrate. I come from Windows where there’s giant software that does everything and we just go there. Bitcoin Core was like that originally. As time passes, and as bitcoin has become more focused on the linux community, much of the developers do their own tools that do one specific thing and then the community pipes stuff together to make new things work. It’s good but you spend lots of time trying to stick everything together with scotch tape. It’s not perfect.
You can try to do everything in software, or you can just glue two phones together and put it on the phone. I am trying to glue multiple tools together.
When the first release of btcpay started, I tried to use docker. Iused postgresql, nginx, woocommerce, nbxplorer, and Bitcoin Core. I used a btcpay plugino on woocommerce. Then Iused letsencrypt-nginx-proxy-companion nginx-gen, to Let’s Encrypt.
Since btcpay uses the same API as bitpay, I was able to fork a lot of bitpay plugins as well, and got all of that work for free.
NBXplorer was made at DG Labs originally for Elements. I asked them if it could be open-source and they said yes. It’s a simple REST API. It doesn’t index, it just tracks your own key.
I am using docker-compose to facilitate this. My second task was to integrate lightning, including c-lightning and lightning charge. I am also working on lnd integration. Zap Wallet is a good desktop wallet for lightning.
One downside is that you can’t run lightning on a pruned bitcoin node. And also, docker installation on custom hosting is like $10/mo. If we used pruned nodes with lightning then it could bring the cost down to $5/month. And the downside is that the user needs to search for the hosts and run btcpay-install.sh to install and use this btcpay replacement.
I also setup a deploy to azure template. The downside is that this is expensive, about $60/month on Azure. Can go to $20/month but you need to do some manual stuff after the sync is done. It requires some technical skills. And also another downside is that you’re using Microsoft so that’s basically not an option for many of the people here.
Has a tedious deployment, but this could work with raspberry pi.
It’s more user friendly to run your own user node. btcpay will expose a block explorer to you. You don’t need your phone to sync to the blockchain network. It’s better to have your full node on a server.
I am planning to do exchange integration. I think this is actually the most boring thing. When somebody pays you, … with bitpay, you have like the payment processing, and then the… we can think about this where the payment processor stays open source and then integrates with exchanges. Imagine there’s a small reserve on their exchange, then somebodgy pays them, and then immediately the merchant can sell the BTC on the exchange, and that can be used to replenish the reserve. So merchants would be able to hedge against the volatility of bitcoin by using their own full node.
Using discreet log contracts, you don’t need fiat to hedge against bitcoin volatility. Actually, this is not true. You can hedge yourself against bitcoin by using discreet log contracts. I am hoping to facilitate that in the future.


@* * Copyright 2021 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *@ @import views.forms.components.RadioOption @( field: Field, options: Seq[RadioOption], allowNone: Boolean = false, inputClass: Option[String] = None, hint: Option[String] = None, label : Option[String] = None, labelClass: Option[String] = None, id: String = "radio_option_group", preSelect : Boolean = true, customErrorMessage : Option[String] = None, customGroupId : Option[String] = None, contentHtml : Option[Html] = None, customOtherOptions: Seq[RadioOption] = Seq(), ariaDescribedBy: Option[String] = None )(implicit messages: Messages)


I'm a fullstack software engineer at Bunch, Inc. I work on a tight-knit team of 4 talented engineers tackling enterprise software solutions every day, using the latest technologies at our disposal including React + Redux, Deepstream, Node, MySQL, and more.
I'm very passionate about innovations in technologies and code in all types of products, whether it be wearables, car advancements, or pure software.
Some hobbies of mine are landscape photography, dabbling in music production, travelling the world to try new beers, and the person you go to for just about anything car related.
Check out some of my projects on Github using the link below.
Feel free to contact me or just drop me a line at my email below


| About Dailyrotten |
|
Feedback
If you like this page, hate it, or would like to suggest changes,
<EMAIL_ADDRESS>is listening. This page
is experimental and somewhat different from what we usually offer, so please
do send your feedback.
Adding Stories
If you are a rotten newshound and you would like to suggest a story,
visit our submit page to
send us the URL. Stories that are accepted will have your name credited.
Viewership
On the first full day this page went live, 100,000 people visited this Rotten
News page. Of course that was the day after the WTC attacks, so that number is
somewhat distorted. Right now this page gets between 50,000 and 75,000 people
every day.
Linking
We encourage everyone to link to this page; if you like it, others probably
will as well.
Other Rotten
Rotten
Gaping Maw
Celebrity Morgue
Mugshots
Rotten Store
Shockumentary
Rate My Poo
Rate My Kitten
Rate My Finger
Penny Postcards
Phallic
Dr. Sputnik
Boners
Dead Pool
NNDB
Home
Make Dailyrotten your start page
|
|
|
August 05, 2003
Governor Flynt's plan for California
San Francisco Chronicle | Submitted by: Reid Fleming
"Larry Flynt, who built an empire on raunchy pornography, said Monday he is serious about running for governor and would consider spending millions of dollars of his own fortune to bankroll a campaign aimed at fixing the state's budget problems. He also said he would expand gambling, consider legalizing prostitution and drugs, and declare an amnesty for illegal immigrants."
|
|
Read article...
|
|
Mother of two becomes dog food
nettavisen.no | Submitted by: optional
"A Swedish woman died last weekend after falling into a meat grinder with her 31-year-old daughter witnessing the accident. ... The mother was running a small factory in Bua, Sweden, along with her daughter. The family business produced and sold mink food, fish flour and dog snacks. On Friday night the mother and daughter were cleaning the plant. Somehow the mother fell down into big container where the giant grinder hit her."
|
|
Read article...
|
|
Secret British PR plan inconsequential, please ignore
observer.guardian.co.uk | Submitted by: Reid Fleming
"The Ministry of Defence confirmed last night that a document at the centre of a security breach three days after the suicide of government weapons adviser David Kelly had been passed to police investigating the death of the scientist. But the MoD fiercely denied allegations that it had attempted to burn or shred a 'media plan' relating to Kelly at their Whitehall headquarters. The Daily Telegraph reported that officials were preparing to incinerate a media strategy dealing with the fallout from the Kelly affair when they were spotted by security guards. ... The MoD confirmed there had been a security breach on 20 July when guards discovered that a document referring to Kelly had been mistakenly placed in a 'burn bag' to be taken for incineration. The incident would normally have been dealt with internally, but the guards took the unusual step of alerting the Ministry of Defence Police."
|
|
Read article...
|
|
Qaddafi wants to make friends, but won't apologize
ABC News | Submitted by: Reid Fleming
"Nearly 15 years after Pan Am Flight 103 exploded over Lockerbie, Scotland, former diplomats and Arab world experts maintain the old Muammar Qaddafi -- the one behind numerous terrorist attacks in the 1980s -- has curtailed his rogue ways and is even signaling that he would like to establish a relationship with the U.S. government. ... After the attacks of Sept. 11, 2001, Qaddafi was one of the first Arab leaders to issue a statement of condolence to the United States. ... State Department spokesman Greg Sullivan confirms Qaddafi even provided intelligence on al Qaeda cells to the U.S. government."
|
|
Read article...
|
|
Labwork resolves which of 7 priests impregnated woman
Sacramento Bee | Submitted by: Tim Howard
"Twenty-year-old Jacqueline Milla grew up believing that her father was a priest. Now she knows it's true. Milla and her attorney announced the results of a court-ordered paternity test Monday at the entrance to Our Lady of the Angels Cathedral in downtown Los Angeles. ... Rita Milla said she didn't know who the father of her child was when she became pregnant in the 1980s. An observant Catholic who had planned on one day becoming a nun, Milla had long claimed she was molested by Father Santiago Tamayo of St. Philomena Church in Carson when she was 16.
|
|
Read article...
|
|
Top WMD inspector no scientist of any kind
baltimore.indymedia.org | Submitted by: prettynwitty
"When one hears of a 'chief weapons inspector' whose specialty is nuclear arms, whose responsibility is being able to oversee the search, detection, assessment/analysis of sophisticated weaponry and/or the often elusive evidence thereof, what does one automatically envision? ... David Kay, a former chief weapons inspector for the UN and now Bush's top pick for the job of turning up even traces of evidence that WMDs exist(ed) in Iraq... [is] no scientist -- his PhD is is foreign affairs or some other nonscientific discipline. He's about as qualified to search for nukes as Ronald McDonald."
|
|
Read article... and
This article...
|
|
Iraqis 1, Halliburton 0
Guardian | Submitted by: Bonny Fide
"An American civilian contractor was killed Tuesday when a remote-control bomb exploded under the truck he was driving north of Tikrit, the U.S. military said. The contractor was employed by Kellogg Brown & Root, a subsidiary of Halliburton, a Houston-based oilfield-services and construction company. Halliburton, the former company of Vice President Dick Cheney, has major contracts for reconstruction in both Iraq and Afghanistan."
|
|
Read article...
|
|
Kim Jong Il elected in a landslide
Taipei Times | Submitted by: Reid Fleming
"North Korea said yesterday that polls in which voters gave leader Kim Jong-il 100 percent support showed the communist state was 'firm as a rock' in the face of economic woes and isolation over its nuclear ambitions. The 61-year-old Kim was one of 687 deputies elected unopposed on Sunday for seats in North Korea's rubber-stamp legislature, the Supreme People's Assembly. North Korea's official KCNA news agency quoted the Central Election Committee as saying turnout was 99.9 percent of registered voters and that 100 percent of the votes were cast for the sole candidates."
|
|
Read article...
|
|
Acid victims receive makeovers
BBC | Submitted by: artimus
"A chain of beauty salons in Pakistan is gearing up to cater for a new kind of client - burn victims whose beauty treatments will be more than skin deep. An Italian charity, Smile Again, is teaming up with Depilex beauty salons from September to provide reconstructive plastic surgery for the victims of acid and kerosene attacks. ... Although acid burn cases account for only a fraction of overall cases of violence against Pakistani women, reports of them are alarmingly on the rise. There were 46 cases reported in Punjab province alone in 2002, up from nine the previous year." With photos.
|
|
Read article...
|
|
The Protocols of the Learned Elders of Mecca
World Net Daily | Submitted by: The Walrus Koo-Koo Ka Choo
"A refugee from the Muslim Middle East thinks he has discovered Islam's 20-point plan for conquering the United States by 2020 -- a plan revealed in the latest issue of Joseph Farah's G2 Bulletin. ... 'The following is my analysis of Islamic invasion of America, the agenda of Islamists and visible methods to take over America by the year 2020,' Shorrosh says. 'Will Americans continue to sleep through this invasion as they did when we were attacked on 9/11?'" [Um, yes.]
|
|
Read article...
|
|
Impulsive decapitator lacking common sense
New York Post | Submitted by: Reid Fleming
"An independent filmmaker who decapitated his business partner -- supposedly because he feared the victim was in the Taliban -- yesterday accused the police, prosecutors and the judge in his case of being corrupt. ... Powell was supposed to get 20 years, but Judge Donald DeRiggi said Powell's unusual statements may allow him to throw out the plea bargain and 'enhance' Powell's jail time to 25 years. Powell read from his prepared statement, 'I cannot get a fair trial,' because he believes the judge hates his lawyer. He said the jurist had 'disgraced' the court system 'by refusing to step aside and allow an impartial judge to try this case.'"
|
|
Read article...
|
|
Mike Tyson insolvent
New York Times | Submitted by: Adam Wilks
"Despite making about $400 million over the past 20 years, Tyson managed to squander his fortune. ... According to Tyson's bankruptcy filing, his foes include: The Internal Revenue Service, which is owed $13.4 million, and the British tax authorities, which are owed $4 million. The treasuries of Georgia and Michigan, which are owed $317,201 by Tyson's company, Mike Tyson Enterprises. Seven law firms, which are owed more than $600,000 by Tyson and his company."   'Jane, come here. Me Tarzan!' Ragno said. ... During the court session, Ragno also listed to a weather forecast on his speaker phone and discussed his search for a new condominium."
|
|
Read article...
|
|
U.S. solider killed by happy Iraqi
centcom.mil | Submitted by: I hate everything
"A 1st Armored Division soldier died August 1 of a gunshot wound received at approximately 7:30 p.m. on July 31. The soldier was standing outside when a bullet, fired from a celebrating Iraqi, struck him."
|
|
Read article...
|
|
Friendship ruined by ear-biting incident
BBC | Submitted by: optional
"A man who bit off his best friend's two ears during a row over a broken window has been imprisoned for 15 months. ... James McGrory, 30, who had been drinking and smoking cannabis before the attack, shrugged his shoulders at Glasgow Sheriff Court as he was told that prison was the only option. ... In a letter handed to the court, McGrory wrote: 'I did not mean to do what I did. I was shocked by the way I reacted. I hope one day we can be friends again.'"
|
|
Read article...
|
|
Liz Taylor lawsuit alleges gay butler action
Sunday Times | Submitted by: Reid Fleming
"Elizabeth Taylor is at the centre of a tawdry legal drama in which she is accused of having sex with her own butler. Taylor's former gardener has made extraordinary claims that the film legend slept with her gay butler in her Hollywood mansion. He has also made the humiliating claim that the 33-year-old butler needed to take Viagra to have sex with the 71-year-old film star, a woman famous for receiving priceless jewellery from adoring men who fell under her spell. The gardener also claimed the butler mockingly referred to how he 'had to jump on the old trampoline.'"
|
|
Read article...
|
|
Topless pornstars to protest nudity laws
Stuff NZ | Submitted by: Reid Fleming
"Five foreign porn performers plan to ride topless down Auckland's main street tomorrow in a lunchtime protest against New Zealand's nudity laws. ... New Zealand adult film-maker Steve Crow is behind the protest and a spokeswoman said he was not expecting authorities to try to stop it. 'His partner is a policewoman and he was aware there could be some problems, so he rang police to warn them,' she said. 'They told him they would turn a blind eye.'" [That was before he went around blabbing about it.]
|
|
Read article...
|
|
City pool worker calls police over topless 3-year-old
Detroit Free Press | Submitted by: Reid Fleming
"It may be all right for girls to bathe topless in pools in, say, Brazil, but don't try going topless at a water park in Detroit -- even if you're only 3 years old. ... Suhayla had her bikini bottom on, but her mother had forgotten the matching top. ... Topless toddlers apparently can spark lust in adults who are sexually attracted to children -- at least that's what Sorel said the park's security guards repeatedly told her during the standoff. ... The guards then threatened to call Detroit police on Sorel and her topless tot. And finally, at Sorel's own urging, they did."
|
|
Read article...
|
|
Kentucky's worst jail?
WLEX-TV 18 Lexington, KY | Submitted by: Reid Fleming
"The Perry County Jail is being investigated after two county officials complained of prostitution, drug use and inmate abuse at the facility. ... As for sex in the jail, Feltner admitted that carelessness by a maintenance worker earlier this year allowed female inmates to get a master key to jail cells, which they used for two weeks to get into male inmates' cells.
|
|
Read article...
|
|
Naked Raelians emulate mad scientist's bumper sticker
NZ Scoop | Submitted by: Macki
"In response to the event 'Bare Witness' which took place in Great Britain this past June 29th where 30 demonstrators gathered fully naked to form the words: 'No GM,' more than 300 naked Raelians had gathered to form the words 'I love GM' during their Annual Sensual Meditation Seminars. This demonstration took place on Monday July 14th at 2PM at UFOland." [UFOland? Annual Sensual Meditation Seminar?]
|
|
Read article...
|
|
|
|
|


Welcome to my blog posts, feel free to read through them, as the weeks go by more will be added!
Technical blog:considering webpage design
Blog 2. Getting into this blogging thing!
Cultural blog:first impressions of EDA
Technical:CSS Positioning


JOE DIRT A film review by Steve Rhodes Copyright 2001 Steve Rhodes RATING (0 TO ****): * 1/2
JOE DIRT, which has the second worst trailer this year (FREDDY GOT FINGERED's are even worse), is pretty much what you'd expect from a movie produced by Adam Sandler. Full of bathroom humor, food fights and humping dogs, it's the kind of movie beloved by its target audience and correctly shunned by others.
Starring David Spade, who shares the writing "credits" with Fred Wolf, the movie concerns a boy abandoned by his parents when he was 8. A guy who is treated like his last name, Joe has spent the last 15 years trying to find the folks who "lost" him. Speaking of lost, Spade, last seen starring in LOST & FOUND, which I regretfully found, was worse then than in JOE DIRT.
Joe tells his life story in flashback to LA radio talk show host Zander Kelly (Dennis Miller), as LA waits with bated breath by the radio.  Eventually, Kelly grows to respect his guest, upgrading his status to "white trash treasure."
In one of his stories, Dirt is literally "covered in crap." The movie is like that. Last week's TOMCATS is a comedic masterpiece next to JOE DIRT.
JOE DIRT runs 1:26. It is rated PG-13 for crude, sex-related humor and language and would be acceptable for teenagers.
Web: http://www.InternetReviews.com Email<EMAIL_ADDRESS>Want free reviews and weekly movie and video recommendations via Email? Just send me a letter with the word "subscribe" in the subject line.
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


In Triggers Use Case Compilation, Part I, I've demonstrated some triggers use scenarios.
We continue our examples of triggers usage.
Counters and aggregations bookkeeping
Consider the City table: each city belongs to a certain country. Some questions we may be interested in are:
- How many cities are there per country?
- What's the sum of cities population per country?
- What's the population of the largest city per country?
Answering any of these questions is an easy SQL excercise. But aggregation is required, and full table scan (or full index scan, if we're lucky) is essentially part of any execution plan. What if we can't pay the price for these queries? What if we need immediate, or near immediate response?
One solution is to use counter tables, or summary tables. For example, to answer the first questions, we create the following table:
CREATE TABLE CityCount ( `CountryCode` char(3) NOT NULL, `NumCities` int(11) NOT NULL, PRIMARY KEY (`CountryCode`) );
By following all INSERTs and DELETEs on the City table, we can manage the CityCount table's data.
DELIMITER $$ DROP TRIGGER IF EXISTS City_ai $$ CREATE TRIGGER City_ai AFTER INSERT ON City FOR EACH ROW BEGIN INSERT INTO CityCount (CountryCode, NumCities) VALUES (NEW.CountryCode, 1) ON DUPLICATE KEY UPDATE NumCities = NumCities+1; END $$ DROP TRIGGER IF EXISTS City_au $$ CREATE TRIGGER City_au AFTER UPDATE ON City FOR EACH ROW BEGIN IF (OLD.CountryCode != NEW.CountryCode) THEN UPDATE CityCount SET NumCities = NumCities-1 WHERE CountryCode = OLD.CountryCode; INSERT INTO CityCount (CountryCode, NumCities) VALUES (NEW.CountryCode, 1) ON DUPLICATE KEY UPDATE NumCities = NumCities+1; END IF; END $$ DROP TRIGGER IF EXISTS City_ad $$ CREATE TRIGGER City_ad AFTER DELETE ON City FOR EACH ROW BEGIN UPDATE CityCount SET NumCities = NumCities-1 WHERE CountryCode = OLD.CountryCode; END $$ DELIMITER ;
To illustrate the impact of triggers, let's do a 'massive' data load here:
mysql> CREATE TABLE City_2 LIKE City; Query OK, 0 rows affected (0.00 sec) mysql> INSERT INTO City_2 SELECT * FROM City; Query OK, 3998 rows affected (0.23 sec) Records: 3998 Duplicates: 0 Warnings: 0 mysql> TRUNCATE TABLE City; Query OK, 0 rows affected (0.00 sec) mysql> INSERT INTO City SELECT * FROM City_2; Query OK, 3998 rows affected (3.58 sec) Records: 3998 Duplicates: 0 Warnings: 0 mysql> SELECT * FROM CityCount LIMIT 10; +-------------+-----------+ | CountryCode | NumCities | +-------------+-----------+ | AFG | 4 | | NLD | 28 | | ANT | 1 | | ALB | 1 | | DZA | 18 | | ASM | 2 | | AND | 1 | | AGO | 5 | | AIA | 2 | | ATG | 1 | +-------------+-----------+ 10 rows in set (0.01 sec)
The results seem satisfactory. We can now query CityCount directly, no need for complex queries on City. But look at the times: INSERTing data into City_2 took 0.23 seconds. INSERTing the same data into City took 3.58 seconds. That's the triggers overhead. There is an advantage to using triggers here (and in general) if you're doing many SELECTs, but few INSERT/UPDATE/DELETE.
Enhance security
In Using triggers to block malicious code: an example, I have shown how a trigger may block changes to sensitive data. A trigger is aware of the invoker, and can implement a row-based privileges system.
As another example, let's see how we can do a "privileges table partitioning". We look at the world's City table. What if we're working on some world-nations-wiki, and we want to assign users to countries, in such way that a user can only modify data for a country she is assigned to?
We create a privileges table which maps users to countries:
DROP TABLE IF EXISTS `CountryUser`; CREATE TABLE `CountryUser` ( `CountryCode` char(3) NOT NULL, `mysql_User` char(16) collate utf8_bin NOT NULL default '', PRIMARY KEY (`CountryCode`, `mysql_User`) );
And then add the security triggers on City:
DELIMITER $$ DROP TRIGGER IF EXISTS City_bi $$ CREATE TRIGGER City_bi BEFORE INSERT ON City FOR EACH ROW BEGIN SELECT SUBSTRING_INDEX(USER(),'@',1) INTO @current_mysql_user; IF (@current_mysql_user NOT IN (SELECT mysql_User FROM CountryUser WHERE CountryCode = NEW.CountryCode)) THEN SELECT 0 FROM `Unauthorized access` INTO @error; END IF; END $$ DROP TRIGGER IF EXISTS City_bu $$ CREATE TRIGGER City_bu BEFORE UPDATE ON City FOR EACH ROW BEGIN SELECT SUBSTRING_INDEX(USER(),'@',1) INTO @current_mysql_user; IF (@current_mysql_user NOT IN (SELECT mysql_User FROM CountryUser WHERE CountryCode = OLD.CountryCode)) THEN SELECT 0 FROM `Unauthorized access` INTO @error; END IF; END $$ DROP TRIGGER IF EXISTS City_bd $$ CREATE TRIGGER City_bd BEFORE DELETE ON City FOR EACH ROW BEGIN SELECT SUBSTRING_INDEX(USER(),'@',1) INTO @current_mysql_user; IF (@current_mysql_user NOT IN (SELECT mysql_User FROM CountryUser WHERE CountryCode = OLD.CountryCode)) THEN SELECT 0 FROM `Unauthorized access` INTO @error; END IF; END $$ DELIMITER ;
Testing (as user root):
mysql> INSERT INTO CountryUser (CountryCode, mysql_User) VALUES ('NLD', 'root'); Query OK, 1 row affected (0.00 sec) mysql> DELETE FROM City WHERE Name = 'Milano'; ERROR 1146 (42S02): Table 'world.Unauthorized access' doesn't exist mysql> DELETE FROM City WHERE Name = 'Amsterdam'; Query OK, 1 row affected (0.05 sec)
Managing cache (e.g. invalidating memcached)
In Using memcached functions for MySQL; an automated alternative to Query Cache, I've shown how triggers can be used to invalidate memcached values. But cache management can apply to local tables as well.
It is common practice to have summary tables (we used such one in our counters example). Summary tables are just normal tables which are filled with aggregated data, and save the need to re-aggregate that data. Much like the memcached example, triggers can be used to invalidate or reload the summary table data when relevant changes occur in underlying tables.
Limiting table size
Out last use case shows how it is possible to limit table size using triggers.
By "limiting table size" we can think of row-count limitation, or storage limitation. In the following example, the logs table is limited by a certain byte size.
DROP TABLE IF EXISTS `world`.`logs`; CREATE TABLE `world`.`logs` ( `logs_id` int(11) NOT NULL auto_increment, `ts` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, `message` varchar(255) character set utf8 NOT NULL, PRIMARY KEY (`logs_id`) ) ENGINE=MyISAM; DELIMITER $$ DROP TRIGGER IF EXISTS logs_bi $$ CREATE TRIGGER logs_bi BEFORE INSERT ON City FOR EACH ROW BEGIN SELECT DATA_LENGTH+INDEX_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='world' AND TABLE_NAME='LOGS' INTO @estimated_table_size; IF (@estimated_table_size > 25*1024) THEN SELECT 0 FROM `logs table is full` INTO @error; END IF; END $$ DELIMITER ;
No more than 25KB of storage is allowed for this table. Let's put it to the test:
mysql> INSERT INTO logs (message) VALUES ('this line is 31 characters long'); Query OK, 1 row affected (0.00 sec) mysql> INSERT INTO logs SELECT * FROM logs; Query OK, 1 row affected (0.00 sec) Records: 1 Duplicates: 0 Warnings: 0 mysql> INSERT INTO logs SELECT * FROM logs; Query OK, 2 rows affected (0.01 sec) Records: 2 Duplicates: 0 Warnings: 0 ... mysql> INSERT INTO logs SELECT * FROM logs; Query OK, 256 rows affected (1.84 sec) Records: 256 Duplicates: 0 Warnings: 0 mysql> INSERT INTO logs SELECT * FROM logs; ERROR 1146 (42S02): Table 'world.logs table is full' doesn't exist mysql> INSERT INTO logs (message) VALUES ('this line is 31 characters long'); ERROR 1146 (42S02): Table 'world.logs table is full' doesn't exist
A few important notes:
- INFORMATION_SCHEMA only presents estimated size.
- For InnoDB, small tables may claim to possess much more storage than they really do (see this post by MySQL Performance Blog).
- InnoDB does not release storage (unless you use TRUNCATE or ALTER TABLE), which means even if you delete rows from the table, it still occupies the same storage.
- Memory tables do not release memory unless you use TRUNCATE or ALTER TABLE.
- You may wish to limit table size by row count. There, again, INFORMATION_SCHEMA only provides an estimated value, and querying InnoDB for count(*) is a lengthy operation.
A more interesting implementation of table size limitation is the notion of rotating tables. More on that in the next post.
More to come
In the next and final part we will look at some problems which cannot be solved with triggers due to current trigger limitations.
comments powered by Disqus


Congratulations! You have created your own DotNetNuke Module. Please take a few minutes to read this document, which will help you install and configure your new module.
Due to limitations in the templating capabilities of Visual Studio, you will need to manually rename a couple of folders before you continue.
Rename /App_Code/ModuleName to /App_Code/EasyDNNnewsAdvancedViews
Rename /DesktopModules/ModuleName to /DesktopModules/EasyDNNnewsAdvancedViews
This can be accomplished in your development environment by right-clicking the folder name in the Solutions Explorer and selecting Rename from the menu.
In addition, as the main project uses Visual Basic you need to add a <codeSubDirectories> node to your web.config as shown below:
<codeSubDirectories>
<add directoryName="EasyDNNnewsAdvancedViews" />
</codeSubDirectories>
This node is in the <system.web><compilation> node, and there is a commented out example in release.config.
The information in this page is only an overview of the DotNetNuke Web Application Framework. For more information, visit www.dotnetnuke.com.


The Bathroom Sink
- Typography
- Icons
- Grid
- Buttons
- Button Groups
- Button Dropdowns
- Button Split
- Forms
- Panels
- Tables
- Alerts
- List
- Labels
- Pagination
- Modals
- Tooltips
- Date Pickers
- Progress Bars
- Sliders
- Nav Bars
- Loading States
Headline 1
Headline 2
Headline 3
Headline 4
Headline 5
Headline 6
A very important headline
This is a paragraph that says stuff. It says stuff, but at the same time doesn't say anything. This is a paragraph that says stuff. It says stuff, but at the same time doesn't say anything.
This is a paragraph that says stuff. It says stuff, but at the same time doesn't say anything. This is a paragraph that says stuff. It says stuff, but at the same time doesn't say anything.
An icon font by Jake called "juicons"
Panel Heading
Panel Subheading
This is a paragraph inside a panel.
Panel Heading
Panel Subheading
| Name | Age | Sex | Location |
|---|---|---|---|
| Jake Fleming | ??? | M | Chicago, IL |
| Jake Fleming | ??? | M | Chicago, IL |
| Jake Fleming | ??? | M | Chicago, IL |
| Jake Fleming | ??? | M | Chicago, IL |
| Jake Fleming | ??? | M | Chicago, IL |
| Name | Age | Sex | Location |
|---|---|---|---|
| Jake Fleming | ??? | M | Chicago, IL |
| Jake Fleming | ??? | M | Chicago, IL |
| Jake Fleming | ??? | M | Chicago, IL |
| Jake Fleming | ??? | M | Chicago, IL |
| Jake Fleming | ??? | M | Chicago, IL |
Secondary Primary Success Error Warning Info
Lorem ipsum dolor sit amet. Cras quis metus nec mi volutpat ultrices. Nulla facilisi. Nam vel tincidunt nibh, in venenatis turpis. Mauris risus leo, accumsan nec hendrerit placerat, dapibus eget ligula. Vivamus commodo felis ac felis pellentesque convallis. Duis porttitor, ligula quis elementum euismod, lectus dui condimentum risus, quis sodales augue metus vel metus. Mauris eu purus mi. Mauris porttitor tincidunt felis nec faucibus.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras quis metus nec mi volutpat ultrices. Nulla facilisi. Nam vel tincidunt nibh, in venenatis turpis. Mauris risus leo, accumsan nec hendrerit placerat, dapibus eget ligula. Vivamus commodo felis ac felis pellentesque convallis. Duis porttitor, ligula quis elementum euismod, lectus dui condimentum risus, quis sodales augue metus vel metus. Mauris eu purus mi. Mauris porttitor tincidunt felis nec faucibus.
Jake
Today
Just wanted to let everyone know, I'm currently looking for pizza. You have some? I'll take it. You don't? Go get some and give it to me. Thanks, bye.
The Right Stuff
There's something about having the right stuff that just feels right, man. When you got it, you just got it. Everything goes right. It doesn't go wrong. Maybe it's just me, but having the right stuff is just so...right. Ya know?
Things on the calendar
I had a dream that I was eating pizza all night long and my best friend Slothilda was riding on my back like a magic carpet! I can't wait to go back to sleep so I can dream of pizza and friends again. First I must get a midnight snack...
Jake
Today
Today, I felt like having a cheeseburger instead!
Robots!
All my selfies from yesterday
All my selfies from yesterday
Pizza cat goes faster and faster
Pizza cat goes faster and faster Pizza cat goes faster and faster Pizza cat goes faster and faster Pizza cat goes faster and faster .


MULHOLLAND DRIVE A film review by Jeremiah Kipp Copyright 2001 filmcritic.com
The dream resembles a TV-movie, and reality itself is fragmented and torn. David Lynch's Mulholland Drive is more than just a curiosity piece expanded from a scrapped TV-pilot, though it uses the forms and conventions of television to explore the increasingly addled fantasies of a would-be starlet. Those who found Lost Highway an audacious stunt, transforming its protagonist into someone else at the midway point, will be flummoxed by Lynch's askew storytelling methods here. Not only do the characters morph into deeper representations of their secret selves, the entire schematic approach to the mini-series dissipates into an altered state.
To the tune of composer Angelo Badalamenti's wine-dark funereal melodies, Lynch forages his way into the nocturnal avenues and expressways of Los Angeles. On Mulholland Drive, a beautiful, raven-haired amnesiac (Laura Harring) staggers from the twisted wreckage of a black limosine and makes her way through the night-shadowed Hollywood Hills toward the beckoning city lights. The sound of her high heels is preternaturally loud as she evades impending pursuers, hiding away in the tangled bushes surrounding a residential apartment complex.
The clear light of day brings no comfort. Two men (Patrick Fischler and Michael Cooke) in a coffee shop recount a nightmare about some strange, shadowy figure that peers through walls and lurks behind the diner, a controlling force that brings death. To prove there's no such thing as phantoms, the men investigate the neighboring alleyway and make a startling discovery.
Arriving in L.A. for the first time is a bright-eyed innocent named Betty (Naomi Watts), filled with na´ve dreams of becoming a movie star. Temporarily staying at her aunt's opulent home at 1612 Havenhurst (a Lynch preoccupation: showing us Where We Are), her first brush with Hollywood may shatter those illusions. Before this fledgling has a chance to spread her wings, she finds a newfound friend and roommate in the helpless amnesiac. Drawn into the mystery of "Rita's" identity, the two women attempt to uncover the truth. Along the way, a savage attraction blooms between them that could be the start of something exquisite and hazardous.
To delve further into this labyrinth would be a disservice to any audience open to forming their own subjective connections and analysis. Suffice to say, these subplots merge together, involving gangsters and studio moguls, magicians and chanteuses, detectives and assassins, red curtains and pinheaded villains, spare hotel rooms with hissing radiators. There are spontaneous bursts of violence (like when a film director, played by intense, bespectacled Jason Theroux, smashes the windows and headlights of a posh limo with his trusty golf club) and sexual forays that might be described as subterranean. Lynch's preoccupations with noir's form and graphic design prove an ideal match for the impassive, sparse cityscapes of the west coast. "Welcome To Los Angeles" is one of the first signs glimpsed in transit; it has rarely felt so foreboding.
Presuming that Mulholland Drive takes us deeper into fantasy is more than shortsighted; it's a misnomer. Inner feelings of sentiment and dread directly affect the external images, remaining truthful to Lynch's heartfelt observation of the world. Setting aside logic, it's better to consider the Lynchian mold as an emotional, musical tapestry, one that filters into collective anxieties. There's nothing obscure about the question of self, an obstacle Betty and Rita both must confront. Romance and betrayal morph them into new roles. Lingering underneath the starlet might be a calculating rube, under the seemingly timid amnesiac stirs an ever-ripening sensuality.
Sketched in muted colors and pervasive darkness by superb cinematographer Peter Deming (who also lensed Lost Highway), the standards of television rely on conventional medium-shots and close-ups to fit the small screen. Lynch makes advantageous use of those unwritten rules, though he contorts them through his unusual camera placements and penchant for lingering on obscure beats (who else would linger on a cup of espresso during a confrontation scene, thereby making the cup of espresso into a menacing artifact?) As the characters merge into something Other (or, alternately, become fully realized versions of themselves), Deming's photography becomes more ragged and hyperreal, accompanied by Mary Sweeney's serrated knife-edge editing technique of shock cuts.
Holding this bundle of nerve ends together are remarkable ensemble performances from startling newcomers and established veterans: legendary Amy Miller as a freakishly maternal hotel caretaker; Dan Hedaya as a volcanic movie financier; Lafayette Montgomery as a soft-spoken cowboy with murder in his eyes ("You'll see me one more time if you're good. You'll see me two more times if you're bad."). The real finds are Naomi Watts and Laura Harring, whose balancing act recalls Shelley Duvall and Sissy Spacek in Robert Altman's Two Women. They're the lifeblood of Mulholland Drive, offering richly calibrated incarnations of womanhood. Watts and Haring are poised for triumphant careers, two more reasons why Lynch and his collaborators have created a masterpiece. As they say in show business, this is where the magic happens.

Visit filmcritic.com on the Web at http://www.filmcritic.com
========== X-RAMR-ID: 29608 X-Language: en X-RT-ReviewID: 251703 X-RT-TitleID: 1110157 X-RT-SourceID: 178 X-RT-AuthorID: 1137 X-RT-RatingText: 5/5
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


Team Member Profile
Steven Paul
Engineer
ID: # 1
Email:
<EMAIL_ADDRESS>Github:
etown285
Loraine Bliemegger
Manager
ID: # 2
Email:
<EMAIL_ADDRESS>Office Number: 1
Alar Paul
Intern
ID: # 3
Email:
<EMAIL_ADDRESS>School: Elizabethtown College


MY FATHER THE HERO A film review by Scott Renshaw Copyright 1994 Scott Renshaw
Starring: Gerard Depardieu, Katherine Heigl, Dalton James, Faith Prince. Screenplay: Francis Veber & Charlie Peters. Director: Steve Miner.
For a while there, I had declared a personal moratorium on Disney's live-action formula pictures. Although I found COOL RUNNINGS moderately entertaining, I realized that was about as much as I could expect: a smile here, a chuckle there, something I'd take my kids to see if I had any and wanted to get them out of the house on a Saturday afternoon. With the presence of Gerard Depardieu, I had slightly higher hopes for MY FATHER THE HERO, but I was kidding myself. While he lends a roguish charm to the proceedings, he's still trapped in a movie which seems designed more to divert than to entertain.
Depardieu plays Andre, a divorced father who has planned a Bahamian vacation to spend time with his fourteen-year-old daughter Nicole (Katherine Heigl). Andre has been mostly absentee in recent years, and as a result Nicole has developed a rather confused attitude towards her father. When she falls for a handsome island resident (Dalton James), she tries to impress him by concocting a wild story about her past, including telling him that Andre is her lover. Word spreads quickly around the resort, and Andre finds himself tremendously confused at the reactions he's getting. Eventually, Andre becomes privvy to the story, and spins an even more complicated yarn in an effort to win back his daughter's affections.
It would be one thing if MY FATHER THE HERO were simply predictable, which it is, but it is also just badly written. MY FATHER THE HERO is based on a French film I have not seen titled MON PERE, CE HEROS, but it is hard to believe that the characters could have been as fuzzy as they are here. We are supposed to understand that Andre has a selfish streak and a tendency to disappear from people's lives, asserted by Nicole and emphasized by a telephone relationship with a girlfriend who doesn't appear until the last scene (in a cameo which shouldn't be a surprise if you recognize the voice). However, we never see any indication in his interaction with Nicole that he is anything but a completely doting father. It is she who tries to distance herself from Andre, not the other way around, so her subsequent string of lies doesn't seem particularly motivated. The lies are just a device, and even if we believe it's just adolescence at work there's no particular reason to care. One doesn't necessarily expect well-rounded characters from a film like MY FATHER THE HERO, but one should at leas find reasonably coherent types.
Still, as silly and incoherent as the script may be, Gerard Depardieu still gets to read many of the lines, and he has superb comic timing. Once Andre is part of his daughter's fabrication, he plays some light and clever scenes with the object of her affections, bland Bill Campbell look-alike Dalton James. Depardieu has a pleasant rapport with Katherine Heigl, and with a flirtatious tourist played by Faith Prince. But it's part of the problem that he has such a rapport with everyone; if part of the point is that Andre needs to become a better father and a more selfless person, we never see any indication that he is anything but a perfectly nice guy, if slightly overprotective. There would have been so many more comic possibilities in a rakish playboy being saddled with everyone's belief that he is a cradle-robber. Heigl is lovely as Nicole, perhaps too lovely; I'm not sure why she'd need to lie to hook anyone.
MY FATHER, THE HERO is wholesome, good-natured and does virtually nothing to offend. But it needs more than that, namely something to make it worth ninety minutes of anyone's time. Gerard Depardieu is fun to watch, and proves surprisingly adept at physical comedy. It would have been nice to see him work with a script that seemed to have any imagination or sense of structure behind it.
On the Renshaw scale of 0 to 10 heroes: 5.
-- Scott Renshaw Stanford University Office of the General Counsel
.
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


Index
All Classes|All Packages
P
- PingToClient - Class in it.polimi.ingsw.events.servertoclient
-
This event represents the ping that verifies that the client is connected.
- PingToClient() - Constructor for class it.polimi.ingsw.events.servertoclient.PingToClient
- PingToServer - Class in it.polimi.ingsw.events.clienttoserver
-
This event represents the ping that verifies the connection with the server.
- PingToServer() - Constructor for class it.polimi.ingsw.events.clienttoserver.PingToServer
- Player - Class in it.polimi.ingsw.model.game
-
This class represents the player.
- Player(String) - Constructor for class it.polimi.ingsw.model.game.Player
-
constructor of the class
- PlayerInformationToClient - Class in it.polimi.ingsw.events.servertoclient.supportclass
-
This class represents the structure of the player information to send to the client.
- PlayerInformationToClient(String, ArrayList<Resource>, Map<Resource, Integer>, ArrayList<Resource>, ArrayList<Resource>, ArrayList<LeaderCardToClient>, ArrayList<DevelopmentCardToClient>, ArrayList<Integer>, int) - Constructor for class it.polimi.ingsw.events.servertoclient.supportclass.PlayerInformationToClient
-
Constructs the structure of the player information.
- PlayerNameController - Class in it.polimi.ingsw.client.gui.controllergui
-
This class represents the controller of the player name scene of the GUI application.
- PlayerNameController() - Constructor for class it.polimi.ingsw.client.gui.controllergui.PlayerNameController
- playersFaithTrack - Variable in class it.polimi.ingsw.model.game.Game
- PlayerTest - Class in it.polimi.ingsw.model.game
-
This class tests the Player class.
- PlayerTest() - Constructor for class it.polimi.ingsw.model.game.PlayerTest
- playerView(ActionEvent) - Method in class it.polimi.ingsw.client.gui.controllergui.PlayerViewController
-
Updates the scene with the information of another player.
- PlayerViewController - Class in it.polimi.ingsw.client.gui.controllergui
-
This class represents the controller of the player view scene of the GUI application.
- PlayerViewController() - Constructor for class it.polimi.ingsw.client.gui.controllergui.PlayerViewController
- playLorenzo() - Method in class it.polimi.ingsw.controller.turns.LorenzoTurn
-
Metod who permit Lorenzo to perform his turn
- printAdditionalDeposit() - Method in class it.polimi.ingsw.client.cli.views.marketview.NewDepositView
-
Prints the visualization for the additional deposits
- printCard(int) - Method in class it.polimi.ingsw.client.cli.views.leadercardview.LeaderCardVisualization
-
Returns a line of the representation
- printCard(int) - Method in class it.polimi.ingsw.client.cli.views.productionview.DevelopmentCardVisualization
-
returns a line of the representation
- printChoise() - Method in class it.polimi.ingsw.client.cli.views.otherviews.InitialResourceView
-
Prints the visualization of the initial resource
- printFaithTrack() - Method in class it.polimi.ingsw.client.cli.views.otherviews.FaithTrackView
-
Print the visualization of the faith track for the user
- printLine(int) - Method in enum it.polimi.ingsw.client.cli.views.leadercardview.LeaderCardSymbols
-
Returns a line of the representation
- printLorenzoTurn(String, int) - Method in class it.polimi.ingsw.client.cli.views.CLIHandler
-
This class prints the "decision" made by Lorenzo and his position on the faithTrack
- printMessage() - Method in class it.polimi.ingsw.client.cli.views.Messages
-
This method handles the print of the message inside the box and centres it
- ProductedMaterials - Enum in it.polimi.ingsw.model.developmentcard
-
enum class for the material produced from the development cards
- productionsActivation(boolean, Resource, Resource, ProductedMaterials, ArrayList<Boolean>, ArrayList<Resource>, ArrayList<Boolean>) - Method in class it.polimi.ingsw.controller.turns.ActivateProductionTurn
-
Method that manage the production turn
- ProductionSelectionView - Class in it.polimi.ingsw.client.cli.views.productionview
-
This class is the visualization of the production choice given to the user
- ProductionSelectionView(DevelopmentCardView, AdditionalProductionView, TotalResourceCounter) - Constructor for class it.polimi.ingsw.client.cli.views.productionview.ProductionSelectionView
-
Constructor of the class initializes all the data structure
- PRODUTCIONLVL1 - it.polimi.ingsw.client.cli.views.leadercardview.LeaderCardSymbols
- PRODUTCIONLVL2 - it.polimi.ingsw.client.cli.views.leadercardview.LeaderCardSymbols
- PURPLE - it.polimi.ingsw.model.developmentcard.CardColor
All Classes|All Packages


Home
Solutions
Education
Government
Manufacturing
Software Solutions
Mobile
RIA
Products
PC products
Mobile products
All products
Company
About Us
Press


Taiwan to host ITSA annual summit in 2022
Leaders of transportation safety bodies from 17 countries likely to attend
by Matthew StrongTaiwan prepares for 2022 ITSA summit. (CNA photo)
TAIPEI (Taiwan News) – Taiwan has won the right to host the International Transportation Safety Association’s (ITSA) annual summit meeting in 2022, reports said Saturday (November 23).
Earlier this month, the Flight Safety Foundation also held its annual conference in Taipei.
ITSA was founded in 1993 by transportation safety bodies of the United States, Canada, Sweden and the Netherlands, and had as its main mission to exchange information to improve general transportation safety. Taiwan joined the group in 2000 and hosted the summit in 2010, the Central News Agency reported.
The new edition of the event is likely to boost Taiwan’s international visibility as it seeks to join more global bodies, including the International Civil Aviation Organization, where China has succeeded in keeping the island nation out so far.
Taiwan has proved willing to share its experiences in general transportation safety with other countries, and invited Great Britain, France and South Korea to send delegations to learn from the island, the CNA report said.
The 2022 summit will be an important platform to share ideas, as participants are likely to include the heads of the safety groups from 17 countries, including Japan, South Korea, Singapore and India.


Groupby¶
-
class
ddf_library.bases.groupby.
GroupedDDF
(ddf_var)¶ Bases:
ddf_library.ddf.DDF
A set of methods for aggregations on a DDF, created by DDF.group_by().
The available aggregate functions are:
- avg: Computes average values for each numeric columns for each group;
- mean: Alias for avg;
- count: Counts the number of records for each group;
- first’: Returns the first element of group;
- last’: Returns the last element of group;
- max’: Computes the max value for each numeric columns for each group;
- min’: Computes the min value for each numeric column for each group;
- sum’: Computes the sum for each numeric columns for each group;
- list’: Returns a list of objects with duplicates;
- set’: Returns a set of objects with duplicate elements
-
OPT_LAST
= 'last'¶
-
OPT_OTHER
= 'other'¶
-
OPT_SERIAL
= 'serial'¶
-
STATUS_COMPLETED
= 'COMPLETED'¶
-
STATUS_MATERIALIZED
= 'MATERIALIZED'¶
-
STATUS_PERSISTED
= 'PERSISTED'¶
-
STATUS_TEMP_VIEW
= 'TEMP_VIEWED'¶
-
STATUS_WAIT
= 'WAIT'¶
-
add_column
(data2, suffixes=None)¶ Merge two DDF, column-wise.
Is it a Lazy function: No
Parameters: - data2 – The second DDF;
- suffixes – Suffixes in case of duplicated columns name (default, [“_l”,”_r”]);
Returns: DDF
Example: >>> ddf1.add_column(ddf2)
-
agg
(**exprs)¶ Compute aggregates and returns the result as a DDF.
Parameters: - exprs – A single dict mapping from string to string, where the key is the column to perform aggregation on, and the value is a list of aggregation functions.
- alias – A single dict mapping from string to string, where the key is the old column name to perform aggregation on, and the value is a list of aliases for each aggregation function.
Example: >>> ddf1.group_by(['col_1']).agg(MIN=('col_2', 'min'))
-
avg
(cols, alias=None)¶ Computes average values for each numeric columns for each group.
Parameters: - cols – String or a list of columns names
- alias – String or a list of aliases
Example: >>> ddf1.group_by(group_by=['col_1']).avg(['col_2'])
-
balancer
(forced=False)¶ Repartition data in order to balance the distributed data between nodes.
Returns: DDF Example: >>> ddf1.balancer(force=True)
-
cache
()¶ Currently it is only an alias for persist().
Returns: DDF Example: >>> ddf1.cache()
-
cast
(column, cast)¶ Change the data’s type of some columns.
Is it a Lazy function: Yes
Parameters: - column – String or list of strings with columns to cast;
- cast – String or list of string with the supported types: ‘integer’, ‘string’, ‘decimal’, ‘date’, ‘date/time’;
Returns: DDF
-
columns
()¶ Returns the columns name in the current DDF.
Returns: A list of strings
-
correlation
(col1, col2)¶ Calculate the Pearson Correlation Coefficient.
When one of the standard deviations is zero so the correlation is undefined (NaN).
Parameters: - col1 – The name of the first column
- col2 – The name of the second column
Returns: The result of sample covariance
-
count
(cols, alias=None)¶ Counts the number of records for each group.
Parameters: - cols – String or a list of columns names
- alias – String or a list of aliases
Example: >>> ddf1.group_by(group_by=['col_1']).count(['col_2'])
-
count_rows
(total=True)¶ Return the number of rows in this DDF.
Parameters: total – Show the total number (default) or the number over the fragments. Returns: integer Example: >>> print(ddf1.count_rows())
-
covariance
(col1, col2)¶ Calculate the sample covariance for the given columns, specified by their names, as a double value.
Parameters: - col1 – The name of the first column
- col2 – The name of the second column
Returns: The result of sample covariance
-
cross_join
(data2)¶ Returns the cartesian product with another DDF.
Parameters: data2 – Right side of the cartesian product; Returns: DDF. Example: >>> ddf1.cross_join(ddf2)
-
cross_tab
(col1, col2)¶ Computes a pair-wise frequency table of the given columns. Also known as a contingency table. The number of distinct values for each column should be less than 1e4. At most 1e6 non-zero pair frequencies will be returned.
Is it a Lazy function: No
Parameters: - col1 – The name of the first column
- col2 – The name of the second column
Returns: DDF
Example: >>> ddf1.cross_tab(col1='col_1', col2='col_2')
-
describe
(columns=None)¶ Computes basic statistics for numeric and string columns. This include count, mean, number of NaN, stddev, min, and max.
Is it a Lazy function: No
Parameters: columns – A list of columns, if no columns are given, this function computes statistics for all numerical or string columns; Returns: A pandas DataFrame Example: >>> ddf1.describe(['col_1'])
-
distinct
(cols, opt=True)¶ Returns a new DDF containing the distinct rows in this DDF.
Is it a Lazy function: No
Parameters: - cols – subset of columns;
- opt – Tries to reduce partial output size before shuffle;
Returns: DDF
Example: >>> ddf1.distinct('col_1')
-
drop
(columns)¶ Remove some columns from DDF.
Is it a Lazy function: Yes
Parameters: columns – A list of columns names to be removed; Returns: DDF Example: >>> ddf1.drop(['col_1', 'col_2'])
-
drop_duplicates
(cols)¶ Alias for distinct.
Example: >>> ddf1.drop_duplicates('col_1')
-
dropna
(subset=None, mode='REMOVE_ROW', how='any', thresh=None)¶ Cleans missing rows or columns fields.
Is it a Lazy function: Yes, if mode is “REMOVE_ROW”, otherwise is No
Parameters: - subset – A list of attributes to evaluate;
- mode – “REMOVE_ROW”* to remove entire row (default) or “REMOVE_COLUMN” to remove a column.
- thresh – int, default None If specified, drop rows that have less than thresh non-null values. This overwrites the how parameter.
- how – ‘any’ or ‘all’. If ‘any’, drop a row if it contains any nulls. If ‘all’, drop a row only if all its values are null.
Returns: DDF
Example: >>> ddf1.dropna(['col_1'], mode='REMOVE_ROW')
-
dtypes
()¶ Returns a list of dtypes of each column on the current DDF.
Returns: a list
-
except_all
(data2)¶ Returns a new DDF with containing rows in the first frame but not in the second one while preserving duplicates. This is equivalent to EXCEPT ALL in SQL.
Is it a Lazy function: No
Parameters: data2 – second DDF; Returns: DDF Example: >>> ddf1.except_all(ddf2)
-
explode
(column)¶ Returns a new row for each element in the given array.
Is it a Lazy function: Yes
Parameters: column – Column name to be unnest; Returns: DDF Example: >>> ddf1.explode('col_1')
-
export_ddf
()¶ Export ddf data.
Returns: A list of Pandas’s DataFrame
-
fillna
(subset=None, mode='VALUE', value=None)¶ Replace missing rows or columns by mean, median, value or mode.
Is it a Lazy function: Yes, only if mode “VALUE”
Parameters: - subset – A list of attributes to evaluate;
- mode – action in case of missing values: “VALUE” to replace by parameter “value” (default); “MEDIAN” to replace by median value; “MODE” to replace by mode value; “MEAN” to replace by mean value;
- value – Value to be replaced (only if mode is “VALUE”)
Returns: DDF
Example: >>> ddf1.fillna(['col_1'], value=42)
-
filter
(expr)¶ Filters rows using the given condition.
Is it a Lazy function: Yes
Parameters: expr – A filtering function; Returns: DDF See also
Visit this link to more information about query options.
Example: >>> ddf1.filter("(col_1 == 'male') and (col_3 > 42)")
-
first
(cols, alias=None)¶ Returns the first element of group.
Parameters: - cols – String or a list of columns names
- alias – String or a list of aliases
Example: >>> ddf1.group_by(group_by=['col_1']).avg(['col_2'])
-
freq_items
(col, support=0.01)¶ Finding frequent items for columns, possibly with false positives. Using the frequent element count algorithm described in “http://dx.doi.org/10.1145/762471.762473, proposed by Karp, Schenker, and Papadimitriou”
Is it a Lazy function: No
Parameters: - col – Names of the columns to calculate frequent items
- support – The frequency with which to consider an item ‘frequent’. Default is 1%. The support must be greater than 1e-4.
Returns: DDF
Example: >>> ddf1.freq_items(col='col_1', support=0.01)
-
geo_within
(shp_object, lat_col, lon_col, polygon, attributes=None, suffix='_shp')¶ Returns the sectors that the each point belongs.
Is it a Lazy function: No
Parameters: - shp_object – The DDF with the shapefile information;
- lat_col – Column which represents the Latitude field in the data;
- lon_col – Column which represents the Longitude field in the data;
- polygon – Field in shp_object where is store the coordinates of each sector;
- attributes – Attributes list to retrieve from shapefile, empty to all (default, None);
- suffix – Shapefile attributes suffix (default, ‘_shp’);
Returns: DDF
Example: >>> ddf2.geo_within(ddf1, 'LATITUDE', 'LONGITUDE', 'points')
-
group_by
(group_by)¶ Computes aggregates and returns the result as a DDF.
Is it a Lazy function: No
Parameters: group_by – A list of columns to be grouped; Returns: A GroupedDFF with a set of methods for aggregations on a DDF Example: >>> ddf1.group_by(group_by=['col_1']).mean(['col_2']).first(['col_2'])
-
hash_partition
(columns, nfrag=None)¶ Hash partitioning is a partitioning technique where data is stored separately in different fragments by a hash function.
Is it a Lazy function: No
Parameters: - columns – Columns to be used as key in a hash function;
- nfrag – Number of fragments (default, keep the input nfrag).
Example: >>> ddf2 = ddf1.hash_partition(columns=['col1', col2])
-
import_compss_data
(df_list, info=None, parquet=False)¶ Import a previous Pandas DataFrame list into DDF abstraction. Replace old data if DDF is not empty.
Parameters: - df_list – DataFrame input
- parquet – if data is saved as list of parquet files
- info – (Optional) A list of columns names, data types and size in each partition;
Returns: DDF
Example: >>> ddf1 = DDF().import_partitions(df_list)
-
intersect
(data2)¶ Returns a new DDF containing rows in both DDF. This is equivalent to INTERSECT in SQL.
Is it a Lazy function: No
Parameters: data2 – DDF Returns: DDF Example: >>> ddf2.intersect(ddf1)
-
intersect_all
(data2)¶ Returns a new DDF containing rows in both DDF while preserving duplicates. This is equivalent to INTERSECT ALL in SQL.
Is it a Lazy function: No
Parameters: data2 – DDF Returns: DDF Example: >>> ddf2.intersect_all(ddf1)
-
join
(data2, key1=None, key2=None, mode='inner', suffixes=None, keep_keys=False, case=True)¶ Joins two DDF using the given join expression.
Is it a Lazy function: No
Parameters: - data2 – Second DDF;
- key1 – List of keys of first DDF;
- key2 – List of keys of second DDF;
- mode – How to handle the operation of the two objects. {‘left’, ‘right’, ‘inner’}, default ‘inner’
- suffixes – A list of suffix to be used in overlapping columns. Default is [‘_l’, ‘_r’];
- keep_keys – True to keep keys of second DDF (default is False);
- case – True to keep the keys as case sensitive;
Returns: DDF
Example: >>> ddf1.join(ddf2, key1=['col_1'], key2=['col_1'], mode='inner')
-
kolmogorov_smirnov_one_sample
(col, distribution='norm', mode='asymp', args=None)¶ Perform the Kolmogorov-Smirnov test for goodness of fit. This implementation of Kolmogorov–Smirnov test is a two-sided test for the null hypothesis that the sample is drawn from a continuous distribution.
Is it a Lazy function: No
param col: sample column name; param distribution: Name of distribution (default is ‘norm’); param mode: Defines the distribution used for calculating the p-value. - ‘approx’ : use approximation to exact distribution - ‘asymp’ : use asymptotic distribution of test statistic Parameters: args – A tuple of distribution parameters. Default is (0,1); Returns: KS statistic and two-tailed p-value See also
Visit this link to see all supported distributions.
Note
The KS statistic is the absolute max distance between the CDFs of the two samples. The closer this number is to 0 the more likely it is that the two samples were drawn from the same distribution.
The p-value returned by the KS test has the same interpretation as other p-values. You reject the null hypothesis that the two samples were drawn from the same distribution if the p-value is less than your significance level.
Example: >>> ddf1.kolmogorov_smirnov_one_sample(col='col_1')
-
last
(cols, alias=None)¶ Returns the last element of group.
Parameters: - cols – String or a list of columns names
- alias – String or a list of aliases
Example: >>> ddf1.group_by(group_by=['col_1']).avg(['col_2'])
-
list
(cols, alias=None)¶ Returns a list of objects with duplicates;
Parameters: - cols – String or a list of columns names
- alias – String or a list of aliases
Example: >>> ddf1.group_by(group_by=['col_1']).avg(['col_2'])
-
map
(f, alias)¶ Apply a function to each row of this DDF.
Is it a Lazy function: Yes
Parameters: - f – Lambda function that will take each element of this data set as a parameter;
- alias – name of column to put the result;
Returns: DDF
Example: >>> from ddf_library.columns import col >>> from ddf_library.types import IntegerType >>> ddf1.map(col('col_0').cast(IntegerType), 'col_0_new')
-
max
(cols, alias=None)¶ Computes the max value for each numeric columns for each group.
Parameters: - cols – String or a list of columns names
- alias – String or a list of aliases
Example: >>> ddf1.group_by(group_by=['col_1']).avg(['col_2'])
-
mean
(cols, alias=None)¶ Alias for avg. Computes average values for each numeric columns for each group.
Parameters: - cols – String or a list of columns names
- alias – String or a list of aliases
Example: >>> ddf1.group_by(group_by=['col_1']).mean(['col_2'])
-
min
(cols, alias=None)¶ Computes the min value for each numeric column for each group.
Parameters: - cols – String or a list of columns names
- alias – String or a list of aliases
Example: >>> ddf1.group_by(group_by=['col_1']).min(['col_2'])
-
num_of_partitions
()¶ Returns the number of data partitions (Task parallelism).
Returns: integer Example: >>> print(ddf1.num_of_partitions())
-
optimization_ops
= ['other', 'serial', 'last']¶
-
parallelize
(df, num_of_parts='*')¶ Distributes a DataFrame into DDF.
Parameters: - df – DataFrame input
- num_of_parts – number of partitions (default, ‘*’ meaning all cores available in master CPU);
Returns: DDF
Example: >>> ddf1 = DDF().parallelize(df)
-
persist
()¶ Compute the current flow and keep in disk.
Returns: DDF Example: >>> ddf1.persist()
-
range_partition
(columns, ascending=None, nfrag=None)¶ Range partitioning is a partitioning technique where ranges of data is stored separately in different fragments.
Is it a Lazy function: No
Parameters: - columns – Columns to be used as key;
- ascending – Order of each key (True to ascending order);
- nfrag – Number of fragments (default, keep the input nfrag).
Example: >>> ddf2 = ddf1.range_partition(columns=['col1', col2], >>> ascending=[True, False])
-
rename
(old_column, new_column)¶ Returns a new DDF by renaming an existing column. This is a no-op if schema does not contain the given column name.
Is it a Lazy function: Yes
Parameters: - old_column – String or list of strings with columns to rename;
- new_column – String or list of strings with new names.
Returns: DDF
-
repartition
(nfrag=-1, distribution=None)¶ Repartition a distributed data based in a fixed number of partitions or based on a distribution list.
Parameters: - nfrag – Optional, if used, the data will be partitioned in nfrag fragments.
- distribution – Optional, a list of integers where each element will represent the amount of data in this index.
Returns: DDF
-
replace
(replaces, subset=None, regex=False)¶ Replace one or more values to new ones.
Is it a Lazy function: Yes
Parameters: - replaces – dict-like to_replace;
- subset – A list of columns to be applied (default is None to applies in all columns);
Returns: DDF
Example: >>> ddf1.replace({0: 'No', 1: 'Yes'}, subset=['col_1'])
-
sample
(value=None, seed=None)¶ Returns a sampled subset.
Is it a Lazy function: No
Parameters: - value – None to sample a random amount of records (default), a integer or float N to sample a N random records;
- seed – optional, seed for the random operation.
Returns: DDF
Example: >>> ddf1.sample(10) # to sample 10 rows >>> ddf1.sample(0.5) # to sample half of the elements >>> ddf1.sample() # a random sample
-
schema
()¶ Returns a schema table where each row contains the name columns and its data types of the current DDF.
Returns: a Pandas’s DataFrame
-
select
(columns)¶ Projects a set of expressions and returns a new DDF.
Is it a Lazy function: Yes
Parameters: columns – list of column names (string); Returns: DDF Example: >>> ddf1.select(['col_1', 'col_2'])
-
select_expression
(*exprs)¶ Projects a set of SQL expressions and returns a new DDF. This is a variant of select() that accepts SQL expressions.
Is it a Lazy function: Yes
Parameters: exprs – SQL expressions. Returns: DDF Note
These operations are supported by select_exprs:
- Arithmetic operations except for the left shift (<<) and right shift (>>) operators, e.g., ‘col’ + 2 * pi / s ** 4 % 42 - the_golden_ratio
- list and tuple literals, e.g., [1, 2] or (1, 2)
- Math functions: sin, cos, exp, log, abs, log10, …
- You must explicitly reference any local variable that you want to use in an expression by placing the @ character in front of the name.
- This Python syntax is not allowed:
- Function calls other than math functions.
- is/is not operations
- if expressions
- lambda expressions
- list/set/dict comprehensions
- Literal dict and set expressions
- yield expressions
- Generator expressions
- Boolean expressions consisting of only scalar values
- Statements: Neither simple nor compound statements are allowed.
See also
Visit this link to more information about eval options.
Example: >>> ddf1.select_exprs('col1 = age * 2', "abs(age)")
-
set
(cols, alias=None)¶ Returns a set of objects with duplicate elements.
Parameters: - cols – String or a list of columns names
- alias – String or a list of aliases
Example: >>> ddf1.group_by(group_by=['col_1']).set(['col_2'])
-
show
(n=20)¶ Print the DDF contents in a concatenated pandas’s DataFrame.
Parameters: n – A number of rows in the result (default is 20); Returns: DataFrame in stdout Example: >>> ddf1.show()
-
sort
(cols, ascending=None)¶ Returns a sorted DDF by the specified column(s).
Is it a Lazy function: No
Parameters: - cols – list of columns to be sorted;
- ascending – list indicating whether the sort order is ascending (True) for each column (Default, True);
Returns: DDF
Example: >>> dd1.sort(['col_1', 'col_2'], ascending=[True, False])
-
split
(percentage=0.5, seed=None)¶ Randomly splits a DDF into two DDF.
Is it a Lazy function: No
Parameters: - percentage – percentage to split the data (default, 0.5);
- seed – optional, seed in case of deterministic random operation;
Returns: DDF
Example: >>> ddf2a, ddf2b = ddf1.split(0.5)
-
subtract
(data2)¶ Returns a new DDF with containing rows in the first frame but not in the second one. This is equivalent to EXCEPT in SQL.
Is it a Lazy function: No
Parameters: data2 – second DDF; Returns: DDF Example: >>> ddf1.subtract(ddf2)
-
sum
(cols, alias=None)¶ Computes the sum for each numeric columns for each group.
Parameters: - cols – String or a list of columns names
- alias – String or a list of aliases
Example: >>> ddf1.group_by(group_by=['col_1']).sum(['col_2'])
-
take
(num)¶ Returns the first num rows.
Is it a Lazy function: No
Parameters: num – number of rows to retrieve; Returns: DDF Example: >>> ddf1.take(10)
-
to_df
(columns=None, split=False)¶ Returns the DDF contents as a pandas’s DataFrame.
Parameters: - columns – Optional, A column name or list of column names;
- split – True to keep data in partitions (default, False);
Returns: Pandas’s DataFrame
Example: >>> df = ddf1.to_df(['col_1', 'col_2'])
-
union
(data2)¶ Combine this data set with some other DDF. Also as standard in SQL, this function resolves columns by position (not by name). Union can only be performed on tables with the same number of columns.
Is it a Lazy function: No
Parameters: data2 – Returns: DDF Example: >>> ddf1.union(ddf2)
-
union_by_name
(data2)¶ - Combine this data set with some other DDF. This function resolves
- columns by name (not by position).
Is it a Lazy function: No
Parameters: data2 – Returns: DDF Example: >>> ddf1.union_by_name(ddf2)
-
unpersist
()¶


Which Way Do You Sway?
A fun political meter to measure your bias!
Should unicorns be a protected class?
Yes
No
Should painted crosswalks exist at every possible crossing?
Yes
No
Should we build an urban butterfly sanctuary?
Yes
No
Which way do I sway?
You are conservative.
You are moderate.
You are liberal.


This is valid HTML syntax.
It works on attribute syntax.
It allows to conditionally bind a class
Or style properties
And works with custom components!
When user clicks the button, it calls the "saveUser" function on the
component instance and passes the underlying event.
You can also create events for custom components. Here we have a depleted
event, and it's going to call the "soundAlarm" function on the component
instance when it fires.
There are also shortcut event bindings! The submit function on the component
instance will be called when the user presses control and enter (this is an
Angular feature).
userName has a reference to the input element
Try changing to true!
Need to repeat puppies here
app.component.ts: Add a 'videos' property, set the value as empty array.
app.component.ts: Inside of the 'search' method assign FAKE_VIDEOS, to the
component 'videos' property.
app.component.ts: Add a 'search' method on the component, that takes a
'searchString' parameter.
app.html: Add a click handler to the button, call 'search' method and pass
the input value (Actual search functionality will be implemented in the next
exercise)
app.html: Add a message saying 'no videos' which is displayed only when the
videos array is empty
#Bonus app.component.ts: Right now it takes pressing a search button to
display the videos. Instead display all videos by default.
app.component.ts: Inside of the 'search' method filter FAKE_VIDEOS and only
return videos with the title containing searchString. (hint: use .includes
or .indexOf string methods)
app.html: Also display a thumbnail
app.html: Iterate over the videos using '*ngFor', and display a title for
each
app.html: Add a button tag with a text 'search'
app.html: Add an input tag with a 'placeholder' attribute set to 'video'
Intro
Angular has a very expressive template system, which takes HTML as a base,
and extends it with custom elements
Interpolation
Double curlies include the appropriate component property value
Backticks ` `, are magic quotes that allow multi-line strings and
text interpolation.
Interpolation
Simple expressions are also allowed, you can run a component method (like
fullName() below), or calculate 323213+34234
Exercise
In the next slide you'll edit a component template to create a simple
header and search form. The result will look like this:
Properties
String interpolation {{ curlies }} can also be used to pass a value
to a child element's attribute
Property Binding
Better option is to use property binding [attribute] = property
You can use arbitrary expressions in the binding.
Event binding: (event)
For handling user actions we can use event bindings. To do that we wrap
the event name in parentheses, and pass an expression performing required
action:
While parentheses are used for event binding: (event), "on-" can
also be used, e.g. on-click is the same as (click).
Event binding shortcuts
When we need to access an HTML element or an Angular component from the
template, we can mark it with #name, and it becomes available as
name everywhere in the template:
We'll learn a better way to work with inputs in Forms milestone.
Event binding shortcuts
Angular also provides a shortcut for handling keyboard shortcuts. Try
updating the message by pressing Control + Enter in the input.
Conditional Display (*ngIf)
This conditional expression will add or remove an element from the DOM if
it evaluates as a truthy
Exercise 2
In the next slide you'll add a click handler to the search button, and
display a message for the case where no videos were found. The result will
look like this:
Repeating elements
Let's say you have an array of puppies, and want to display all of them on
the page. Angular has a special syntax for that called *ngFor,
let's see how it works on the next slide
Repeating elements (*ngFor)
Here *ngFor repeats HTML element it's attached to (li in this case)
for every single puppy in the puppies array
HTML attributes in Angular are case sensitive:
*ngfor won't work, *ngFor will
Exercise 3
In the next slide you'll finally display the videos! The result will
look like this:


Create from scratch your brand with us. Step by step it will become a reality, your reality!
You have the perfect idea about what you want to do but don’t know how to delivery it in a extraordinary, unique and visual way? This pack is for you honey!
Dream logo design? check, outstanding branding? check. Well, now it is time for your professional stationery to be in that list!
We understand that today's world spin out around social networks; influencers, stores, businesses can be found in them. So it's to be expected that for your business to thrive you have to be in social media!
We are here giving you the ideal tool to achieve your goals in social media.
We can create personalized marketing strategies for you. We can develop a marketing strategy you already have visually through design. We can boost your brand and business with the best message for your ideal audience. We can advise on topics of audiovisual, marketing, advertising, brand and much more.


High Street Pheonix, Lower Parel
High Street Phoenix, formerly known as Phoenix Mills, is one of the largest shopping malls in India, situated in Lower Parel, Mumbai. Its gross floor area is 3,300,000 square feet. The mall consists of the Palladium, SkyZone and Grand Galleria. South Asia’s largest 20 lane bowling concourse, was first started here in 1996. India’s first Hyper market concept Big Bazaar was introduced in 2001 at High Street Phoenix.Phoenix Market City, Kurla West
Phoenix Market City, is one of the largest shopping malls in India, situated in Kurla, Mumbai. developed by The Phoenix Mills Co. Ltd. Spread across 4.1 million soft the mall includes 2.1 million soft of retail space which is the largest mall in India in terms of area.It houses 600 stores representing an exhaustive mix of International and National premium brands, PVR multiplex which has 14 Movie Screens and 70 Restaurants.It's sister mall in Mumbai is High Street Phoenix, located in Lower Parel. It is well centered in the heart of the city in kurla Traveling here is easy.R-City Mall, Ghatkopar West
R City Mall is a shopping mall located in Ghatkopar, Mumbai. The mall spreads across 1.2 million square feet with the capacity to house over 350 stores. The mall was opened in two phases, the total size of the first phase of the development is 750 thousand square feet.Infiniti, Malad
Infiniti Mall is a chain of shopping malls in India. It is a subsidiary of the K. Raheja Constructions which has been in the business of construction and property development since the 1960s. The first Infiniti Mall opened in 2004, in Andheri, Mumbai.Infiniti Mall launched their second property in Mumbai at MALAD, in May 2011.Oberoi Mall, Goregaon West
The Oberoi Mall opened in mid 2008 and offers 700,000 square feet of shopping, dining and entertainment. It isn't as big as some Mumbai malls. However, with a motto of "Fun, Food, Fashion, Films", it's still one of the most popular ones. The main attractions are the Lifestyle Home Center outlet, and the Central department store.


|
Nano102_112 Series BSP
V3.03.002
The Board Support Package for Nano102_112 Series
|
#include <Nano1X2Series.h>
Data Fields | |
| __IO uint32_t | CSR |
| __IO uint32_t | SAR |
| __IO uint32_t | DAR |
| __IO uint32_t | BCR |
| uint32_t | RESERVE0 [1] |
| __I uint32_t | CSAR |
| __I uint32_t | CDAR |
| __I uint32_t | CBCR |
| __IO uint32_t | IER |
| __IO uint32_t | ISR |
| __IO uint32_t | TCR |
Definition at line 2060 of file Nano1X2Series.h.
| __IO uint32_t PDMA_T::BCR |
| Bits | Field | Descriptions |
|---|---|---|
| [15:0] | PDMA_BCR | PDMA Transfer Byte Count Register |
| This field indicates a 16-bit transfer byte count of PDMA. | ||
| Note: In Memory-to-memory (PDMA_CSR [MODE_SEL] = 00) mode, the transfer byte count must be word alignment. |
Definition at line 2153 of file Nano1X2Series.h.
| __I uint32_t PDMA_T::CBCR |
| Bits | Field | Descriptions |
|---|---|---|
| [23:0] | PDMA_CBCR | PDMA Current Byte Count Register (Read Only) |
| This field indicates the current remained byte count of PDMA. | ||
| Note: These fields will be changed when PDMA finish data transfer (data transfer to destination address), |
Definition at line 2192 of file Nano1X2Series.h.
| __I uint32_t PDMA_T::CDAR |
| Bits | Field | Descriptions |
|---|---|---|
| [31:0] | PDMA_CDAR | PDMA Current Destination Address Register (Read Only) |
| This field indicates the destination address where the PDMA transfer is just occurring. |
Definition at line 2179 of file Nano1X2Series.h.
| __I uint32_t PDMA_T::CSAR |
| Bits | Field | Descriptions |
|---|---|---|
| [31:0] | PDMA_CSAR | PDMA Current Source Address Register (Read Only) |
| This field indicates the source address where the PDMA transfer is just occurring. |
Definition at line 2167 of file Nano1X2Series.h.
| __IO uint32_t PDMA_T::CSR |
| Bits | Field | Descriptions |
|---|---|---|
| [0] | PDMACEN | PDMA Channel Enable |
| Setting this bit to "1" enables PDMA's operation. | ||
| If this bit is cleared, PDMA will ignore all PDMA request and force Bus Master into IDLE state. | ||
| Note: SW_RST will clear this bit. | ||
| [1] | SW_RST | Software Engine Reset |
| 0 = No effect. | ||
| 1 = Reset the internal state machine and pointers. | ||
| The contents of control register will not be cleared. | ||
| This bit will be auto cleared after few clock cycles. | ||
| [3:2] | MODE_SEL | PDMA Mode Select |
| 00 = Memory to Memory mode (Memory-to-Memory). | ||
| 01 = IP to Memory mode (APB-to-Memory) | ||
| 10 = Memory to IP mode (Memory-to-APB). | ||
| 11 = Reserved. | ||
| [5:4] | SAD_SEL | Transfer Source Address Direction Selection |
| 00 = Transfer Source address is incremented successively. | ||
| 01 = Reserved. | ||
| 10 = Transfer Source address is fixed (This feature can be used when data where transferred from a single source to multiple destinations). | ||
| 11 = Transfer Source address is wrap around (When the PDMA_CBCR is equal to zero, the PDMA_CSAR and PDMA_CBCR register will be updated by PDMA_SAR and PDMA_BCR automatically. | ||
| PDMA will start another transfer without software trigger until PDMA_EN disabled. | ||
| When the PDMA_EN is disabled, the PDMA will complete the active transfer but the remained data which in the PDMA_BUF will not transfer to destination address). | ||
| [7:6] | DAD_SEL | Transfer Destination Address Direction Selection |
| 00 = Transfer Destination address is incremented successively | ||
| 01 = Reserved. | ||
| 10 = Transfer Destination address is fixed (This feature can be used when data where transferred from multiple sources to a single destination) | ||
| 11 = Transfer Destination address is wrapped around (When the PDMA_CBCR is equal to zero, the PDMA_CDAR and PDMA_CBCR register will be updated by PDMA_DAR and PDMA_BCR automatically. | ||
| PDMA will start another transfer without software trigger until PDMA_EN disabled. | ||
| When the PDMA_EN is disabled, the PDMA will complete the active transfer but the remained data which in the PDMA_BUF will not transfer to destination address). | ||
| [12] | TO_EN | Time-Out Enable |
| This bit will enable PDMA internal counter. While this counter counts to zero, the TO_IS will be set. | ||
| 0 = PDMA internal counter Disabled. | ||
| 1 = PDMA internal counter Enabled. | ||
| [20:19] | APB_TWS | Peripheral Transfer Width Selection |
| 00 = One word (32 bits) is transferred for every PDMA operation. | ||
| 01 = One byte (8 bits) is transferred for every PDMA operation. | ||
| 10 = One half-word (16 bits) is transferred for every PDMA operation. | ||
| 11 = Reserved. | ||
| Note: This field is meaningful only when MODE_SEL is IP to Memory mode (APB-to-Memory) or Memory to IP mode (Memory-to-APB). | ||
| [23] | TRIG_EN | TRIG_EN |
| 0 = No effect. | ||
| 1 = PDMA data read or write transfer Enabled. | ||
| Note1: When PDMA transfer completed, this bit will be cleared automatically. | ||
| Note2: If the bus error occurs, all PDMA transfer will be stopped. | ||
| Software must reset all PDMA channel, and then trig again. |
Definition at line 2114 of file Nano1X2Series.h.
| __IO uint32_t PDMA_T::DAR |
| Bits | Field | Descriptions |
|---|---|---|
| [31:0] | PDMA_DAR | PDMA Transfer Destination Address Register |
| This field indicates a 32-bit destination address of PDMA. | ||
| Note : The destination address must be word alignment |
Definition at line 2140 of file Nano1X2Series.h.
| __IO uint32_t PDMA_T::IER |
| Bits | Field | Descriptions |
|---|---|---|
| [0] | TABORT_IE | PDMA Read/Write Target Abort Interrupt Enable |
| 0 = Target abort interrupt generation Disabled during PDMA transfer. | ||
| 1 = Target abort interrupt generation Enabled during PDMA transfer. | ||
| [1] | TD_IE | PDMA Transfer Done Interrupt Enable |
| 0 = Interrupt generator Disabled when PDMA transfer is done. | ||
| 1 = Interrupt generator Enabled when PDMA transfer is done. | ||
| [5:2] | WRA_BCR_IE | Wrap Around Byte Count Interrupt Enable |
| 0001 = Interrupt enable of PDMA_CBCR equals 0 | ||
| 0100 = Interrupt enable of PDMA_CBCR equals 1/2 PDMA_BCR. | ||
| [6] | TO_IE | Time-Out Interrupt Enable |
| 0 = Time-out interrupt Disabled. | ||
| 1 = Time-out interrupt Enabled. |
Definition at line 2214 of file Nano1X2Series.h.
| __IO uint32_t PDMA_T::ISR |
| Bits | Field | Descriptions |
|---|---|---|
| [0] | TABORT_IS | PDMA Read/Write Target Abort Interrupt Status Flag |
| 0 = No bus ERROR response received. | ||
| 1 = Bus ERROR response received. | ||
| Note1: This bit is cleared by writing "1" to itself. | ||
| Note2: The PDMA_ISR [TABORT_IF] indicate bus master received ERROR response or not, if bus master received occur it means that target abort is happened. | ||
| PDMA controller will stop transfer and respond this event to software then go to IDLE state. | ||
| When target abort occurred, software must reset PDMA controller, and then transfer those data again. | ||
| [1] | TD_IS | Transfer Done Interrupt Status Flag |
| This bit indicates that PDMA has finished all transfer. | ||
| 0 = Not finished yet. | ||
| 1 = Done. | ||
| Note: This bit is cleared by writing "1" to itself. | ||
| [5:2] | WRA_BCR_IS | Wrap Around Transfer Byte Count Interrupt Status Flag |
| WRA_BCR_IS [0] (xxx1) = PDMA_CBCR equal 0 flag. | ||
| WRA_BCR_IS [2] (x1xx) = PDMA_CBCR equal 1/2 PDMA_BCR flag. | ||
| Note: Each bit is cleared by writing "1" to itself. | ||
| This field is only valid in wrap around mode. | ||
| (PDMA_CSR[DAD_SEL] =11 or PDMA_CSR[SAD_SEL] =11). | ||
| [6] | TO_IS | Time-Out Interrupt Status Flag |
| This flag indicated that PDMA has waited peripheral request for a period defined by PDMA_TCR. | ||
| 0 = No time-out flag. | ||
| 1 = Time-out flag. | ||
| Note: This bit is cleared by writing "1" to itself. |
Definition at line 2247 of file Nano1X2Series.h.
| uint32_t PDMA_T::RESERVE0[1] |
Definition at line 2154 of file Nano1X2Series.h.
| __IO uint32_t PDMA_T::SAR |
| Bits | Field | Descriptions |
|---|---|---|
| [31:0] | PDMA_SAR | PDMA Transfer Source Address Register |
| This field indicates a 32-bit source address of PDMA. | ||
| Note: The source address must be word alignment. |
Definition at line 2127 of file Nano1X2Series.h.
| __IO uint32_t PDMA_T::TCR |
| Bits | Field | Descriptions |
|---|---|---|
| [15:0] | PDMA_TCR | PDMA Timer Count Setting Register |
| Each PDMA channel contains an internal counter. | ||
| The internal counter loads the value of PDAM_TCR and starts counting down when setting PDMA_CSRx [TO_EN] register. | ||
| PDMA will request interrupt when this internal counter reaches zero and PDMA_IERx[TO_IE] is high. | ||
| This internal counter will reload and start counting when completing each peripheral request service. |
Definition at line 2262 of file Nano1X2Series.h.


Scope refers to the range of visibility of variables within code. In JavaScript, there are two kinds of scope; global and local scope.
Global scope is anywhere that is not within the curly brace confines of functions and block statments. Local scope is the scope which exists only inside these functions and block statements; so, in curly braces { }.
Variables declared within global scope are visible and accessible to any part of the code, while local scope/s and variables declared within them are visible and accessible only to code within that shared local scope, (and invisible to other parts of the code). There is only one Global Scope, while there may be infinite local scopes created through infinite declarations of functions and blocks, and functions and blocks within functions and blocks, etc.