tough rules for ringtone sellers firms that flout rules on how ringtones and other mobile extras are sold could be cut off from all uk phone networks.  the rules allow offenders to be cut off if they do not let consumers know exactly what they get for their money and how to turn off the services. the first month under the new rules has seen at least ten firms suspended while they clean up the way they work. the rules have been brought in to ensure that the problems plaguing net users do not spread to mobile phones.  in the last couple of years ringtones  wallpapers  screensavers and lots of other extras for phones have become hugely popular. but fierce competition is making it difficult for firms to get their wares in front of consumers  said jeremy flynn  head of third party services at vodafone.   if you are not on the operator s portal you are going to have quite heavy marketing costs because it s a problem of how people discover your services   he said. to combat this many ringtone and other mobile content sellers started using a new tactic to squeeze more cash out of customers. this tactic involved signing people up for a subscription to give them  for instance  several ringtones per week or month instead of the single track they thought they were getting. mr flynn said that the move to using subscriptions happened over the space of a few weeks at the end of 2004. websites such as grumbletext.co.uk started getting reports from customers who were racking up large bills for phone content they did not know they had signed up for.  what made us uncomfortable was that these services were not being marketed transparently   said mr flynn.  people did not know they were being offered a subscription service.   we saw potential for substantial consumer harm here   he added.  the swift adoption of subscription services led to the creation of a new code of conduct for firms that want to sell content for mobile phones. the drafting of the new rules was led by the mobile entertainment forum and the uk s phone firms.  everyone is required to conform to this code of conduct   said andrew bud  regulatory head of the mef and executive chairman of messaging firm mblox.   it s all about transparency   he said.  consumers have to be told what they have got themselves into and how to get out of it.   the consumer has a right to be protected   he said. christian harris  partnership manager of mobile content firm zed  said the new system was essential if consumers were to trust companies that sell ringtones and other downloads.  the groundrules must be applied across the whole industry and if that s done effectively we will see the cowboys driven out   he said. the new rules came in to force on 15 january and the first month under the new regime has seen many firms cautioned for not honouring them. some have been told to revamp websites so customers know what they get for their money and what they are signing up for  said mr flynn. also  said mr flynn  vodafone has briefly cut off between eight and ten content sellers flouting the rules.  we have quite draconian contracts with firms   he said.  we do not have to say why. we can just cut them off.  under the rules consumers must be able to switch off the services by using a universal  stop  command sent via text message. he said the system had been designed to limit how much a consumer will pay if they inadvertently signed up for a service.  the mobile is so personal that people really resent the abuse of what is effectively part of their personality   said mr flynn.


iraq advice claim sparks new row the tories say ministers must respond in parliament to claims that the legal advice used to justify the iraq war was drawn up at number 10.  downing street has denied the claims  made in a new book about the attorney general lord goldsmith s advice. lord goldsmith also denied them  saying he was not  leaned on  in any way. but the conservatives and liberal democrats say they want the publication of the full legal advice given by the attorney general.  the government has consistently refused to publish lord goldsmith s advice on the legality of the war - saying such papers have always been kept confidential.  but a short statement about lord goldsmith s position was presented in a written parliamentary answer on 17 march 2003 - just before a crucial commons vote on the military action. it said it was  plain  iraq continued to be in material breach of un resolution 1441. in his new book  lawless world  philippe sands  a qc and international law professor  suggests the parliamentary answer was written in downing street. according to mr sands  lord goldsmith had warned tony blair in a document on 7 march 2003 that the use of force against iraq could be illegal and that it would have been safer to seek a second un resolution sanctioning military action.  mr sands told newsnight the government had prepared a legal team to be able to defend its case  in case legal action was taken against the uk over the war. on 10 march  military chiefs reportedly asked for an unequivocal statement about the legality of the war to make sure troops could be defended in a court of law. the book  being serialised in the guardian newspaper  says on 13 march lord goldsmith met then home office minister lord falconer and downing street adviser baroness morgan.  after that downing street proceeded to set out his [lord goldsmith s] view in a parliamentary answer which was then published on 17 march   said mr sands.  tory leader michael howard reiterated calls for the publication of the full legal advice given by the attorney general  warning:  this issue will not go away.   these revelations throw an intensive spotlight on to the cavalier way in which this government operates - even on an issue as important as peace and war.  the government needs to act to restore public confidence and trust.  liberal democrat foreign affairs spokesman menzies campbell repeated his party s calls for lord goldsmith s first piece of legal advice to be made public.  the public interest  which the government claims justifies non-publication of the whole of the advice  can only be served now by the fullest disclosure.   in a statement to newsnight  lord goldsmith said:  in my parliamentary answer on march 17 2003  i explained my genuinely held independent view  that military action was lawful under the existing security council resolutions.  it was certainly not a view that i expressed as a result of being leaned on in any way  nor as i have already made clear  was it written by or at number 10.  the prime minister s official spokesman also rejected the claims  saying:  the attorney general made it clear the words and the judgement were his.  but ex-foreign secretary robin cook says all the advice should now be published. he said the claims suggested parliament had only received a précis of lord goldsmith s second opinion - and that it was actually drafted in no 10. this would be wrong even if lord goldsmith had signed the statement  mr cook said  because the attorney general s advice should be an  independent legal opinion   not subject to  political negotiation of this kind .


brits debate over  urban  music joss stone  a 17-year-old soul singer from devon  beat dizzee rascal  jamelia  lemar and the streets to win best british urban act at the brit awards. her victory has reignited the debate about what urban music is.      i m not really comfortable with the word urban. it s a word that s been manufactured in this country and america to describe black music. the word urban seems to cover such a broad range of black music that it s wrong. how far are the brits removed from inner-city music and what people are doing  it s so far removed that i don t expect them to get it bang on. the music industry isn t championing music from our particular genre very well anyway. people don t feel like that s anything to do with us. i don t feel like urban music s just been celebrated by [joss stone] winning or her being nominated  or by the brits acknowledging that there s an urban music scene because it s all a kick in the teeth at the end of the day. it s not really relevant. if joss stone is the closest thing that they feel comfortable championing because of what she looks like and how she sounds and who she s signed to  then so be it. it s got nothing to do with what s really going on.    urban as a genre is very broad. if you look underneath urban  there are a number of core elements that include hip-hop  r&b  garage and into that obviously comes soul. joss stone is a soul artist. her first album was called the soul sessions. so urban is a very broad brushstroke that is the umbrella over the top of sub-genres  and there are offshoots of all of those. joss stone has had amazing success [in the us] given that she s a uk artist. what has really captured everybody s imagination is that here you have a 17-year-old from devon with a voice to die for and a bunch of really  really good tunes and she looks good - i think that s what s done it.  the award for best british urban act was voted for by viewers of mtv base.    i don t think joss was not a worthy winner. she makes soul music and that definitely comes under the category of what we describe as urban. the fact that she s from devon is the interesting thing because most of the music we cover is made in large cities and she s literally rural. the great thing about urban music is that there s a big range. if there is some sort of root with black music or dance music in britain  i think that s where you can call it urban - that s where this new sub-category  or uber-category  has come from. joss stone is certainly not old enough to have had some of the experiences of an older soul singer  but you couldn t argue that she was being inauthentic with her emotions - it is coming from somewhere genuine. it has to come across as real. that s the only cut-off point we have here and that s the only way by which we judge people.    what urban means to us as an organisation is the politically correct term to describe music which originated from a black background. music should become inclusive and if we are fighting for a multi-cultural britain  then we should be fighting for inclusion rather than exclusion. if joss stone can be accepted within the urban music community  i think acts from other ethnicities doing classical music and rock should be accepted too. race doesn t make a difference if everyone is included. out of all the awards dished out yesterday  i m still trying to find out what people of other races received any sort of recognition or award.    a type of music (especially street music) that originates from a city  and typically reflects or is characteristic of urban life.  she might not be urban  but when did r&b become the hip hop tainted thing it is now  r&b stands for rhythm and blues  remember!  that joss stone is rubbish is certain. if anyone deserves to win an award for urban music (i think probably should include hip-hop  soul & funk at least but not rock or pop) this year its the streets  although dizzee rascal stakes a good claim  she definitely deserved to win a prize  joss stone s albums are quite simply amazing  easily better than anything else that was released last year. this whole debate about what is urban  what isnt urban is completely pointless and probably fueled by urban artists who weren t nominated or didn t win. i cant see why people can t just congratulate her for the talent that she is.  she did deserve it  but i agree with the comments about urban music. its a stupid phrase  and particularly british. in the states they tend to use hip hop and r&b  if i say hip hop here a lot of people have no idea what i m talking about. very strange.  what s in a name  a rose by any other name etc... if people want to call it urban  why not  if we really analysed it  the term  dance music  is misleading because it doesn t describe everything you can dance to.  whilst i agree that the term  urban  is open to interpretation  it strikes me as simply weird that joss stone has won.  urban  to me is what i hear being played in parties in the inner cities - i live in brixton and have never heard the soul sessions pumping out of of a bass heavy sound system in any parties i ve been to. good luck to joss stone  let s celebrate her victory - let s also question why  with artists so successful and talented as jamelia  lemar  kanye west  dizzee rascal  alicia keys and outkast - we didn t see a single black artist on stage collecting an award.  so  what you re saying is that any music that has black heritage is not allowed to be sung by anyone who isn t black. and  if it is  then they shouldn t be acknowledged for it even if they re pretty dam good at it  she s 17  has an amazing voice  and won. good on her. oh  but she s not  black  well  let s make her feel real bad about it then. how dare she! though hang on  didn t the so-called  public  vote on this one   this idea of pigeonholing whatever is popular at the time is no different than what was happening in the 1940s and 50s in relation to what  jazz  was. the media then called anything that had a swinging beat  syncopated melody or soulful feeling  jazz   much to the chagrin of the artists. it would mean that  blues  would be put in the same mould as  bebop    cool  and  ragtime   all very different styles at that time. jazz was and remains such a massively misunderstood term. and so what of  urban  music  in truth it s a lazy term to categorise music that you don t really understand. soul and garage are worlds apart musically (marvin gaye v tuff jam )  but no doubt have their connections. if we just let the music speak for itself and not judge the success of an artist by the number of awards won  then maybe we can enjoy the music for what it is  rather than what it represents.  i demand a prize for rural music! sucks to the cities- it s way better out here. we have hay  for one thing.  excluding her from what has become known as urban music would be as bad as excluding lenny kravitz or hendrix from rock music for being black surely  i dont understand the point that ty is making. if lemar  who makes music which is less soulful than joss  work won  he might have said nothing. (btw i m black too)  how can she be  urban  if she spent most of her life in the devon countryside  nonsense.  i love joss to bits and don t care what her branding is - it s amazing music  full stop. stop puting it all in brackets and let s just call it music  and let s especially drop the black / urban tag - nearly all music came from black origin  this just sets an example that it is ok to pigeonhole people and their music by their colour.  surely the point of having an urban music category is simply to acknowledge artists that are making what is (historically) considered urban music  irrelevent of the colour of their skin  or where they originate from. joss stone is simply singing a certain type of music that can be considered urban in style  just as someone from an inner city  and indeed not from the usa could sing country music. if that person was good at it and authentic in sound  would we criticise it being referred to as country music or the artist for representing that style   the term urban in reference to a music genre in uk has developed  in part  from the controversy surrounding the branding of the mobo awards. the very term  music of black origin  has confused and offended many people. this is particularly strange given the existence of the asian music awards. it appears that the use of  black  or  white  in relation to music makes people feel uncomfortable. the term  urban  therefore  has been invoked to sidestep the debate of which type of music came first  black  or  white  thereby rendering the issue colourblind. the result is now a redundant new debate as to what  urban  also means. perhaps we should have created a new term altogether to describe the various strains of soul/rnb and hip-hop  one which does not also mean something else - as we have done with  crunk .  urban is just a word that s come about recently to describe  black  music that s become popular now. the word wasn t even in use  or common use five of six years ago. it s just a way of the industry clumping it all together without having to call it black music  because some people are oversensitive and might call them racist for it.  i m in a band that has been called  urban   and i despise the label. i d hate to think i belonged to any neat marketing niche  because that s all it is. ever since the music channels and record comapnies tried to fracture what they consider  music of black origin   these labels have been used to undermine the status of good music into a commodity. look at all the tv broadcasters  unable to reach young people without condesending  they simply play some  urban  music on the soundtrack as if its some dreadful cheap lift music. ignore the labels  it is what it is  just music.  as a black man  i think i agree with some of the statements at least the statements made by the key executives. black people should lead the music they invented . we should stop calling a genre meaningless  northing is meaningless. the real question is would joss stone would have been that successful doing the music she was doing if she were black  same thing  with streets  amy winehouse  etc. who s ever heard of terri walker or rhian benson.. they are both 10 times better than joss stone and both of them have won urban music awards and i think mobos   but why not brits      so what if joss stone won the urban awards. her music is great soul and surely that is under the  urban  banner  what if the streets had won  would people be whining because mike skinner is white... it seems that a lot of the fuss is about race where the real issue should be music and nothing else.  urban is pc version for saying black music. i m not doubting ms stone s talent  but why didn t jamelia or lemar get a brit  this reminds me of what happened to craig david and soul ii soul in the past  getting nominations are easy to get  but picking up a brit seems to be the hardest thing.  refreshing to see people making reasonable  intelligent comments on any topic these days. more power to you  people! you have said it: there is music you like and music you don t like - who cares what label you put on it   that entire category was a mess. how can you have people like dizzee rascal up against joss stone  its like putting eminem against bob geldof. she should have been nominated for best british r & b act. joss stone deserved to win an award for her talents  but i don t think it was very  urban  of her to sing angels with robbie williams.  urban is a nonsense term - music of black origin  well doesn t that include rock  music made in the inner cities  well almost all bands end up making music in london/manchester etc. and doesn t that make some weird implication that all black people live in cities  it doesn t make any sense.  why does music have to be put into a genre  it s music  you like it or you don t. simple as that.  i play in a heavy metal band. we are urban music as far as i m concerned. we live in cities and spend our working life in an urban environment; it therefore directly shapes what we write musically.   urban  seems to be the new name for all styles of black music. why it needed a rebrand i don t know as the name is misleading. oasis originate from a city and characterise the urban life they know  therefore more than fit the term  urban  yet as they re a white rock band they won t be described as such.  joss stone has a fantastic voice and great timing and delivery - what other reason do they need to award her the brit  all this  urban  and other such categorisation is just the red-tape of the music business and is best ignored.  yeah  she deserved it. she is talented. urban is a crap  meaningless  politically correct and probably actually racist marketing term though. there s only two kinds of music: good and bad.


dirty den s demise seen by 14m more than 14 million people saw  dirty  den watts killed off on friday  marking eastenders  20th anniversary  according to unofficial figures.  den s death came 16 years after he was supposedly shot in 1989. but he came back to the show in september 2003. the audience for bbc one s one-hour special averaged 13.7 million and peaked at 14.2 million in the last 15 minutes  overnight figures showed. den died after being confronted by zoe  chrissie and sam in the queen vic.  if the ratings are confirmed  the episode will have given the soap its highest audience for a year. the overnight figures showed almost 60% of the viewing public tuned into eastenders between 2000 and 2100 gmt  leaving itv1 with about 13%.  we are very pleased with the figures   a bbc spokesman said.  it shows viewers have really enjoyed the story of den s demise.  the show s highest audience came at christmas 1986  when more than 30 million tuned in to see den  played by leslie grantham  hand divorce papers to wife angie.  two years later  24 million saw him apparently shot by a man with a bunch of daffodils by a canal. more than 16 million viewers watched his return in 2003. the show s ratings have since settled down to about 12 million per episode. grantham hit the headlines in may after a newspaper printed photographs of him apparently exposing himself via a webcam from his dressing room. he also allegedly insulted four co-stars. he apologised for his  deplorable actions  and  a moment s stupidity .


lib dems  new election pr chief the lib dems have appointed a senior figure from bt to be the party s new communications chief for their next general election effort.  sandy walkington will now work with senior figures such as matthew taylor on completing the party manifesto. party chief executive lord rennard said the appointment was a  significant strengthening of the lib dem team . mr walkington said he wanted the party to be ready for any  mischief  rivals or the media tried to throw at it.   my role will be to ensure this new public profile is effectively communicated at all levels   he said.  i also know the party will be put under scrutiny in the media and from the other parties as never before - and we will need to show ourselves ready and prepared to counter the mischief and misrepresentation that all too often comes from the party s opponents.  the party is already demonstrating on every issue that it is the effective opposition.  mr walkington s new job title is director of general election communications.


bbc poll indicates economic gloom citizens in a majority of nations surveyed in a bbc world service poll believe the world economy is worsening.  most respondents also said their national economy was getting worse. but when asked about their own family s financial outlook  a majority in 14 countries said they were positive about the future. almost 23 000 people in 22 countries were questioned for the poll  which was mostly conducted before the asian tsunami disaster. the poll found that a majority or plurality of people in 13 countries believed the economy was going downhill  compared with respondents in nine countries who believed it was improving. those surveyed in three countries were split. in percentage terms  an average of 44% of respondents in each country said the world economy was getting worse  compared to 34% who said it was improving. similarly  48% were pessimistic about their national economy  while 41% were optimistic. and 47% saw their family s economic conditions improving  as against 36% who said they were getting worse.  the poll of 22 953 people was conducted by the international polling firm globescan  together with the program on international policy attitudes (pipa) at the university of maryland.  while the world economy has picked up from difficult times just a few years ago  people seem to not have fully absorbed this development  though they are personally experiencing its effects   said pipa director steven kull.  people around the world are saying:  i m ok  but the world isn t .  there may be a perception that war  terrorism and religious and political divisions are making the world a worse place  even though that has not so far been reflected in global economic performance  says the bbc s elizabeth blunt.  the countries where people were most optimistic  both for the world and for their own families  were two fast-growing developing economies  china and india  followed by indonesia. china has seen two decades of blistering economic growth  which has led to wealth creation on a huge scale  says the bbc s louisa lim in beijing. but the results also may reflect the untrammelled confidence of people who are subject to endless government propaganda about their country s rosy economic future  our correspondent says. south korea was the most pessimistic  while respondents in italy and mexico were also quite gloomy. the bbc s david willey in rome says one reason for that result is the changeover from the lira to the euro in 2001  which is widely viewed as the biggest reason why their wages and salaries are worth less than they used to be. the philippines was among the most upbeat countries on prospects for respondents  families  but one of the most pessimistic about the world economy. pipa conducted the poll from 15 november 2004 to 3 january 2005 across 22 countries in face-to-face or telephone interviews. the interviews took place between 15 november 2004 and 5 january 2005. the margin of error is between 2.5 and 4 points  depending on the country. in eight of the countries  the sample was limited to major metropolitan areas.


I remember going to the fireworks with my best friend. There was a lot of people, but it only felt like us in the world.


I showed a guy how to run a good bead in welding class and he caught on quick.


A recent job interview that I had made me feel very anxious because I felt like I didn't come prepared.


I am very happy to have been first over 300 students during this years at my enginering school


One year during christmas, i did not get a single gift. It was a rough day for me.


I was at work, and my coworker was called into my bosses office. Then they were allowed to work remotely every monday. this made me jealous because I enjoy working from home


I was home alone. I heard a loud noise come from the kitchen.


Just as the crowning achievement of twentieth-century economics was constructing a national income statement, so the crowning achievement of twenty-first-century economics is likely to be conceptualizing and constructing a national balance sheet, a speedometer for the economy.

While I can't build a full-blown balance sheet for you--that's a grand, generational project--we can take a brief glimpse across the different kinds of capital and try to ascertain whether their buckets are filling or emptying, whether the speedometer's needle is rising or falling.

You might see social capital--the wealth of relationships--crashing.

According to Ohio State University's Pamela Paxton, declines in trust among individuals of half a percent per year from 1975 to 1994.

A life rich in relationships and connections seems to be a more and more elusive goal.

You might notice human capital--the wealth in people--splintering.

Perhaps the most essential component of human capital is education.

Yet, the Brookings Institution found that, for the first time, older generations have attained more higher education than younger ones.

That points to an inflection point in human capital, marking a peak in American educational attainment.

Human capital is also composed of mental and physical health.

Both mental illness and obesity rates have risen steadily for the last century in America.

And rates of happiness in the United States, United Kingdom, and Japan have flatlined--and by some measures, fallen--over recent decades.

You might see intellectual capital--the wealth of ideas--struggling to develop.

Intellectual capital is often assessed simply by looking at the sheer number of patents, but I'd choose a higher bar: the creation not merely of patents, but of new industries, sectors, and markets.

Fewer industries were created in the noughties than in any decade since 1930: just two, by my count--search and nanotech.

Though patent applications have skyrocketed, patent quality has dropped.

They are now less expressions of true intellectual wealth than tools for strategic control.

You might see organizational capital--the wealth that harmonizes and synchronizes the other kinds of wealth--cratering.

Organizational capital is the toughest kind of capital to measure and observe.

I'd roughly gauge it by looking at the creation rate of new jobs, because new jobs often represent new roles, gains in the division of labor, the raw stuff of organizational capital.

America is often said to be the most dynamic economy in the world, but the net creation rate of new jobs has dropped steadily since 1970.

I'd also look at an alternative measure of organizational capital: political decision-making.

Here, we find more "gridlock": filibusters in the Senate have risen exponentially over the last three decades to an unprecedented high.


/usr/bin/env python

import requests
import time

def main():
  benchmark("simple_tensorflow_serving_flask")

  time.sleep(3)
  benchmark("simple_tensorflow_serving_uwsgi")

  time.sleep(3)
  benchmark("tensorflow_serving_restful")

def benchmark(benchmark_type):
  print("Start benchmark for {}".format(benchmark_type))

  if benchmark_type == "simple_tensorflow_serving_flask":
    endpoint = "http://127.0.0.1:8500"
    input_data = {
        "data": {
            "keys": [[1]],
            "features": [[1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0]]
        }
    }

  elif benchmark_type == "simple_tensorflow_serving_uwsgi":
    endpoint = "http://127.0.0.1:8501"
    input_data = {
        "data": {
            "keys": [[1]],
            "features": [[1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0]]
        }
    }

  elif benchmark_type == "tensorflow_serving_restful":
    endpoint = "http://127.0.0.1:8503/v1/models/default/versions/1:predict"
    input_data = {
        "instances": [{
            "keys": 1,
            "features": [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0]
        }]
    }

  start_time = time.time()
  for i in range(100):
    result = requests.post(endpoint, json=input_data)
  end_time = time.time()
  print("Cost time: {}".format(end_time - start_time))
  print(result)

if __name__ == "__main__":
  main()


Woodstock, a Festival of Peace, Music and Providing Medical Care.


Q:

A question related to the card game "Set"

The card game Set lead to the following question.

Lets call a subset $A$ of $(\mathbb{Z}/3)^n$ dependent, if there is $\{x,y,z\}\subset A$ with $x+y+z=0$. (So unlike the case of linear dependence we are not allowing any coefficients here).

Let $f(n)$ denote the maximal size of a independent subset of $(\mathbb{Z}/3)^n$.
Is there an explicit expression / a recursion for $f(n)$?

Can anything be said about its asymptotic behaviour (like $f\in O(c^n)$ for some minimal $c$)?

As $\{0;1\}^n$ is independent, we know that $f(n)\ge 2^n$. And so $c\ge 2$.
The card game set deals with the case $n=4$ and $f(4)=20$ if i remember correctly.

A:

Mathematicians call these "independent sets" capsets, and they're fairly widely studied.

But surprisingly, we don't know much about their asymptotic behavior!

We have a lower bound of order c^n for some c > 2; and we have an upper bound of order about 3^n/n (although this is not in the least trivial to prove!)

Most mathematicians seem to suspect that the upper bound can't be improved to c^n for c strictly less than 3, but no one's sure how to prove this.

For more information (perhaps a little out-of-date, but I don't think much has changed) see Terry Tao's discussion.


/*
 *    This file was auto-generated using the ACADO Toolkit.

 *
 *    While ACADO Toolkit is free software released under the terms of
 *    the GNU Lesser General Public License (LGPL), the generated code
 *    as such remains the property of the user who used ACADO Toolkit
 *    to generate this code.

In particular, user dependent data of the code
 *    do not inherit the GNU LGPL license.

On the other hand, parts of the
 *    generated code that are a direct copy of source code from the
 *    ACADO Toolkit or the software tools it is based on, remain, as derived
 *    work, automatically covered by the LGPL license.

 *
 *    ACADO Toolkit is distributed in the hope that it will be useful,
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

 *
 */

extern "C"
{
#include "acado_common.h"
}

#include "INCLUDE/QProblemB.hpp"

#if ACADO_COMPUTE_COVARIANCE_MATRIX == 1
#include "INCLUDE/EXTRAS/SolutionAnalysis.hpp"
#endif /* ACADO_COMPUTE_COVARIANCE_MATRIX */

static int acado_nWSR;

#if ACADO_COMPUTE_COVARIANCE_MATRIX == 1
static SolutionAnalysis acado_sa;
#endif /* ACADO_COMPUTE_COVARIANCE_MATRIX */

int acado_solve( void )
{
	acado_nWSR = QPOASES_NWSRMAX;

	QProblemB qp( 80 );

	returnValue retVal = qp.init(acadoWorkspace.

H, acadoWorkspace.g, acadoWorkspace.lb, acadoWorkspace.ub, acado_nWSR, acadoWorkspace.y);

    qp.getPrimalSolution( acadoWorkspace.x );
    qp.getDualSolution( acadoWorkspace.y );

#if ACADO_COMPUTE_COVARIANCE_MATRIX == 1

	if (retVal !

= SUCCESSFUL_RETURN)
		return (int)retVal;

	retVal = acado_sa.getHessianInverse( &qp, );

#endif /* ACADO_COMPUTE_COVARIANCE_MATRIX */

	return (int)retVal;
}

int acado_getNWSR( void )
{
	return acado_nWSR;
}

const char* acado_getErrorString( int error )
{
	return MessageHandling::getErrorString( error );
}


Marie's move is scheduled for Friday, 5/25/01 at 5pm.

Admin Assistant
EWS-Legal
Tele: 713-345-7373
Fax:  713-646-6058


MLA Resources

If you're not familiar with MLA style, you'll want to brush up on it, since many of your classes will require papers to be written in this format.

MLA style serves two purposes: 1) a simplified visual appearance and (more importantly), 2) proper attribution of sources.

In terms of style, you'll need to include an MLA header, which you'll format as follows (each break is one return in double-spaced document):

Additionally, each page aside from the first should have your name and the page number (i.e. Hennessey 9) in the top right-hand corner (you can access this through the "Headers and Footers" control in Word).

In regards to attributing sources, MLA format is built around two techniques: 1) in-text parenthetical citations and 2) a works cited list.

As as student, the purpose of doing this is to avoid plagiarism by properly crediting any ideas (whether direct quotations, summaries or paraphrases) that you've borrowed.

For scholars, in addition to that very important role, citations also direct readers to the specific location of that info, as well as the edition used.

A short in-text citation (in parentheses at the end of the sentence, but before any closing punctuation) shorthands the source and page number for readers, and then the full works cited list at the end of the essay provides complete bibliographical info.

Each professor you'll work with at UC will likely have different interpretations of MLA format, and it's a good idea to get to know their "ground rules" so that you don't run the risk of getting in trouble.

My ground rules include the following:

If you're using the same source, and only that source (i.e. text and page), over the course of several sentences, then you don't need a citation at the end of every sentence, just when you're finished with the source.

If the author and/or text is made clear, either by context or signal phrases, then you don't need to include that info in the citation, just the page number.

For sources without pages (i.e. internet sources), just use a signal phrase and you're set.

Technically MLA requires you to cite the line(s) when quoting poetry, but as far as I'm concerned, the page number alone is more than sufficient.

Here are two online resources that will be helpful in navigating the ins and outs of MLA style:


public static void main ( String [ ] args ) throws IOException {
  Scanner sc = new Scanner ( System . in ) ;
  int n = sc . nextInt ( ) ;
  int [ ] a = new int [ n ] ;
  for ( int i = 0 ;
  i < n ;
  i ++ ) a [ i ] = sc . nextInt ( ) ;
  long ans = help ( a ) ;
  System . out . println ( ans ) ;
}

(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (type_identifier) dimensions: (dimensions)) name: (identifier))) (throws (type_identifier)) body: (block (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (field_access object: (identifier) field: (identifier)))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (array_type element: (integral_type) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (array_creation_expression type: (integral_type) dimensions: (dimensions_expr (identifier))))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation name: (identifier) arguments: (argument_list (identifier))))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (identifier))))))


static long help ( int [ ] a ) {
  if ( a [ 0 ] != 0 ) return 0 ;
  int maxDist = 0 ;
  for ( int w : a ) maxDist = Math . max ( maxDist , w ) ;
  int [ ] rec = new int [ maxDist + 1 ] ;
  for ( int w : a ) rec [ w ] ++ ;
  if ( rec [ 0 ] != 1 ) return 0 ;
  for ( int i = 1 ;
  i <= maxDist ;
  i ++ ) {
    if ( rec [ i ] < 1 ) return 0 ;
  }
  long [ ] dp = new long [ maxDist + 1 ] ;
  dp [ 0 ] = 1 ;
  for ( int i = 1 ;
  i <= maxDist ;
  i ++ ) {
    long base = power ( 2 , rec [ i - 1 ] ) - 1 ;
    dp [ i ] = power ( base , rec [ i ] ) * dp [ i - 1 ] % mod ;
    long sameLayer = ( ( long ) rec [ i ] ) * ( ( long ) rec [ i ] - 1 ) / 2 ;
    dp [ i ] = dp [ i ] * power ( 2 , sameLayer ) % mod ;
  }
  return dp [ maxDist ] ;
}

(method_declaration (modifiers) type: (integral_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (integral_type) dimensions: (dimensions)) name: (identifier))) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (array_access array: (identifier) index: (decimal_integer_literal)) right: (decimal_integer_literal))) consequence: (return_statement (decimal_integer_literal))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (enhanced_for_statement type: (integral_type) name: (identifier) value: (identifier) body: (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier) (identifier)))))) (local_variable_declaration type: (array_type element: (integral_type) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (array_creation_expression type: (integral_type) dimensions: (dimensions_expr (binary_expression left: (identifier) right: (decimal_integer_literal)))))) (enhanced_for_statement type: (integral_type) name: (identifier) value: (identifier) body: (expression_statement (update_expression (array_access array: (identifier) index: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (array_access array: (identifier) index: (decimal_integer_literal)) right: (decimal_integer_literal))) consequence: (return_statement (decimal_integer_literal))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (decimal_integer_literal))) consequence: (return_statement (decimal_integer_literal))))) (local_variable_declaration type: (array_type element: (integral_type) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (array_creation_expression type: (integral_type) dimensions: (dimensions_expr (binary_expression left: (identifier) right: (decimal_integer_literal)))))) (expression_statement (assignment_expression left: (array_access array: (identifier) index: (decimal_integer_literal)) right: (decimal_integer_literal))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (method_invocation name: (identifier) arguments: (argument_list (decimal_integer_literal) (array_access array: (identifier) index: (binary_expression left: (identifier) right: (decimal_integer_literal))))) right: (decimal_integer_literal)))) (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (binary_expression left: (binary_expression left: (method_invocation name: (identifier) arguments: (argument_list (identifier) (array_access array: (identifier) index: (identifier)))) right: (array_access array: (identifier) index: (binary_expression left: (identifier) right: (decimal_integer_literal)))) right: (identifier)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (binary_expression left: (parenthesized_expression (cast_expression type: (integral_type) value: (array_access array: (identifier) index: (identifier)))) right: (parenthesized_expression (binary_expression left: (cast_expression type: (integral_type) value: (array_access array: (identifier) index: (identifier))) right: (decimal_integer_literal)))) right: (decimal_integer_literal)))) (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (binary_expression left: (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (method_invocation name: (identifier) arguments: (argument_list (decimal_integer_literal) (identifier)))) right: (identifier)))))) (return_statement (array_access array: (identifier) index: (identifier)))))


static long power ( long base , long p ) {
  long ans = 1 ;
  while ( p > 0 ) {
    if ( p % 2 == 1 ) ans = ans * base % mod ;
    base = base * base % mod ;
    p /= 2 ;
  }
  return ans ;
}

(method_declaration (modifiers) type: (integral_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (integral_type) name: (identifier)) (formal_parameter type: (integral_type) name: (identifier))) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (decimal_integer_literal))) consequence: (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (decimal_integer_literal))))) (return_statement (identifier))))


public static void main ( String [ ] args ) {
  Scanner sc = new Scanner ( System . in ) ;
  int n = sc . nextInt ( ) ;
  int [ ] a = new int [ n ] ;
  int [ ] d = new int [ n ] ;
  int dmax = 0 ;
  for ( int i = 0 ;
  i < n ;
  i ++ ) {
    a [ i ] = sc . nextInt ( ) ;
    d [ a [ i ] ] ++ ;
    dmax = Math . max ( a [ i ] , dmax ) ;
  }
  if ( a [ 0 ] != 0 || d [ 0 ] != 1 ) {
    System . out . println ( 0 ) ;
    return ;
  }
  for ( int i = 0 ;
  i <= dmax ;
  i ++ ) {
    if ( d [ i ] == 0 ) {
      System . out . println ( 0 ) ;
      return ;
    }
  }
  long ans = 1L ;
  for ( int i = 1 ;
  i <= dmax ;
  i ++ ) {
    long tmp = pow ( 2 , d [ i - 1 ] ) ;
    tmp = ( tmp + MOD - 1 ) % MOD ;
    ans = ( ans * pow ( tmp , d [ i ] ) ) % MOD ;
    ans = ( ans * pow ( 2 , ( long ) ( d [ i ] - 1 ) * d [ i ] / 2 ) ) % MOD ;
  }
  System . out . println ( ans ) ;
}

(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (type_identifier) dimensions: (dimensions)) name: (identifier))) body: (block (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (field_access object: (identifier) field: (identifier)))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (array_type element: (integral_type) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (array_creation_expression type: (integral_type) dimensions: (dimensions_expr (identifier))))) (local_variable_declaration type: (array_type element: (integral_type) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (array_creation_expression type: (integral_type) dimensions: (dimensions_expr (identifier))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (expression_statement (update_expression (array_access array: (identifier) index: (array_access array: (identifier) index: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (array_access array: (identifier) index: (identifier)) (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (array_access array: (identifier) index: (decimal_integer_literal)) right: (decimal_integer_literal)) right: (binary_expression left: (array_access array: (identifier) index: (decimal_integer_literal)) right: (decimal_integer_literal)))) consequence: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (decimal_integer_literal)))) (return_statement))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (decimal_integer_literal))) consequence: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (decimal_integer_literal)))) (return_statement))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation name: (identifier) arguments: (argument_list (decimal_integer_literal) (array_access array: (identifier) index: (binary_expression left: (identifier) right: (decimal_integer_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (decimal_integer_literal))) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (method_invocation name: (identifier) arguments: (argument_list (identifier) (array_access array: (identifier) index: (identifier)))))) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (method_invocation name: (identifier) arguments: (argument_list (decimal_integer_literal) (binary_expression left: (binary_expression left: (cast_expression type: (integral_type) value: (parenthesized_expression (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (decimal_integer_literal)))) right: (array_access array: (identifier) index: (identifier))) right: (decimal_integer_literal)))))) right: (identifier)))))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (identifier))))))


public static long pow ( long a , long n ) {
  long x = 1 ;
  while ( n > 0 ) {
    if ( n % 2 == 1 ) {
      x = x * a % MOD ;
    }
    a = a * a % MOD ;
    n >>= 1 ;
  }
  return x ;
}

(method_declaration (modifiers) type: (integral_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (integral_type) name: (identifier)) (formal_parameter type: (integral_type) name: (identifier))) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (decimal_integer_literal))) consequence: (block (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (decimal_integer_literal))))) (return_statement (identifier))))


public static void main ( String [ ] args ) {
  Scanner sc = new Scanner ( System . in ) ;
  int N = sc . nextInt ( ) ;
  int M = sc . nextInt ( ) ;
  UnionFind uf = new UnionFind ( N ) ;
  for ( int i = 0 ;
  i < M ;
  i ++ ) {
    int a = sc . nextInt ( ) - 1 ;
    int b = sc . nextInt ( ) - 1 ;
    uf . union ( a , b ) ;
  }
  System . out . println ( uf . count ( N ) - 1 ) ;
}

(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (type_identifier) dimensions: (dimensions)) name: (identifier))) body: (block (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (field_access object: (identifier) field: (identifier)))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (identifier))))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)) right: (decimal_integer_literal)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)) right: (decimal_integer_literal)))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier) (identifier)))))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))) right: (decimal_integer_literal)))))))


public static void main ( String [ ] args ) {
  for ( int i = 0 ;
  i < N ;
  i ++ ) node [ i ] = new Node ( ) ;
  for ( int i = 0 ;
  i < M ;
  i ++ ) {
    int a = sc . nextInt ( ) ;
    int b = sc . nextInt ( ) ;
    node [ a - 1 ] . to . add ( b - 1 ) ;
    node [ b - 1 ] . to . add ( a - 1 ) ;
  }
  int count = 0 ;
  for ( int i = 0 ;
  i < N ;
  i ++ ) {
    if ( node [ i ] . visit ) continue ;
    node [ i ] . visit = true ;
    solve ( node [ i ] ) ;
    count ++ ;
  }
  System . out . println ( count - 1 ) ;
}

(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (type_identifier) dimensions: (dimensions)) name: (identifier))) body: (block (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (object_creation_expression type: (type_identifier) arguments: (argument_list))))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (expression_statement (method_invocation object: (field_access object: (array_access array: (identifier) index: (binary_expression left: (identifier) right: (decimal_integer_literal))) field: (identifier)) name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (decimal_integer_literal))))) (expression_statement (method_invocation object: (field_access object: (array_access array: (identifier) index: (binary_expression left: (identifier) right: (decimal_integer_literal))) field: (identifier)) name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (decimal_integer_literal))))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (if_statement condition: (parenthesized_expression (field_access object: (array_access array: (identifier) index: (identifier)) field: (identifier))) consequence: (continue_statement)) (expression_statement (assignment_expression left: (field_access object: (array_access array: (identifier) index: (identifier)) field: (identifier)) right: (true))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (array_access array: (identifier) index: (identifier))))) (expression_statement (update_expression (identifier))))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (decimal_integer_literal)))))))


public static void solve ( Node n ) {
  for ( int i = 0 ;
  i < n . to . size ( ) ;
  i ++ ) {
    int next = n . to . get ( i ) ;
    if ( node [ next ] . visit ) continue ;
    node [ next ] . visit = true ;
    solve ( node [ next ] ) ;
  }
}

(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier))) body: (block (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list))) update: (update_expression (identifier)) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (field_access object: (array_access array: (identifier) index: (identifier)) field: (identifier))) consequence: (continue_statement)) (expression_statement (assignment_expression left: (field_access object: (array_access array: (identifier) index: (identifier)) field: (identifier)) right: (true))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (array_access array: (identifier) index: (identifier)))))))))


public static void main ( String [ ] args ) {
  int N = sc . nextInt ( ) ;
  int M = sc . nextInt ( ) ;
  UnionFind uf = new UnionFind ( N ) ;
  uf . init ( N ) ;
  for ( int i = 0 ;
  i < M ;
  i ++ ) {
    int a = sc . nextInt ( ) - 1 ;
    int b = sc . nextInt ( ) - 1 ;
    uf . unite ( a , b ) ;
  }
  for ( int i = 0 ;
  i < N ;
  i ++ ) {
    uf . find ( i ) ;
  }
  boolean [ ] used = new boolean [ N ] ;
  int ans = - 1 ;
  for ( int i = 0 ;
  i < N ;
  i ++ ) {
    if ( ! used [ uf . parent [ i ] ] ) {
      used [ uf . parent [ i ] ] = true ;
      ans ++ ;
    }
  }
  System . out . println ( ans ) ;
}

(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (type_identifier) dimensions: (dimensions)) name: (identifier))) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (identifier))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier)))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)) right: (decimal_integer_literal)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)) right: (decimal_integer_literal)))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier) (identifier)))))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier)))))) (local_variable_declaration type: (array_type element: (boolean_type) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (array_creation_expression type: (boolean_type) dimensions: (dimensions_expr (identifier))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (unary_expression operand: (decimal_integer_literal)))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (if_statement condition: (parenthesized_expression (unary_expression operand: (array_access array: (identifier) index: (array_access array: (field_access object: (identifier) field: (identifier)) index: (identifier))))) consequence: (block (expression_statement (assignment_expression left: (array_access array: (identifier) index: (array_access array: (field_access object: (identifier) field: (identifier)) index: (identifier))) right: (true))) (expression_statement (update_expression (identifier))))))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (identifier))))))


public static void main ( String [ ] args ) {
  Scanner sc = new Scanner ( System . in ) ;
  int N = sc . nextInt ( ) ;
  int M = sc . nextInt ( ) ;
  for ( int i = 0 ;
  i < N ;
  i ++ ) node [ i ] = new Node ( ) ;
  for ( int i = 0 ;
  i < M ;
  i ++ ) {
    int a = sc . nextInt ( ) ;
    int b = sc . nextInt ( ) ;
    node [ a - 1 ] . to . add ( b - 1 ) ;
    node [ b - 1 ] . to . add ( a - 1 ) ;
  }
  int count = 0 ;
  for ( int i = 0 ;
  i < N ;
  i ++ ) {
    if ( node [ i ] . visit ) continue ;
    node [ i ] . visit = true ;
    solve ( node [ i ] ) ;
    count ++ ;
  }
  System . out . println ( count - 1 ) ;
}

(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (type_identifier) dimensions: (dimensions)) name: (identifier))) body: (block (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (field_access object: (identifier) field: (identifier)))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (object_creation_expression type: (type_identifier) arguments: (argument_list))))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (expression_statement (method_invocation object: (field_access object: (array_access array: (identifier) index: (binary_expression left: (identifier) right: (decimal_integer_literal))) field: (identifier)) name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (decimal_integer_literal))))) (expression_statement (method_invocation object: (field_access object: (array_access array: (identifier) index: (binary_expression left: (identifier) right: (decimal_integer_literal))) field: (identifier)) name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (decimal_integer_literal))))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (if_statement condition: (parenthesized_expression (field_access object: (array_access array: (identifier) index: (identifier)) field: (identifier))) consequence: (continue_statement)) (expression_statement (assignment_expression left: (field_access object: (array_access array: (identifier) index: (identifier)) field: (identifier)) right: (true))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (array_access array: (identifier) index: (identifier))))) (expression_statement (update_expression (identifier))))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (decimal_integer_literal)))))))


Context: Jochi died in 1226, during his father's lifetime. Some scholars, notably Ratchnevsky, have commented on the possibility that Jochi was secretly poisoned by an order from Genghis Khan. Rashid al-Din reports that the great Khan sent for his sons in the spring of 1223, and while his brothers heeded the order, Jochi remained in Khorasan. Juzjani suggests that the disagreement arose from a quarrel between Jochi and his brothers in the siege of Urgench. Jochi had attempted to protect Urgench from destruction, as it belonged to territory allocated to him as a fief. He concludes his story with the clearly apocryphal statement by Jochi: "Genghis Khan is mad to have massacred so many people and laid waste so many lands. I would be doing a service if I killed my father when he is hunting, made an alliance with Sultan Muhammad, brought this land to life and gave assistance and support to the Muslims." Juzjani claims that it was in response to hearing of these plans that Genghis Khan ordered his son secretly poisoned; however, as Sultan Muhammad was already dead in 1223, the accuracy of this story is questionable.

Question: Why did Jochi supposedly doubt his father's character?


Context: The historical measure of a steam engine's energy efficiency was its "duty". The concept of duty was first introduced by Watt in order to illustrate how much more efficient his engines were over the earlier Newcomen designs. Duty is the number of foot-pounds of work delivered by burning one bushel (94 pounds) of coal. The best examples of Newcomen designs had a duty of about 7 million, but most were closer to 5 million. Watt's original low-pressure designs were able to deliver duty as high as 25 million, but averaged about 17. This was a three-fold improvement over the average Newcomen design. Early Watt engines equipped with high-pressure steam improved this to 65 million.

Question: What was the secret to producing the best results?


Context: It is a common misconception to ascribe the stiffness and rigidity of solid matter to the repulsion of like charges under the influence of the electromagnetic force. However, these characteristics actually result from the Pauli exclusion principle.[citation needed] Since electrons are fermions, they cannot occupy the same quantum mechanical state as other electrons. When the electrons in a material are densely packed together, there are not enough lower energy quantum mechanical states for them all, so some of them must be in higher energy states. This means that it takes energy to pack them together. While this effect is manifested macroscopically as a structural force, it is technically only the result of the existence of a finite set of electron states.

Question: How rare is the misconception that solid matter is rigid because of like charges?


Context: Tea, coffee, sisal, pyrethrum, corn, and wheat are grown in the fertile highlands, one of the most successful agricultural production regions in Africa. Livestock predominates in the semi-arid savanna to the north and east. Coconuts, pineapples, cashew nuts, cotton, sugarcane, sisal, and corn are grown in the lower-lying areas. Unfortunately, the country has not attained the level of investment and efficiency in agriculture that can guarantee food security and coupled with resulting poverty (53% of the population lives below the poverty line), a significant portion of the population regularly starves and is heavily dependent on food aid. Poor roads, an inadequate railway network, under-used water transport and expensive air transport have isolated mostly arid and semi-arid areas and farmers in other regions often leave food to rot in the fields because they cannot access markets. This was last seen in August and September 2011 prompting the Kenyans for Kenya initiative by the Red Cross.

Question: One of the most successful agricultural production region is located where?


Context: Korean economist Hoesung Lee is the chair of the IPCC since October 8, 2015, following the election of the new IPCC Bureau. Before this election, the IPCC was led by his vice-Chair Ismail El Gizouli, who was designated acting Chair after the resignation of Rajendra K. Pachauri in February 2015. The previous chairs were Rajendra K. Pachauri, elected in May 2002; Robert Watson in 1997; and Bert Bolin in 1988. The chair is assisted by an elected bureau including vice-chairs, working group co-chairs, and a secretariat.

Question: Who was elected later, Rajendra K. Pachauri or Robert Watson?


Context: Sanctifying Grace is that grace of God which sustains the believers in the journey toward Christian Perfection: a genuine love of God with heart, soul, mind, and strength, and a genuine love of our neighbors as ourselves. Sanctifying grace enables us to respond to God by leading a Spirit-filled and Christ-like life aimed toward love. Wesley never claimed this state of perfection for himself but instead insisted the attainment of perfection was possible for all Christians. Here the English Reformer parted company with both Luther and Calvin, who denied that a man would ever reach a state in this life in which he could not fall into sin. Such a man can lose all inclination to evil and can gain perfection in this life.

Question: Who thought perfection was possible?


Context: On 17 December 1941, seven Protestant regional church confederations issued a statement agreeing with the policy of forcing Jews to wear the yellow badge, "since after his bitter experience Luther had already suggested preventive measures against the Jews and their expulsion from German territory." According to Daniel Goldhagen, Bishop Martin Sasse, a leading Protestant churchman, published a compendium of Luther's writings shortly after Kristallnacht, for which Diarmaid MacCulloch, Professor of the History of the Church in the University of Oxford argued that Luther's writing was a "blueprint." Sasse applauded the burning of the synagogues and the coincidence of the day, writing in the introduction, "On 10 November 1938, on Luther's birthday, the synagogues are burning in Germany." The German people, he urged, ought to heed these words "of the greatest antisemite of his time, the warner of his people against the Jews."

Question: To which ethnic group did Martin Luther belong?


I have an integer to be returned, along with some other stuff. Should I just return the integer, or return something like torch.LongTensor(num)?


This is the data so it is neither grad nor visualization. The data will be used in forward step for the model.


Also if its data for forward step, you should keep it as Tensor type as while backprop needs grad. Pytorch backprop operations are defined only for Tensor type.


Let us say if you want to do a rnn model, you will need to have a padded sequence and its original length (that comes to the integer). I got no issue when just returning an integer so I am not sure why you are getting the error.


I got no issue when just returning an integer so I am not sure why you are getting the error.

Maybe this 7 post will make things clear about backprop problem I mentioned.


According to this 5 comment, ScatterAssign only works on CPU, but I see that it also exists in the corresponding .cu file here 2.
Is the first comment accurate?


Do you wanna start a cult with me?
Im not vibrating like I oughta be
I need a purpose, I cant keep surfing
Through this existential misery
Now, were gonna need some real estate
But if I choose my words carefully
Think I could fool you that Im the guru
Wait, how do you spell epiphany?
Before the truth will set you free, itll piss you off
Before you find a place to be, youre gonna lose the plot
Too late to tell you now, one ear and right out the other one
Cause all you ever do is chant the same old mantra
Yeah!
Could I have your attention, please?
Its time to tap into your tragedy
Think you could use a new abuser
Close your eyes and listen carefully
Imagine youre stood on a beach
Water gently lapping at your feet
But now youre sinking, what were you thinking?
Thats all the time we have this week
Before the truth will set you free, itll piss you off
Before you find a place to be, youre gonna lose the plot
Too late to tell you now, one ear and right out the other one
Cause all you ever do is chant the same old mantra
And I know this doesnt make a lot of sense
But do you really wanna think all by yourself now?
All Im asking fors a little bit of faith
You know its easy to believe
And I know this doesnt make a lot of sense
You know you gotta work the corners of your mind now
All Im asking fors a little bit of faith
You know its easy to, so easy to believe
Before the truth will set you free, itll piss you off
Before you find a place to be, youre gonna lose the plot
Before the truth will set you free, itll piss you off
Before you find a place to be, youre gonna lose the plot
Too late to tell you now, one ear and right out the other one
Cause all you ever do is chant the same old mantra
Oh!


What doesnt kill you makes you wish you were dead
Got a hole in my soul growing deeper and deeper, and I cant take
One more moment of this silence, the loneliness is haunting me
And the weight of the worlds getting harder to hold up
It comes in waves, I close my eyes
Hold my breath and let it bury me
Im not okay and its not alright
Wont you drag the lake and bring me home again?
Who will fix me now? Dive in when Im down?
Save me from myself, dont let me drown
Who will make me fight? Drag me out alive?
Save me from myself, dont let me drown
What doesnt destroy you, leaves you broken instead
Got a hole in my soul growing deeper and deeper, and I cant take
One more moment of this silence, the loneliness is haunting me
And the weight of the worlds getting harder to hold up
It comes in waves, I close my eyes
Hold my breath and let it bury me
Im not okay and its not alright
Wont you drag the lake and bring me home again?
Who will fix me now? Dive in when Im down?
Save me from myself, dont let me drown
Who will make me fight? Drag me out alive?
Save me from myself, dont let me drown
Cause you know that I cant do this on my own
Cause you know that I cant do this on my own
Cause you know that I cant do this on my own
Who will fix me now?
Who will fix me now?
Who will fix me now? Dive in when Im down?
Save me from myself, dont let me drown


My head is haunting me and my heart feels like a ghost
I need to feel something, cause Im still so far from home
Cross your heart and hope to die
Promise me youll never leave my side
Show me what I cant see when the spark in my eyes is gone
You got me on my knees, Im your one-man cult
Cross my heart and hope to die
Promise you Ill never leave your side
Cause Im telling you, youre all I need
I promise you, youre all I see
Cause Im telling you, youre all I need
Ill never leave
So, you can drag me through hell
If it meant I could hold your hand
I will follow you, cause Im under your spell
And you can throw me to the flames
I will follow you, I will follow you
Come sink into me and let me breathe you in
Ill be your gravity, you be my oxygen
So dig two graves, cause when you die
I swear Ill be leaving by your side
So you can drag me through hell
If it meant I could hold your hand
I will follow you, cause Im under your spell
And you can throw me to the flames
I will follow you so you can drag me through hell
If it meant I could hold your hand
I will follow you, cause Im under your spell
And you can throw me to the flames
I will follow you, I will follow you
I will follow you, I will follow you
So you can drag me through hell
If it meant I could hold your hand
I will follow you, cause Im under your spell
And you can throw me to the flames
I will follow you, I will follow you


Can you hear the silence?
Can you see the dark?
Can you fix the broken?
Can you feel, can you feel my heart?
Can you help the hopeless? Well, Im begging on my knees
Can you save my bastard soul, will you wait for me?
Im sorry, brothers, so sorry, lover
Forgive me, father, I love you, mother
Can you hear the silence? Can you see the dark?
Can you fix the broken? Can you feel my heart?
Can you feel my heart?
Im scared to get close and I hate being alone
I long for that feeling to not feel at all
The higher I get, the lower Ill sink
I cant drown my demons, they know how to swim
Im scared to get close and I hate being alone
I long for that feeling to not feel at all
The higher I get, the lower Ill sink
I cant drown my demons, they know how to swim
Im scared to get close and I hate being alone
I long for that feeling to not feel at all
The higher I get, the lower Ill sink
I cant drown my demons, they know how to swim
Can you hear the silence?
Can you see the dark?
Can you fix the broken?
Can you feel, can you feel my heart?


Sometimes I wonder why are we all here
Call me a nihilist, I guess Im just unclear
To why I bother, why I try
Death is on my mind so much, it makes me wanna die
I lost my wife this year, weve lost our friend
Always fighting battles, but it never seem to end
Are we just ladders in the world of snakes?
Cause if lifes one big fuckin game, well, I dont wanna play
So come and sing me, sing me to sleep
I dealt with too much fuckin shit and now Im in too deep
Cut off my wings, my flowers bloomed
You want salvation? Well, Im sorry, were all doomed
Cut off my wings and come lock me up
Just pull the plug, yeah, Ive had enough
Tear me to pieces, sell me for parts
Youre all vampires, so here
You can have my heart
You can have my heart
You can have my heart
You can have my heart
You can have my
The worlds a funeral, a room of ghosts
No hint of movement, no sign of pulse
Only an echo, just skin and bone
They kicked the chair, but we
We helped tie the rope
You can have my heart
You can have my heart
You can have my heart
You can have my
So come rain on my parade cause I wanna feel it
Come shove me over the edge cause my head is in overdrive
Im sorry, but its too late, and its not worth saving
So come rain on my parade
I think were doomed
I think were doomed, and now, theres no way back
You mustve made some kind of mistake
I asked for death, but instead, Im awake
The Devil told me, No room for cheats
I thought Id sold my soul, but he kept the receipt
So leave a light on, Im coming home
Its getting darker, but Ill carry on
The sun dont shine but it never did
And when it rains, it fuckin pours, but I think I like it
And you know that Im in love with the mess, I think I like it
So come rain on my parade cause I wanna feel it
Come shove me over the edge cause my head is in overdrive
Im sorry, but its too late, and its not worth saving
So come rain on my parade
I think were doomed
I think were doomed, and now, theres no way back
I think were doomed
I think were doomed, and now, theres no way back
So come rain on my parade cause I wanna feel it
Come shove me over the edge cause my head is in overdrive
Im sorry, but its too late, and its not worth saving
So come rain on my parade
I think were doomed
I think were doomed, and now, theres no way back


Remember the moment you left me alone and
Broke every promise you ever made
I was an ocean, lost in the open
Nothin could take the pain away
So you can throw me to the wolves
Tomorrow I will come back, leader of the whole pack
Beat me black and blue
Every wound will shape me, every scar will build my throne
The sticks and the stones that you used to throw have
Built me an empire, so dont even try
To cry me a river, cause I forgive you
You are the reason I still fight
So you can throw me to the wolves
Tomorrow I will come back, leader of the whole pack
Beat me black and blue
Every wound will shape me, every scar will build my throne
So you can throw me to the wolves
Tomorrow I will come back, leader of the whole pack
Beat me black and blue
Every wound will shape me, every scar will build my throne
Ill leave you choking on every word you left unspoken
Rebuild all that youve broken and now you know
Ill leave you choking on every word you left unspoken
Rebuild all that youve broken and now you know
Every wound will shape me, every scar will build my throne
So you can throw me to the wolves
Tomorrow I will come back, leader of the whole pack
Beat me black and blue
Every wound will shape me, every scar will build my throne


Some people are a lot like clouds, you know
Cause lifes so much brighter when they go
You rained on my heart for far too long
Couldnt see the thunder for the storm
Because I cut my teeth and bit my tongue
Till my mouth was dripping blood
But I never dished the dirt, just held my breath
While you dragged me through the mud
I dont know why I tried to save you cause
I cant save you from yourself
When all you give a shit about is everybody else
And you just cant quit, why dont you deal with it?
I think its time to stop
You need a taste of your own medicine
Cause Im sick to death of swallowing
Watch me take the wheel like you, not feel like you
Act like nothings real like you
So Im sorry for this, it might sting a bit
Some people are a lot like clouds, you know
Cause lifes so much brighter when they go
And I spent too long in a place I dont belong
I couldnt see the thunder for the storm
But you wont admit, why dont you get a grip?
Cause you cant keep going on and on and on and on like this
And you just cant quit, why dont you deal with it?
I think its time to stop
You need a taste of your own medicine
Cause Im sick to death of swallowing
Watch me take the wheel like you, not feel like you
Act like nothings real like you
So Im sorry for this, it might sting a bit
Cause I cut my teeth and bit my tongue
Till my mouth was dripping blood
But I never dished the dirt, just held my breath
While you dragged me through the mud
Yeah, I cut my teeth and bit my tongue
Till my mouth was dripping blood
But I never dished the dirt, just held my breath
While you dragged me through the mud
And you just cant quit, why dont you deal with it?
I think its time to stop
You need a taste of your own medicine
Cause Im sick to death of swallowing
Watch me take the wheel like you, not feel like you
Act like nothings real like you
So Im sorry for this, it might sting a bit
Taste of your own medicine
Yeah, Im sick to death of swallowing
Watch me take the wheel like you, not feel like you
Act like nothings real like you
So Im sorry for this, it might sting a bit
Some people are a lot like clouds, you know
Cause lifes so much brighter when they go


He asserted that the area was blessed with the highest concentration of exactly those natural features that, when combined, create the most pleasing and relaxing vistas possible landscapes composed of  lakes representing the source of life in water, trees offering the promise of shelter, smooth areas providing easy walking and a curved shoreline or path in the distance to stimulate curiosity.

He implied that this area was a beautiful place.


However, the other young lady was most kind.

She wanted to make up for my disappointment at the turn of events.


I am not aware of any studies comparing the number of words an average person could expect to hear spoken in a typical day 500 years ago vs. the number that can be heard now, but the increase surely is vast.

According to the research I've seen, the average person hundreds of years ago heard many more words over the course of the day compared to a modern human being.


Sultan Abdul Hamid II (1876 1909) tried to apply absolute rule to an empire staggering under a crushing foreign debt, with a fragmented population of hostile people, and succeeded only in creating ill will and dissatisfaction amongst the younger generation of educated Turks.

Sultan Abdul Hamid II was universally admired by educated young Turks.


At 79 m (260 ft) wide and 36 m (118 ft) high, it was built by the Ptolemies during a total reconstruction of the temple in the years 237 105 b.c.

It was built in 105 BC by the Ptolomies.


There are slave irons, traditional island costumes, and an interesting French map of 1778 showing the theatre de la guerre (theater of war) between the Americans and the British.

The Americans won against the British is a quick skirmish.


Homes or businesses not located on one of these roads must place a mail receptacle along the route traveled.

A mailbox needs to be on a traveled route.


It displays some superb marble sculptures of the second century a.d. , most notably a Venus and the Emperor Hadrian and his wife Sabina.

Sabina was the second wife of Emperor Hadrian.


If the face has been getting longer at the bottom over the generations, it has been getting shorter (and broader) on top.

The shape of the face changes over the course of generations.


The RFS system should be available 24/7 especially during the budgeting period. The RFS system shall be available 90% of the time all year and 98% during the budgeting period. 2% of the time the system will become available within 1 hour of the time that the situation is reported.


The WASP platform should be able to decide how to notify the user of an alert for which an event was set.


The system must enable selective harvesting of metadata, including support for OAI-PMH sets; offer API functionality to re-users, conforming to open standards.


Program Administrators/Nursing Staff Members shall have the ability to modify information relating to a Clinical Site including the clinical site name site contact person contact information and address.


The system shall help the user avoid making mistakes while scheduling classes and clinicals for the nursing students.


The Disputes application shall interface with the Statement Database. The Statement Database provides the transaction details to the Disputes System. All transaction details must be obtained from the Statement Database


Users shall be able to view at least 25 NFL player statistics and points on each page.


Program Administrators and Nursing Staff Members shall be able to add a new clinical site into the system.


The System shall allow on demand generation of all Inventory Quantity Adjustment documents since certain point of time.


The product shall assign the organizers contact information to each meeting they create.


p**(2320/11)
Simplify (c**(-20)*c**6/c)**35 assuming c is positive.

sqrt(d)
Simplify ((s/(s**(-2/9)*s*s))**(6/23))**25 assuming s is positive.


Houston Astros Latin American Strength and Conditioning Coordinator Rachel Balkovec shares her journey to becoming the first MLB strength & conditioning coach.

Also, we discuss how it's important not to seek success but take advantage of opportunities until success finds you.

Finally, I ask how it feels knowing she's who young women in the S&C field are aspiring to be.


php

/**
 * Laravel - A PHP Framework For Web Artisans
 *
 * @package  Laravel
 * @author   Taylor Otwell <taylor@laravel.com>
 * @license  https://opensource.org/licenses/MIT MIT
 * @link     https://laravel.com
 */

$uri = urldecode(
    parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)
);

// This file allows us to emulate Apache's "mod_rewrite" functionality from the
// built-in PHP web server.

This provides a convenient way to test a Laravel
// application without having installed a "real" web server software here.

== '/' && file_exists(__DIR__.'/public'.$uri)) {
    return false;
}

require_once __DIR__.'/index.php';


Q:

Collectors collect a list of pair in java

I got a list of pairs that I want to sorted by the left field, I succeed to do it and to get the 25 first element but now the problem is that I want to collect the right element into a list (or even both of them) but I don't know how to do it there is a problem with the toList().

return listOfTokens.stream()
        .sorted((o1, o2) -> Double.compare(o1.getLeft().getCompare(terms.field.docCount),
                                           o2.getLeft().getTfIdf(terms.fielddocCount)))
        .limit(25)
        .collect(toList());

A:

If you want to collect just the right element, use map :
return listOfTokens.stream()
.sorted((o1, o2) -> Double.compare(o1.getLeft().getCompare(terms.field.docCount), o2.getLeft().getTfIdf(terms.fielddocCount)))
        .limit(25)
        .map(o -> o.getRight())
.collect(toList());

If you want to collect both the right and left:
return listOfTokens.stream()
.sorted((o1, o2) -> Double.compare(o1.getLeft().getCompare(terms.field.docCount), o2.getLeft().getTfIdf(terms.fielddocCount)))
        .limit(25)
        .flatMap(o -> Stream.of(o.getLeft(),o.getRight()))
.collect(toList());