{"ArguAna": [{"query": "In the absence of positive evidence for the existence of God the rational position is agnosticism, not atheism: In a situation where there is an absence of either positive evidence for a claim or definite negative evidence for it, the natural response is not rejection of the claim, but rather skepticism and admission of lack of knowledge one way or the other. [1] In the case of religion and God, this position is agnosticism. Humans are fallible organisms, and thus all statements about truth and about the Universe must be qualified by some degree of doubt. Positively rejecting the existence of God, as atheism does, ignores this requisite doubt even though it cannot prove that there is no God. Rather, in the absence of evidence for or against the existence of God, the most the atheist can say honestly is that he does not know. The claims of atheism are positive ones and thus require evidence; an atheist position is thus faith-based in the same way a theist one is. [1] Hume, David. 1748. An Enquiry Concerning Human Understanding. New York: Oxford University Press (2008).", "pos": ["y epistemology religion church faith religion general god morality secularism The rational position in the absence of positive evidence about God is not agnosticism, but atheism. While there is always a degree of doubt in every statement, this does not mean that negative claims about an entities existence can never be made. One can rationally state that fairies do not exist, even if there is no positive evidence for their non-existence. The very fact that no evidence exists for the existence of fairies, in the same way there is no evidence for the existence of God, is evidence of the negative. Thus, in the evidence of positive evidence for God, the rational default position is atheism."], "neg": [" The pursuit of pain for the purpose of achieving pleasure is an immoral act Not only does the state have the right and obligation to uphold the morals of society and stop deviant behavior, but it also has an obligation to prevent escalation of deviance. Acts such as sadomasochism are good indicators of the propensity for escalation to further deviant acts. With the passing of the Anti-Social Behaviour Act 2003 [i] in the UK, a legal precedent has been established where the government has the right and obligation to tackle minor deviant behavior as it can be a precursor to larger and more harmful deviance in the future. Even if S&M was \u201cvictim-less\u201d, it demonstrates a propensity to inflict pain to gain pleasure and thus indicates high risk for developing a craving for infliction of pain of higher magnitude and scope in the future, which could be even more damaging to society. [i] Anti-social Behaviour Act 2003.\" legislation.gov.uk. The National Archives, n.d. Web. 20 Jun 2011.", "e international africa house would provide access microfinance unbanked One of the key benefits highlighted about Oxfam\u2019s Saving for Change Initiative is the empowerment provided for women. Women are argued to be more independent, able to organise within communities, and provided with a voice of power. However, are women empowered? In the cases of microfinance in Cameroon, Mayoux (2001) highlights the inequalities operating within community groups. The message is we cannot rely on communities, and social capital, for empowerment as women within such communities have different relations to power. The ability for women to use savings and credit for self-empowerment is limited by wider, traditional, gender inequalities. Microfinance may act to reinforce unequal power relations and positions within society. Furthermore, women\u2019s empowerment needs to be understood as complex. [1] Real, and strategic, empowerment for women goes beyond increased access to economic resources. So how can microfinance ensure true empowerment? [1] See further readings: Sutton-Brown, 2013.", " Foreign policy should follow the will of the people Sanctions are not the will of the American people but of a small minority of embittered Cuban Americans in Florida who are being pandered to due to their importance in elections in a swing state. [1] Congressman Charles Rangel argues that the only success of the sanctions policy has been to \u201cappease the Republican constituency in Florida\u201d. [2] National opinion generally expresses no preference or opposes the ban, in a 2009 CBS poll asking \"Do you think the United States should or should not re-establish diplomatic and trade relations with Cuba?\" 67% said should. [3] Sanctions remaining in place is electioneering government at its worst, domestic interest groups controlling government foreign policy. As Karl Rove has admitted \"When people mention Cuba to me, it makes me think of three things: Florida, Florida, and Florida.\" [4] [1] Griswold, Daniel, \u2018Four Decades of Failure: The U.S. Embargo against Cuba\u2019, 2005. [2] DeYoung, Karen, \u2018Sanctions Against Cuba Are Excessive, GAO Says\u2019, 2007. [3] Pollingreport.com, \u2018Cuba\u2019. [4] Rosenthal, Joel H., \u2018The Cuba Wars: Fidel Castro, the United States and the Next Revolution\u2019, 2009.", "y epistemology religion church faith religion general god morality secularism If there is a benevolent deity, then there should not be the kinds of evil observable in the world and He would likely show more interest in His creation than He appears to have done so far: If God, or the gods, were good there would be no evil in the world. Disasters would not kill millions of innocents, disease and hunger would not claim the lives of children every day, war and genocide would not slaughter people indiscriminately as they have done for countless bloody millennia. The world is awash with blood, pain, and suffering. No loving God would make a world so imperfect and troubled. [1] The world\u2019s ills are perfectly explained by the natural, amoral development of the Universe, of life, and of humanity. The reality of the Universe, however, is incompatible with a God of goodness, as He is conventionally described by today\u2019s predominant religions, which stem from the Abrahamic tradition. [1] Tooley, Michael. 2009. \u201cThe Problem of Evil\u201d. Stanford Encyclopaedia of Philosophy. Available:", "onal americas politics government house wants line item veto amendment A President would be able to abuse the power given to them in a line-item veto authority, leveraging it into undue influence over other elements of the legislative process. By threatening to veto items dear to particular Congressmen, they could obtain assent to bills, treaties and appointments that otherwise would not be forthcoming. Such intimidation would be subtle and hard to prove, but it would erode checks on the executive and fundamentally alter the balance of power within the constitution. This means that budgets are politicised even more than is currently the case. When the line item veto was previously used by Clinton republicans such as Rick Santorum argued that every decision \"has political overtones, but that's fine, it comes with the territory,\" Senator Ted Stevens went further \"We're dealing with a raw abuse of political power by a president who doesn't have to run again\".1 1 Hugliotta, Guy and Pianin, Eric, 'Line-Item Veto Tips Traditional Balance of Power', Washington Post, 24/10/97,accessed 5/5/11", " Now Damaging Gender Roles? There is certainly a case to be made that women, in modern-western society have completely shattered the traditional values and roles that are best suited to them. For example, it has always been the case that men have been the providers, the defenders of themselves, the household and the family. Women have been the maintainers of these things. These things are not unfair. They are not unequal. They are simply what each gender is best suited for. Women should not feel lesser than men simply because they are \"supposed\" to do \"motherly things\". The feminist movement has gone beyond its cause in beginning to deem what role in life is more appropriate.", " Profiling is racist: Profiling in many ways would simply result in institutionalized racism, as Mark German argues: \u201cracial profiling is wrong, un-American and unconstitutional. It is institutionalized racism.\u201d [1] Mark Thompson adds: \u201cSo it\u2019s not 'political correctness' (aka the Equal Protection clause of the 14th Amendment) that is standing in the way of replacing full-body scans with a strong and effective profiling system: its reality. All that 'political correctness' is preventing is the implementation of an equally (and likely even more) ineffective piece of security theater in which we single out one minority group for intensive screening while giving a pass to everyone else. This would certainly annoy fewer people, but it wouldn\u2019t make us safer and its sole benefits would be accomplished by treating an entire minority group as second-class citizens.\" [2] In any legal system which claims to give its citizens equal rights or equal protection of the law, security profiling is unacceptable. Profiling will target certain groups more than others. Even innocent members of these groups are made to feel like second-class citizens, and that the government suspects them of being terrorists without evidence \u2013 simply because of who they are. These individuals will be very visibly reminded of this every time they are segregated out at airport security, while they watch other non-suspects (who will be predominantly white and Christian, or at least non-Muslim) not being subject to the same scrutiny. The non-suspects will see this as well, and this may re-enforce any notions they have that all Muslims are potential terrorists and thus are suspect. Therefore because security profiling harms certain groups of citizens in unacceptable ways, it should not be instituted. [1] German, Michael. \"Wrong and Unworkable\". New York Times Room for Debate. 4 January 2010. [2] Thompson, Mark. \"Profiling, Political Correctness, and Airport Security.\" The League of Ordinary Gentleman. 29 November 2010.", " Participatory Democracy Produces Better Decisions Participatory democracy will lead to better decisions because laws will only be passed if they can be justified to the people. Professional politicians are disproportionately drawn from the privileged classes and are often ignorant of the effects their policies will have on ordinary people \u2013 as are the civil servants who advise them. Moreover, professional politicians are susceptible to corruption, lobbying or bullying by powerful vested interests seeking to direct government policy away from the general interest represented by the vast majority of the individual citizens, who generally lack such a determinant influence over the decision-making. Participatory democracy will therefore make sure that the legislation that is passed will help the people as much as possible; for example they will limit unecessary bureaucracy and make sure that policies are fair. Thus for example Switzerland has passed with 68% of the vote in a referendum a proposal that prevents big payouts for managers known as \u2018golden handshakes\u2019 and \u2018golden parachutes\u2019 and shareholders will have a veto over saleries. [1] [1] Willsher, K., and Inman, P. (3 March 2013) \u201cVoters in Swiss referendum backs curbs on executives\u2019 pay and bonuses\u201d The Guardian."]}, {"query": "Client-Attorney Privilege is already qualified appropriately In exceptional circumstances, solicitors are told that they may depart from the rule of confidentiality contained in Rule 4 of the Solicitors' Code of conduct. Note 9 states that there are some regulatory bodies that are entitled to be informed of apparently confidential client communications. [1] In cases of suspected money laundering, solicitors have a duty under the Money Laundering Regulations 2007 [2] to inform relevant bodies of any suspected money laundering or any handling of the proceeds of crime. This means that there is flexibility in the rule of client confidentiality and client-attorney privilege which allows for justice to take its course in serious circumstances. [1] Rule 4: Confidentiality and disclosure, Solicitors\u2019 Code of Conduct 2007, accessed 18/05/11 [2] The Money Laundering Regulations 2007, legislation.gov.uk, No2157, 2007,", "pos": ["law general house believes attorney client privilege should be abolished The circumstances under which Note 9 allows such a break in the rule of client-attorney privilege is for the HM Revenue and other bodies that act for the benefit of the Government. It is rather archaic that a principle such as that of attorney-client privilege is loosened only for bodies that act for the benefit of the Government. This does not show that attorney-Client privilege is necessary but that it is not. If the Government is willing to do away with it for their monetary benefit, why can we not do away with it in the interest of justice for society? There should be a system that encourages the adversarial system, and attorney/client privilege but yet allows a variety of circumstances to override this principle, such as public interest and public security. These principles are often used to justify potential Human Rights breaches, so we should also be able to use them to justify the breach of attorney/client privilege."], "neg": ["eneral politics politics general house would limit right bear arms Guns don\u2019t kill people \u2013 people kill people. Restricting gun ownership will do nothing to make society safer as it is the intent of the criminal we should fear, and that will remain the same whatever the gun laws. In the vast majority of crimes involving firearms, the gun used is not legally held or registered. Many of illegal weapons are imported secretly from abroad, or converted from replica firearms rather than being stolen from registered owners.", "eneral politics politics general house would limit right bear arms Gun ownership increases the risk of suicide There is a correlation between the laxity of a country\u2019s gun laws and its suicide rate \u2013 not because gun owners are more depressive, but because the means of quick and effective suicide is easily to hand. As many unsuccessful suicides are later glad that they failed in their attempt, the state should discourage and restrict the ownership of something that wastes so many human lives.", " After years of detention and separation from the battle field and terrorist networks, many Guantanamo detainees have no more value to US intelligence gathering efforts and national security, and so this is not a reason to continue their detention. Moreover, there are tens of thousands of anti-American terrorists around the world. Releasing a handful of the 250 detainees that are actually terrorists but that can't be tried in the US would be a drop in the bucket for terrorism and the war on terror.", "living difference house would ban music containing lyrics glorify It is usually the task of movie classification organisations such as the MPAA and the British Board of Film Certification to judge whether the content of a film should be cut or altered. In most cases these groups will be politically independent, but may be politically appointed. They will make the decision to cut content based partly on the criteria described above. A movie will only be censored if it contains shocking or offensive images used in a way that suggests that violence is glamorous, entertaining or without consequences. There is a broad consensus in western liberal democracies on what constitutes a highly shocking or offensive image. For example, in even the most permissive societies, open and public images of sexual intercourse would be considered problematic. Similarly, graphic depictions of violence against vulnerable individuals would be open to wide condemnation. The thing that unifies each of these categories of image is that they can be easily understood and interpreted by the majority of people. Even a casual observer can understand that pornography is pornography. This is part of the reason why some states try to control extreme images \u2013 because they are both powerful and emotive, and easy to produce, display and distribute. However, music and lyrics are different from images. Language contains a degree of abstraction, depth and nuance that only the most unconventional (and non-commercial) film could replicate. This is problematic, because it is much harder for censors and members of the general public to agree on an exact definition of an offensive statement or form of words. Complex legal processes are used to determine whether or not offensive statements are sufficiently offensive to be classed as hate crimes. Even more complex are the legal procedures used to determine when an individual\u2019s reputation has been damaged by allegations published in books or periodicals. It will be much harder for ratings or certification boards to decide when a particular song is violent or offensive due to the range of meanings and ambiguities that are built into language. For example, the verse \u201cGot a temper nigga, go ahead, lose your head/ turn your back on me, get clapped and lose your legs/ I walk around gun on my waist, chip on my shoulder/ \u2018til I bust a clip in your face, pussy, this beef ain\u2019t over,\u201d can either be seen as a series of boastful threats, delivered directly by the musician, but it could also be reported speech \u2013 a lot of hip hop music is based on narratives or performer\u2019s accounts of past events. It could also be intended to invite condemnation of the behaviour of the character that the speaker has assumed. Hip hop artists frequently use alternative personas and \u201ccasts\u201d of characters to add depth to the narrative dimension of their tracks. Under these circumstances, the process of classifying and censoring potentially violent lyrics is likely to become laborious. More important than the expense that this process will entail is the possibility that the chilling effect of a prolonged classification process will cause music publishers to stop promoting hip hop, metal and other genres linked with violent imagery. Lack of funds will curtail innovation and diversity in these genres.", " Could be cheaper While budget should not be the primary concern of the justice system, The death penalty, when applied properly, can be cheaper. A lethal injection, or a few bullets, costs far less than keeping a person incarcerated for a long time, especially if they need long term health or other care in old age. The longer someone is in jail the greater the cost to the state. The costs of the implementation of the death penalty are driven up by anti-death penalty activists using the appeals system. Since the death penalty would only be applied to the worst of the worst when there is absolute moral certainty there would be less need for extensive appeals because there would be less marginal cases.", "onal europe politics defence leadership house favours common eu foreign policy Consultation, collaboration and the attempted creation of a common set of values has not worked and is not likely to work. This language is not much different from what we have heard with every attempt the EU has made to push for further political integration. The role of the Common Foreign and Security Policy (CFSP), as agreed upon back in 1993 during the Maastricht Treaty, was in fact presented very much along similar lines. Fifteen years later however, that united front has not been created. If anything, the EU\u2019s political union, and certain any attempts towards a common foreign policy, have completely disintegrated when faced with the War in Iraq and the larger war on terror and more recently the Euro debt crisis on another front.", " Nuclear power is potentially extremely unsafe It is unfortunately the case that the nuclear industry has a bad reputation for safety. This is undeserved. The overwhelming majority of nuclear reactors have functioned safely and effectively for their entire lifetimes. The four historic nuclear disasters (1957 Windscale Fire, 1979 Three Mile Island and 1986 Chernobyl, 2011 Fukushima, Japan) killed fewer people than the oil and coal industries have1. \"The multi-agency U.N. Chernobyl Forum reported last year that 56 deaths could be directly attributed to the accident, most of those from radiation or burns suffered while fighting the fire. Tragic as those deaths were, they pale in comparison to the more than 5,000 coal-mining deaths that occur worldwide every year\"2. Further, the two major nuclear accidents, at Three Mile Island and Chernobyl, were both in old style reactors, made worse in the latter case by poor Soviet safety standards. The Chernobyl disaster took place at a time when our understanding of nuclear issues was much lesser than it is now, and was the result of poorly trained staff in the plant's control room. Power stations today are better staffed, better maintained and better understood, and because the effects of an attack upon them are acknowledged, they are better defended and monitored by the armed services. No system can be 100% safe, but solid design principles can minimize risk. Perhaps the best guarantee of safety standards in the nuclear industry is the increasing transparency with which the industry is presenting itself. Many of the problems in its early days were caused by excessive control due to the origin of nuclear energy from military applications. As the gap between the two separates so the nuclear industry becomes more accountable. The question is, is the slight risk of a nuclear accident a worse danger than the inevitable climate catastrophe that awaits us? 1 'Risks of Nuclear Power' by Bernard Cohen, University of Pittsburgh, 2Patrick Moore, a prominent environmentalist and founding member of Greenpeace, \"Going Nuclear A Green Makes the Case\", Washington Post, 4/16/06\"", " The Opposition is perfectly happy to be attacked for making life easier for people with disabilities by taking down barriers that separate them from the wider population. There a parts of any community that prefer to do things in a certain way, however governments rarely commit to guaranteeing all preferences, instead they guarantee a basic level of service provision and then offer choice where possible and affordable. This is true in education and welfare right through to national defense \u2013 militaries, except the US, tend to specialise and rely on allies for other operations."]}, {"query": "A federal Europe will ensure that large, multinational businesses remain accountable for their actions In a globalised economy, there is a need to tame multinational corporations, which would be otherwise capable of playing national governments off against each other in search for low wages, social costs and state protection. A federal Europe would be powerful enough to demand high standards of behaviour from such companies, because only a powerful and economically significant player can dictate restricting conditions. This would ensure fair wages, safe working conditions and - additionally - Europe would be able to force the multinational companies to implement correct and holistic policies and would also be in a position to make a greater difference on environmental issues such as global warming. Sovereignty becomes less relevant when effective independence is lost anyway as the economy and the problems faced by all nations are increasingly globalised.", "pos": ["europe house believes federal europe The assumptions about the multinational corporations are not actually proved. National governments close deals with such corporations if both sides have interest in it. Even if we assume such a thing existed nowadays \u2013 in a federal Europe the same problem would occur only not with countries, rather with regions. That is because every region would want the company to create more business in its area so we will end up with the assumed status quo today. The EU today is already strong enough in regards to implementing environmental policies and restrictions \u2013 the carbon tax, the cap and trade system. Dealing with the international issue of global warming is not a point of a federal Europe or the EU, but a completely different matter."], "neg": [" Paying housewives for their work is an important form of economic empowerment. One of the most important factors of oppression of women\u2019s rights, particularly in the developing world, is dependence [1] . Women are often confined to the home by force, lack of opportunity or social stigma, on behalf of their husbands. When she is not paid, a housewife must rely on her husband for money, especially if she has children she is expected to take care of. Economic empowerment allows further freedom for women in countries where women are confined to the home [2] . By making women economic actors, you empower them to engage in different social structures and hold a stake and position in the centres of economic power. This is the most empowering tool one can offer women in most countries around the world [3] . By paying housewives for their work, you offer one of the most powerful forms of social empowerment for women around the world. [1] United Nations. Women's Work and Economic Empowerment. Accessed July 1, 2011. . [2] United Nations. Women's Work and Economic Empowerment. Accessed July 1, 2011. . [3] United Nations. Women's Work and Economic Empowerment. Accessed July 1, 2011. .", " A DNA database would reduce the time spent tracking down suspects A DNA database is not intended to replace conventional criminal investigation. The database ought to identify the potential suspects, each of whom can then be investigated by more conventional means. During 2008/09 in the United Kingdom, 'almost 6 in 10 crime scene profiles loaded to the National DNA Database were matched to a subject profile'1. There is no possibility of escaping the provision of technical evidence before a court. Doctors, ballistics experts, forensic scientists are already a common feature of the large criminal trial. The jury system is actually a bastion against conviction on account of complicated scientific facts. The British jury is instructed to acquit a defendant where they find reasonable doubt. If the genetic data and associated evidence is insufficiently conclusive, or presented without sufficient clarity, the jury is obliged to find the defendant not guilty. 1 NDNAD. (2009). National DNA Database: Annual Report 2007-09. Retrieved May 19, 2011, from", " Dress Codes instead of school uniform Rather than having school uniform, why not have a dress code instead? This has all the benefits of uniform without the many disadvantages. While uniforms force all children to wear the same clothes, dress codes give students a lot of choice what to wear. Only a few unsuitable things are banned - for example, gang colors, very short skirts, crop tops, bare shoulders, etc", " Collaboration in editing does not encourage democratic principles, but merely privileges the loudest voice, or in this case, the most regular user. As such, creating knowledge by consensus is inherently flawed. A fact is not true simply because lots of people think so. Traditional encyclopaedias are written and edited by academics and professional experts, whose reputation is put on the line by the articles they produce. They have the credentials and expertise that give them the authority to write without requiring widespread communal feedback. However, anyone can write a Wikipedia article, regardless of how much or how little knowledge he or she has of the subject. Worse yet, because contributors are effectively anonymous, it is impossible to assess the quality of an article on an unfamiliar topic by assessing the credentials of those who have produced it. Collaboration, therefore, becomes a barrier to the provision of reliable, accurate and up-to-date information.", " Because religion combines dogmatic certainty with the existence of the afterlife, violence and death is all too easy to justify Particularly in the case of contemporary Islam, although other historical examples could be referred to, the combination of certainty and the promise of life after death is a sure route towards violence. That said, Catholics and Protestants in Northern Ireland demonstrated this until recently; the Yugoslav wars between Catholics, Orthodox and Muslims, both sides of the battle for Israel/Palestine and many others in history could also be thrown into the mix. Allowing people the opportunity to claim that \u201cGod\u2019s on our side\u201d can be used to justify anything, especially when He appears to be fighting on both sides.", " Intellectual women migrants outnumber intellectual men migrants The need of belonging is greater for women than for men \u2013 Bardo and Bardo found that they miss home much more (5). On the other hand, unequal and discriminatory norms can be strong drivers of intellectual female migration (1). More young women than men now migrate for education and, in several European countries today, highly skilled migrant women outnumber highly skilled migrant men (1). Between 2000 and 2011, the number of tertiary-educated migrant women in OECD countries rose by 80%, which exceeded the 60% increase in the number of tertiary-educated migrant men. In Africa for example, the average emigration rates of tertiary-educated women are considerably higher than those of tertiary-educated men (27.7% for women and 17.1% for men).", " Alcoholism is a disease, if the story was that the president had measles, it wouldn\u2019t have got a mention. Let\u2019s take an historical example of the \u2018well-being of the head or state\u2019 in \u2018democracies around the world\u2019. A majority of US citizens were unaware that FDR was wheel chair bound \u2013 even after his death. [i] The fact the Churchill hit the bottle early in the morning was never mentioned to voters in the UK, even at their \u201cdarkest hour\u201d, and still remains a matter of debate. [ii] The French have long ignored the streams of mistresses wandering in and out of the \u00c9lys\u00e9e Palace throughout the history of the Fifth Republic. [iii] All of these things were well known by the journalists of their time but there was no need for the story to be revealed. The allegation of the opposition was that Calder\u00f3n was a drunk, this then became a suggestion that he was an alcoholic \u2013 they\u2019re different things. This rather suggests that now research at all was undertaken into the allegation but that a slur was repeated as though it were news. Because of popular confusion between the two, it was repeated, presumably, because it was salacious. Hardly the highest standards of journalism [iv] . [i] Anderson, Stacy, \u2018FDR made 'tacit agreement' with public about disability\u2019, The University Record Online [ii] Richards, Michael, \u2018Alcohol Abuser\u2019, The Churchill Centre and Museum at the Churchill War Rooms, London, 19 January 2009 [iii] Rocco, Fiammetta, \u2018Widows in weeds, mourning mistresses - plus ca change to the French\u2019, The Independent, 14 January 1996 [iv] UK National Union of Journalists (NUJ) Code of Conduct. The NUJ code is widely seen by British journalists as the final word on journalistic ethics. It is also widely ignored in practice.", " Ethno-religious divides are a bigger security threat Poverty is clearly an immense problem for Africa but it is not primarily a security problem. There are parts of the globe such as South Asia and parts of South East Asia that have comparable poverty but little conflict and violence. Moreover not every African country is plagued with conflict. We therefore must look elsewhere for why Africa has high levels of conflict. Religious and Ethnic divisions are a much more direct security threat and cause for conflicts. To start with, it is extremely easy to blame people of other ethnicity or religion of your own problems. This occurs throughout the world, no matter if we are talking about immigrants coming into the EU and US, about the Kurdish population in Turkey or about Israel and Palestine. Africa has 3315 ethnic groups, a huge number (1). Unlike Europe these have not been formed into cohesive nations with colonial borders often arbitrarily cutting through ethnic groups. A conflict is 25 percent longer and has a has a higher casualty rate when an ethnicity is divided by a national border. Examples of divided (and conflicted) groups are the Maasai of Kenya and Tanzania, and the Anyi of Ghana and the Ivory Coast. (2) Division also occurs between religions. Samuel P Huntington wrote a famous book \u2018The Clash of Civilisations\u2019 that highlights that conflict is often created between religions. In Africa this means conflict in a swathe of northern Africa where Islam and Christianity meet. For example, the Muslim terrorist organization called Boko Haram, which has a lot of support in Nigeria, is engaged in a massive against Christians which has been responsible for the deaths of hundreds of non-Muslims.(2) (1) Wentzel, Dr. John, \u2018Who are the developing world\u2019, johnwentzel.com, 28 February 2013, (2) Gilman, Azure, \u2018The Violent Legacy of Africa\u2019s Arbitrary Borders\u2019, Freakonomics, 12 January 2011, (3) Stark, William, \u201cBoko Haram's Anti-Christian Violence Continues in Northern Nigeria\u201d, Religion Today, 13 September 2013,"]}, {"query": "People will die if we don\u2019t do animal testing Every year, 23 new drugs are introduced in the UK alone.[13] Almost all will be tested on animals. A new drug will be used for a long time. Think of all the people saved by the use of penicillin. If drugs cost more to test, that means drug companies will develop less. This means more people suffering and dying", "pos": ["animals science science general ban animal testing junior Many of these drugs are \u201cme too\u201d drugs \u2013 ones with a slight change that doesn\u2019t make much difference to an existing drug. [14] So often the benefits from animal testing are marginal, and even if there was a slight increase in human suffering, it would be worth it based on the animal suffering saved."], "neg": ["economic policy society immigration house believes developing nations should While factually true for developed nations, this point completely disregards the reality of developing nations. Most of the labour that is available is unskilled, whether it is in the rural or urban communities. There is little reason to believe that the poor will automatically be able to gain better education should they move to the city. The harm caused by letting migrants flood the cities to lead a miserable life greatly outweighs that of having one or two too intelligent farmers who miss out on their calling.", " Bribery is only wrong under a Western-centric notion of corruption Norms and values differ between countries. In many non-western societies gift taking and giving in the public realm is a matter of traditions and customs. Moreover, gift giving is a part of negotiations and relationship building in some parts of the world. It is hypocritical for the west to target developing countries for this as many so-called democracies are hopelessly compromised by business interests through political funding and lobbying. The United States Foreign Corrupt Practices Act bans large bribes but allows for the payment of small \u2018customary\u2019 sums in order to ease transactions. [1] [1] The Economist, \u2018When a bribe is merely facilitating business\u2019 June 11th 2011,", " How this would work This policy involves an active disclosure campaign, through websites and the newspapers, where a sex offender has their name, their photo, their address and the nature of their crime published on a website, or in the local media. It may include poster campaigns about individuals for particularly serious crimes, with the aim of both informing people and causing shame. It may be sensible to allow the police to not disclose the information in the following circumstances; 1) where a significant risk of vigilantism exists, 2) where it is against the wishes of the victim, and 3) where it may jeopardize an ongoing criminal investigation. Early studies showed that Megan's law in the United States had high rates of voluntary compliance, between 70 and 80% and rising, proving that the policy is practical1. 1 Simpson, Rachel, ''Megan's law' and other forms of sex-offender registration', NSW Parliamentary Library Research Service, Briefing Paper NBo. 22/99, November 1999,", " Keeping funds from government has negative consequences for spending Let us not forget that in most of the cases when we talk about oil revenues, we are talking about very large sums of money, which can have an immense impact on the budget. In countries where oil already contributes to the budget any change could be immensely disruptive to the government\u2019s ability to deliver services. If we take Venezuela as an example oil revenues account for 25% of GDP (1), with government expenditure of 50% of GDP (2) any drop in oil revenues would have an immense impact upon social policies such as education, health and welfare. For those where the funding would be new that country would be foregoing a potentially transformative sum of money that could help to eliminate poverty or provide universal healthcare and education. Such a drop in funds flowing into the government would also have a huge impact on politics; politicians would block the implementation of a proposal that takes away so much revenue. If it did happen the independent fund would simply get criticism heaped on it as an excuse for why services can\u2019t be improved. (1) Annual Statistical Bulletin 2013, \u2018Venezuela facts and figures\u2019, OPEC, 2013, (2) 2013 Index of Economic Freedom, \u2018Venezuela\u2019, Heritage Foundation, 2013,", " Allowing grey goods breaks down monopolies and passes on lower prices to consumers. Allowing grey imports means that manufacturers do not concentrate economic power in a monopolistic way which can be damaging to free trade (even Adam Smith1believed certain monopolies were antithetical to free trade). Banning them is tantamount to granting a licensed monopoly or cartel on a country-by-country basis, which inevitably means higher prices for consumers. As manufacturing has increasingly been relocated into a smaller number of offshore countries, rather than in the country of purchase, it makes sense that other parts of the supply chain should make a similar move so that they too can realise the efficiency benefits of a globalised economy. 1 Smith, Adam, \"An Inquiry into the Nature and Causes of the Wealth of Nations\" 1776", " Pursuance by the ICC doesn't actually result in punishment of the leader; empirically, it has actually strengthened criminals' power after criticizing them. Nations, such as African nations like Chad, have painted the actions of the ICC as signs of Western imperialism and domination. Sudan's Bashir, accused of genocide and other crimes against humanity, used the ICC's arrest warrant against him as a sign of heroism and created a rally-around-the-flag effect, further strengthening his regime. Moreover, the ICC's work encourages leaders to cling to their power rather than give it and face prosecution, making punishment even more difficult. At worst, the ICC is actually counterproductive when it comes to punishing leaders and giving them retribution; at best, it is simply an ineffective court.1 1 \"The International Criminal Court: Why Africa Still Needs it.\" The Economist, 3 June 2010.", " Prevents the marginalisation of non-believers The inclusion of the words \u201cunder God\u201d in the Pledge of Allegiance implies that there is no place for atheism in American patriotism and that non-believers have nothing to give to their country. The removal of these words would create a more inclusive America that accepts that everyone, including all non-Christians and non-believers, have something to give to their country. (Buckner 2002)", " The US has a right to expect that its taxpayers' money is spent responsibly. The United States has made a significant investment in the institution. Not only was it a founder, but it plays host to the body in New York and makes the largest contribution of any nation each year. \"The debate over whether the United Nations will continue to overcharge American taxpayers is over \u2014 and the U.S. wound up on the losing end. In a dramatic turnaround from steady declines since 2001, the percentage that the U.S. will be charged for U.N. peacekeeping has been sharply increased for the next three years, and U.S. taxpayers will end up paying roughly $100 million more each year than they would have if the 2009 assessment rate had been maintained.\u201d [1] This is not acting responsibly in a time where Americans are feeling the pinch from the economic downturn. American taxpayers recognize that their society faces a great many problems that could be addressed with the dollars that are annually spent on the UN. While Americans are generally supportive of the institution, they have a right to know that their investment is used appropriately and pays dividends in good policy. [1] Schaefer, Brent. \u201cU.N. Dues: Obama Lets American Taxpayers Down\u201d 6/01/2010 ."]}, {"query": "The apparent loss of liberty is overstated. Negative cases of security abuse are few and have been greatly exaggerated by an emphatic civil rights lobby that has no empathy for the victims of terrorism. Of course, with any wide-scale attempt to fight terrorism there are bound to be a few cases of abuse of security measures. For example in the UK terrorism suspects were originally detained without charge under the Anti-Terrorism, Crime and Security Act however the detention was declared unlawful by the law lords in 2005 so the government introduced new scaled back policies such as \u2018control orders\u2019. [1] Therefore government has always been willing to scale back its security legislation when the courts believe it goes too far. Nonetheless it is not a good idea to shut down all security measures under a pretext that they violate rights [2] . The majority of the measures are intended to safeguard those civil liberties instead of abusing them. [1] Hewitt, Steve, THE BRITISH WAR ON TERROR TIMELINE, Libertas, 2007, , accessed 9 September 2011 [2] Stratton, Allegra and Wintour, Patrick, \u2018Nick Clegg goes to war with Labour over civil liberties\u2019, guardian.co.uk, 13 April 2010, , accessed 9 September 2011", "pos": ["political philosophy house believes civil liberties should be sacrificed If there is even a slight injustice, then there is a problem worth addressing. It is a fact that recent anti-terrorism legislation, in nearly all western countries, has been used for a variety of uses from international banking [1] to petty thievery. This is obviously beyond the original intentions of these measures; something that should not be taken lightly. [1] Wintour, Patrick, and Gillan, Audrey, \u2018Lost in Iceland: \u00a31billion from councils, charities and police\u2019, 10 October 2008, , accessed 9 September 2011"], "neg": [" Unhealthy food is cheaper A reason why people eat unhealthy foods is that it\u2019s often cheaper and easier than cooking something with fresh ingredients. Studies have shown that not only is junk food cheaper, its costs are less likely to increase due to inflation [14]. This was confirmed by research in Australia that showed that while healthy food became more expensive, junk food got cheaper [15]. Obesity is more common amongst poorer people. Because junk food is so cheap, it is eaten more. The best way to change this consumption pattern is to tax unhealthy food so that the healthy option is also the cheaper option.", " It certainly doesn\u2019t prove the point, it does however highlight one. As a result of religious teaching the majority of people have, at different points in history, been certain that; The Earth was flat, The Earth, or even a particular point on the earth, was the centre of the universe, The Earth is less than six thousand years old, Certain races were not human [i] Women were created inferior to men If ever evidence were needed that the majority are frequently and alarmingly wrong, then religion provides it in abundance. [i] For example the Christian concept of Polygenism \u2013 the notion that the white races were descended from Adam and others not \u2013 has had several outings during history. Among other things it has been used to justify slavery, apartheid and imperialism.", " Regardless of what Puerto Ricans may or may not \u201cdeserve\u201d, the fact is that Puerto Ricans have rejected statehood many times now, making their voices heard on this issue many times since the late 1960's. The island has repeatedly voted to remain a commonwealth when votes were taken in 1967, 1993, and 1998. [1] If Puerto Ricans actually like their current status enough to vote for it when presented with the alternatives of statehood or independence, where is the injustice in that status continuing? [1] United States Council for Puerto Rico Statehood. \u201cStatehood Issues\u201d. United States Council for Puerto Rico Statehood. 2004.", " The actions by Columbia and Sri Lanka do not alter the fact that, as noted earlier, the recruitment of child soldiers in Africa and elsewhere is still endemic in 2013. And while the Lord\u2019s Resistance Army and its leader Joseph Kony have indeed been muted, that is largely due to the initiative of the U.S. government which has itself refused to ratify the ICC\u2019s Statute. [1] [1] Schomerus, Allen and Vlassenroot", " The issue of Israel/Palestine has been a major one for the UN for sixty years, it is simply unfair that one of the parties represented and the other one is not The territory claimed by both the state of Israel and the state of Palestine is contested. These matters should be settled by the UN but this is not possible when one of the parties is represented but the other is not. It is simply against the principles of natural justice \u2013 let alone the precepts of international law \u2013 for only one party in any dispute to be fully represented where the other is not. Essentially, this is a fraud that has been perpetrated for over sixty years, in the interests of politics, justice has been ignored; Israel has been given recognition when Palestine has not, which body has the right to speak for the populace of that disputed territory should not be a matter imposed from outside but for the inhabitants of the land itself.", "animals science science general ban animal testing junior Many of these drugs are \u201cme too\u201d drugs \u2013 ones with a slight change that doesn\u2019t make much difference to an existing drug. [14] So often the benefits from animal testing are marginal, and even if there was a slight increase in human suffering, it would be worth it based on the animal suffering saved.", " The fact that religious thought tends to be subverted to defend the status quo is hardly a compelling argument as the same can be said for almost all forms of thought. There is a natural backlash from vested interests against any innovation and religion should not be blamed for having this same tendency. We should however not rule out the need to take a moral approach to some things for example; using stem cells might have huge medical benefits but it still needs to be considered whether it is morally right.", " Not all rebels have disarmed; the FDLR group has said it will disarm but has not done so. [1] The disarmament, demobilization and reintegration programme faces coordination and financial problems. There is a security threat from volatile border regions that might reverse the whole DDR effort as militias and military units struggle for control over resources and terrorise the local population. MONUSCO can't protect the repatriated civilians, which may mean any demobilisation is only temporary. If violence flares then so will guns be taken up once more. [1] Mvano, Chrispin, \u2018U.N. Congo peacekeepers question Rwandan rebel disarmament claim\u2019, Reuters, 4 February 2014,"]}], "ClimateFEVER": [{"query": "Coastal lake sediments along the Gulf of Mexico shoreline from 1,000 to 2,000 years ago suggest more frequent and intense hurricanes than occur today.", "pos": ["Paleotempestology Paleotempestology is the study of past tropical cyclone activity by means of geological proxies as well as historical documentary records . The term was coined by Kerry Emanuel ."], "neg": ["Indian Red '' This article refers to the traditional New Orleans song ; for the color see Indian red ( color ) . Indian Red is traditionally sung at the beginning and at the end of gatherings of Mardi Gras Indians in New Orleans . It is a traditional chant that may have been first recorded in 1947 by Danny Barker for King Zulu label ( Barker on guitar & vocals , Don Kirkpatrick on piano , Heywood Henry on baritone saxophone , and Freddie Moore ) . It has since been recorded many times by , among others , Dr. John and Wild Tchoupitoulas .", "Independent Battalion West Virginia Infantry The Independent Battalion West Virginia Infantry was an infantry battalion that served in the Union Army during the American Civil War .", "Crystallozyga Crystallozyga is a genus of snout moths . It was described by Meyrick in 1937 , and is known from the Democratic Republic of Congo . It contains the species C. alicia .", "Joe Rooney Joe Rooney ( born 1963 ) is an Irish actor and comedian from Tuam , Co. . Galway . His best-known acting role was that of Father Damo in the Channel 4 sitcom Father Ted . He features in the episode `` The Old Grey Whistle Theft '' . Rooney has had a starring role in the RT\u00c9 television comedy , Killinaskully , in which he plays Timmy Higgins which ran for five series . Joe also wrote on the fourth and fifth series of Killinaskully . Joe currently hosts the podcast PodaRooney on which he interviews guests who are mostly involved in the entertainment industry . Joe has performed stand up worldwide including New York , L.A. , San Francisco , Chicago , Pittsburgh , Toronto , Shanghai , Beijing , Hong Kong , Barcelona , Brussels , Moscow , Muscat ( Oman ) , Manama ( Bahrain ) and Dubai . He has also performed at Irish festivals in Kansas City ( Missouri ) , Milwaukee and La Crosse ( Wisconsin ) . In more recent years Joe has had featured roles in TV3 's Red Rock , CBBC 's Roy and the feature films `` Monged '' and `` South '' . Other acting roles include Fergus Scully , a roving reporter who speaks in pidgin English and Irish , on the TG4 sketch show R\u00ed R\u00e1 . In 1997 , he appeared with Paul Tylak in Messrs Tylak and Rooney , a twelve-episode TV3 comedy travel series .", "Topolchane, Sliven Province Topolchane is a village located in Sliven Municipality , 10 km southeast of Sliven , Bulgaria , near the road to Burgas .", "Kivar (Roswell) Kivar is a fictional character from the Roswell television series and the Roswell High series of books . He is technically the main antagonist of the series , although he is not seen throughout the entire series until season 3 where he appeared in a few episodes . He is portrayed by Spence Decker .", "Cyrille Mangan Cyrille Mangan ( born 13 September 1976 ) is a retired Cameroonian football player . Mangan played for Skoda Xanthi F.C. in the Greek Alpha Ethniki from 1996 to 1999 . He suffered a serious knee injury at the age of 22 years , but recovered and later played for Trikala F.C. in the Greek Gamma Ethniki and Panegialios F.C. in the Greek Beta Ethniki . Mangan played for the Cameroon national football team in the 1998 African Cup of Nations finals . and in 1998 FIFA World Cup qualifying .", "Palestine at the 2000 Summer Paralympics One male and one female athlete from Palestine participated in the 2000 Summer Paralympics in Sydney , Australia . It was the first Palestinian Territories participation in the Paralympic Games . Husam Azzam won Palestine 's only medal : a bronze in the shot put ."]}, {"query": "This means the global temperature trend has now shown no further warming for 19 years", "pos": ["Scientific consensus on climate change There is currently a strong scientific consensus that the Earth is warming and that this warming is mainly caused by human activities. This consensus is supported by various studies of scientists' opinions and by position statements of scientific organizations, many of which explicitly agree with the Intergovernmental Panel on Climate Change (IPCC) synthesis reports. Nearly all actively publishing climate scientists (97\u201398%) support the consensus on anthropogenic climate change, and the remaining 2% of contrarian studies either cannot be replicated or contain errors.", "Global warming Global warming , also referred to as climate change , is the observed century-scale rise in the average temperature of the Earth 's climate system and its related effects . Multiple lines of scientific evidence show that the climate system is warming . Many of the observed changes since the 1950s are unprecedented in the instrumental temperature record which extends back to the mid 19th century , and in paleoclimate proxy records over thousands of years . In 2013 , the Intergovernmental Panel on Climate Change ( IPCC ) Fifth Assessment Report concluded that `` It is extremely likely that human influence has been the dominant cause of the observed warming since the mid-20th century . '' The largest human influence has been emission of greenhouse gases such as carbon dioxide , methane and nitrous oxide . Climate model projections summarized in the report indicated that during the 21st century the global surface temperature is likely to rise a further 0.3 to for their lowest emissions scenario and 2.6 to for the highest emissions scenario . These findings have been recognized by the national science academies of the major industrialized nations and are not disputed by any scientific body of national or international standing . Future climate change and associated impacts will differ from region to region around the globe . Anticipated effects include warming global temperature , rising sea levels , changing precipitation , and expansion of deserts in the subtropics . Warming is expected to be greater over land than over the oceans and greatest in the Arctic , with the continuing retreat of glaciers , permafrost and sea ice . Other likely changes include more frequent extreme weather events including heat waves , droughts , heavy rainfall with floods and heavy snowfall ; ocean acidification ; and species extinctions due to shifting temperature regimes . Effects significant to humans include the threat to food security from decreasing crop yields and the abandonment of populated areas due to rising sea levels . Because the climate system has a large `` inertia '' and greenhouse gases will stay in the atmosphere for a long time , many of these effects will not only exist for decades or centuries , but will persist for tens of thousands of years . Possible societal responses to global warming include mitigation by emissions reduction , adaptation to its effects , building systems resilient to its effects , and possible future climate engineering . Most countries are parties to the United Nations Framework Convention on Climate Change ( UNFCCC ) , whose ultimate objective is to prevent dangerous anthropogenic climate change . Parties to the UNFCCC have agreed that deep cuts in emissions are required and that global warming should be limited to well below 2.0 C-change relative to pre-industrial levels , with efforts made to limit warming to 1.5 C-change . Public reactions to global warming and concern about its effects are also increasing . A global 2015 Pew Research Center report showed a median of 54 % consider it `` a very serious problem '' . There are significant regional differences , with Americans and Chinese ( whose economies are responsible for the greatest annual CO2 emissions ) among the least concerned ."], "neg": ["Shiriana language Shiriana ( Xiri\u00e2na , Chiriana ) , or Bahuana ( Bahwana ) , is an unclassified Upper Amazon Arawakan language once spoken by the Shiriana people of Roraima , Brazil . It had an active -- stative syntax .", "Iskander Mirza Iskander Ali Mirza ( \u0627\u0633\u06a9\u0646\u062f\u0631 \u0645\u0631\u0632\u0627 \u0987\u09b8\u09cd\u0995\u09be\u09a8\u09cd\u09a6\u09be\u09b0 \u0986\u09b2\u09bf \u09ae\u09bf\u09b0\u09cd\u099c\u09be b. 13 November 1899 -- 13 November 1969 ) , , was an East Pakistani politician who served as the first President of Pakistan , elected in this capacity in 1956 until being dismissed in 1958 . A great grandson of Mir Jafar , Mirza was educated at the University of Mumbai before attending the military academy in Sandhurst , United Kingdom . After a brief military service in the British Indian Army , he joined the Indian Political Service and spent majority of his career as a political agent in the Western region of the British India until elevated as joint secretary at the Ministry of Defence in 1946 . After the independence of Pakistan as result of a Partition of India , Mirza joined was appointed as first Defence Secretary by Prime Minister Liaquat Ali Khan , only to oversaw the military efforts in first war with India in 1947 , followed by failed secessionism in Balochistan in 1948 . In 1954 , he was appointed as Governor of East Bengal by Governor-General Sir Malik Ghulam to control the law and order sparked as a result of the popular language movement in 1952 , and later elevated as Interior Minister in Bogra administration in 1955 . Playing a crucial role in ousting of Governor-General Sir Malik Ghulam , Mirza assumed his position in 1955 and was elected as the first President of Pakistan when the first set of Constitution was promulgated in 1956 . His presidency , however , marked with political instability which saw his unconstitutional interference in the civilian administration that led to the dismissal of four prime ministers in mere two years . Facing challenges in effectively running the foreign and economic policy , Mirza suspended the constitution by having imposed the martial law in 1958 through army chief General Ayub Khan who later dismissed him when situation between them escalated , also in 1958 . Mirza lived in the United Kingdom for the remainder of his life and buried in Iran in 1969 . His legacy and image is viewed very negatively by the Pakistani historians who believed that Mirza was responsible for this political instability in the country .", "Sumire Haruno is a Japanese actress , a former member of Takarazuka Revue , specializing in otokoyaku . She joined the revue in 1991 , became the top star in 2002 and resigned from the company in 2007 . She is from Komae , Tokyo , her birthday is December 15 , 1972 . Her nicknames are Osa and Masa-chan ( as called by Jun Sena ) , both are from her real name Masako Osada ( \u9577\u7530\u96c5\u5b50 Osada Masako ) . She is the first otokoyaku of her class to reach the top ( followed by classmate and former troupe-mate Hikaru Asami by 3 months ) .", "Regent's Business School London Regent 's Business School London ( informally Regent 's Business School , RBS London or RBSL ) is a private business school located in London , United Kingdom . The school is a part of Regent 's University London the campus of which was originally built in 1913 in the midst of Regent 's Park in central London . Founded in 1997 , it has grown rapidly from 10 students to more than 450 . The student body is primarily international , with a large population of students from Persian Gulf Region , Asia , Northern and Eastern Europe .", "Niewiesz Niewiesz -LSB- ' \u0144ewjesz -RSB- is a village in the administrative district of Gmina Podd\u0119bice , within Podd\u0119bice County , \u0141\u00f3d\u017a Voivodeship , in central Poland . It lies approximately 8 km north-west of Podd\u0119bice and 45 km west of the regional capital \u0141\u00f3d\u017a . The village has a population of 320 .", "Angus, Wisconsin Angus is an unincorporated community in the town of Cedar Lake , Barron County , Wisconsin , United States . Angus is located on Wisconsin Highway 48 2.5 mi southwest of Birchwood .", "Waterloo Region municipal elections, 2014 Municipal elections were held in the Regional Municipality of Waterloo of Ontario on October 27 , 2014 in conjunction with municipal elections across the province .", "Xiaoli Ma Xiaoli Ma from the Georgia Institute of Technology , Atlanta , GA was named Fellow of the Institute of Electrical and Electronics Engineers ( IEEE ) in 2016 for contributions to block transmissions over wireless fading channels ."]}, {"query": "The report [\u2026] found that the United States was one of the most pollution-free nations in the world.\u201d", "pos": ["Developing country A developing country , also called a less developed country or an underdeveloped country , is a nation or a sovereign state with a less developed industrial base and a low Human Development Index ( HDI ) relative to other countries . There are no universally agreed-upon criteria for what makes a country developing versus developed and which countries fit these two categories , although there are general reference points such as a nation 's GDP per capita compared with other nations . Also , the general term less-developed country should not be confused with the specific least developed country . The term `` developing '' describes a currently observed situation and not a dynamic or expected direction of progress . Since the late 1990s developing countries tended to demonstrate higher growth rates than the developed ones . There is criticism for using the term developing country . The term implies inferiority of a developing country or undeveloped country compared with a developed country , which many countries dislike . It assumes a desire to develop along the traditional Western model of economic development which a few countries , such as Cuba and Bhutan , choose not to follow . An alternative measurement that has been suggested is that of gross national happiness . Countries on the boundary between developed and developing are often categorized under the term newly industrialized countries . According to authors such as Walt Whitman Rostow , developing countries are in transition from traditional lifestyles towards the modern lifestyle which began in the Industrial Revolution in the 18th and 19th centuries . In the 2016 edition of its World Development Indicators , the World Bank made a decision to no longer distinguish between `` developed '' and `` developing '' countries in the presentation of its data . Nobody has ever agreed on a definition for these terms in the first place .", "United States The United States of America ( USA ) , commonly known as the United States ( U.S. ) or America , is a constitutional federal republic composed of 50 states , a federal district , five major self-governing territories , and various possessions . Forty-eight of the fifty states and the federal district are contiguous and located in North America between Canada and Mexico . The state of Alaska is in the northwest corner of North America , bordered by Canada to the east and across the Bering Strait from Russia to the west . The state of Hawaii is an archipelago in the mid-Pacific Ocean . The U.S. territories are scattered about the Pacific Ocean and the Caribbean Sea . Nine time zones are covered . The geography , climate and wildlife of the country are extremely diverse . At 3.8 million square miles ( 9.8 million km2 ) and with over 324 million people , the United States is the world 's third - or fourth-largest country by total area , third-largest by land area , and the third-most populous . It is one of the world 's most ethnically diverse and multicultural nations , and is home to the world 's largest immigrant population . The capital is Washington , D.C. , and the largest city is New York City ; nine other major metropolitan areas -- each with at least 4.5 million inhabitants and the largest having more than 13 million people -- are Los Angeles , Chicago , Dallas , Houston , Philadelphia , Miami , Atlanta , Boston , and San Francisco . Paleo-Indians migrated from Asia to the North American mainland at least 15,000 years ago . European colonization began in the 16th century . The United States emerged from 13 British colonies along the East Coast . Numerous disputes between Great Britain and the colonies following the Seven Years ' War led to the American Revolution , which began in 1775 . On July 4 , 1776 , during the course of the American Revolutionary War , the colonies unanimously adopted the Declaration of Independence . The war ended in 1783 with recognition of the independence of the United States by Great Britain , representing the first successful war of independence against a European power . The current constitution was adopted in 1788 , after the Articles of Confederation , adopted in 1781 , were felt to have provided inadequate federal powers . The first ten amendments , collectively named the Bill of Rights , were ratified in 1791 and designed to guarantee many fundamental civil liberties . The United States embarked on a vigorous expansion across North America throughout the 19th century , displacing Native American tribes , acquiring new territories , and gradually admitting new states until it spanned the continent by 1848 . During the second half of the 19th century , the American Civil War led to the end of legal slavery in the country . By the end of that century , the United States extended into the Pacific Ocean , and its economy , driven in large part by the Industrial Revolution , began to soar . The Spanish -- American War and confirmed the country 's status as a global military power . The United States emerged from as a global superpower , the first country to develop nuclear weapons , the only country to use them in warfare , and a permanent member of the United Nations Security Council . The end of the Cold War and the dissolution of the Soviet Union in 1991 left the United States as the world 's sole superpower . The U.S. is a founding member of the United Nations , World Bank , International Monetary Fund , Organization of American States ( OAS ) , and other international organizations . The United States is a highly developed country , with the world 's largest economy by nominal GDP and second-largest economy by PPP . Though its population is only 4.3 % of the world total , Americans hold nearly 40 % of the total wealth in the world . The United States ranks among the highest in several measures of socioeconomic performance , including average wage , human development , per capita GDP , and productivity per person . While the U.S. economy is considered post-industrial , characterized by the dominance of services and knowledge economy , the manufacturing sector remains the second-largest in the world . Accounting for approximately a quarter of global GDP and a third of global military spending , the United States is the world 's foremost economic and military power . The United States is a prominent political and cultural force internationally , and a leader in scientific research and technological innovations ."], "neg": ["List of listed buildings in Barry, Angus This is a list of listed buildings in the parish of Barry in Angus , Scotland .", "ECyD ECyD is an international Catholic youth organization affiliated with the congregation of the Legionaries of Christ and their lay movement Regnum Christi . ECyD membership is open to youth ages 11 to 16 ( to 18 in the USA and Canada ) .", "Domitila Garc\u00eda de Coronado Domitila Garc\u00eda Dom\u00e9nico de Coronado ( 7 May 1847 -- 1938 ) was a Cuban writer , journalist , editor , and professor , considered to be the first women to practice journalism in her country . On 17 May 1891 she founded the Academy of Women Typographers . She founded and edited various publications , including the journals La Antorcha and El C\u00e9firo together with Sof\u00eda Estevez ( 1848 -- 1901 ) . Besides these , she was editor of La Mujer , together with A\u00edda Pel\u00e1ez de Villa Urrutia and Isabel Margarita Ordetx . She also published the first anthology of Cuban women writers in 1868 , titled \u00c1lbum po\u00e9tico fotogr\u00e1fico de escritoras cubanas ( Poetic photo album of Cuban women writers ) .", "Blue-cheeked flowerpecker The blue-cheeked flowerpecker or red-chested flowerpecker ( Dicaeum maugei ) is a species of bird in the Dicaeidae family . It is found on the Lesser Sunda Islands in Indonesia and East Timor . Its natural habitats are subtropical or tropical moist lowland forests and subtropical or tropical moist montane forests .", "Salzburg S-Bahn The Salzburg S-Bahn is a large transport project in and around Salzburg in the Euroregion of Salzburg -- Berchtesgadener Land -- Traunstein , which crosses the border between Austria and Germany . Its S-Bahn network has been partially in operation since 2004 and its first stage is expected to be completed in 2014 .", "William Hanson (engineer) William Hanson MICE ( 1810 -- 14 July 1875 ) was a government engineer in the early days of the colony of South Australia .", "Lola Gonzales Mar\u00eda Dolores Gonz\u00e1lez ( born March 2 , 1959 ) is a Mexican professional wrestler , known by her ringname Lola Gonz\u00e1lez , who has competed in the Universal Wrestling Association and the World Wrestling Association for over three decades . At one time one of the most popular female tecnicos in Mexico , she dominated the UWA World Women 's Championship during the mid-to late 1980s holding the title a record four times . She is the real-life sister of luchadora Leslie Gonzalez and ex-wife of the late Fishman .", "D15 D15 or D. 15 may refer to : Slav Defence , 4 . Nc3 , Encyclopaedia of Chess Openings code Dewoitine D. 15 , a French Dewoitine aircraft HMS Vindex ( D15 ) , a 1943 British Royal Navy escort aircraft carrier LSWR D15 class , a 1912 British steam locomotive model PRR D15 , an 1892 American steam locomotive model Allis-Chalmers Model D15 Dublin 15 , a Dublin , Ireland postal district 15-pin variant of D-subminiature electrical connectors and also : Benign neoplasm of other and unspecified intrathoracic organs ICD-10 code"]}, {"query": "Sea-level rise does not seem to depend on ocean temperature, and certainly not on CO2.", "pos": ["Paleocene\u2013Eocene Thermal Maximum The Paleocene -- Eocene Thermal Maximum ( PETM ) , alternatively ( ETM1 ) , and formerly known as the `` Initial Eocene '' or '' '' was a time period with more than 8 \u00b0 C warmer global average temperature than today . This climate event began at the time boundary between the Paleocene and Eocene geological epochs . The exact age and duration of the event is uncertain but it is estimated to have occurred around 55.5 million years ago . The associated period of massive carbon injection into the atmosphere has been estimated to have lasted no longer than 20,000 years . The entire warm period lasted for about 200,000 years . Global temperatures increased by 5 -- 8 \u00b0 C . The carbon dioxide was likely released in two pulses , the first lasting less than 2,000 years . Such a repeated carbon release is in line with current global warming . A main difference is that during the Paleocene -- Eocene Thermal Maximum , the planet was essentially ice-free . The onset of the Paleocene -- Eocene Thermal Maximum has been linked to an initial 5 \u00b0 C temperature rise and to extreme changes in Earth 's carbon cycle . The period is marked by a prominent negative excursion in carbon stable isotope records from around the globe ; more specifically , there was a large decrease in 13C/12C ratio of marine and terrestrial carbonates and organic carbon . Stratigraphic sections of rock from this period reveal numerous other changes . Fossil records for many organisms show major turnovers . For example , in the marine realm , a mass extinction of benthic foraminifera , a global expansion of subtropical dinoflagellates , and an appearance of excursion , planktic foraminifera and calcareous nanofossils all occurred during the beginning stages of PETM . On land , modern mammal orders ( including primates ) suddenly appear in Europe and in North America . Sediment deposition changed significantly at many outcrops and in many drill cores spanning this time interval . At least since 1997 , the Paleocene -- Eocene Thermal Maximum has become a focal point of considerable geoscience research because it probably provides the best past analog by which to understand impacts of global climate warming and of massive carbon input to the ocean and atmosphere , including ocean acidification . Although it is now widely accepted that the PETM represents a `` case study '' for global warming and massive carbon input to Earth 's surface , the cause , details and overall significance of the event remain perplexing .", "Sea level rise A sea level rise is an increase in the volume of water in the world 's oceans , resulting in an increase in global mean sea level . Sea level rise is usually attributed to global climate change by thermal expansion of the water in the oceans and by melting of Ice sheets and glaciers on land . Melting of floating ice shelves or icebergs at sea raises sea levels only slightly . Sea level rise at specific locations may be more or less than the global average . Local factors might include tectonic effects , subsidence of the land , tides , currents , storms , etc. . Sea level rise is expected to continue for centuries . Because of the slow inertia , long response time for parts of the climate system , it has been estimated that we are already committed to a sea-level rise of approximately 2.3 m for each degree Celsius of temperature rise within the next 2,000 years . IPCC Summary for Policymakers , AR5 , 2014 , indicated that the global mean sea level rise will continue during the 21st century , very likely at a faster rate than observed from 1971 to 2010 . Projected rates and amounts vary . A January 2017 NOAA report suggests a range of GMSL rise of 0.3 -- 2.5 m possible during the 21st century . Sea level rises can considerably influence human populations in coastal and island regions and natural environments like marine ecosystems ."], "neg": ["U.S. Route 87 in Texas In the U.S. state of Texas , U.S. Highway 87 ( US 87 ) is a north -- south U.S. Highway that begins near the Gulf Coast in Port Lavaca , Texas and heads north through San Antonio , Lubbock , and Amarillo to the New Mexico border near Texline .", "HMSAS Africana HMSAS AfricanaHMSAS stands for `` His ( or Her ) Majesty 's South African Ship '' was a minesweeping trawler of the South African Seaward Defence Force during the Second World War . She was originally a sea fisheries research vessel and was latter fitted for mine-sweeping and survey duties in the early 1930s . She was retained for survey duties off the South African coast throughout the war and in October 1942 she was involved in the rescue of survivors from the American cargo vessel Anne Hutchinson after she was torpedoed by off East London . In addition to survey , she was used extensively for search and rescue operations in the latter part of the war and her final rescue operation was rescuing 49 survivors of the Canadian This was last vessel to be sunk in South African waters during the Second World War which was torpedoed by on 23 February 1945 off the coast of Luderitz Bay . After the war , Africana was returned to the South African Department of Sea Fisheries and was re-fitted as a fishery survey vessel , starting her first post-war survey in May 1947 . She remained in service in this role until 1950 when she was replaced by the new survey vessel Africana II . She was sold to Benjamin Gelcer who used her as a fishing trawler . She later joined the fishing fleet of Irwin and Johnson and was used until 1965 when she was finally withdrawn from fishing service and broken up in Table Bay , to be sold as scrap .", "National Assessment and Accreditation Council The National Assessment and Accreditation Council ( NAAC ) is an organisation that assesses and accredits institutions of higher education in India . It is an autonomous body funded by University Grants Commission of Government of India headquartered in Bangalore .", "Ferdosi Mashhad FSC Eghtedar Novin Ferdosi Mashhad Futsal Club ( Persian : \u0628\u0627\u0634\u06af\u0627\u0647 \u0641\u0648\u062a\u0633\u0627\u0644 \u0627\u0642\u062a\u062f\u0627\u0631 \u0646\u0648\u06cc\u0646 \u0641\u0631\u062f\u0648\u0633\u06cc \u0645\u0634\u0647\u062f ) is an Iranian futsal club based in Mashhad , Iran . They currently compete in the Iranian Futsal Super League , the 1st tier of Iranian futsal .", "Li Ning (baseball) Li Ning ( born November 12 , 1994 ) is a Chinese baseball catcher who plays with the Shanghai Golden Eagles in the China Baseball League . Li represented China at the 2015 Asian Baseball Championship and 2017 World Baseball Classic .", "Osmia atriventris Osmia atriventris , sometimes referred to as the Maine blueberry bee , is a megachilid bee native to eastern North America from Nova Scotia to Alberta in the north , and Iowa to Georgia in the south . This solitary bee normally gathers pollen from many different flowers , but will pollinate blueberries , and is sometimes used commercially for this purpose .", "Monte-Sano & Pruzan Monte-Sano & Pruzan was a highly regarded New York fashion house specialising in women 's tailoring , founded in 1915 by Vincent Monte-Sano senior , who was later joined by Max Pruzan . The company was liquidated in 1969 .", "Henry Klindt House The Henry Klindt House , is a located in the West End of Davenport , Iowa , United States . It has been listed on the National Register of Historic Places since 1984 ."]}, {"query": "The amount of summer sea ice in the Arctic has steadily declined over the past few decades because of man-made global warming, according to the National Oceanic and Atmospheric Administration.", "pos": ["Climate change in the Arctic The effects of global warming in the Arctic , or climate change in the Arctic include rising temperatures , loss of sea ice , and melting of the Greenland ice sheet with a related cold temperature anomaly , observed in recent years . Potential methane release from the region , especially through the thawing of permafrost and methane clathrates , is also a concern . The Arctic warms twice as fast compared to the rest of the world . The pronounced warming signal , the amplified response of the Arctic to global warming , it is often seen as a leading indicator of global warming . The melting of Greenland 's ice sheet is linked to polar amplification . According to a study published in 2016 , about 0.5 \u25e6 C of the warming in the Arctic has been attributed to reductions in sulfate aerosols in Europe since 1980 .", "Scientific consensus on climate change There is currently a strong scientific consensus that the Earth is warming and that this warming is mainly caused by human activities. This consensus is supported by various studies of scientists' opinions and by position statements of scientific organizations, many of which explicitly agree with the Intergovernmental Panel on Climate Change (IPCC) synthesis reports. Nearly all actively publishing climate scientists (97\u201398%) support the consensus on anthropogenic climate change, and the remaining 2% of contrarian studies either cannot be replicated or contain errors.", "Arctic The Arctic ( -LSB- \u02c8\u0251rkt\u026ak -RSB- or -LSB- \u02c8\u0251rt\u026ak -RSB- ) is a polar region located at the northernmost part of Earth . The Arctic consists of the Arctic Ocean , adjacent seas , and parts of Alaska ( United States ) , Canada , Finland , Greenland ( Denmark ) , Iceland , Norway , Russia and Sweden . Land within the Arctic region has seasonally varying snow and ice cover , with predominantly treeless permafrost-containing tundra . Arctic seas contain seasonal sea ice in many places . The Arctic region is a unique area among Earth 's ecosystems . For example , the cultures in the region and the Arctic indigenous peoples have adapted to its cold and extreme conditions . In recent years , Arctic sea ice decline has been caused by global warming . Life in the Arctic includes organisms living in the ice , zooplankton and phytoplankton , fish and marine mammals , birds , land animals , plants and human societies . Arctic land is bordered by the subarctic .", "Global warming Global warming , also referred to as climate change , is the observed century-scale rise in the average temperature of the Earth 's climate system and its related effects . Multiple lines of scientific evidence show that the climate system is warming . Many of the observed changes since the 1950s are unprecedented in the instrumental temperature record which extends back to the mid 19th century , and in paleoclimate proxy records over thousands of years . In 2013 , the Intergovernmental Panel on Climate Change ( IPCC ) Fifth Assessment Report concluded that `` It is extremely likely that human influence has been the dominant cause of the observed warming since the mid-20th century . '' The largest human influence has been emission of greenhouse gases such as carbon dioxide , methane and nitrous oxide . Climate model projections summarized in the report indicated that during the 21st century the global surface temperature is likely to rise a further 0.3 to for their lowest emissions scenario and 2.6 to for the highest emissions scenario . These findings have been recognized by the national science academies of the major industrialized nations and are not disputed by any scientific body of national or international standing . Future climate change and associated impacts will differ from region to region around the globe . Anticipated effects include warming global temperature , rising sea levels , changing precipitation , and expansion of deserts in the subtropics . Warming is expected to be greater over land than over the oceans and greatest in the Arctic , with the continuing retreat of glaciers , permafrost and sea ice . Other likely changes include more frequent extreme weather events including heat waves , droughts , heavy rainfall with floods and heavy snowfall ; ocean acidification ; and species extinctions due to shifting temperature regimes . Effects significant to humans include the threat to food security from decreasing crop yields and the abandonment of populated areas due to rising sea levels . Because the climate system has a large `` inertia '' and greenhouse gases will stay in the atmosphere for a long time , many of these effects will not only exist for decades or centuries , but will persist for tens of thousands of years . Possible societal responses to global warming include mitigation by emissions reduction , adaptation to its effects , building systems resilient to its effects , and possible future climate engineering . Most countries are parties to the United Nations Framework Convention on Climate Change ( UNFCCC ) , whose ultimate objective is to prevent dangerous anthropogenic climate change . Parties to the UNFCCC have agreed that deep cuts in emissions are required and that global warming should be limited to well below 2.0 C-change relative to pre-industrial levels , with efforts made to limit warming to 1.5 C-change . Public reactions to global warming and concern about its effects are also increasing . A global 2015 Pew Research Center report showed a median of 54 % consider it `` a very serious problem '' . There are significant regional differences , with Americans and Chinese ( whose economies are responsible for the greatest annual CO2 emissions ) among the least concerned ."], "neg": ["Ton du Chatinier Ton du Chatinier ( born 13 January 1958 ) is a retired football player from the Netherlands . He later worked as an assistant manager to Hong Myung-bo of South Korea , and alongside Hong as an assistant to manager Guus Hiddink at Russian side FC Anzhi Makhachkala .", "Ruddy quail-dove The ruddy quail-dove ( Geotrygon montana ) is a member of the bird family Columbidae , which includes doves and pigeons . It breeds throughout the West Indies , Central America , and tropical South America . It has appeared as a vagrant in Florida and southern Texas . It lays two buff colored eggs on a flimsy platform built on a shrub . Some nests are built on the ground . The ruddy quail-dove is approximately 19 -- 28 cm in length . The bird is distinguished by having a rust colored back , facial mask and similarly colored wings . The breast , rump and undereye stripe are lighter brown . This bird is found in woodland and scrub forest . It also has adapted to coffee plantations . It is somewhat sensitive to forest fragmentation . These birds forage on the ground , mainly eating seeds . It will also take small invertebrates in its diet . Ruddy quail-doves feed primarily on the ground .", "Charles Joseph Gahan Charles Joseph Gahan ( 20 January 1862 -- 21 January 1939 ) was an Irish entomologist . He was born on 20 January 1862 at Roscrea County Tipperary , Ireland . His father , Michael Gahan was the Master of Erasmus Smith 's School in Tipperary . He was educated first at Queens College Galway , where he achieved distinction , and then at the Royal School of Mines in Kensington . In 1882 he was awarded a medal and prizes as the best biological student of the session . In 1886 , he joined the British Museum ( Natural History ) as an assistant in the Department of Zoology where he became Keeper in the then newly formed Department of Entomology in 1913 . An expert on beetles , especially Cerambycidae , he wrote the 1906 volume of The Fauna of British India , Including Ceylon and Burma on that group . Honorary Secretary of the Entomological Society of London in 1899-1900 and was president 1917-1918 . Married Annie Woodward in 1887 . He retired in 1920 and lived at Mouth Aylsham in Norfolk and died at Aylsham on 21 January 1939 . He became the first person to describe Rosenbergia exigua in 1888 .", "Perry Daneshgari Perry ( Parviz ) Daneshgari is an Iranian-American entrepreneur , engineer and author born in Ahvaz , Iran . He founded MCA , which appeared on the TV Program World Business Review , in 1990 and has written many books and articles in specialized magazines and websites . Perry has an MBA from Wayne State University and a Ph.D in Mechanical Engineering from the University of Karlsruhe , as well as BS . in Civil and Mechanical Engineering . He specializes in Agile Construction , a way of doing business that focuses on adaptation and quick changes on job sites and production lines . Perry has collaborated with research projects on different industries , most of them focused on increasing productivity in those industries applying agile methods of working , for example : `` Developing a Standard Format for Calculating Construction size and Share '' , `` Ideal Jobsite Inventory Levels to Improve Profitability '' for Electri International and other organization like Sheet Metal and Air Conditioning Contractors National Association , NAED Education and Research Foundation , New Horizons Foundation , etc. . Perry in collaboration with Heather Moore and MCA have written articles in some specialized magazines like Electrical Contracting Magazine , The Electrical Distribution Magazine , and more .", "Corner, Alabama Corner is an unincorporated community in Jefferson County , Alabama , United States .", "Tenth Ward Square The Tenth Ward Square is a 1.7 acre historic district in Salt Lake City , Utah that was listed on the National Register of Historic Places in 1977 . It includes Late Gothic Revival , Greek Revival , and Late Victorian architecture in four contributing buildings . It includes an 1873 one-room Mormon meeting house , a c. 1880 store with included residence , an 1887 school , and a 1909 chapel . The store appears to be one of the first works of architect Richard K. A. Kletting . The church , designed by the Ashton Brothers , is `` known for its impressive stained glass window '' .", "George Dickinson George Ritchie Dickinson ( 11 March 1903 -- 17 March 1978 ) was a New Zealand cricketer and rugby union player . He played three tests for the New Zealand cricket team between 1930 and 1932 , and five matches for the New Zealand national rugby side , the All Blacks , in 1922 .", "Xia (surname) Xia is the Mandarin pinyin romanization of the Chinese surname written in Chinese character . It is romanized Hsia in Wade -- Giles , and Ha in Cantonese . Xia is the 154th surname in the Song dynasty classic text Hundred Family Surnames . As of 2008 , it is the 66th most common Chinese surname , shared by 3.7 million people ."]}], "CQADupstackAndroidRetrieval": [{"query": "How can I receive phone calls through Wi-Fi on an Android phone?", "pos": ["Is it possible to have a phone without a voice plan? > **Possible Duplicate:** > How can I receive phone calls through WiFi on an Android phone? I have an unlocked Nexus One. I barely use the voice function, mostly just use data. However, I'd like to have the voice function just in case. Is it possible to use something else (possibly VOIPish) to replace the voice plan that I am currently paying? Perhaps Skype, or Google Voice or something else. Has anyone had an experience with this? Thanks"], "neg": ["HTC EVO Does Not Sync Google Calendar I'm an experienced Android user and recently my Dad picked up a HTC EVO. I set him up with all the Google services and apps like Gmail, Contacts and Calendar. I exported all of his contacts and appointments out of Outlook to CSV and uploaded them to Google so they can sync down to his EVO. Unfortunately when I go to his Google account sync settings, his phone does not show the option to sync his Google Calendar. The exact option I'm talking about is under (from the home screen) Settings -> Accounts & sync -> your Google account. The phone shows Books, Contacts, and Gmail but the option for calendar is missing. Is this the case on all EVO's? I have a screen capture of my phone (HTC Incredible) that has the option below that I'm talking about. His HTC EVO does not have it for some reason. Is this a Sprint restriction? Any ideas on how to add it? Any help is greatly appreciated. Matt", "Will my alarm still go off if my phone is on airplane mode? I'm trying to save battery but I need my alarm in the morning. Will it still go off if on airplane mode? p.s. I have an HTC Inspire.", "Indic Language (Punjabi) not displaying I have created one mobile website using WordPress in Indian Language i.e. Punjabi. I have used Unicode characters. When I try to open this website on my **Spice Android Phone having version 4.0.2,** everything is perfect but When I try to Load on my **Lenovo having version 4.2.2,** nothing is displaying. only English characters are visible. I am using **default browser which is provided by the company** not any other like chrome, opera etc.. I cannot understand what is the problem.. it there any setting issue... please help....", "Cleaning up Samsung S2 memory When I use the application manager, I see that 1.8GB are occupied out of 2GB available. This of course causes issues when installing apps and brings up a warning notifications that some system services may malfunction. However, if I sum the memory taken by my apps, I come up at 1GB, and many of these apps have been moved to the SD card. I've tried to use Clean Master to free space, but without much success. So I want to cleanup files manually. What partitions on the phone's system are the ones in the 2GB space? Is it the root partition?", "Wi-fi disabled during lock still partly active? Or do I mis-interpret the battery graph? On my Google Nexus 7 I noticed that it would consume around 1% of battery each hour that it was just being idle. I suspected that battery-usage during idle time could be improved. So the next night (7 hours) I put my Nexus into airplane mode, and the next morning the battery had only used 1% for those 7 hours, which proved that there was room for improvement. Next I disabled bluetooth and set wi-fi, to be disabled when the screen is locked (changed \"Keep Wi-Fi on during sleep\" from \"Always\" to \"Only when plugged in\"). After a fews tests of 7 hours idle the battery was down 2 ~ 3% each time. But then I noticed in the battery graph, that the wi-fi still showed quite a lot of activity. This probably explains the difference in battery consumption with airplane-mode. I had expected the wi-fi to be completely disabled with this setting, and the wi-fi bar in the battery graph to be almost completely black. To see the difference I manually disabled the wi-fi and then the bar is indeed completely black (the right block in the image): ![enter image description here](http://i.stack.imgur.com/6A6ZO.png) I would expect the wi-fi to be completely off when the screen is locked, but looking at this question: Turning on Wi-Fi on demand that is apparently not how Android works. So now I'm wondering what the wi-fi is doing in this setting? Why does Android keep the wi-fi 'partly' enabled? If Android would still let apps do their syncing etc on a regular basis I would understand this, but this is not the case (Notifications don't come in & it even seems to cut off streaming etc), so it seems to only waste battery? I first suspected a misbehaving app, but I checked with Wake lock detector and Network log but don't see any suspicious apps. I guess I could use JuiceDefender or a similar app to completely disable the wi-fi when the screen is locked (and still let it sync from time to time), but that's not really the point of this question.", "last digits invisible from call history I have recently bought Sony Xperia and recently have been facing this weird problem. The last 2 digits of the phone number in call history are invisible. And this is not the case for whole history, but only for some. Please guide if you know reason/resolution for the same.", "My HTC One X and media link My HTC One X has configured with my media link and when plugged in my phone says the device has detected but it wont connect to it. It just times out. How can I solve this?", "Adding an APN from the commandline I'm in the US for 30 days and got a SIM card from Lycamobile. For some reason adding APNs doesn't work through the GUI (I add them but they never show up in the list, even after rebooting). Instead I added the following lines to my `/system/etc/apns-conf.xml`, just before `` Based on MCC and MNC data from Wikipedia and the information available online in general. I also enabled Data Roaming and International Roaming. I have rebooted my phone. I am on a Samsung Galaxy S3 running the latest AOKP nightly. However, I still get an R in my signal tray and cannot connect to the internet. Please advise - any help would be appreciated even if it a nudge in a new direction. Cheers, Gausie"]}, {"query": "What is the status icon that looks like a house?", "pos": ["Blinking icon in notification bar I have a new annoying icon on my Razr notification bar. It is a tiny blinking symbol that sort of looks like a tiny house with a cloud over it. It is blinking above the network strength bars where the \"x\" would be if there was no service. Anyone know what that is?"], "neg": ["Why doesn't Google Now's place-specific reminders remember my home location? I have my home and work locations set. These show up accurately in Google Maps and also in Google Now if I go \"Wand\" -> \"Places\" at the bottom. However, whenever I go to set a place-specific reminder, Google Now reprompts me to enter my home location. The screen looks like this: ![Google Now forgetting home location](https://www.martineve.com/android.png) As you can see, the \"Home\" field doesn't actually have an address below it. This is never remembered. How can I fix this?", "How do I install Play Store on my HCL Me tablet? I have an HCL ME Connect 2.0 tablet. It has 1Mobile Market pre-installed. I want to install the Google's original Play Store for multiple reasons, like the application Google Keep doesn't work because of the lack of \"Google Play Store services.\" I don't have any knowledge in a tablet's technical realms, like rooting it, so kindly be comfortably easy and reasonably detailed if there's a solution. Thanks!", "How can i turn off the message received tick I have a sony ericsoon xperia x10 mini. when I send a text message, a tick appears to let tme know it has been received by the recipient. This costs me money, how do I turn this off? I have looked through the menu and cannot seem to find the answer.", "Is there a PDF (or epub) reader that allows to take notes (or at least to copy text)? I have many PDFs that I would like to read on my Galaxy Tab and then take notes. Preferably the notes would be attached to the document (may be like Skim does), but as a workaround I can also imagine to copy a relevant piece of text into a separate note taking application. Preferably the reader should handle PDFs directly, but if there is no PDF solution I might also start converting the documents (maybe with Calibre) for an epub reader. I tried Adobe Reader, ThinkFree Office and Aldiko, all of which have acceptable performance loading the PDFs, but aside from cumbersome zooming they also lack the ability to copy or adding notes.", "Getting pictures off of old deactivated phone Can I hook up my old Galaxy S2 phone via USB to my laptop to find \"lost\" pictures in an unnamed file? I just activated my new Galaxy S4 and for some reason, all pics that were on my old phone are now gone from the new phone. Not sure why these would be deleted from the phone during a simple phone swap. Not all of my pics are on the sd card. Most of them were saved to the phone because it had much more space available. Customer service says it may take up to 24 hours for the transfer to be complete but the new phone already has all contacts & accounts transferred, plus I'm able to text & receive calls. I understand that during a transfer, pics are not usually included. But they should still be saved inside the old phone, right? The techs doing the swap shouldn't be able to do a factory reset or anything on the old phone, correct?", "Issue in GSM for Straight Talk and MMS. I just purchased a **GSM** unlocked Android phone. And called into Straight Talk to get the new `APN` setting. But, the settings they gave me would not allow me to receive **MMS**. The web and testing works fine. Please help me on which settings to use? **NOTE:** Someone told me to re-configure my phone, will this help?", "What does TRWP backup include? If I would take a backup via TRWP, does it include all my apps, app data, messages, contacts or it would just take backup of the ROM only, so I could get a fresh ROM with factory restored when I restore it ?", "Is there a Twitter app that allows filtering of tweets based on source, hashtag, etc? Tweet Deck for PC has a global filter that allows this but I cannot see this option in the Android client. As above, is there an app that has this feature? I would very much like to clear my tweetstream of Foursquare noise and the like."]}, {"query": "Configuring Background Images", "pos": ["How can I get the Android to use wallpapers sized to my screen resolution? When I only have one \"desktop\" on my Android phone and I select one of my photos for the wallpaper, it asks me to crop the image. The cropping tool only allows an aspect ratio that has nothing to do with the real aspect ration of my phones screen resolution. Why? I have a Samsung GT i5800 running Android 2.1update1."], "neg": ["My SIM is not recognized after installing Cyanogenmod; what should I do? I've got a Samsung Galaxy S (I9000) which I purchased from the Spanish operator Movistar around two years ago. I have spent most of the day trying to flash it with cyanogenmod 7. TL;DR: Installing cyanogenmod 7 was incredibly difficult It has been ... quite and adventure. First I tried heimdall from Ubuntu (didn't even connect to the phone) then I tried from Windows, using its graphical interface. It had the \"repartition\" flag activated by default, when it shouldn't, so I bricked my phone. After lots of trial an error, I managed to install a ROM in my phone, using Odin as root, the stock cable, and a different usb port than the one I was using (go figure...). And from there I was able to install cyanogenmod as it says on the instructions. Then I had to reinstall them, because they were bootlooping. END TL;DR So, now I've got a Samsung Galaxy S with Cyanogenmod 7. But it complaints that it doesn't detect any SIM card. When it boots up, it says \"No SIM card. Emergency calls only\". Notice that it doesn't say \"incompatible SIM\", Nor it asks me for a password of any kind. It just doesn't seem to detect the card at all. What steps can I follow to solve this issue, or at least get more information about it?", "Need only one icon in the top notification bar for multiple Gmail accounts I am trying to figure out how to have only one notification icon on the top notification bar for an incoming e-mail for any of my multiple Gmail accounts. This was the way Gmail worked on my phone prior to the 2.3.5 Gmail update. Now, at any given time I can have up to four little Gmail icons on my top notification bar which is an pain. Is there any way to change it to the way the notifications worked before? That is, one icon for all my accounts, and if I receive an e-mail, it sends me to the main accounts page.", "ZTE Blade S2E not enough space I have just installed 4.2.2 PAC and S2E later. I have everything on sd-ext, there's 1600MB free space on sd-ext, and 140MB inside. However anytime i want to install an app, it says there's not enough free space. I have restored some apps with MyBackup Root. I think that was the problem. How to solve it? I don't want to wipe data, I've made some important changes. (system 219MB/220MB) (cache 1MB/37MB)", "Can't send MMS messages (but can receive) About a week ago I lost the ability to send MMS messages. I can still receive, and single-recipient SMS works fine. The phone is a Moto X, stock. I did recently install some new apps; could one of them be interfering with the messaging app? EDIT: the message I get is `invalid destination address` or `could not send message`.", "How to enable SD MSC mount in Jelly Bean? Since upgrading to CyanogenMod 10, the dropdown notification when I connect my phone to the computer no longer appears. How do I mount the SD card via USB MSC in Jelly Bean? Note that the drive still appears to the computer, just empty. My phone is an Xperia Arc S. Update: I see no mass storage mode under USB connection settings: ![Settings](http://i.stack.imgur.com/2apXR.jpg) Settings screen (click image to enlarge)", "How do I turn off the power-on sound and camera sound in a Galaxy S II? I have followed several guides and can't get any of them to work on my Galaxy S II. How do I disable these sounds?!", "Change the Nexus 4 voice dialer When I double tap the main button of my Bluetooth headset a voice dialer pops up. I'm not sure what app is this voice dialer (I couldn't find it on the apps list), all I know is that it's slow to load and works poorly. I'd like to replace this app with the standard voice search of the Google Search app. Is there a way to achieve this? Rooted options welcome.", "htc one x screen wake up issue I am having problem regarding my screen wake up. It wakes up from time to time automatically. I installed Wakelock Detector to track the app and found out Window manager has woken up the screen. I have formatted the phone but no luck. Thanks"]}, {"query": "How to make run only a single application with all other application stopped?", "pos": ["Single application tablet possible? > **Possible Duplicate:** > How to make run only a single application with all other application > stopped? Background: I would like to create a weather station alarm clock from an Android Tablet. This would sit on my bedside table. When I tap the screen or press the button or something, it would wake up and show me the local weather forecast. Question: Is it possible to make an Android tablet behave in a single application way like this? I.E. no apps, no app store, no 'slide to unlock', no other logos or screen clutter, that kind of thing? Added: This is more of a user interface question. I don't care if there are other applications on the device, I just want it to behave to the user as if this was a weather station device only, rather than an amazing multi-purpose computer. I don't need it to be secure against someone who really wants to get past the main application, I just want to prevent it always annoyingly switching out of the main app. Since it's going to be a weather station only, I don't want it always offering me irrelevant things, like a handy screen saver, other apps, slide to unlock, etc. and making me have to do loads of interaction to get back to its main app.", "Only give access to one application(full screen) I am considering using tablets for use with clients at my job and I was just wondering if there is anyway to lock users into one application. Just for theoretical purposes the application could be as simple as a sign in sheet where people would check in when they come into the buildings. what I want to disable is people's abilities to get out of the application(hitting the home button, et cetera). Basically I don't want people to have access to anything besides the sign-in application. Everything I've read points to this not being possible but I figure this is the best place to ask. Thanks in advance."], "neg": ["SD card not recognized by Acer A500 I just bought a used Acer A500 16 GB tablet yesterday. Everything works great -- except it doesn't recognize my 16 GB microSD card for storage, but says there is no external SD storage or it is emulated. I don't know a lot about rooting and such; the guy just told me it was rooted and is running JellyBean 4.1, which works great. Does anyone know how to get my SD card recognized again?", "Can't \"Wipe data/Factory reset\" due to broken power button **Alright, so a little background:** lately my Epic 4G touch has been acting up (restarting when it feels like it, power button won't work, going from 100% power to 20%, etc) and I decided to take appropriate action. I first purchased a new battery (as my previous one was \"bloated\" and had water damage) hoping that would fix my problems. Unfortunately it only reduced how often the problems occurred. My next course of action is to do a factory reset on my phone (it's rooted running CM 10) and get a new one from Sprint (I have insurance) which I did following this tutorial. Everything went well - as far as I can tell - but I am experience a boot loop as mentioned in the video. The remedy is to wipe the /data partition, which is where I'm stuck. **The problem:** As mentioned, my power button is broken, but in a very _odd_ way. I can use my power button to get into Recovery Mode, but after that it almost never works (and if it does it's as if I'm holding the power button and my phone restarts after about 5 seconds). So due to this I can't select \"Wipe data/factory reset\" from Recovery Mode. I tried using `adb` to wipe my data partition, but since my phone is no longer rooted I get \"Permission denied\" and any attempt to use `root` or `su` (obviously) fail. I'm not sure what my options are at this point, is there anyway I can wipe the `/data` partition without root or a power button?", "How to sync calendar with android without google? is there a way to sync an Ubuntu calendar application like Thunderbird Lightning or Evolution with an Android device without using google-calendar? At the moment I am syncing my Thunderbird-Lightning calendars on different computers via Dropbox, what is much more reliable than google-calendar. Another big advantage over google-calendar is, that I can access my appointments offline as well, since the calendar files are synced onto the harddrive of each computer by Dropbox. I'd like to access those calendars via my android device as well. * The Dropbox-app for android does not support automatic syncing yet, so it seems like I have to use another service. * Apart from that I guess I need to know an android app, that can access a calendar-file stored in ics-format. Thanks in advance YSN", "How to display cell info display (CID) on screen? Does Android OS have an option for showing **Cell Info Display** (Name of the cell Tower) on home screen ? (Without using external apps)", "Nexus 4 with no signal (sleep mode) I have a problem with my sister's Nexus4. When I try to call her I have the reply that the phone is off while if I call the other phone (HTC Legend with the same operator) I can talk regularly. It happened both at home or outside. It is not a operator problem because I change the operator twice and with the same operator in the same places I can phone with no problem. The strange is that when a try to call N4 I am not able to start the call and after that the N4 receive a sms with the \"lost call\" and return it on-line. it seems it falls in a sleep mode when the creen is off", "Problems with wifi connection I have a netgear router wnr2200 and sometimes, when I connect with my tablet android or my cellphone, there are some problems. Using chrome, sometimes the page can load and load, I have to reload it. Using YouTube or play store, sometime it keeps on loading I have to restart (also seen with Astro file manager and freely). so I assume it is because some requests aren't succeeded.here are my home channels (my WiFi network is colored) ![enter image description here](http://i.stack.imgur.com/Appxb.jpg)i I already tried channel8 and 1, no success. Any idea (channel 14 is not supported)", "How to partition Samsung Galaxy Ace S5830 using ClockworkMod Recovery? Device: Samsung Galaxy Ace S5830 I am using ClockworkMod Recovery 6. There is no way in the CWM Recovery 6 to partition the SD card. Also, I am not able to install ClockworkMod Recovery 5 on my phone. How can I partition this phone using CWM?", "How to delete an app installed with Amazon Appstore? I've installed an app using Amazon Appstore, but I don't see a way to uninstall it. Amazon support has failed to respond to my question after 2 days. I prefer a method that does not involve deleting it with a file manager or some sort of root access."]}, {"query": "Necessary to manually update gapps?", "pos": ["Do apps included in the gApps zip get updated via Google Play? While using alternative ROMs like CyanogenMod 9(as i currently am), one flashes an additional zip file called gApps which contains apps provided by Google. As Google releases newer versions of applications, will the newer versions be updated via Google Play or do I need to manually flash a newer version of the gapps.zip? I'm asking because an update to the Google Play market app was recently released (which includes the ability to remove apps from the ALL MY APPS section) but I still haven't seen my market app updating itself."], "neg": ["Where are the downloaded Google Play Music files? I've looked in /Android/data/com.android.google.music/cache and nothing is there. I don't have an SD card.", "How to Install ClockworkMod on Innos A35 I tried to install ClockworkMod via ROM manager. My device(Innos A35) wasn't listed, but I chose one that was on the list thinking that it would somehow get installed. There was a download, but when I reboot to recovery mode the old recovery software with only a few options is shown. I was thinking that rebooting to recovery mode would bring up something like this if ClockworkMod was properly installed. Can someone point to me what could be wrong? Or can someone tell me how to manually install ClockworkMod without using ROM Manager?", "Xperia T not booting anymore, brick? I have a xperia T and I think its hardbricked. What I think what happened is this, i wanted to format my interal storage manually. But instead the entire mmcblkp0 got formatted.. Now I cant boot anymore and pc recognizes it as qualcomm hs-usb qdloader 9008. I already tried to recover with QPST tool, but no luck. Flashmode/fastboot is not working. Phone doesn't even vibrate on longpressing vol up + power. Does anyone know how this can be fixed? Thanks.", "Can I install a micro-SD card into my Note 2 after I've enabled device encryption? I recently got a Note 2 and enabled device encryption. I want to put a micro- SD in it now to expand my storage capacity, but when I go to settings, it won't let me mount the card. Is it because of the device encryption? Is there a way to add this drive without decrypting and re-encrypting?", "Battery charging issue in Samsung Galaxy S3 I have a Samsung Galaxy S3 and it is charging very very slowly when plugged into my PC. I deleted all my images and some videos and some other stuff and the charging seemed to speed up. Is battery charging is related to available memory? I didn't think it was.", "Can Android phones/tablets access W-Fi network drives? There are many WLAN routers currently available which have a USB port to connect external HDDs. These are than easily available on Windows machines directly in Windows Explorer, they look like common network drives. If I used an Android-based smartphone or a tablet which support WLAN, would it be possible to access these network drives somehow? I'm entertaining the idea of getting a tablet, and it's important to know if I can access a larger storage than what would be available locally via an SD card (if such a slot even would be present on a particular specimen).", "How can I factory reset my Android Mini 7100 Phone? I'm unable to go to recovery mode to factory reset (wipe my cache/data) my Android Mini 7100 Phone (Android GingerBread 2.3.x) because I forgot my phone lock combination. I tried resetting it using: * Vol Down + Power, * Vol Up + Power, * Vol Up + Vol Down + Power, * Vol Up + Vol Down + Home + Power, and the phone starts normally * When I press Home + Power, it goes to 'Test' mode. I checked out this YouTube video but it did not work for me. How do I go to recovery mode?", "I can FastBoot my device. How can I reinstall an Android image to it? I accidentally deleted a file from my phone (Sky iVega IM-A800s, Gingerbread) and phone cannot boot now. I'm seeing an \"System operating error\" and device restarts repeatedly. I could get into FastBoot mode and I installed Android USB driver and ADB drivers, although I don't know what they are exactly. I couldn't find OEM Android images for the device (it's a Korean web site and they have an ActiveX based installer that doesn't work). I know StackExchange is a Q&A site and I really love this site. I would like to know if you know any software that let's me install a custom ROM (I could download a custom ROM for a similar model) using the PC. Device does not have USB debug mode enabled and the current installation is no longer functional. Can I install a ROM (or Flash ?) using a PC (Windows/Linux) to a FastBoot enabled device? I would be so grateful if you could shed a light for me. Thanks in advance."]}], "CQADupstackEnglishRetrieval": [{"query": "\"there are still a few administrative i's to dot and t's to cross\"", "pos": ["What does this sentence mean:\"If you fail to dot an \u201cI\u201d or cross a \u201cT,\u201d you could be...\"? > **Possible Duplicate:** > \"there are still a few administrative i's to dot and t's to cross\" From here there is a sentence: > If you fail to dot an \u201cI\u201d or cross a \u201cT,\u201d you could be banging your head > against the wall for hours. What does the author mean by `dot an \"I\" or cross a \"T\"`? Thanks."], "neg": ["Can I use indefinite article with superlative adjectives? In most russian grammar books there is a rule saying that definite article must be used with superlative adjectives. However from time to time I see people using indefinite article. For example, a title of the film \"A Most Wanted Man\". Can somebody explain this?", "\"Stop a loophole\" vs. \"fix a loophole\" Which is the preferred usage \u2014 \"to stop a loophole\" or \"to fix a loophole\"?", "\"The last couple of years,\" \"in the last couple of years,\" or \"over the last couple of years?\" I wrote the following: > With a sigh, Erin put the newspapers aside. Why she could never find what > she was looking for in the papers? It'd been a good thing she had stopped > reading them **(in/over) the last couple of years.** Should I use in or over? Or just leave it as it is?", "Evoking more power than \"Titan\" EVE Online is a multiplayer game that takes place across a fictional galaxy called New Eden. Players pilot spaceships and fight for territory in large collaborative corporations. Here is a simplified list of the military-focused ship classes, going from smallest to largest: * Frigate * Destroyer * Cruiser * Battlecruiser * Battleship * Carrier * Supercarrier * Titan The four variants of Titan are currently the largest vessels in the game. They usually require the efforts of hundreds of players to build and field. They are extremely valuable logistically and are able to carry an extravagant amount of firepower. For many months after Titans were introduced to the game, the difficulty of fielding one kept their numbers in the single digits. As of this posting, however, the number of surviving Titans is in the middle hundreds. It would appear that if it were the intention of EVE's maintainers to keep Titans rare (and I make no allegation that that is the case), then they have underestimated the growing cooperation and resourcefulness of New Eden's citizens. Now then, here is the question: If a warship class larger than the Titan were added to the game, what would it be called? The word _Titan_ comes pretty close to the ceiling in terms of evoking great power and strength. In Greek mythology, the Titans were a race of immortal giants descended from the gods Gaia and Uranus, themselves descended from Chaos, but neither _God_ nor _Chaos_ seem to be good names for ship classes. The first could be controversial; the second I think is more arguable ( _Chaos Class Warship_ has a nice ring to it), but I think that there are better alternatives. For context, here is an alphabetical list of all ship classes currently in the game: Assault Ship, Battlecruiser, Battleship, Black Ops, Capital Industrial, Carrier, Command, Covert Ops, Cruiser, Destroyer, Dreadnought, Electronic Attack, Exhumer, Freighter, Frigate, Heavy Assault, Heavy Interdictor, Industrial Command, Industrial, Interceptor, Interdictor, Jump Freighter, Logistics, Marauder, Mining Barge, Supercarrier (also called Mothership), Recon, Strategic Cruiser, Titan, Transport For even more context, this page on EVE Wiki has more information about each ship class.", "Meaning of \"renaissance loser\" _Renaissance loser_ in this context > Dilbert: Wally, are you free for lunch? I need to remind myself how lucky I > am that I don't have your laziness or personality or looks. > > Wally: Would you say I'm kind of a renaissance loser? Does it describe people who have multiple attributes of a loser? So can renaissance be used to address things with multiple attributes like people who know art and science?", "More grammatically correct: \"anything but\" or \"anything except\"? Could you tell me which of these phrases is grammatically correct \u2014 \"anything but\" or \"anything except\"? If the use depends on context, what are the instances when each must be preferred?", "How to properly emphasise words with italics in sentences? I'm not sure if I can ask this question here, because it is more of a writing issue. My native language is French and I have been reading and watching stuff in English and I am quite fluent with the language now (I think). Though I find some things kind of weird as to emphasised words in sentences. For example, the following sentence (seen this somewhere on the internet, not really important) : > So what _can_ you do? To me, the emphasis is on the wrong word here. It does not punch enough. In French, I would rather write it like this: > So what can _you_ do? It is not the first time that I see emphasised words in a sentence and I think: well I feel like the emphasis is on the wrong word. It could be moved to another word to make the sentence more punchy. Am I the only one who finds this weird? Any other french-speaking people here that feels the same as I do?", "Change \"What are you doing?\" asked Sally into indirect speech Is \"Sally asked what you were doing.\" correct? It couldn't possibly be \"Sally asked what I was doing.\" right? Thanks."]}, {"query": "Is \"mens\" a valid word?", "pos": ["Which is correct \"women's clothing\" or \"womens clothing\"? When I typed the search into Google most of the responses were websites selling clothing and the ratio of womens versus women's was about 1:1. Searching for mens versus men's and the version with apostrophes appears almost 90% of the time. For boys versus boy's or girls versus girl's it is a 3:2 ratio in favor of no apostrophes. So there's a general trend for leaving the apostrophe out. But \"womens\" looks wrong. I suppose the same question applies to public bathrooms as well. Is the women's room or the womens room?", "Is it correct to say \"I write children books\" (not possessive case)? Although Children's books is what everybody says, I would like to understand why the genitive case is applied in such case. If I write books for children, children is an adjective here; not the owners of my book! The word \"children\" just defines or characterizes the type of books I write. Therefore, it's an adjective. So, I understand that genitive/possessive case (\"I write children's book\") is incorrect grammar. My question is: is the genitive case here really accepted as right? If I use \"I write children books\" (following the grammar principle) as as I say \"I write pets books\" (books about pets, and not possessions of pets) - would I be incorrect? Why?"], "neg": ["\"In accepting\" vs. \"to accept\" > **Possible Duplicate:** > When should a verb be followed by a gerund instead of an infinitive? > Part of the reluctance **in accepting/to accept** social arguments about > human nature lies in the fear that many scientist have, of falling into the > Cartesian pit. I'm not able to differentiate between these two choices. Both sound Okay according to my understanding. Is latter one more apt in usage?", "What's the meaning of Goofy is a Dawg? http://www.straightdope.com/columns/read/978/if-pluto-is-a-dog-what-is-goofy Says that goofy is a dawg, not a dog. Well, dictionary says that dawg is black people. http://www.urbandictionary.com/define.php?term=dawg So what's the connection? http://nws.merriam- webster.com/opendictionary/newword_display_alpha.php?letter=Da&last=50 says that dawg also means dog. So what's Cecil meant when he said that Goofy is not a dog but a dawg?", "Is there a name for this characteristic of the human body (picture) Is there a name for this characteristic of the human body (see the arrows in the picture below)? They seem as 'holes' on the back. I'm not able to imagine one ![picture of feature](http://i.stack.imgur.com/lIFHW.png)", "Meaning of \"to grow a funny bone\" What is the meaning of the idiom _to grow a funny bone_? What does _funny bone_ refer to? Googling shows only places where it was mentioned.", "Word to describe difficult to keep request I am looking for a word which can used in the following blank space: I understand the ____ nature of the request; hence a negative answer will not change anything between us. The word needs to describe a request which is difficult, a bit imposing, and the favour is too big. Thanks very much", "The difference between 'have mercy,' 'extend mercy,' and similar phrases Is there a difference between 'having mercy' and 'extending mercy?' Are there other phrases that mean similar things?", "\"Result in\" or \"result to\" I am trying to help a friend to write his CV. I don't know which preposition to use in the following paragraph: > Advance Marketing Staff Knowledge & Skills Which Lead To Dramatically > Increase In The Branch Customers. And Also **Result In** Several Competitive > Branches In The Same City To Close. Should _result in_ or _result to_ be used? I feel like it should be _result in_ but I am not sure. Any suggestions or improvements are also welcome.", "What is the word for statements that aren't ironic but have an interesting juxtaposition? For example: my grandmother went to university and learnt to speak RP; I went to university and picked up her cockney drawl. Or: I was searching for a book on the internet and when I found it, it turned out that it my next door neighbour was selling it."]}, {"query": "Question mark(s) when asking about a quoted query", "pos": ["Quoting a question at the end of a sentence which is itself a question If my sentence is a question _and_ ends with a quote of a question, where exactly do I put a question mark? > 1. Did she ask, \"Is it raining\"? > > 2. Did she ask, \"Is it raining?\"? > > 3. Did she ask, \"Is it raining?\" > >", "Placement of question mark for a question quoting a question Suppose I am writing to a friend, asking if he remembers a certain question I asked him. Do any of the following sentences correctly use the question mark? > Do you remember when I asked you \"do you know the time\"? > > Do you remember when I asked you \"do you know the time?\" > > Do you remember when I asked you \"do you know the time?\"? Less specifically, what is the general rule that can be applied to such a situation?"], "neg": ["Omitting the subject in writing I wonder whether it is formal to omit the subject in writing. Must all sentences always have a subject when I'm writing an English test? \u00ccs it colloquial and reserved to speech?", "Does use of the term \"Gordian knot\" imply a heavy-handed solution? I\u2019m a PhD student currently struggling with the section of my thesis where I\u2019m praising my supervisors. It is not that I\u2019m having trouble summoning up the willpower to do so, but rather that I\u2019m puzzled by a specific grammatical detail. I am planning to write something along the lines of > \u2026 a better team of consultants is hard to imagine when it comes to [\u2026] > untying theoretical and technical Gordian knots. _thefreedictionary.com_ defines the term as \u201can exceedingly complicated problem or deadlock\u201d, which is exactly what I want to say. However, the etymology of the expression is obviously related to Alexander the Great coming across the knot in Gordium and \u201csolving\u201d the riddle of untying it with his sword. So, in using the expression in this way, do I imply that my supervisors tend to prefer brute-force solutions?", "What is the correct tense to be used in Technical Presentation most of the time? This is more about the suggestion I am asking here. Please share your ideas/experience which will help me. I am working as a project manager and want to present most of the time about project or technology. I used mixed tenses for the same kind of information which suits sometimes correctly and interpreted the meaning sometimes incorrectly.", "Looking for a word for concealment of faults I'm looking for a word for concealment of faults. In this case, someone has a specific fault and actively, purposefully hides it from others, going out of their way to conceal these faults from others. It's a close-opposite of _hypocrisy_ or _deceit_ , where one pretends to have a good quality that one does not possess. This would be a superimposition of a non-existent good quality, while the word I'm looking for would be the deprecation of an existent fault or negative quality. Also, not a mere denial or non-acknowledgement of the fault, but an active secrecy or pretence. Is _dissimulation_ my best bet? That doesn't seem to necessarily include concealment of a fault, just concealment in general. Examples: 1) Fearing what his parents might think, John pretended to be a non- smoker. When they asked him directly about it his words faltered, not wishing to lie but also not wishing to reveal his shortcoming. In the end, the best he could manage were a few unclear words denying the fact and, hoping his parents believed him, quickly changed the subject. 2) John thoroughly enjoyed hunting, but in the company of others, from fear of damaging his reputation, was scrupulous in concealing this and even went out of his way to appear outspoken against hunting. The close-opposite (hypocrisy) would be: For fame and fortune, John pretended to be able to read others' minds and offered his services at a reasonable rate. To avoid being discovered as a fraud, he kept his readings vague and used intrigue to keep his clients hooked. So I hope these help give a clearer idea of what I'm looking for. I am not so much looking for a word to slot into those sentences, but rather a word for what such an attitude or behaviour is called. Many thanks for all the work!", "Why do 'fine words butter no parsnips'? I was at a dinner last night where some rather nice herb butter was served with the vegetables. Conversation close to me then turned to the English expression 'Fine words butter no parsnips'. It seems rather odd in English, because by tradition the English tend to use gravy with their vegetables. That is until one appreciates that the expression exists in French 'Mots doux ne beurrent aucun panais'. Now French cooks, I can well imagine are more inclined to butter their parsnips, so it makes sense. But I would be interested to hear of the possible use of this expression in other countries where English is used. Do Americans, Australians etc 'butter their parsnips', either actually or metaphorically?", "Why is the plural form of \"life\" \"lives\", while the plural form of \"still life\" is \"still lifes\"? Why does the plural form of \"life\" is \"lives\", while the plural form of \"still life\" is \"still lifes\"? From Wikipedia: > A still life ( _plural_ **still lifes** ) is a work of art depicting mostly > inanimate subject matter, typically commonplace objects which may be either > natural (food, flowers, plants, rocks, or shells) or man-made (drinking > glasses, books, vases, jewelry, coins, pipes, and so on).", "What's the meaning of \"refer\" and \"introduce\"? What's the implication of the following sentences? > * Could you refer me to the job? > * Could you introduce me to the job? >", "Helping improve or help To improve Is \"Helping Improve Lives\"ok or should it be \"Helping TO improve lives?\""]}, {"query": "\"right\" vs \"correct\"", "pos": ["\"Is this the right way?\" vs \"Is this the correct way?\" > **Possible Duplicate:** > \u201cright\u201d vs \u201ccorrect\u201d I've had this question for a long time. Which sentence is grammatically correct? > Is this the **right** way? > > Is this the **correct** way?", "\"Is it right?\" or \"Is it correct?\" Which question is more proper? > _[some statement]_ , is it right? > > _[some statement]_ , is it correct?"], "neg": ["Looking for a list of \"english words\" that exist in other languages, but with different meanings I had a terrible misunderstanding with a semi-conservative Turkish woman who was offended when I said > \"Let's have brunch, and I'll bring some platonic female friends\" I'm told that in Turkey, \"platonic\" has a meaning of one person who deeply desires the other (sexually), but that is not reciprocated. The English version is that of a non-sexual friendship, where lust isn't in the picture. She thought that I wanted all these women present who admired me in that sexual way. I don't wan to create these offenses again, and so is there a list of words that have a strong similarity to English, but with a different meaning?", "\"I couldn't but laugh\" - correct or not? Is the usage of \"I couldn't but laugh\" in place of \"I couldn't not laugh\" correct English? Or should it always be \"I couldn't help but laugh\"?", "What's the difference between \"my love\" and \"my lover\"? What's the difference between \"my love\" and \"my lover\" ? Or do they have the same meaning ?", "Is the usage \"can able to\" wrong? I believe it's wrong. But where can I find some reference on the same? I hear a lot of people use 'can able to' in their daily talk. I believe it's entirely wrong. Both 'can' and 'able to' hold the same meaning. Where do I get more information on the same and also the exact places where I should use 'can' and where I should use 'able to'?", "What do you call things made out of natural waste materials? How do you categorize things (say, a toy, doll or idol) made out of natural wastes like leaves, trunks, etc., from nature?", "Looking for a word similar to \"proverbial\", but referring to fables or folk stories I would like to reference something a character said in a famous childhood story, e.g. The Boy Who Cried Wolf, or, Goldilocks and the Three Bears etc. amidst normal writing. For instance, I'll use \"proverbial\" below, but I'm neither sure it makes sense, nor positive it's grammatically correct. I'm also unsure a drop-in replacement exists, but I'm hopeful. > Ex.1. Don't keep crying for the **proverbial** wolf, Dave, or us villagers > on the marketing team might just stop paying attention. > Ex.2. Looks like that part of our software isn't tuned correctly. The > **proverbial** porridge might be just a little too hot. I'll get it just > right by next Friday. Thanks, Nik", "Is \u201cKnow how to cook leeks\u201dan idiom? What does \u201cRead \u201cHamlet\u201d and know how to cook leeks\u201d mean? There was the following sentence in New York Times\u2019 article (February 28) titled \u201cWhat you learn at 40s.\u201d: > \"Victor Hugo supposedly called 40 \u201cthe old age of youth.\u201d - - The > conventional wisdom is that you\u2019re still reasonably young, but that > everything is declining: health, fertility, the certainty that you will one > day **read \u201cHamlet\u201d and know how to cook leeks**. Among my peers there\u2019s a > now-or-never mood: We still have time for a second act, but we\u2019d better get > moving on it.\" http://www.nytimes.com/2014/03/01/opinion/sunday/what-you- > learn-in-your-40s.html?hp&rref=opinion&_r=0 What does the line -\u201cRead Hamlet and know how to cook leeks\u201d mean? Is \u201cKnow how to cook leeks\u201d an idiom, for instance, to mean to get 'the worldly knowledge'? Readers English Japanese Dictionary at hand carries \u201ceat the leek\u201d and \u201cnot worth a leek\u201d as idioms, but don\u2019t include \u201cknow how to cook leeks.\u201d", "Advanced English Pronunciation first thing first I hope this is not off-topic. So here's my problem: my spoken English is quite good, to the point that I'm sometimes mistaken for a native (American) speaker. However, there are words I still tend to mispronounce, especially when the English phonetics structures are not present in my mother tongue (I'm Italian). For instance, a couple days ago somebody brought to my attention that I pronounce \"ice\" and \"eyes\" virtually in the same way, and these are the kind of things that are really hard to notice until a native points them out to you. _In other words, I feel like I reached a plateau in my learning process and I'm not sure how to proceed from here._ I should also mention that I get a lot of exposure to the language and I use it on everyday basis, so that alone is not helping anymore (or not helping fast enough). I figured I could start reading about linguistics, and take a more structured approach to learn English (maybe learning the IPA would also help?), but I'm not sure is a good strategy. Do you have any recommendation, books/websites/topics I should check out, or know anything else I could try? Any advice is appreciated. Thank you."]}, {"query": "Is cheque and check interchangeable when referencing a checking account?", "pos": ["\"Checking\" vs. \"chequing\" vs. \"chequeing\" with regards to types of bank accounts I came across this little dilemma when looking up the incorrectly spelled word \"chequing\" in my web browser's dictionary (Opera). According to the different dictionaries you can select in Opera: EN US is \"Checking\" (Which I knew) EN GB and EN ZA is \"Chequeing\" (Which looks really strange to me) Here in Canada I've always seen and used \"Chequing\", which I actually thought was the GB version. Example of BBC using \"chequeing\": http://news.bbc.co.uk/2/hi/uk_news/magazine/3242776.stm So how many versions are there? Which is technically the right version for Canada and Great Britain?", "Do we ask for check or cheque in restaurants? I know there is a related question asked here. But its slightly different than it and seeking more information. I live in India, I have been to America couple of times. In my first trip it was surprising to see people asking for \"check\" instead of \"bill\". I have been told by my friend that here (in America) they call it \"check\". I assumed may be it arosed from \"check-out\". After some days another friend told me that it's \"cheque\", **not** \"check\" and he elaborated that just like how a banker pays money in return of cheque. After reading few answers/question and links given in the relative question, I really made a conclusion that which one is correct to use because I doubt only one has to be correct and remaining evolved by misinterpretation because \"check\" and \"cheque\" sound the same?"], "neg": ["What is the term used \"When a person is called in to work on a holiday\"? Someone asked me about what term is used for a **person who is called in to work on a public holiday**. (He told me that it is called _pump of leave_ , but he himself was not sure of it.) So, there are two questions- * What is that person called? * What is that leave is called? If there are specific terms for them please tell.", "\"Why can't I see?\" or \"Why I can't see?\"? Which of the following is correct? > Why can't I see? > Why I can't see? I am a bit confused, since both have inversion, negation and a \"why\" in the beginning.", "Origin of \"washing up\" Where does the phrase \"to wash up\" (equally \"to clean up\") originate from? Particularly the word \"up\", how did that enter the phrase?", "What is the difference between \"daemon\" and \"demon\" in a religious context? Is there a difference between _demon_ and _daemon_ in a religious context?", "\"If I am getting late\" Is it correct to say \"If I am getting late, I will let you know\"? The Conditional rules don't say anything about continuous tense. In addition, what would be a better way of conveying the same message?", "In what dialects is \"I don't like it too\" grammatical? Consider: **_Too_** \u2014 ( _adv_.) also, as well, in addition. We don\u2019t usually use _too_ in negative clauses; we use _either_ instead: * I don\u2019t like that kind of stuff. * I don\u2019t like it either. That said, here\u2019s my concern: I\u2019ve heard a native speaker from the Lake District (in the UK) say \u201cI won\u2019t do it and she won't do it too.\u201d When asked if that's how he usually phrases such sentences, I got an affirmative answer. This then reminded me of John Lennon\u2019s lyrics to his song \u201cImagine\u201d, which I had always thought must be wrong: > _Imagine there\u2019s no countries > It isn\u2019t hard to do > Nothing to kill or die for > **And no religion too**_ Is it grammatical in the UK (or in certain regions) to use _too_ instead of _either_ in such sentences?", "Does the word \"please\" come from \"plea\"? I thought that the word _please_ came from the plural of _plea_. But then why is it _please_ instead of just _pleas_? Why the e? Are \"plea\" and \"please\" really related to each other?", "Is it \u201cgood English\u201d or \u201ccorrect English\u201d or something else? Is it appropriate to say \u201cI speak good English\u201d or \u201cI speak correct English\u201d? I believe there can be varied replies depending on context, so let me narrow it a little; let\u2019s say I want to convey how well I speak English."]}], "CQADupstackGamingRetrieval": [{"query": "When can you respecialize your hero?", "pos": ["How do you reset your traits(might,magic abilities) in heroes of might and magic 6? > **Possible Duplicate:** > When can you respecialize your hero? I know you reset the traits from the multiplayer by clicking the respecialize,but how do you reset the 1's from the campaign?"], "neg": ["How can I toughen Qyzen Fess? I play as a Jedi Sage using the Telekinesis tree (damage and a little crowd control). My character cannot take much damage because of the light armor and the endurance values. So I'm using Qyzen as a tank. But he does not have many more hitpoints than my character. I used to equip him with armor with high endurance values but replacing them with high aim values was a good idea as he dealt much more damage (aim is his primary attribute) and he seemed to live longer. The char is lvl 38 now but I have difficulties with lvl 35 mobs. When they beat Qyzen and are on to my character, I mostly die. What can I do now to increase Qyzen's toughness? Should I change back to \"endurance-armors\" or should I try to increase his armor value? Are there other possibilities?", "How to prevent Silverfish from melding into blocks In normal Minecaft with no gamerules changed, silverfish have the capability to meld with existing stone, stone brick or cobble to turn that block into an egg block. If I were to use silverfish in an adventure map but prevent silverfish from \"melding\" back into the blocks, how would I do this? (I've already tried gamerule mobGriefing)", "Falion won't help me cure my vampirism Trying to cure my vampirism, after loading a save AGES ago, and doing the quest to cure it. I get to Falions house, and it's locked. (These events in this paragraph happened the first time) I tried getting in (successfully) into Falions house and of course, he wants me out. After being able to persuade the guard to let me go, being the Thane, I was able to properly talk to him and buy the gem. The problem was, everyone tried to kill me and I was too weak with the disease. (Second time) Tried to break in, unsuccessful. Couldn't make him talk to me this time. How do you properly talk to him? I tried waiting, didn't work.", "How many Fetishes are summoned with Fetish Army I can't find how many Fetishes are summoned when you cast Fetish Army. * Is it random each time they're summoned? * Does it depend on the caster level? * Do they actually have limited life, or are they invincible the time they last?", "Why did my pills change? In Binding of Issac Wraith of the Lamb I picked up a Range Down Pill that I already identified. Some time during the play-through it changed to a Range Up Upgrade. I am not sure when it happened or what happened. I know that that the Lucky Foot Item and the PHD can change negative pill effects, but neither one of those items were picked up in this run. Are there any other items that could of changed the pill type? If you hold on to a known negative pill long enough does it change?", "A possessed dwarf claimed a workshop and is building a mysterious building One of my dwarfs became possessed and while I was building a workshop he claimed it and now he is building a mysterious building. How grave having a possessed dwarf is? Is there a cure for that? What should I expect out of his mysterious building? EDIT: the possessed dwarf built an amulet and then left the workshop!", "Does Origin have any built in screenshot functionality? Origin is trying to edge its way onto Steam's turf, which seems to have been one of the major reasons for keeping Mass Effect 3 an Origin (and console!) exclusive. Thing is, I use Steam for a lot more than simply buying games - I've also fallen in love with the Steam Screenshot service. Does Origin have anything comparable? Or will I have to rely on third party software (like FRAPS, or... even running Origin through Steam?) to get my screenshots?", "How do I kill the crab boss? In the Beach world, the end boss is at least one (I think three, though, if the cutscene is any indication) crab. I have no idea how to fight it! No matter what I do, it seems to hurt me, and I am losing red balloons like a toddler at the county fair. How do I kill this boss?"]}, {"query": "Left 4 Dead 2 Special infected tips for Versus", "pos": ["How can I avoid being detected as an infected in left 4 dead 2? I always get caught playing as an infected no matter how good I hide (because the infected make noises). What would be a good tactic to minimize detection?"], "neg": ["Are there unadvertised world interactions like shooting off locks to open doors? I just learned the other night that you can **shoot the doorknobs off of wooden doors** (as opposed to picking them, like the door to the shed in the mission Rats). Makes sense right? I just assumed that you weren't able to do such a thing. **Question:** Are there any other unadvertised common sense things in Payday 2 like this? I was just curious as I found this to be quite satisfying. Prior I kept thinking \"Why can't I just bust the door down? I'm already caught there's no point in trying to be sneaky.\" and then my buddy told me about shooting the knob and I literally just dropped my head to my desk in awe.", "How much does time matter in Might and Magic VII? I have some subtle aversion to 'wasting time' in games. For example, in Might & Magic 7, I'd much rather go through an entire cave in one go, without ever resting for 8 hours, but using potions instead to keep my party going. Is that a wise choice? Does time passing affect the game in any way, besides things that depend on which day it is (e.g. stables schedules) and which month it is (e.g. bounties)? For example, the rumor is, once I become the lord of the castle, that the new lords will only last a few months... so if I just spend a year doing nothing but getting trashed at the local taverns, will the game punish me in any way? EDIT: I especially suspect something is up given all the peasants that I can hire that reduce travel time...", "Showing up on SpeedRunsLive I know once that once I meet the requirements, My stream will be on SpeedRunsLive. How many races does one have to do to show up on SpeedRunsLive page ?", "Must I have an active XBox Live Gold account to get the pre-order bonus for Borderlands 2? > **Possible Duplicate:** > How do I get my preorder bonuses? Do you need to have an active XBox Live Gold account to get the pre-order bonus for Borderlands 2?", "How can I visit a friend's island in Dragonvale? My kids have exchanged friend codes, and received gem bonuses. How can they visit each other's islands? Note: Under social, there's a \"Friends\" pane that always reads \"3 gifts available\", but has no other entries other than \"visit random island\". The \"gifts\" tab is similarly blank. This is on a Kindle Fire HDX, with no Facebook accounts.", "Do sensor mode trip mines alert guards? One of the perks for Technician is the ability to turn trip mines into sensors that beep, instead of explode when tripped. Can guards see these, or hear when they are tripped? Specific applications in mind include a \"someone is coming up to the roof\" detector for Framing Frame day 3, so the camera operator doesn't have to periodically check if there's a guard on the roof.", "How can I save a game to a USB stick on Playstation 3 I want to save a game to a USB stick on Playstation 3. When I hit triangle on save data it only offers me online storage. How do I enable USB storage?", "What do I do about a caravan that is being attacked? So, in order to get money in Assassin's Creed 3 you've got to send out caravans (or naval caravans) to ship your goods across the lands and all that Jazz. Well when the game was first explaining this they had me send out a single caravan to an area just as demonstration. However, now this Caravan is apparently under attack and has been for quite some time. The menu has no options or anything of the sort to give me ways to deal with this, and the caravan just sits there in the menu being completely useless. What do I need to do with this caravan in order to get it out of its \"attacked\" state and usable again?"]}, {"query": "Is there a difference between Adventure play after pass 2 In Plants vs. Zombies?", "pos": ["How many more \"gimmicks\" does adventure mode have? I just started my second play through of adventure mode in Plants vs. Zombies, and now Crazy Dave is picking 3 (usually irrelevant) plants for me to use on each level. After I finish this playthrough, will there be a new gimmick or handicap on further playthroughs? How many different gimmicks are there on continued playthroughs, and on which playthroughs do each occur?"], "neg": ["Is it possible to play Fez with more than one save game? More than one person in my house is interested in the secrets and puzzles of Fez. However, even though it has a save feature, I don't see how I can switch between saves (thus allowing multiple players to start and stop at different points). If I try and choose \"Start new game\" it says it will delete all progress. Is it possible for two people to play Fez on the same XBox with different save games?", "Are Animals Programmed To Escape Their Pens I'm sure many of you Minecraft fans have noticed that animals always seem to try and escape their pens as soon as their is an escape route. I have a simple question about this and that is are they programmed to do this and if they are is it to find a larger area or just to escape?", "Is Zombie-pigman aggro contagious? If I attack a zombie pigman, it'll attack me. If I do this on a server will it attack other players, or just me?", "If my world has silver instead of Tungsten, can I still make an Emerald Staff? The recipe for Emerald Staff says I need Tungsten. Isn't silver supposed to be interchangeable with tungsten? Why should I have to re-make my world just to get a metal...", "What happens to power ups after death In Hero Academy, if I lose one of my units and step over him in the next turn (so I save him), do I also save any equipment he's carrying? Or, is the equipment lost, but the hero is saved?", "How do Trainers work in Skyrim? I've been to one or two trainers for Destruction magic already. Since then, if I go to another trainer (different skill) of a level that I've already trained at, the dialog says I've maxed out my training (5/5). So, it seems to me that you can only train five times at a given training level (Common, Expert, Master) _across all skills_. However, given how many different skills there are in the game and how many Trainers there are, this seems rather crippling to me. Can someone explain exactly how Training works? Is my above presumption correct?", "I cannot locate my Mardek 2 save file I was playing Mardek on kongregate.com using Google chrome, and decided to move to a different site. So I went to check my flash app data folder and the chat.kongregate doesn't have my save information? I tried to clear out the folder and see if it was still there, and my save still worked on the site, but I have no idea where it is! I even cleared the entire app data folder looking for it and it still worked!", "\"Cannot Resolve Hostname\" when using Subdomain A group of friends wanted a Minecraft server to play together on, so I went ahead and deployed a VPS, and directed an A record titled `play` to the server's public IP address. I connected to the server via SSH using `play.coffeehousecode.com` as the hostname, and didn't encounter anything out of the ordinary, so I started a Minecraft Server instance, and the logs showed no problems to report. However, when trying to connect to the server using the Minecraft client, I receive an error stating that the Hostname couldn't be Resolved. I checked my DNS records to make sure everything checks out, and SSH-ed into the server again without a problem. When connecting to the server using it's public IP address, however, I can connect and play without a problem. Any ideas as to what could be causing this?"]}, {"query": "Do dropped items in Ingress decay?", "pos": ["Do dropped items ever expire? When items get dropped and left, do they ever expire or will they be available indefinitely until somebody picks them up? I believe keys that get dropped by portals when links decay expire in a day or two and vanish. Is there anything like that for manually placed items?"], "neg": ["Make VATS the Default in Fallout 3? Is there a way to always use VATS in Fallout 3? If I hit \"V\", it goes to the VATS system and then when the turn is over, it goes back to real time combat.", "minecraft crashes on osx I just bought minecraft and every time i run it , it crashes. When i double click on its icon in the application folder nothing happens so i have to go into the contents folder to launch its jar file. After I login this is the crash report that keeps displaying. I am running this on osx 10.8.2 (mountain lion) My specs are: 2.26 ghz intel core 2 duo, 8gb ram ---- Minecraft Crash Report ---- // Surprise! Haha. Well, this is awkward. Time: 2/25/13 5:29 PM Description: Failed to start game org.lwjgl.LWJGLException: Could not get the JAWT interface at org.lwjgl.opengl.AWTSurfaceLock.lockAndInitHandle(Native Method) at org.lwjgl.opengl.AWTSurfaceLock.access$100(AWTSurfaceLock.java:49) at org.lwjgl.opengl.AWTSurfaceLock$1.run(AWTSurfaceLock.java:89) at java.security.AccessController.doPrivileged(Native Method) at org.lwjgl.opengl.AWTSurfaceLock.privilegedLockAndInitHandle(AWTSurfaceLock.java:86) at org.lwjgl.opengl.AWTSurfaceLock.lockAndGetHandle(AWTSurfaceLock.java:64) at org.lwjgl.opengl.MacOSXCanvasPeerInfo.initHandle(MacOSXCanvasPeerInfo.java:53) at org.lwjgl.opengl.MacOSXDisplayPeerInfo.doLockAndInitHandle(MacOSXDisplayPeerInfo.java:56) at org.lwjgl.opengl.PeerInfo.lockAndGetHandle(PeerInfo.java:85) at org.lwjgl.opengl.MacOSXContextImplementation.create(MacOSXContextImplementation.java:47) at org.lwjgl.opengl.Context.(Context.java:120) at org.lwjgl.opengl.Display.create(Display.java:858) at org.lwjgl.opengl.Display.create(Display.java:784) at org.lwjgl.opengl.Display.create(Display.java:765) at net.minecraft.client.Minecraft.a(SourceFile:232) at asq.a(SourceFile:56) at net.minecraft.client.Minecraft.run(SourceFile:515) at java.lang.Thread.run(Thread.java:722) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details: Minecraft Version: 1.4.7 Operating System: Mac OS X (x86_64) version 10.8.2 Java Version: 1.7.0_10, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 55114328 bytes (52 MB) / 85721088 bytes (81 MB) up to 1271398400 bytes (1212 MB) JVM Flags: 0 total; AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used Suspicious classes: No suspicious classes found. IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 LWJGL: 2.4.2 OpenGL: ~~ERROR~~ NullPointerException: null Is Modded: Probably not. Jar signature remains and client brand is untouched. Type: Client (map_client.txt) Texture Pack: Default Profiler Position: N/A (disabled) Vec3 Pool Size: ~~ERROR~~ NullPointerException: null", "Plot doesn't continue after killing Darko After finishing That Special Someone by killing Darko, I didn't receive a call by Pegorino, as the wiki says I should. But this means that I can't continue to the following story missions. I did a few optional missions after that, so I don't think waiting will help. Am I missing something or is this a bug? Is there some way of fixing this apart from loading an old save?", "Where to find Ashley Williams on the Normandy 2? I asked Ashley Williams to join my crew on the Normandy and she is a selectable member for my squad. The strange thing is I can't seem to find her on the Normandy spaceship. It does not really make sense. Is there a glitch possibly? This is for the PC version on Origin.", "What is better for Stalkers: 1 Armor + 1 Shield or 2 Armor? Grubby just came up with this question on Twitter > SC2 math heads: what's better for a Stalker, 1 armor 1 shield or 2 armor? I > heard 2 armor is better before but I don't know why necessarily. I'm curious if we could answer this with our communities math-skills :)", "How do I find unique charms in Diablo 2? I've tried researching this one on my own and I've come up with several different answers depending on the site I'm checking. I'd like some solid information on obtaining unique charms in _Diablo 2_. There are three in total: Annihilus, Gheed's Fortune, and the Hellfire Torch. Can I find unique charms while playing single player? If so, do they drop on a specific difficulty (Nightmare, Hell)? Details on all three would be helpful.", "How do you sneak up on someone in Hitman 2? I understand the the **L1** button is the \"sneak button\" and that you sneak up behind them extremely slow, but I can't seem to pull off the sneak attack without alerting them first, even in the very first mission. When I try to sneak up behind the first guy (using **L1** ) that comes out of the door (urinating next to the tree), I try to use the anesthetics and right before I get into range to attack him he starts turning around and my alert box starts flashing red, even though I complete the attack successfully in the end. I suppose that one doesn't matter as much since there's no one around, but I assume if I did it correctly the alert box wouldn't flash. However, when I try to sneak up behind The Don (again, using **L1** ) with my Fiber Wire, he always turns around and becomes alerted before I can actually strangle him, then after I strangle him his guards barge into the room. What am I doing wrong with my sneak attacks? They don't seem to be very sneaky if they can get an alert off before you actually get to them... I've tried doing this several times and he is consistently alerted each time. I'm supposedly able to do this without alerting either of them, but I'm obviously missing something.", "What happens if you are left behind on a mission in Warframe? On Warframe, what happens if you are left behind during the extraction when the timer runs out? On a VOID KEY mission, all that happened was that I lost the money reward, but what happens on a normal mission? Is it the same, or do you not get anything at all and it is considered a mission fail?"]}, {"query": "How do I progress in Ars Magica 2?", "pos": ["How do I level up in Ars Magica 2? I've been playing Ars Magica 2 and casting spells but there's no xp bar for the magic. I have checked the options but that's not it, I can move it but can't see it. I'm also not levelling - I've killed like 20 mobs with just magic and I'm still level 1 with 100 mana and like 11 burnout. Ars Magica is a Minecraft mod and is part of some of the Feed the Beast packs for 1.6.4 and i can cast the spells"], "neg": ["Left 4 Dead 2 accuracy - when can I stop shooting? I'm trying to break 75% accuracy on Left 4 Dead 2. I can consistently get about 60% accuracy with either of the automatic shotguns, but when I try with the M-16, my percentage drops to the high 40s. Assuming that my shooting habits don't change from firearm to firearm, the only thing that I can think of that would cause this drop is the fact that the shotgun's slower firing rate means that every common infected is guaranteed to get one _and only one_ round. With the M-16, it's very likely that a particular bullet will kill the zed, but by the time I realize that it's dead, I've fired once or twice more. My question is: **Do bullets fired at dead or dying zombies* count against your accuracy rating?** This has a follow-on question: **What about bullets fired at zombies that a teammate has also been firing at?** If your teammate kills the zombie, does your accuracy decrease for those bullets you fired at it? (*And before you say it, yes, I know that _all_ zombies are dead)", "Is there known PlayStation Network Status page? Right now my PS3 is having difficulties signing in to the PlayStation Network. Has anyone found an official status page for the PSN?", "How do you progress past level 31? Do you have to solve the cipher? In the new iOS game \"Hundreds\", once you finish each board, you can advance to the next, either by hitting \"next board\" or by selecting it from the level select screen. Except when I hit next board on level 31, it takes me... back to level 31. I'd think it was a glitch, except that the game contains ciphers, and other mysterious artifacts that lead me to believe that there's just a puzzle I need to solve. There IS a cipher opened on level 31 (which I have not solved), but what's confusing is that I did not have to solve the earlier ciphers to progress past those levels. If the answer does have to do with solving the cipher, please don't post its solution without using the cipher markup.", "What purpose does the 'Take Picture' function serve in the Far Cry 3 Camera? The camera in Far Cry 3 is useful for tagging enemies from a distance but also includes the ability to take pictures. This does not seem to do anything useful when used on animals or enemies. Is there a purpose?", "How can I pause the game? I have just started playing the game (about an hour in) and I don't seem to be able to pause it. The start button is usually pause but it does nothing. I can press select to bring up the phone menu but the game appears to carry on (I haven't actually tested this is a battle scenario yet though) I am wondering if maybe this is something to do with the fact I selected to play in PSN network? The thing is though, I selected private and have not invited anybody so I have no chance of another human joining me. If this is because of network mode, can I turn it off mid-game? So far I am just assuming... maybe you just can't pause RE6? (I hope this is not the case though)", "What does \"stagger\" mean? In the **Heavy Armor** skill tree, the following perk exists: > **Tower of Strength:** 50% less stagger when wearing only Heavy Armor. What does \"stagger\" mean in this context? Does it do anything if you already have the **Conditioning** perk? > **Conditioning:** Heavy Armor weighs nothing and doesn't slow you down when > worn.", "What does the code at the start of each Really Big Sky game mean? At the start of each Really Big Sky game a code is flashed onto the middle of the screen briefly, before disappearing. ![](http://i.stack.imgur.com/5DBfp.jpg) The code appears to be random, and consists of names, numbers and letters. However, it's significance does not appear to be explained anywhere. What does it mean?", "Can I use DLC from Origin with the base game from Steam? I have never played Mass Effect: Pinnacle Station, but it no longer appears to be available on Steam. This DLC now only appears to be available on Origin, from what I can see. I own Mass Effect on Steam, but the Steam CD key for the first Mass Effect game is not valid within Origin (the CD key for Mass Effect 2 is, but that's not going to help in this particular situation). Am I able to purchase Mass Effect: Pinnacle Station on Origin and then use it with my copy of Mass Effect from Steam, or am I going to need to repurchase Mass Effect on Origin in order to use the Mass Effect: Pinnacle Station DLC, from Origin?"]}], "CQADupstackGisRetrieval": [{"query": "qgis projections from Michigan's CGI data", "pos": ["How to reproject from Michigan Georef to WGS84 in QGIS? I am trying to reproject a michigan state land shapefile which is the NAD83/ Michigan Oblique Mercator EPSG:3078 to the WPG84 EPSG:4326 projection. However when i try to do this my map gets squished down. I have tried the commands in \"Reprojecting from MGRm to WGS84 using open-source tools\" with no luck. I need to get these coordinates into a decimal degrees format. Thanks"], "neg": ["MultiLineString to separate individual lines using Python with GDAL/OGR, Fiona, Shapely There are lots of MultiLineString features in a polyline shapefile. The problem is to split these lines into separate individual lines. There is a similar question with PostGIS, but I need to code in Python. I have been planning to extract the geometry from each MultiLineString feature and create separate features and append a shpfile with those new features. Later, in the second pass, I would delete the MultiLineString object which is no more required as it is now split into its components. It will require reading data from original shpfile and appending the newly created features to a copy of the shpfile. Then the appended (copy) shpfile needs to be rid of the MultiLineString features. It seems cumbersome as I find no way to read and write the shapefile simultaneously. There should be better ideas to do that. How to split these lines into separate individual lines using Python with OGR, Shapely, Fiona or Pyshp? A snippet of code to give an idea is below. import fiona from shapely.geometry import LineString original_shpfile = fiona.open(path_to_road_network_shapefile) with fiona.open(path_to_road_network_shapefile, 'a') as copy_shpfile: rec = original_shpfile.next() while rec: try: vertices_on_link = rec['geometry']['coordinates'] LineString(vertices_on_link) #reconstruct the line from vertices #if multipart, #has multiple lists within the list, #one for each of the Linestring component. also throws AssertionError except AssertionError: number_of_parts = len(vertices_on_link) for x in range(0,number_of_parts): part = rec part['geometry']['coordinates'] = vertices_on_link[x] copy_shpfile.write(part) rec = original_shpfile.next() #in the next phase, delete each of the the MultiLineString features from the copy of the shapefile", "OpenLayers zoom to Boundingbox depends on lat/lon positions I'll try to explain my application and the problem. My application gets a position for a zip code and receives a Lat/Long position, then I'm looking for all points around this position and show them.(This works fine) Now I want to try to show a user his zipcode position at the center of the map, but I also want to specify the correct zoom level, so that the user can see all points around this point. (it's not limited by the distance) Is this possible? My minLat,maxLat,minLng,maxLng looks like this : Array ( [minLng] => 8.381 [maxLng] => 9.15259 [minLat] => 49.5103735 [maxLat] => 50.06762 ) Edit: -HTML: map.setCenter(new OpenLayers.LonLat(center.lon,center.lat) // Center of the map .transform( new OpenLayers.Projection(\"EPSG:4326\"), // transform from WGS 1984 new OpenLayers.Projection(\"EPSG:900913\") // to Spherical Mercator Projection ), config.zoom // Zoom level ); map.zoomToExtent(new OpenLayers.Bounds(config.bounds.minLng,config.bounds.minLat,config.bounds.maxLng,config.bounds.maxLat).transform(epsg4326)); I have added the html of the function.", "Can ArcGIS handle missing values to create a contour map? I am trying to create a contour map for a waterbody. It turns out that in several locations there is no data. I just don't want to use the missing values as zero in ArcGIS because it would create several other contours by interpolating actual value and the zero value. Can someone suggest to me any good way of handling N/A or no values in ArcGIS to create contour maps?", "QGIS not Printing to PDF Simple QGIS 1.8.0 not printing to PDF. Suddenly stopped. Is this an error or something. the resultant PDFs are blank pages. When i file print and use a pdf printer it creates blank docs. when i export to pdf it crashes. when i export to jpeg it does not print map.", "ArcSDE & Oracle & Database Model -- Best diagram the system Having Oracle dbms with ArcSDE and ArgGIS Pipeline Database Model (APDM), I would like to best describe the system with a diagram. In MS SQL each db is autonomous, I think, meaning ArcSDE(using dbo schema) has the SDE business tables in each db and further using a database model, each database has the database model implemented within?? For Oracle (oracle has a schemas instead of db's??), the Oracle instance that has the sde business tables and the database model..assigns users to participate in those tables as a sort of view (schema??) and sde manages those schemas?? My question: I would like to draw a picture showing how sde and the database model relate as well as how they sit in relation to the rdms on Oracle and on MS SQL Server. Thanks.", "Help with Python script for exporting mxds into pdfs! I have written a python script to export my mxd into a pdf (not using data driven pages). I am getting the error that my mxd path is incorrect! I have included my script below. Any help would be appreciated. # Necessary modules import arcpy, os, string, sys # For less complicated scripts - # these 2 imports are necessary to utilize a simpler method of debugging outher than traceback import win32ui, win32con # example debug message to screen ...... # arcpy.AddMessage(\"mxd_file = \" + str(mxd_file)) # val = win32ui.MessageBox(\"mxd_file = \" + str(mxd_file), \"title\", #win32con.MB_OKCANCEL) #Paramaters... mxdList = string.split(arcpy.GetParameterAsText(0), \";\") dir = arcpy.GetParameterAsText(1) #Loop thru & take the base name of each MXD selected and append all map pages to a single pdf # and save to chosen directory...... for mxdPath in mxdList: mxd = arcpy.mapping.MapDocument(mxdPath) name = mxdPath[:-4] + \".pdf\" file = dir + os.sep + os.path.basename(name) ddp = mxd ddp.exportToPDF(file, \"ALL\") del mxd, file", "How to add an independent panel in the ArcMap layout view? In ArcMap 9.3, I want to make a map in which I start from a wider location (for example, a country) and then, I give some zooms until one specific area. I have all the data I need: country administrative boundaries, state/province boundaries and city boundaries (in Brazil and Paraguay). I already got to make my first panel, but how do I plot an independent \"frame/panel\" into my ArcMap layout view? I added a screenshot below, where I drew in red (paintbrush) the region I would like to zoom and plot in a separate panel. Also, I would appreciate pointers to any tutorial about how to do this kind of location map (start in broader area and zoom to specific place). Tks. ![enter image description here](http://i.stack.imgur.com/RztAA.png)", "Remove Points that Overlay I have a pointlayer and some points overlay and i want to remove them, so that only one point remains. the points that overlay have the same coordinates"]}, {"query": "Possible to automate Buffer Wizard in ArcGis 10.x by working in the Shell?", "pos": ["Getting buffer wizard-like speed in Python (vs using MultipleRingBuffer_analysis) I've got a script that takes a single input polygon feature, throws 10 buffers around it at tenths of a specified input distance, and then symbolises the output based on an existing layer file. Pretty simple. However, the arcpy.MultipleRingBuffer_analysis operation is amazingly slow. It takes upwards of two minutes to generate the buffers, even for very basic polygon inputs - the same result can be had in about two seconds by using the buffer wizard tool. Problem is, the buffer wizard can't be accessed through arcpy. So obviously it's _possible_ to quickly generate multiple ring buffers - does anyone have any insight as to how the buffer wizard tool is doing it, and how that might be replicated in Python?"], "neg": ["How to import data with SRID 4269 to GEOGRAPHY type? In PostGIS, we are importing various US census bureau shapefiles (with SRID = 4269) using **shp2pgsql** loader. I have medium-sized database with several tables containing fields of type geography (lat/lon points, polygons, multipolygons, etc) that span locations across the US on which we do various distance calculations, \u201cwithin\u201d polygon, etc type of geographic functions as well as display data using Google Maps Api. We currently have no geometry type fields (only SRID used in database is 4326 via geography type). Because they cover a fairly large area and to keep things simple and consistent (avoid projection details etc), I would like to store the census shapes (ie boundaries for states, metros, counties,block groups..) in geography data type instead of geometry as well (unless there is a reason NOT to do this or someone can explain why we should store as geometry instead). My question is, if I use shp2pgsql loader with \u2013G option to create a MULTIPOLYGON geography field for these boundaries (and thus use a 4326 SRID) does the loader \u201cconvert\u201d the data from a 4269 projection to 4326? Is a conversion really necessary? Do I need to first load into temp table with geometry type then perform update to transform/cast into geography type and then store that result? Thank you for any advice or insight related to this.", "10 GB Raster Aerial Image in Quantum and POSTGIS I have a problem... I have been successful in uploading the raster in postgis but when I access it through Qgis. it does not open even after several hours. I have 10GB aerial image raster and everytime i try to open it through QGIS it does not open even after many hours and QGIS crashes... why is this happening...?? is it really due to the file size..?? Regards, Omer", "Creat point and update featuers spatial join I have the following code that is in a tool. The tool creates a point on click, then auto sequential populates the \"AddressID\" field and also populates X_Coord, , Y_Coord. This part of the tool works smoothly. After these fileds are populated i need the new created feature to populate other fields based on Parcel the newly created point sits on. I do a spatial join in order to get the fields populated. The two functions work perfectly if they are separate but once i combine the two and run the tool ArcMap just sits thinking and thinking nothing happens. I eventually have to end ArcMap process with task manager. I don't get no error at all. After i reopen the mxd i see the newly created point but nothing is populated from the Parcels. I would appreciate any help. Here are the two codes. import arcpy import pythonaddins import os from arcpy import env class Add_points(object): \"\"\"Implementation for AddPoints_addin.Add_points (Tool)\"\"\" def __init__(self): self.enabled = True self.cursor = 3 # Can set to \"Line\", \"Circle\" or \"Rectangle\" for interactive shape drawing and to activate the onLine/Polygon/Circle event sinks. def onMouseDownMap(self, x, y, button, shift): fc = \"TonyTwoWay.DBO.TT\" workspace = r\"C:\\Users\\talmeida\\AppData\\Roaming\\ESRI\\Desktop10.1\\ArcCatalog\\Connection to dsd15_sqlexpress.sde\" arcpy.env.overwriteOutput = True #arcpy.ChangeVersion_management('TonyTwoWay.DBO.TT','TRANSACTIONAL','dbo.DEFAULT', \"\") # Start an edit session. Must provide the worksapce. edit = arcpy.da.Editor(workspace) # Edit session is started without an undo/redo stack for versioned data # (for second argument, use False for unversioned data) edit.startEditing(True) # Start an edit operation edit.startOperation() CC_list = [] with arcpy.da.SearchCursor(fc, [\"AddressID\"]) as cursor: for row in cursor: try: if \"CC\" in row[0]: CC_list.append(int(row[0].strip(\"CC\"))) except TypeError: pass del cursor CC_list.sort() AddressID = CC_list[-1] + 1 AddressID = 'CC' + str(AddressID) row_values = [(x, y, (x, y), AddressID)] cursor = arcpy.da.InsertCursor(fc, [\"X_Coord\", \"Y_Coord\", \"SHAPE@XY\", \"ADDRESSID\"]) for row in row_values: cursor.insertRow(row) del cursor # Stop the edit operation. edit.stopOperation() # Stop the edit session and save the changes edit.stopEditing(True) arcpy.RefreshActiveView() arcpy.AddMessage('Updated all records sucussefully') pass Here the spatial join part. import arcpy import pythonaddins import os import time from arcpy import env fcTarget = \"TonyTwoWay.DBO.TT\" workspace = r\"C:\\Users\\talmeida\\AppData\\Roaming\\ESRI\\Desktop10.1\\ArcCatalog\\Connection to dsd15_sqlexpress.sde\" arcpy.env.overwriteOutput = True ####Select by location on parcels with created point Parcellyr = \"testParcelsAdmit\" fcTarget = \"TonyTwoWay.DBO.TT\" arcpy.MakeFeatureLayer_management(Parcellyr, \"Parcel layer\") entries = int(arcpy.GetCount_management(fcTarget).getOutput(0)) for i in xrange(entries): arcpy.MakeFeatureLayer_management(fcTarget, \"point layer\", \"\\\"OBJECTID \\\"={}\".format(str(i))) arcpy.SelectLayerByLocation_management(\"Parcel layer\", \"INTERSECT\", fcTarget, \"\", \"NEW_SELECTION\") #if arcpy.Exists(pt_lyr): arcpy.Delete_management(pt_lyr) #### populates fields #fcTarget = \"TonyTwoWay.DBO.TT\" #fcJoin = \"testParcelsAdmit\" add_fields = [\"ACCOUNT\",\"SiteNum\",\"OwnerName\",\"SiteAddres\",\"SiteNumSfx\",\"SiteStreet\",\"predir\",\"StreetTyp e\",\"SubName\"] # fix args if not isinstance(add_fields, list): # from script tool add_fields = add_fields.split(';') # do not need this scratch file fcOutput = r'in_memory\\temp_join' arcpy.SpatialJoin_analysis(\"Parcel layer\", fcTarget, fcOutput, 'JOIN_ONE_TO_MANY', 'KEEP_COMMON') # grab oid field from points oid_t = arcpy.Describe(fcTarget).OIDFieldName # init rowW and rowR curR = arcpy.SearchCursor(fcOutput) join_dict = dict([(r.JOIN_FID,[r.getValue(f) for f in add_fields]) for r in curR]) del curR # Now update the new target curW = arcpy.UpdateCursor(fcTarget) for row in curW: t_oid = row.getValue(oid_t) if t_oid in join_dict: for f in add_fields: row.setValue(f, join_dict[t_oid][add_fields.index(f)]) curW.updateRow(row) del row, curW arcpy.Delete_management(r\"in_memory\\temp_join\") arcpy.AddMessage('Updated all records sucussefully') I use this part of the code to select the new created feature. am i going the wrong way about it? Parcellyr = \"testParcelsAdmit\" arcpy.MakeFeatureLayer_management(Parcellyr, \"Parcel layer\") entries = int(arcpy.GetCount_management(fcTarget).getOutput(0)) for i in xrange(entries): arcpy.MakeFeatureLayer_management(fcTarget, \"point layer\", \"\\\"OBJECTID\\\"={}\".format(str(i))) arcpy.SelectLayerByLocation_management(\"Parcel layer\", \"INTERSECT\", fcTarget, \"\", \"NEW_SELECTION\")", "OSM data on MapServer I'm making an evaluation to replace the TomTom commercial Database (ex TeleAtlas) with Open Street Map data. What I need to do is **use the street map as a base layer for my WebGIS applications**. I use MapServer as application server and I made styles for features of the TomTom DB based on attributes values. I want to do the same with OSM data. Looking on the web I found many references to MapBox, TileMill, preconfigured style schemas and so on... but I have some questions/doubts about all that. 1) If I need to render this data through MapServer, can I avail of all these instruments? 2) Is there a way to convert those styles to MapServer .MAP files? 3) I imported OSM data from SHP files downloaded from a web site that regularly creates them from updated OSM data. I read something about OSM2PGSQL, OSM2PO, OSMOSIS and so on... but I don't really understand what they are and how they work and if I can use them with my actual database. Do I really need to import OSM data with such tools?", "What does 'to the right' mean, regarding the >> operator in PostGIS? I am reading the documentation on the `>>` operator in PostGIS, and I cannot understand the meaning of `strictly to the right` because on the plane, right or left depends on the direction at which one is looking. Reference: http://postgis.refractions.net/documentation/manual-1.4/ST_Geometry_Right.html What would be that direction?", "Where can I find cellmast data in the UK? I am looking for a shapefile containing the locations of cell masts that provide phone coverage in the UK. On sites like Orange, O2 etc they have an interactive signal checker (https://explore.ee.co.uk/coverage-checker for example), but I haven't found a way to obtain the data in GIS form. Have rung several phone companies, but the customer services down there don't seem to understand what I am asking for! Any help would be greatly appreciated, thanks.", "Detecting invalid WKT in text column in SQL Server I've got a whole load of WKT data in a SQL Server table, of which I'm trying to detect the validity. I'm currently doing a query like this: UPDATE f SET f.\"CurrentGeomValid\" = geometry::STGeomFromText(f.\"GEOM_CURRENT\",29900).STIsValid() FROM \"Feature\" f WHERE f.\"CurrentGeomValid\" IS NULL; (Basically updating a column with the geometry validity). I'm hitting an issue when the WKT is completely invalid, for example: POLYGON ((0 0, 10 10, 0 0) (100 100, 200 100, 200 200, 100 200, 100 100)) The initial loop of this polygon doesn't have enough points and gets me a message like so: Msg 6522, Level 16, State 1, Line 1 A .NET Framework error occurred during execution of user-defined routine or aggregate \"geometry\": System.FormatException: 24305: The Polygon input is not valid because the ring does not have enough distinct points. Each ring of a polygon must contain at least three distinct points. System.FormatException: at Microsoft.SqlServer.Types.Validator.Execute(Transition transition) at Microsoft.SqlServer.Types.ForwardingGeoDataSink.EndFigure() at Microsoft.SqlServer.Types.OpenGisWktReader.ParseLineStringText() at Microsoft.SqlServer.Types.OpenGisWktReader.ParsePolygonText() at Microsoft.SqlServer.Types.OpenGisWktReader.ParseMultiPolygonText() at Microsoft.SqlServer.Types.OpenGisWktReader.ParseTaggedText(OpenGisType type) at Microsoft.SqlServer.Types.OpenGisWktReader.Read(OpenGisType type, Int32 srid) at Microsoft.SqlServer.Types.SqlGeometry.GeometryFromText(OpenGisType type, SqlChars text, Int32 srid) The issue seems to be that the STGeomFromText function is failing to read the invalid geometry so that the STIsValid function can tell me that it's invalid! I can certainly write some .NET code with an exception handler and process my dataset row by row; I'm wondering if there is a better way of doing this in a single query? Any idea? Cheers!", "Split a Quad to 1:7,500 Question Here I have 1:24,000k quads. I know how to use the word split toolbox. What I would like to split 24,000K to 1:7,500 or 6,000k. Is there a way around for me to do that ? For example,, if you have one quad that is 1:24,000 and you want to break it down to either 1:6,000 or 1:7,500 ? I have about 269 quads and need them to break down to where I want 1:6,000 or 1:7,500. I am using ArcGIS 9.3.1 . Thanks !"]}, {"query": "How to learn arcobject vba?", "pos": ["Getting started with Arcobjects What is the best route or place to get started with arcobjects if one is not a developer and _not aiming to become a developer_? I've been using gis professionally for a long time, almost two decades, arcinfo/arcgis for most of that; I'm pretty good. I'm learning software development, and even have a modestly successful small python application used in a public project; I'm not good! I don't want to become a full fledged software developer but I keep running into things I just can't do without programming (example). In the arcgis world this puts me pretty squarely in the python camp, which is fine by me since I like python, however python does not have straightforward access to arcobjects. (Python and arcobjects is possible, but it's an unsupported route. This question is about following a beaten path.) Soooo, I need to get started, but where? Arcgis help says to get started with the ESRI Developer Network but $1500/yr is definitely not in my budget, and sounds like using a sledge hammer to swat mosquitos. And which language .NET, Visual Basic, or Visual C++? * * * **UPDATE:** Thank you everyone for the wonderful answers. In light of them I realise I unecessarily narrowed the scope of my question be pre-supposing \"arcobjects\" is the direction I need to go in. A more open ended formulation is more along the lines of: > I keep running into problems I just can't solve with arcgis and python > alone. What else can I learn/use to solve problems like X? I've no interest > or intention of becoming a software developer. I just need to do a couple > things which aren't exposed to the arcgis python modules."], "neg": ["How do I save edits from an ArcMap editing session using VB.Net? I have figured out how to do a map save document, but I would also like to be able to save edits whether or not I am also saving the map document.", "gdal2tiles.py problem - creating mini tiles I have a similar problem to the issue posted here (gdal2tiles problem). I have 80 GeoTIFFs (4000x4000) with EPSG:27700 projection embedded and TFW and PRJ files. These I have built into a virtual raster using gdalbuildvrt which creates a 10x10 tile image that is 40000x40000 pixels. Using gdal2tiles I can create a set of tiles for specific zoom levels. In this case I am using the Ordnance Survey VectorMap District and 25K raster tiles and I want zoom levels 7, 8 and 9. The problem is that zoom levels 8 and 9 work perfectly creating 97969 tiles at zoom level 9 and 24649 tiles at zoom level 8. Zoom level 7 creates the correct number of tiles but the output images consist of a \"mini\" thumbnail in the top left corner and the rest of the image is transparent/white. Why does it work for 8 and 9 and not 7? Should I resize the image to fit nicely into 256x256 squares? See the images attached below: ![Zoom level 7](http://i.stack.imgur.com/7Fk57.jpg) ![Zoom level 8](http://i.stack.imgur.com/IrPDc.jpg)", "How to add USGS DRG WMS to QGIS? Is there a WMS server, which I can be added to QGIS, that displays USGS DRGs? If so please explain how? Thanks", "Outward buffering I get the ConvexHull of a set of polygons using ST_UNION and ST_CONVEXHULL functions using PostGIS. I want to know how to create an outward buffer of the created convexhull in PostGIS?", "How to draw bar diagrams on the map? I need to draw simple histograms in QGIS version 1.8 from an imported DB. I need a double bar diagrams (eg: male/female - in/out) but I only find the possibility to set pie charts. Is it possible to draw histograms with high proportional to the value?", "Rgeos drops associated values when intersecting polygons I am trying to intersect two SpatialPolygonsDataFrames and get a SpatialPolygonsDataFrame as the result. Unfortunately, using the `gIntersection` function from `rgeos` (which works impressively quickly to intersect the polygons), I cannot seem to retrieve the associated dataframes. Consider the following example: > fracPoly <- gIntersection( toSingle, fromSingle ) > class(toSingle) [1] \"SpatialPolygonsDataFrame\" > class(fromSingle) [1] \"SpatialPolygonsDataFrame\" > class(fracPoly) [1] \"SpatialPolygons\" I can write a wrapper function which handles the transfer of `data.frames`, but it will be a minor pain to get all the checking right and before I did I was hoping someone could either confirm that there's no better way or point me towards another function (or option for `gIntersection`) which would allow me to retain the associated `data.frames`. **Update** On further reflection, this may may be very deliberate behavior by `gIntersection`. After all, of the two SPDFs, whose data.frame do you pass along? So I may have to write a wrapper which merges the two.", "Editor to work on GML files I am looking for a good way to work on GML files and would appreciate some personal experience. At the moment I am using nXML or SGML mode for Emacs but I wouldnt mind having an IDE/Emacs mode/... that is more specialized on GML files and could possibly render changes in real time. Support for large files (>15 MB) would be a requirement. I am running Linux (Ubuntu 13.04) so native programs would be prefered, but I don't mind if Windows programs are mentioned.", "Does Metadata for ArcGIS Python script tools in custom toolbox work? * I've created several python scripts and created tools from them. * I have a custom toolbox that contains all of my tools. * I add this toolbox to the ArcToolbox window in ArcCatalog. * I want to create metadata and set parameter explanations for each tool. I've noticed that, when I navigate to my toolbox using the ArcToolbox window, I cannot edit metadata by highlighting the tool in the toolbox window and choosing the 'Description' tab in the catalog window. I can, however, right click in the tool and choose 'Item Description', which opens another window and I can edit metadata in there. Next, I go to the Catalog Tree Window and navigate to the location of the toolbox. In this situation, I can highlight the tool and choose the 'Description' tab and edit the metedata there. This, however, does not translate the edited metadata back to the same tool in the ArcToolbox window. If I open the tool in ArcToolbox window and highlight a parameter, I still get a description message of 'No description available'. So, it's like I have to edit the metadata twice. Once in the Arctoolbox window and then again in the Catalog Tree Window. I've noticed this about the Description tab in ArcCatalog. It only honors selection in the Catalog Tree Window. If I a have tool selected in the ArcToolbox window, the description is still set to whatever is highlighted in the tree window, not the toolbox window. Is this how it's supposed to work? I'm OK with only having to be able to edit metadata in the Catalog tree window, but the fact that metadata does not translate back to the same tool in ArcToolbox window is odd to me. Am I doing something wrong?"]}, {"query": "Geoserver Map Rendering", "pos": ["Hardware configuration needed for geoserver to perform faster I Build an application for enabling simple map layer switcher using EXT JS ![enter image description here](http://i.stack.imgur.com/hxrIS.jpg) in this when user press refresh button( which present in the bottom of Layer Tab the application ) read all checked nodes in coma separate value and send as 'dynamic LAYER GROUP' WMS request to the geoserver and served as a single layer to this application How ever the **map rendering is too much slow for 5 user** to increase the map accessing speed I added 3 instance of geoserver in same system with different port with 1024MB java inital and maximum memory pool for each instance and by using Apache HTTP Server i also done Load balancing . where the 'getmap' request is load balanced and transfers to these three geoserver I tuned all the geoserver instance for production environment But still am facing slow rendering speed 1)Is the slow speed is because of using same system for the multiple instance? 2)I am using same database for the three instance did this have anything to do with MAP availability criteria I need to tune my application to work for 30 user simultaneously presently i having an HP server with XEON Processor + 4 GB RAM using stable geoserver 2.4 and openlayer 2.12 what is the best way to tune my application to speed map rendering speed which is the minimum configuration (hardware+software) needed to Speed up map rendering for 30 simultaneous user", "Increase Map Availability in Geoserver I have an application which access same map from two geoserver using loadbalancing concept the map is accessed using WMS service. where the two geoserver connected to a single same POSTGIS database. even the both tomcat is alloted with 3GB of RAM but the map rendering is still too slow Is this have anything to do with the performance of POSTGreSQL?? is there any way to increase map availability ? Please help me"], "neg": ["convert a shapefile into graph with nodes and edges Is there a way to convert a shapefile into graph with nodes and edges(except networkx). I'm using qgis and I want to convert a road vector layer into a graph, so that I can use it to apply shortest path algorithms (astar). Please help me to find a solution.", "Open Source Map Composing Tool Are there any open source tools which can be used for map composing, preferably GUI based. I use Quantum GIS sparingly but I am interested to know if there are others. The tool must be able to read raster/vector layers in standard formats and allow exporting in various formats. Something like GeoPDF export would be a great plus.", "How to exclude some layers from ArcReader legend? I have created an ArcReader map for staff which has a number of imagery layers, such as satellite imagery and a raster topographic map. I also have a legend which automatically updates based on which layers are selected in the table of contents. How do I exclude the imagery layers, though, because they are not useful in a legend? When they appear in a legend they are just RGB colours.", "How can I extract data from OSM which includes the street names? I am exporting OSM data (in .osm) files to use in qGIS. I am interested in having the street names displayed. I know they are in the OSM data set because they are displayed when I browse the data online, but when I view my downloaded files and open the attribute tables for streets, most of them simply have \"null\" or \"label\" as values. What am I doing wrong? How can I extract data from OSM which includes the street names?", "Lidar and infrared data to detect petroleum releases Would this combo detect differences in soil temperature in proximity to the release due to the higher temperature of pipeline fluids or would the surface temperatures be affected by the volatilization of the released fluids? I know this technique is being used currently and I am just curious about the process by which it would be able to determine a release point.", "Set datasource form world map.mxd Noob question here: I've downloaded a data set from ESRI as part of EDN, and it contains world data in a folder such as this: C:\\Download\\ESRI\\EDN Data\\DataMapsArcGIS2013_1\\world\\World Map.mxd When I double-click this .mxd file, it opens up in ArcGIS 10.2, but nearly all of the data source links are broken. How can I fix these links? What is the data source for this map? Thanks!", "Why am I losing part of my raster when I reproject? QGIS 2.0 Working with tiff raster file. Reprojections are in WGS84 Mercator. Here is my problem: I am trying to use buffers or urban areas to analyze light intensity on a raster layer. I want 30 miles, 60 miles, and 100 miles for the buffer sizes. I have reprojected the vector layers to WGS84 / World Mercator. When I ran a zonal statistics, everything went smoothly until I was double- checking the output. I saw \"null\" on a few of the rows of information in the data table. When I looked at the raster image, which I also reprojected to WGS84 / World Mercator, a large chunk of the raster layer was missing. Images below. Non-reprojected raster layer: ![enter image description here](http://i.stack.imgur.com/YrygV.jpg) Reprojected raster layer: ![enter image description here](http://i.stack.imgur.com/PRuph.jpg) I am assuming there is a problem with my reprojections. I am still new at GIS, so please bear with me. Thanks in advance.", "Using onRectangle for user input in ArcMap/ESRI addin In an effort to try to add user input to my project, I'm developing an esri python addin to generate rectangles to my map. I'm on step one now, just exploring the addin functionality. I tried making an addin 'tool' precisely per the ESRI sample code, but the button isn't working. It appears on my ArcMap desktop, but when I click it, nothing happens. I just really want to know what's happening with the onRectangle, and how I can get it to accept user input. Here's the sample code that I essentially stole from ESRI: import arcpy import pythonaddins class fishnetsExample(object): def __init__(self): self.enabled = True self.cursor = 3 self.shape = 'Rectangle' def onRectangle(self, rectangle_geometry): \"\"\"Occurs when the rectangle is drawn and the mouse button is released. The rectangle is a extent object.\"\"\" extent = rectangle_geometry # Create a fishnet with 10 rows and 10 columns. if arcpy.Exists(r'in_memory\\fishnet'): arcpy.Delete_management(r'in_memory\\fishnet') fishnet = arcpy.CreateFishnet_management(r'in_memory\\fishnet', '%f %f' %(extent.XMin, extent.YMin), '%f %f' %(extent.XMin, extent.YMax), 0, 0, 10, 10, '%f %f' %(extent.XMax, extent.YMax),'NO_LABELS', '%f %f %f %f' %(extent.XMin, extent.YMin, extent.XMax, extent.YMax), 'POLYGON') arcpy.RefreshActiveView() return fishnet"]}, {"query": "Training courses in geostatistics and spatial modelling", "pos": ["What are sources for current geo-statistical analysis classes/events: open or proprietary I am keenly interested in geo statistics (and many other words with 3 t's :). I am not very programatically inclined but have been following several lists with this theme. One being the R filter on stackexchange (I get occasional digest emails of questions there). I find that there is an extremely intricate language associated with statistics in general. I am insterested in learning from a layperson point of view what some of this language means and how to apply it to everyday GIS. Please list any currrent sources for geo-statistics knowledge/understanding. Here is an example of useful information... travel for training live online opportunity Edit: Per request; I enjoy online training but get more from in classroom or step by step book (or pdf)."], "neg": ["Geometry column naming convention - 'geom' or 'the_geom'? I'm starting my first PostGIS project, and in various books and tutorials I've seen the geometry column labelled either 'geom' or 'the_geom'. Is one more conventional than the other? Furthermore, is there a good reason to use 'geom'/'the_geom' instead of a more descriptive name for the geometry column? (E.g. 'centre_point' for the central point of a feature.) We don't label conventional db columns 'the_int' or 'the_string', so why label geometry columns this way?", "Is 'Shortest Route/Distance' analysis is possible in Geoserver using Openlayers 2.8...? I have configured a web based GIS Map using Geoserver & Openlayers controls.Now I want to add 'Shortest Route' analysis in the same... Any solution....??? Thanks In advance Regads Sandipan", "mapCanvas.saveAsImage not functioning as expected in QGIS 1.8 I have a plugin for exporting maps as PNG images. I believe this code was working correctly within 1.6 (but I cannot guarantee I haven't made another change that would have broken it there, too). Basically, I load a set of base map features and then loop through a set of point layers that get applied and the whole thing is exported as an image. I'm not getting the full canvas at all, but only a single attribute loaded from the base map and nothing from the point layers. (bad result, expected result) In the process of debugging this, I discovered a curious fact. If I include a QMessageBox.information right before I do the export, it works correctly! Doesn't work: self.mapCanvas.resize(QSize(394,350)) self.mapCanvas.zoomToFullExtent() currentImagePath = theExportPath + folder currentImageName = attribute.replace(' ', '_') + \".png\" self.mapCanvas.saveAsImage(currentImagePath + \"/\" + currentImageName) Does work: self.mapCanvas.resize(QSize(394,350)) self.mapCanvas.zoomToFullExtent() QMessageBox.information(self.iface.mainWindow(),\"Debug\",\"Break\") currentImagePath = theExportPath + folder currentImageName = attribute.replace(' ', '_') + \".png\" self.mapCanvas.saveAsImage(currentImagePath + \"/\" + currentImageName) I tried to add a simple self.iface.mainWindow() in place of the message box but that didn't do the trick. I'm thinking there is some kind of refresh I could do, too, but I tried mapCanvas.refresh() and mapCanvas.updateMap() and these in combination with mainWindow() but could get nothing to work. Did this change in 1.8? Any suggestions to make it work? Including the QMessageBox call will get me going but I have to press \"OK\" for each map to be exported. With all the export combinations, I'd be doing this more than 1000 times! Thanks! B", "Loading a raster using QGIS into a PostGIS2.0 enabled database Following on from my attempt to install a postgresql 9.1 db with postgis 2.0 on windows 7, I am trying to figure out how to load a raster. I have successfully loaded a shapefile, and am trying to do the same with a `.tif` file using the `Load Raster to PostGIS` plugin (version 0.5.1) in QGIS (version 1.7). I have set up the connection to my db, and am using the following settings: ![enter image description here](http://i.stack.imgur.com/w5rrT.png) When I click on the `OK` button, I get the below error message. I've tried this with a `.adf` file and also a `.tif` file, both projected in Albert Equal Area Conic with an SRID of 102003. Checking parameters... Connecting to database... Storing overview 1 on database... Failed. Finished storing overview 1. Storing overview 2 on database... Failed. Finished storing overview 2. Storing overview 3 on database... Failed. Finished storing overview 3. Finished. This process has not inserted anything into my database, and I don't understand the error message. Some previous related questions are here (asked by me, using a different process on loading rasters) and here (using the same plugin but much earlier in the year).", "Using SLD to style according table column value How to style various points with different image according to value(text) in the column of table(layer)?", "Check validity of file geodatabase using arcpy AS the title suggests, how can I whether a GDB file is valid using arcpy? One approach is, only checking the whether the name ends with `.gdb`, but that's not a robust approach. Because a normal file can be ended with `.gdb`, where GDBs are essentially folders to OS. So how can I do that?", "Plotting a circle on a Web map to view the resulting coverage over a central location Not exactly a GIS question but I hope no one will mind. Does anyone know of a website (something equivalent to Google Map) where you can indicate a location, give a radius and you can view the resulting coverage over that central location ? Thanks.", "Wireframe display of terrain in ArcGlobe? I have successfully imported a terrain dataset into ArcGlobe which provides elevation values to the globe surface. Is there an easy way I can now change the symbology/display of the terrain/globe surface to a 'wireframe' style display, ideally with customisable grid spacing etc? Or would I need to drape a grid image over the terrain surface?"]}], "CQADupstackMathematicaRetrieval": [{"query": "Works in mathematica but not as cdf preview or web embedded cdf", "pos": ["Understanding CDF **Update** Since more and more issues are revealed as I venture deeper into the world of CDF, I decided to make this thread more general and hopefully more useful. I know posted my findings as an answer, but please feel free to edit this post or my answer below if you know something useful. **Questions** I have a quite large project that I want to deploy to the web. I expect users to only have the browser plugin or _Mathematica_ Player, but not Player Pro. 1. Can I use `DynamicModule` in a CDF that is to be viewed by the plugin or the _Mathematica_ Player? Does it always have to be a `Manipulate` in focus in the dynamic interface that is generated? 2. Can I deploy the dynamic output somehow without piling all the used functions and data into the `DynamicModule`-s body or `Initialization` option? `Manipulate` has the option `SaveDefinitions` but `DynamicModule` does not. Does `SaveDefinitions` work with packaged functions as well? 3. What exactly happens when only the dynamic output is selected and deployed (and not the whole document) to CDF via the wizard? What is the difference between deploying only the output or deploying the whole notebook, but with all the code cells being hidden? What is the technical difference between demonstrations and CDFs? 4. Is there any difference (and if so, what) between _Mathematica_ Player, Player Pro and the browser plugin? 5. What are the differences between CDFs intended for _Mathematica_ Player or Player pro, i.e. free CDFs and non-free CDFs (see discussion here)? 6. How to overcome security issues (discussed here and here): when the deployed CDF shows up as a gray box because dynamic updating is disabled for security reasons?", "How to get .cdf format to work with functions? I would like to create simple functions and then pass them into a Manipulate function that can be used in a .cdf file. eg f[x_] := x^2 + 4; Manipulate[ Plot[f[x], {x, -c, c}] , {c, 1, 5}] works fine as a notebook but crashes as a .cdf"], "neg": ["Memory problem with producing complex graphics of general type The problem I am about to ask has appeared once here: Memory Leak in Frontend - anyone know a workaround?. However, in this question I would like to put it in a bit different context. **Problem recipe:** * Set $HistoryLength to 0 (this forces mathematica not to keep any history of evaluations) * Create a graphic object, which contains many colors/opacities/primitives/pointsizes/... * Open system monitor in your operational system * Rasterize the object in mathematica * Export it (optional), clear all the variables * Check your system monitor: memory used by mathematica frontend has grown larger **Example of the problem:** This example is not minimal, but is aesthetically appealing. Following the recipe, first set the history length: $HistoryLength = 0; Then create a graphic object. In this case, it is a set of approx 0.5 10^4 points, having random positions inside a 0.5 radius sphere, random sizes and random colors, following some colorscheme. A cylinder is added afterwards to make the object look like a tree. PointNumber = 10^4; BushSize = 0.5; PointLocations = Select[(2 BushSize {Random[], Random[], Random[]} - {0.5, 0.5, 0.5}) & /@ Range[PointNumber], Norm[#] < BushSize &]; PointNumber2 = Length[PointLocations]; PointSizes = 0.01 Random[] & /@ Range[PointNumber2]; PointColors = ColorData[\"PlumColors\"][Random[]] & /@ Range[PointNumber2]; GraphicObject = MapThread[{#1, PointSize[#2], Point[#3]} &, {PointColors, PointSizes, PointLocations}]; Now, open the system monitor and rasterize everything: TreeStuff = Rasterize[ Graphics3D[{Opacity[0.8], Brown, EdgeForm[], Cylinder[{{0, 0, -1}, {0, 0, 0.1}}, 0.01], GraphicObject}, PlotRange -> {{-1, 1}, {-1, 1}, {-1, 1}}, ImageSize -> 600, Boxed -> False]] As you can see, mathematica front-end has expanded in size by some 50 Mb! It is not all, at all. If you reevaluate the notebook, mathematica will pick another set of random points and will expand in the memory again. However, if you re-rasterize an object which has been rasterized before, memory will not be leaked. **Discussion:** The described behavior is clearly a bug. Say, one is producing an animation. If a given frame has been rasterized and saved, no information needs to be stored about it in the memory. Nevertheless, it gets stored incrementally. It seems hard to imagine, that nobody has ever created complex graphics with mathematica before. In particular, in processing datasets or in creating animations, one has to rasterize such graphics many times. In this case, if the parameters of graphics change, mathematica takes all the system memory. Therefore, at least somebody, making complex graphics with mathematica, must have faced a similar problem before. What do people commonly do to treat this issue? How can one clear the frontend memory, which expands so obviously in system monitor after each new evaluation of the above presented code? **P.S.** The code outputs this pretty tree: ![enter image description here](http://i.stack.imgur.com/EAoPy.jpg)", "Integrate function without specifying limits of integration I've been having trouble to make mathematica evaluate an integral without specifying the values of the limits of integration. I mean, if I write Integrate[x,{x,x1,x2}] Mathematica returns the correct answer: $\\frac{(x2)^2-(x1)^2}{2}$. But If I write something like Integrate[x^2/(1-x),{x,x1,x2}] Mathematica just keeps the evaluation forever... Is there something that I can do to avoid this behaviour?", "How to fix the \"Module\" function, for implicit funcitons? I wanted to make a function which gives the frequencies of a number in a specific list, when I came accros this problem. This is what I tried: row = {-1, 1, 2, 3, -1, 1, 2, -1, 1, -1, -2, -3, 1, -1, -2, -3, -4, -5, 1, 2}; frequencyRow = Round[HistogramList[row, {Min[row] - 1, Max[row] + 1, 1}]]; lengthRow = Map[f, Part[frequencyRow, 1]] (*{f[-6], f[-5], f[-4], f[-3], f[-2], f[-1], f[0], f[1], f[2], f[3], f[4]}*) frequency = Append[Part[frequencyRow, 2], 0] (*{0, 1, 1, 2, 2, 5, 0, 5, 3, 1, 0}*) mode[n_] := Module[{f}, {lengthRow = frequency}; f[n]] mode[2] >f$821[2] (So the implicit fucntions do not give the outcome I want. However;) mode2[n_] := Module[{f}, {{f[-6], f[-5], f[-4], f[-3], f[-2], f[-1], f[0], f[1], f[2], f[3], f[4]} = {0, 1, 1, 2, 2, 5, 0, 5, 3, 1, 0}}; f[n]] mode2[2] (*3*) (If you use the exact outcome of the functions, the Module function does give the right outcome) goal = Map[mode2, row] (*{5, 5, 3, 1, 5, 5, 3, 5, 5, 5, 2, 2, 5, 5, 2, 2, 1, 1, 5, 3}*) If you know how to fix this to make it work for the implicit functions as well, so I can chance the imput without changing the formula all the time, that would be nice. Or if you see a way to do this proces faster or easier, that would even be better.", "Unexpected behavior of confidence bands for data presenting two regions with uneven noise Let's generate some noisy data with uneven noise. data = Table[{x,Exp[-(x-2)^2] + Exp[-(x+2)^2]*RandomReal[{0.5, 1.5}]}, {x, RandomReal[{-4, 4}, 500]}]; ![enter image description here](http://i.stack.imgur.com/VrQVD.png) Let's fit it with a nonlinear model fit = NonlinearModelFit[data, b Exp[-(x-a)^2] + c Exp[-(x+a)^2], {a, b, c}, x] from which we extract the \u03c3 and 2\u03c3 prediction bands for single observations: {bands1[x_], bands2[x_]}=Table[fit[\"SinglePredictionBands\",ConfidenceLevel -> cl], {cl, {.683, .954}}]; The bands seem not to take into account the unevenness of the noise: Show[ListPlot[data, PlotStyle -> {Opacity[0.5]}], Plot[{fit[x], bands1[x], bands2[x]}, {x, -4, 4},Filling -> {2 -> {{1}, Directive[{Green, Opacity[0.25]}]}, 3 -> {{2}, Directive[{Yellow, Opacity[0.25]}]}}, PlotStyle -> {Directive[Thickness[0.0075], Red],Black, Black}]] ![enter image description here](http://i.stack.imgur.com/0j7dt.png) Am I misinterpreting confidence bands, or am I calculating them in the wrong way?", "How can I crop manipulator from a plot I wanted to know how can I crop a `Manipulator` from a plot. the code for plot is a= With[{z1 = .25, z2 = 1, x = 1}, Manipulate[ PopupWindow[ Graphics[ DiscretePlot[Sin[a t], {t, 0, 2 Pi, Pi/6}, ExtentSize -> Full, ImageSize -> Scaled[x], AspectRatio -> z1/z2]], {a}], OpenerView[{\"Vertical\", Control[{{a, 1, \"Manipulator\"}, 1, 30}]}], ControlPlacement -> Bottom]] I have tried using `Export` and `Import` functions and it is working fine ImageCrop[Import[Export[\"test.gif\", a, \"Graphics\"]], 90] But, I wanted to know some other way to do this as I think `Export` and `Import` takes a lot of time in execution.", "plotting xy, yz, zx plane at I have a data list in the following form, data = {x, y, z, f} I would like to present three kinds of subdata set as a density (or contour) plot on the respective planes at once in one 3D graph. 1. `data1 = {x, y, f}` 2. `data2 = {y, z, f}` 3. `data3 = {x, z, f}` How could I make an above kind of plot? I really appreciate if anyone help me.", "Definite Integral, Piecewise, Error I am trying to evaluate the following: myExpression=Piecewise[{{-c E^(c s)-(E^(-((-s+\\[Alpha]+q \\[Beta])^2/(2 (\\[Beta]^2 \\[Sigma]q^2+\\[Sigma]s^2)))) v \\[Beta])/(Sqrt[2 \\[Pi]] Sqrt[\\[Beta]^2 \\[Sigma]q^2+\\[Sigma]s^2]),\\[Beta]!=0},{-c E^(c s),\\[Beta]==0}}] Integrate[myExpression,s] However, when I try to make this Integral definite, by using {s,0,z}, I get the following error: Integrate::pwrl: \"Unable to prove that integration limits {0,z} are real. Adding assumptions may help\" I do not wish to change the expression of this integral, nor do I care for some cheap trick which removes the error message (like `Quiet`). I simply want to know where this error comes from, and what additional information about my variabales _Mathematica_ would like to know. Thanks! Laurens", "How can I mend this broken heart? Try to evaluate the following code: ContourPlot3D[(x^2 + 9/4 y^2 + z^2 - 1)^3 == x^2 z^3 + 9/80 y^2 z^3, {x, -6/5, 6/5}, {y, -6/5, 6/5}, {z, -6/5, 3/2}, Mesh -> None, Boxed -> False, AxesLabel -> {\"x\", \"y\", \"z\"}, PlotPoints -> 50, Axes -> False, ContourStyle -> Directive[Red, Opacity[0.58], Specularity[Yellow, 30]], AspectRatio -> 1.15, ViewPoint ->{-0.930, -3.137, -0.860}] The resulted heart looks broken: ![enter image description here](http://i.stack.imgur.com/YC64r.png) Increase the `PlotPoints` value to up to `200` improves the appearance but does not solve it. What is happening?"]}, {"query": "Determine whether some expression contains a given symbol", "pos": ["What is the most elegant way to see if an expression is affected by a certain symbol? > **Possible Duplicate:** > Determine whether some expression contains a given symbol Let's say I have some expression: sample = {1, 1/q, f[m]} And I want to check it if it has the symbol `m` in it. My question: Is there a clean or fast way of checking if `m` is in the equation? * * * What I came up with so far: Do[StringFreeQ[ToString[sample], \"m\"], {i, 300}] // AbsoluteTiming (* {0.0120007, Null} *) and Do[(sample /. m -> Unique[]) === (sample /. m -> Unique[]), {i, 300}] // AbsoluteTiming (* {0.0100005, Null} *) These solutions work, but I feel like there might be a faster, functional way of doing this."], "neg": ["How to rewrite this function to be faster: Find sub-matrixes of boolean board which imply a given boolean pattern I have Boolean matrix A (called \"board\") and Boolean matrix B with smaller dimensions (called \"pattern\"). I am trying to find sub-matrixes C of A such that C has same dimensions as B, and TableImplies[C, B]. Function TableImplies returns true if matrix A piecewise implies matrix B: TableImplies[A,B]=true if for all i,j (a_ij => b_ij). Example: falsePattern = Table[False, {15}, {15}]; truePattern = Table[True, {15}, {15}]; Here TableImplies[falsePattern, truePattern] == True, but TableImplies[truePattern, falsePattern] == False. I have the following code, but it is not very fast: tableImplies[a_, b_] := And @@ Flatten@MapThread[Implies, {a, b}, 2] searchTable[pattern_, board_] := Reap[{sizex, sizey} = Dimensions[pattern]; Do[subBoard = board[[i ;; i + sizex - 1, j ;; j + sizey - 1]]; If[tableImplies [subBoard, pattern], Sow[{i, j}]], {i, 1, 16 - sizex}, {j, 1, 16 - sizey}]][[2]] board = Table[i != 16 - j , {i, 1, 15}, {j, 1, 15}]; kroneckerPattern = Table[i == j, {i, 1, 2}, {j, 1, 2}]; Timing[Do[searchTable[kroneckerPattern, board], {100}]][[1]]/100 (* 0.00873606 *) How do improve speed of this calculation? How to improve coding style? **UPDATE:** Michael's answer seems to only search for specified sub-matrix inside the given matrix, instead of returning sub-matrixes, that piecewise imply given pattern. I added examples to the beginning of question to better explain what I wanted (see truePattern, falsePattern and how they should be related to each other when using TableImplies). I guess I should have been more clear from the beginning. This compares my algorithm(searchTable) to Michael's (Position[...]). They are clearly not equivalent: searchTable[truePattern, falsePattern]; Out: {{{1, 1}}} searchTable[falsePattern, truePattern] Out: {} Position[Partition[truePattern, Dimensions@falsePattern, 1], falsePattern] Out: {} Position[Partition[falsePattern, Dimensions@truePattern, 1], truePattern] Out: {} **Update 2** : I thought I should be more specific in formulating my question. Details matter. As I said before, I want to know, how should this algorithm could be made faster. It is important to mark that the board (containing matrix) will be always of constant size (15x15), but the pattern (searched sub-matrix) will be of varying dimensions, but always smaller than the board. This is relevant because for example in link provided by ssch, http://stackoverflow.com/questions/8364804/a-fast-implementation-in- mathematica-for-position2d, the matrixes are very large and the hard part is finding the position. In my case the number of possible positions is not very large (at most 225), but the slow part is to show whether the pattern matches the board or not. Maybe, if this whole problem could be re-written as boolean expression, that Mathematica could try to solve? Would this approach be faster? Another important note is that the pattern will very likely contain a lot of \"True\"s in my application. Could this be used to make the algorithm faster? For example, if the pattern contains only 1 False, then the problem is basically finding all instances of \"False\"s on the board. If the pattern contains more of \"False\", then the problem still boils down to Boolean expression, but not to an particularly easy one. PS: If my question is partly about algorithms and partly about programming Mathematica, is it correct of me to post this question here? Maybe I should just first ask some algorithms-related StackExchange Q&A for an algorithm and then ask here for how to program this algorithm effeciently in Mathematica? I just thought that maybe Mathematica's potential for symbolic evaluation could lead to algorithms not thinkable in functional programming languages, which is why I asked directly here :)", "keyboard sequence for Magnify in version 8? It used to be that you could find a Magnify item in the Format menu of the Mathematica front-end, at the very bottom if I remember correctly. You could get at the item in Windows by a keyboard sequence like `Alt-R`, `M`, then a number. Mac probably had something similar. This was really useful for mouse avoiders like me. That little tiny drop menu in the extreme lower right of a notebook is annoying to catch with a mouse on highest-speed setting, which you need on a high-def screen with 1920 or 2560 pixels width. My mouse movements end up looking like a plot of a strange attractor swirling around the target! I haven't been able to find the Magnify menu item in Mathematica 8 nor any other keyboard shortcut for notebook-magnify in the Mathematica documentation center. Would be grateful for anyone pointing out any means for accessing notebook magnify from the keyboard.", "How to switch elements i,j in a list? Are there any direct function to switch elements i,j in any list? or is necessary to create one with Do / If ? (I don\u00b4t ask for making me this function if it doesn\u00b4t exists) My target is can switching positions i,j in {1,4,3,2,5} for example I tell switch(2,5) an obtain {1,5,3,2,4}", "Generic Matrices A multivariate Gaussian distribution for $k$ dimensions looks like this: $$\\frac{1}{\\sqrt{(2\\pi)^k|\\mathbf \\Sigma|}}\\mathbf e^{ -\\frac 1 2 \\mathbf x^T \\mathbf \\Sigma^{-1}\\mathbf x }$$ $\\mathbf x$ is a $k$-dimensional vector, and $\\mathbf \\Sigma$ a $k$ by $k$ symmetric positive definite matrix. Now I want Mathematica to integrate this expression over all $\\mathbf x$, the result should be 1. How can I do this? Nothing else is known, in particular we don't know the number of dimensions.", "How to update Print-out \"in place\"? I want to run an exhaustive search algorithm that will take several hours to finish, so I'd like to have it execute `Print` statement periodically, showing the fraction of the search space covered and the best result found so far. E.g. For[i = 1, i <= n, i++, ... If[Mod[i, stride] == 0, Print[{N[i/n], bestsofar}] ]; This works OK if the number of updates is not too big. Otherwise, the voluminous print out begins to overwhelm the notebook, making it increasingly difficult to navigate through it. Closing the cell does not help here: it is opened automatically with each new print-out. (Also, when the cell remains open, the window will not necessarily auto-scroll to keep the latest print-out in view, so one needs to manually scroll to see it. No big deal; just a bit annoying.) I'm looking for a way to have each new print-out overwrite the previous one \"in place\". With other programming environments, at least in Unix-like systems, one achieves this effect by prepending a carriage return character (ASCII 13, aka `\\r`) to the printed string, and omitting the newline character (ASCII 10, aka `\\n`) from the end of the string1. A single newline character may be eventually printed, before execution terminates. The `Print` command implicitly adds the newline at the end of the output, and I have not found a way to suppress this behavior. Is there some other way to achieve the effect of updating a running cell's print-out in-place? UPDATE: based on molekyla777's answer, I modified the code above to: Monitor[For[i = 1, i <= n, i++, ... Refresh[{N[i/n], bestsofar}, UpdateInterval -> 1, TrackedSymbols -> {}] ]; I added the `Refresh` call to reduce the performance drain that would otherwise result from updating the `N[i/n]` term, which changes with each iteration. It basically does what `Mod[i, stride] == 0` did in the previous version. * * * 1If the length of the output string is not monotonically increasing, it may also be necessary to right-pad the output string with enough spaces to \"erase\" the previous output.)", "A math function similar to \"LatticeReduce\" for finding linear independent basis We would like to ask a math function similar to \"LatticeReduce\" for finding linear independent basis. The input is a list of vectors $M=\\\\{v_1,v_2,v_3,\\dots\\\\}$, with the following property: There is a subset $O=\\\\{w_1,w_2,w_3,\\dots\\\\}\\subset M$, such that $O$ is a basis, i.e. linearly independent and span $M$, $$ v_i=\\sum_a c_{ia} w_a.$$ Moreover, the coefficients $c_{ia}$ are **non-negative integers**. An explicit example is the following: $$M=\\left( \\begin{array}{ccccc} 1 & 1 & 1 & 1 & 1 \\\\\\ 1 & 1 & -1 & -1 & 1 \\\\\\ 1 & 1 & -1 & 1 & -1 \\\\\\ 1 & 1 & 1 & -1 & -1 \\\\\\ 2 & -2 & 0 & 0 & 0 \\\\\\ 2 & 2 & 2 & 0 & 0 \\\\\\ 2 & 2 & 0 & 2 & 0 \\\\\\ 2 & 2 & 0 & 0 & 2 \\\\\\ 2 & 2 & -2 & 0 & 0 \\\\\\ 2 & 2 & 0 & -2 & 0 \\\\\\ 2 & 2 & 0 & 0 & -2 \\end{array} \\right),\\quad O=\\left( \\begin{array}{ccccc} 1 & 1 & 1 & 1 & 1 \\\\\\ 1 & 1 & -1 & -1 & 1 \\\\\\ 1 & 1 & -1 & 1 & -1 \\\\\\ 1 & 1 & 1 & -1 & -1 \\\\\\ 2 & -2 & 0 & 0 & 0 \\end{array} \\right), $$ where $O$ is the first 5 rows of $M$ and $$M[[6]]=O[[1]]+O[[4]],\\, M[[7]]=O[[1]]+O[[3]],\\,\\dots$$ In Mathematica form, the example is m = {{1, 1, 1, 1, 1}, {1, 1, -1, -1, 1}, {1, 1, -1, 1, -1}, {1, 1, 1, -1, -1}, {2, -2, 0, 0, 0}, {2, 2, 2, 0, 0}, {2, 2, 0, 2, 0}, {2, 2, 0, 0, 2}, {2, 2, -2, 0, 0}, {2, 2, 0, -2, 0}, {2, 2, 0, 0, -2}}; May we know that how to write a function/program such that inputting such $M$, the program will output the desired $O$. _For this example the built-in function LatticeReduce works well. But we are not sure it always works._", "Is it possible to plot a second-order curve by its non-canonical equation? I have this second-order polynom: $$ 6xy+8y^2-12x-26y+11=0 $$ And I need to reduce it to a canonical form of a second-order curve. I solved this, but is it possible to draw a plot of the original equation to check whether my solution is correct? Something like Plot[6 x*y + 8 y^2 - 12 x - 26 y + 11, {x, -20, 20}, PlotRange -> {-20, 20}] Now this draws an empty plot. Thank you.", "How to generate characters by a function which works like the Esc + a + ESC How to generate characters by a function which works like the Esc + a + ESC In[24]:= CharacterRange[\"a\",\"z\"] Out[24]= {a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z} How to batch convert them to Greek Letters just like that done by this way Esc + a + Esc ... something like this, a function works, In[25]:= CharacterRange[\"\\[Alpha]\",\"\\[Zeta]\"] Out[25]= {\\[Alpha],\\[Beta],\\[Gamma],\\[Delta],\\[CurlyEpsilon],\\[Zeta]} EnglishToGreekRange[\"a\", \"z\"] Comes out {\\[Alpha],\\[Beta],\\[Chi]...}"]}, {"query": "Test a wooden board's vibration mode", "pos": ["How to set the boundary fixed and apply the Young's modulus in Mathematica's FEM? Provided the drawing .stl is given, and the Young's modulus is know, how to start a FEM vibration mode test in Mathematica? The boundary is required to be fixed and the interested focus is on the different responses over various Young's modulus. ![enter image description here](http://i.stack.imgur.com/yGR80.jpg)"], "neg": ["How to instruct FullSimplify to assume that PossibleZeroQ returns correct result? Sometimes I have a really huge expression that cannot be significantly simplified by `FullSimplify`. I would like to, so to speak, _\"simplify with faith\"_ using heuristics applied by functions like `PossibleZeroQ`, `FindSequenceFunction` an so on. Is it possible to instruct `FullSimplify` to use non-rigorous methods like this?", "Getting Internal Self-Test Error I have two questions related to this simple code: CDFDeploy[SystemDialogInput[\"FileSave\"], Panel[Row[{Button[Text[Style[\"sav\", FontSize -> Scaled[.2]]],ImageSize -> Scaled[.2]], Button[Text[Style[\"save\", FontSize -> Scaled[.2]]],ImageSize -> Scaled[.2]]}], ImageSize -> Scaled[2]], WindowSize -> Scaled[2]] 1. Sometimes, I am getting `Internal Self-Test Error`. Why? 2. I am able to scale `Button` size, `Fontsize` and `Panel`size in the Horizontal direction but not in the vertical direction. How to do this?", "How can I insert the current date in a text cell? Ok I must be missing something. I have a section with the \"last updated date\" in a text cell, I'd like it to autoupdate. Is there a \"insert current date\" command hidden away in some menu?", "Reducing quality of Graphics3D scene to improve performance? `ProteinData[\"SERPINA1\", \"MoleculePlot\"]` gives the detailed `Graphics3D` plot below. I'd like to make many small copies of this object and place them in a single `Graphics3D` scene, but I'm running into performance problems because the molecule graphics-object is a pretty complicated mesh. Are there general methods of reducing the quality/detail of graphics objects like the one below that would allow me to place many of these in a single scene? ![enter image description here](http://i.stack.imgur.com/XlvG4.png)", "Define an operator with commutative, associative and distributive properties I need to define a symbolic operator with commutative, associative and distributive properties, in the same way as the sum and product operator for real numbers. I have started with: op[a_, b_] = a\u2295b; op[a_, b_] = a\u2297b; op[1, 2]; op[1, 1\u22952]; Distribute[op[1, 1\u22952], CirclePlus] when I use the `Distribute` command I don't get the parenthesis. How can I define an operator with all this properties in ones.", "ListInterpolation causing .cdf security problems? I've made a simple `.cdf` that makes a function from a list of data I've provided in table form (using `ListInterpolation`) and plots it on a graph (no importing, exporting or conversion of data from string) and I still get a grey block when I try to post it online, indicating that I'm violating some security rule. It works with the `{fullscreen: 'true'}` workaround, but I don't know what I'm doing that necessitates this. Advice? Thanks", "Trouble with NMaximize I am having trouble with maximizing a function I am interested in. Below is the code I am using. NMaximize[{(p^2)^alpha + ((c - p)^2)^alpha + (1 - (c - p)^2 - p^2)^alpha, {c/2 - Sqrt[2 - c^2]/2 < p, p < c/2 + Sqrt[2 - c^2]/2, c == 1.2, alpha == 0.7}}, {p}] I get the following error: > NMaximize::bcons: \"The following constraints are not valid: {alpha == 0.7, c > == 1.2, c/2 - Sqrt[2 - c^2]/2 < p, p < c/2 + Sqrt[2 - c^2]/2}. Constraints > should be equalities, inequalities, or domain specifications involving the > variables.\" Why is this happening?", "Text as plot axes values I have some chemical data that I am plotting using `ListLogPlot`. data={{2776.37,2016.64,1483.51,1027.35,500.878,94.1385,310.402,282.548, 257.886,224.359,218.688,209.312,215.776,198.78}, {40.5063,24.633,12.069,8.3151,6.35135,15.0977,8.74372,15.5125,9.34959, 9.70696,11.125,12.1457,10.8075,9.7561}, {113.08,124.633,75.9698,59.5186,55.9459,7.81528,57.4372,69.5291,80.4878, 88.2784,105.563,127.935,148.571,148.78}}; ListLogPlot[data, Joined -> True] ![enter image description here](http://i.stack.imgur.com/MCO17.png) I want to replace the x-axis tick values with the associated elements. e.g. replace 1,2,3,...,14 with xaxis= {\"La\",\"Ce\",\"Pr\",\"Nd\",\"Sm\",\"Eu\",\"Gd\",\"Tb\",\"Dy\",\"Ho\",\"Er\",\"Tm\",\"Yb\",\"Lu\"}; Any suggestions on how to achieve this? Is there another plot function that I should be using?"]}, {"query": "Combine 2D images perpendicular to each other", "pos": ["Is there something like DensityPlot3D to visualize atomic orbitals? I'm visualizing some hydrogen like atomic orbitals. For looking at plane slices of the probability density, the `DensityPlot` function works well, and with something like: Manipulate[ DensityPlot[ psi1XYsq[u, v, z], {u, -w, w}, {v, -w, w} , Mesh -> False, Frame -> False, PlotPoints -> 45, ColorFunctionScaling -> True, ColorFunction -> \"SunsetColors\"] , {{w, 10}, 1, 20} , {z, 1, 20, 1} ] I can get a nice plot ![hybrid orbital sample plot in x y plane](http://i.stack.imgur.com/nHtMY.png) I was hoping that there was something like a `DensityPlot3D` so that I could visualize these in 3D, but I don't see such a function. I was wondering how `DensityPlot` be simulated using other plot functions, so that the same idea could be applied to a 3D plot to construct a `DensityPlot3D` like function?"], "neg": ["How to find the domain and range of an implicit function? For example, we have this curve: $$ x^2 + y^2 = 1 $$ Is there a function in _Mathematica_ for finding out that the ranges for $x$ and $y$ are both `[-1, 1]`? What about implicit functions of more than `2` variables? e.g. $$ x^2 + y^2 + z = 1 $$", "PDE problem with initial and boundary conditions I'm new to mathematica and I don't know what I do wrong, I have written the following PDE problem, with both initial and boundary (four in total) eq = D[u[x, t], t, t] + D[u[x, t], t] - 2*D[u[x, t], x, x] == 0 bc = {u[0, t] == 0, u[2*Pi, t] == 0, u[x, 0] == 0, Derivative[0, 1][u][x, 0] == sin (2*x)} DSolve[{eq, bc}, u[x,t], {t, x}] I need it to solve the PDE, but it doesn't even try to make a solution... what to do. I hope you can help me", "Possible to batch WolframAlpha queries? Sometimes I want some country data not available from `CountryData`. And issuing things like: WolframAlpha[ToString[#]<>\" | whatever data\", {{\"Result\", 1}, \"ComputableData\"} ]&/@CountryData[\"Countries\"] is both incredibly slow and I'm sure to hit my daily API limit. Can I do all these requests in one go?", "Dynamic inside Button This bit of code runs a little animation of a stochastic process: (* a random walk bm, its min and max *) {bm, m, M} = {Table[Random[] - .5, {100}] // Accumulate, Min[bm], Max[bm] } (* plot of trajectory of bm up to i-th step *) traj[i_] := ListLinePlot[({Range[1, 100], bm} // Transpose)[[;; i]], Joined -> True, PlotRange -> {{0, 100}, {m, M}}] (* animation using Clock *) q = Dynamic[r = Clock[{1, 100, 1}, 5, 1]; traj[r] ] Next I'd like to use Button to run the animation. Something like Button[\"Run\", q] but this doesn't work. Eventually I'd like to have two buttons, \"Repeat\" and \"Clear\" like this: x = {{0, 0}}; min[x_] := (Sort[x, #1[[2]] < #2[[2]] &])[[2]]; Column[ {Row[{Button[\"Repeat\", x = Append[x, { Random[], Random[] }]], Button[\"Reset\", x = { {0, 0}}] } ], Dynamic[Show[{ ListPlot[x, PlotRange -> {{0, 1}, {0, 1}}, ImageSize -> 300, Frame -> True, Axes -> None] , If[Length[x] > 1, Graphics[{Red, Line[{min[x], {min[x][[1]], -.1} }]}], {}], If[Length[x] > 1, Graphics[{Red, Line[{min[x], {0, min[x][[2]]} } ]}], {}] }]]}] but instead of dots, I want to plot animated functions involving Clock.", "I have the roots; how can I find an equation that they will satisfy? I have two solutions; I want is to find an equation that these solutions satisfy using mathematica. The solutions are $x= \\frac{{(26-k)}^2}{26}$ and $y= \\frac{{k}^2}{26}$. I know by hand computing that $x$ and $y$ satisfy $\\sqrt{x}+\\sqrt{y}=\\sqrt{26}$; How can I show this using _Mathematica_?", "Frontend cursor movement speed depends on the position in large notebook file I run Mathematica v9 on my Atom laptop (don't ask) and I got used to the fact that everything is slower. Except for one annoying thing: cursor movement (in text) is slower than the keyboard key repeat rate. In other editors I am used to hold down the up/down/left/right keys and I expect the cursor to stop when I release the key. In Mathematica Frontend this is not the case, keyboard buffer gets filled with keyboard events which get executed by the Frontend way later than the release of the key. This annoying behavior trained me to use only single presses of the movement keys (or mouse clicks at the right position). You can imagine, scrolling through a lot of code in this way can be quite painful. What is even more interesting is that the speed with which Frontend executes the cursor movements depends on the overall size of the notebook file and the current relative position of the cursor the file. The same approximately holds also for edits. Having a large file with a lot of graphics, editing text or moving the cursor at the top of such notebook becomes extremely slow on such weak netbooks. On the contrary, adding code or moving cursor at the end of such file is quick enough not to be noticed. I have been following the evolution of Mathematica \"speed\" since v5 and I have to say that there was huge drop of performance when Wolfram switched the backend language to java and ever since the performance of the kernel or the Frontend has been getting worse (the fact substantially masked by the CPU speed increases during the \"frequency wars\"; now this Moore's law is over...). It also seems that all the incredible performance gains (with JIT technology and loop/execution tracing) in other interpreted languages never really reached Mathematica. Maybe Wolfram should dedicate one major version bump only to address these performance issues otherwise (this great) language may put itself into oblivion. Nevertheless, the behavior described above is quite odd, i.e. it seems edits at the top are $\\mathcal{O}($file size$)$ while at the bottom they are more like $\\mathcal{O}(1)$. Are there any preferences/options that can be tweaked in order to reduce the load Frontend uses for rendering?", "Is it possible to compute trapezoidal rule numerical integration? Is it possible to compute trapezoidal rule numerical integration? I know that Mathematica has `Interpolation`, and that a list of points can be interpolated and then integrated simply using `Integrate`. However, my functions are highly oscillatory (they are based on simulation data), and I am not convinced that the interpolation is perfect, even when I set `WorkingPrecision` to a very high value. Also, I know that `ListIntegrate` is deprecated, and even if I use it, I am not certain if it is using the trapezoidal rule, which I would like to use. Do you know if any resources where I can find Mathematica or pseudocode for trapezoidal integration of lists of points? Or do you have any suggestions about how I can use Mathematica efficiently to program such an algorithm myself? Thanks!", "FiniteFields package is very slow. Any fast substitute for Mathematica? I want to compute the inverse of matrix, say with dimensions $100 \\times 100$, defined over a large finite field extension such as $GF(2^{120})$. I am using the package **FiniteFields** , but Mathematica's computation time is exponential with respect to matrix dimensions. The following code illustrates the problem: << FiniteFields`; Table[ With[{ext = 12}, First@AbsoluteTiming@ Inverse[ Array[GF[2, ext][RandomInteger[{0, 1}, ext]] &, {n, n}] ] ], {n, 1, 11} ] I am using an Intel Xeon X5680 @ 3.33GHz (64-bit OS) and Mathematica v8.0.4.0. I have received the following timing results: {0.0030, 0.0080, 0.0210, 0.0630, 0.1860, 0.5110, 1.3350, 3.3840, 8.9340, 23.0090, 57.4660} I believe the source of the problem is that the **FiniteFields** package defines many UpValues, DownValues and SubValues of `Times` and `Plus` for head GF and, consequently, the pattern matching of arguments is degraded. Does anyone know if a patch for the **FiniteFields** package or a faster substitute providing a similar interface? Many thanks!"]}, {"query": "How to partition a list and leave in the last sublist which is of different length?", "pos": ["Using Partition to allow sublists of different lengths As a minimal example, suppose I have a list of the integers from 1 to 25. Suppose I want to use `Partition` to partition the list into sublists of length 10 **but** without dropping the \"end\" elements. For example, this code list = Range[1, 25]; Partition[list, 10] gives: `{{1,2,3,4,5,6,7,8,9,10},{11,12,13,14,15,16,17,18,19,20}}`, where the integers 21 through 25 have been dropped. What if I want to keep those integers? I would like `Partition` to partition the list into sublists of length 10 only when possible (i.e., keeping the \"end\" elements). How can I do this? In the `Partition` documentation, this entry looks like a possibility: > `Partition[list, n, d, {kL, kR}, {}]` uses no padding, and so can yield > sublists of different lengths. So I tried: Partition[list, 10, 0, {1, 1}, {}] but this did not work (according to the documentation `{kL, kR} = {1, 1}` means \"allow maximal overhang at the end\"). On the other hand, this seems to work: Partition[list, 10, 10, 1, {}] which gives the correct output: `{{1,2,3,4,5,6,7,8,9,10},{11,12,13,14,15,16,17,18,19,20},{21,22,23,24,25}}`. Is this the best way to solve the problem, or am I making a conceptual mistake? I obtained the idea `Partition[list, 10, 10, 1, {}]` from the following documentation, but conceptually I am not really sure what it is doing: > Use no padding, so later sublists can be shorter: > `Partition[{a,b,c,d,e,f,g},3,3,1,{}]` > > `{{a,b,c},{d,e,f},{g}}`"], "neg": ["Exporting strings without the quotes I'm trying to export the following string \"sep = ,\" to a CSV-file, as to be able to define the separation symbol, but when using the following command, Export[\"test.csv\", Join[{\"sep = ,\"}, RandomInteger[{-5, 5}, {5, 3}]], \"CSV\"] I get the quotes around the string in the first line: \"sep = ,\" -4,5,0 5,-4,-1 0,5,2 -1,2,4 -1,-4,-1 This obviously isn't recognised by Excel and it doesn't open correctly. I've tried changing the string to something like Style[\"sep=,\", ShowStringCharacters -> False] and then export again, but then I just get this whole command into the CSV- file. Is there a method to export this string without the quotes attached to them into a CSV-file? Thanks for all help!", "What is the cleanest way to prevent divide-by-zero warnings? If I evaluate `{1, 2, 3, 4}/{5, 6, 0, 8}`, obviously I get one warning: Power::infy: Infinite expression 1/0 encountered. >> and one entry of `ComplexInfinity` in the third position of the result. I'd like to eliminate the warnings and get the output with instances of `ComplexInfinity` deleted. So far, DeleteCases[Quiet[{1, 2, 3, 4}/{5, 6, 0, 8}], ComplexInfinity] is the best way I have to do this. But I'd rather not suppress all messages with `Quiet`, in case I'm operating on something more complicated than this example. Rather than cleaning up the mess it causes, is there a clean way to prevent the divide-by-zero operation from happening in the first place?", "How to plot filling under a curve? I want to mark critical areas for statistical test on the plot. How can I do this? This: pdf = PDF[NormalDistribution[], x] Show[Plot[pdf, {x, -5, 5}], Plot[pdf, {x, -5, -2.001}, Filling -> Axis]] gives: ![enter image description here](http://i.stack.imgur.com/op81t.png) I know that it is probably some super-duper Mathematica feature, but as far as I know this filling shouldn't be cut in such strange way, so I don't want to use this feature. How can I make the filling look right?", "how to set initial conditions when solving recursive equation with tables I am solving a recursive expression with `ParallelTable`. Here is a MWE showing how I do it, and how I set the initial condition: SetSharedVariable[vals] t[n_] := t[n - 1]*i*NIntegrate[Exp[-i*x^2], {x, -Infinity, Infinity}]; t[0] = 1; vals = ParallelTable[{i, t[3]}, {i, 1, 500}]; The expression `t` depends on `i` implicitly. Now I want to make this dependency explicit, as shown here (note, it is **not** a functioning example!): SetSharedVariable[vals] t[d_, n_] := t[n - 1]*d*NIntegrate[Exp[-d*x^2], {x, -Infinity, Infinity}]; (* WHAT TO DO WITH THIS, THE INITIAL CONDITION? *) t[i, 0] = 1; vals = ParallelTable[{i, t[i, 3]}, {i, 1, 500}]; My concern is regarding the initial condition. When I am dealing with `tables`, is there an easy way to implement initial conditions, or do I have to use a `For`-loop for that (where `i` is the variable)?", "Abort during animation I am running an animation with the following command: files = FileNames[NotebookDirectory[] <> \"*.dat\"]; MTnumbers = FileNames[NotebookDirectory[] <> \"MTnumbers.txt\"]; data = Import[#, \"Table\"] & /@ files MT = Import[#, \"List\"] & /@ MTnumbers coords = {{#1 - (#3/2), #2 - (height/2)}, {#1 + (#3/2), #2 + (height/ 2)}} & @@@ #[[All, 2 ;;]] & /@ data; height = 2; colors = {Blue, Blue, Blue, Blue, Blue, Blue, Blue, Blue, Blue, Blue, Blue, Blue, Blue, Blue, Blue, Blue, Blue, Blue, Blue, Blue, Blue, Blue, Blue, Blue, Blue, Blue, Blue, Blue, Blue, Blue, Blue, Blue, Blue, Blue, Blue, Blue, Blue, Blue, Blue, Blue}; Animate[Graphics[{Sequence @@ {colors[[#]], Rectangle @@ (coords[[#]][[t]])} & /@ MT[[1]]}, PlotRange -> {{-1000, 1000}, {-200, 200}}, ImageSize -> {1000, 200}], {t, Range[0, 7000]}] Export[\"tubuli.avi\", %]; As soon as I try to export this output Mathematica crashes. When I increase the number of rectangles to about 150 the simulation crashes without giving an output. Is my computer too weak or am I doing something wrong? EDIT: The data is in the following zip archive you just need the notebook and the data in the same folder and it should work. https://www.dropbox.com/s/iegdb1a031i4mn6/data.zip", "Why does Dynamic output cause CPU usage when onscreen? I write such a line in _Mathematica_ : {Slider[Dynamic[s]], Dynamic[f[x_] := s*x]} After evaluation, the CPU immediately runs at full power. And if you scroll the page, it turns out that as soon as this line appear on the screen, the CPU begin to work. This really confused me a lot. Can anyone help?", "shooting method and stifness problem for NDSolve I'm trying to solve numerically the following differential equation: 1/r[x]^5 + k/Sqrt[1 + r'[x]^2] - (k r[x]r''[x])/(1 + r'[x]^2)^(3/2) == 0 I can set boundary condition in `x=x0` and `x=xF` with `x0` and `xF` being the boundaries of the domain of the `x` variable, i.e., `x=[x0,xF]`. The particular values are not important, I can set what I want as long as `xF>x0>0`. I do not have constraint on the value of the first derivative at the boundaries. This equation has a singulary for `r''[x]` in `x=0`. To avoid this problem, I have to use shooting method with appropriate boundary conditions. sf = NDSolve[{1/r[x]^5 + k/Sqrt[1 + r'[x]^2] - (k r[x]r''[x])/(1 + r'[x]^2)^(3/2) == 0, r[0] == 1, r[1] == 10}, r, {x, 0.1, 100}, Method -> {\"Shooting\", \"StartingInitialConditions\" -> {r[0] == 1, r'[0] == 0}}, MaxSteps -> 500] If I do so, I obtain the following errors: NDSolve::mxst: Maximum number of 200 steps reached at the point x == 0.48535728275604967`. >> NDSolve::mxst: Maximum number of 200 steps reached at the point x == 0.9112853584099116`. >> NDSolve::mxst: Maximum number of 200 steps reached at the point x == 0.9766603163139572`. >> General::stop: Further output of NDSolve::mxst will be suppressed during this calculation. >> FindRoot::sszero: The step size in the search has become less than the tolerance prescribed by the PrecisionGoal option, but the function value is still greater than the tolerance prescribed by the AccuracyGoal option. >> NDSolve::berr: There are significant errors {0.0395308,-0.00050132} in the boundary value residuals. Returning the best solution found. >> But anyway I obtain a solution `sf` in the form of an interpolating function: {{r -> InterpolatingFunction[{{0.1, 0.920942}},<>]}} It is this solution reliable? I think that the the differential equation may be affected by stifness issues, so I tried to add as a sub `Mehtod` options to solve stifness mehtod as indicated in the help: sf = NDSolve[{1/r[x]^5 + k/Sqrt[1 + r'[x]^2] - (k r[x]r''[x])/(1 + r'[x]^2)^(3/2) == 0, r[0] == 1, r[1] == 10}, r, {x, 0.1, 100}, Method -> {\"Shooting\", \"StartingInitialConditions\" -> {r[0] == 1, r'[0] == 0},Method -> {\"StiffnessSwitching\", \"NonstiffTest\" -> False}}, MaxSteps -> 500] The problem is that I obtain several errors, and a discontinuos solution that it's clearly wrong. I will really appreciate any help. Samir", "Unexpected output from oddSublists I have just bought _Mathematica_ and I'm in the process of plowing through Shifrin's great book. On page 74 the function `oddSublists` doesn't give me the expected output. Since I'm a true beginner, I of course suspect mistakes on my behalf. I get: `{{}, {, 2}, {, 2, 3, 4, 5}, {, 2, 3, 4, 5, 6}}` However the function `oddSublistsNew` gives me the expected output.`{{1}, {1, 2}, {1, 2, 3, 4, 5}, {1, 2, 3, 4, 5, 6}}` Anyone had similar experience? And here is the code I forgot to include: Clear[oddSublists]; oddSublists[x_List] := Part[x, Union[ Flatten[Cases[ Map[First, Split[Position[x, _?OddQ], First[#1] == First[#2] &], {2}], y_List /; OddQ[Length[y]]]]]]"]}], "CQADupstackPhysicsRetrieval": [{"query": "Richtmyer Meshkov instability in MHD", "pos": ["Richtmyer Meshkov instability in MHD In magnetohydrodynamics, the Richtmyer Meshkov instability is found to get suppressed by application of longitudinal magnetic field. Exactly what happens at the interface? Why instability gets suppressed? (How one can get the physical intuition of what is happening?)"], "neg": ["What can currently be deduced about empty hyperspace? Michio Kaku's explanation of universes in hyperspace in this youtube video gives a metaphor of our universe being the surface of a hyperspace bubble that's currently becoming larger. He also says these bubbles colliding would produce the creation of new universes and the destruction of involved universes. But this makes me think there's a lot of room in hyperspace for a universe to float for a very long time without encountering another universe. * Is there anything significant to note about areas of hyperspace that don't currently have a universe? * Is it highly entropic? * Does hyperspace change in any way as a universe approaches? * Is it similar to how a galaxy will warp the space-time around it, in that hyperspace follows the same mechanics, but with more dimensions?", "How are galaxy filaments formed? And do they have any analogues in stellar formation? > In physical cosmology, galaxy filaments, also called supercluster complexes > or great walls, are, so far, the largest known cosmic structures in the > universe. They are massive, thread-like structures with a typical length of > 50 to 80 megaparsecs h-1 that form the boundaries between large voids in the > universe.[3] Filaments consist of gravitationally-bound galaxies; parts > where a large number of galaxies are very close to each other are called > superclusters. So I've always wondered: how are these structures formed? One would (naively) expect that gravitationally bound structures would form as either spheres or discs.", "Electrodynamics and induced EMF question > A very long straight wire carries a current I. A plane rectangular coil of > high resistance, with sides of length $a$ and $b$, is coplanar with the > wire. One of the sides of length $a$ is parallel to the wire and a distance > $D$ from it; the opposite side is further from the wire. The coil is moving > at a speed $v$ in its own plane and away from the wire. > > (a) Find the e.m.f. induced in the coil. > > (b) Let R be the resistance of the coil. Calculate the force needed to move > the coil with speed v as described, and show that the mechanical power used > to move it is equal to the rate at which heat is generated in the coil. I have included my workings/thoughts. I know that i first have to calculate the magnetic field of the wire: $$B(y)=\\mu_0 I/2\u03c0y $$ Then the emf, $$\\mathcal{E}=-\\frac{d\u03c6(B)}{dt}= -\\frac{d}{dt} \\int_D^{D+b}B\\cdot ds = -\\frac{d}{dt}(a\\cdot \\int_D^{D+b} B\\cdot dy)$$ I have been given the answer of $$\\mathcal{E}=\\frac{\\mu_0Ivab}{2\\pi D\\left(D+b\\right)}$$ Do I have to perameterise the integral? If so does anyone have a guide on how to do this? What I am having trouble with is the intermediate step getting from the integral to the above answer. I know that $P_{mech}=F.v$ and that $P_{heat}= v^2/R = \\mathcal{E}/R$, but I do not know how to calculate the force on the coil.", "Mass fixed to a wheel - mechanics problem I am struggling with a problem from classical mechanics. Imagine a massless wheel (to make it simpler) with a mass $m$ fixed to it rolling without slipping on a horizontal ground. If we now try to find the equations of motion of the wheel (for instance the angle $\\alpha$ it turns) we will find that all the forces are independent of velocity, so $\\alpha ''=f(\\alpha)$. After doing that I decided to solve this problem using Euler-Langrange equations (since friction does no work). I came up with $L=\\frac{1}{2} m R^{2} (\\frac{d\\alpha}{dt})^{2} (1+\\cos \\alpha)-mgR(1+\\cos \\alpha)$ which, upon solving, gives $\\alpha ''$ as a function of both $\\alpha$ and $\\alpha '$. What is my problem?", "Vector product in 2 dimensions If I have a vector A=4i+3j and B=5i-2j, how can I find the vector product AxB? I know that given the angle, its C=AB sin theta, but how can I solve this without the angle?", "Why are popcorn seeds soft after popping? When a seed of popcorn is heated up in oil, it pops like this: ![Slow-mo Popcorn](http://i.stack.imgur.com/r9wd1.gif) You can take one of these popped pieces and eat it with little to no problem. However, if you get an un-popped seed and sink your teeth in, it is noticeably harder. Why is this?", "Experimental realization of Quantum Teleportation of Spin, not polarization, not ions or atoms I've looked everywhere in databases my school provides, to google searches, to the questions asked in physics forums, and here. As I understand, the original QT (quantum teleportation) protocol thought of by Bennett has been \"realized\" with polarization states of photons which is awesome proof. It validates QT because the entangled polarization state of light is a perfect analog. However, it hasn't been exactly realized because it seems to have not been done with spins! Has there really not been any papers on teleporting the spin state of a particle?", "Creating a fair 3 sided coin I want to make a cylindrical three sided fair coin, with sides: heads, tails, and edge. What should the area of the edge be in relation to the area of the head of the coin? Assume it is all made of a uniform material. **Thoughts:** I was thinking that so long as the surface areas of all three sides were equal, that would be enough, but this seems to lead to tipping over and landing on one of the other faces. Another thought was that the height of the edge should be equal to the diameter of the face, but this seems much too thick. I am looking for a rigorous way of approaching the problem, as opposed to using (bad?) intuition."]}, {"query": "How a fan moves air?", "pos": ["What is going on in front of and behind a fan? Why is it that when you drop paper behind a fan, it drops, and is not blown/sucked into the fan, whereas if you drop paper in front of a fan, it is blown away?"], "neg": ["How to find momentum of different pieces of the same object after it explodes? If a stationery object explodes into a specific number of pieces due to internal force, how can I find the momentum of these pieces?", "Wannier functions on a ring Let's say I have a single particle hamiltonian in a periodic potential. For example a 1D lattice such that: $$H = -\\frac{\\partial_x^2}{2m} + V(x) $$ with $ V(x+a) = V(x)$ where $a$ is the lattice spacing between the atoms or sites. It is known by Bloch's theorem that a solution to such a system will have the form $$\\psi_{k}(x)=e^{ikx}u_k(x)$$ where $u(x+a)=u(x)$. My questions is about the boundary conditions. If we take $$\\psi(x+Na) = \\psi(x)$$ we get, if $N$ is large enough, a lot of different values for $k$ in the Brillouin zone: $$-\\frac{\\pi}{a} http://motls.blogspot.com/2012/05/electric-shocks-under-high-voltage.html"], "neg": ["How to calculate distance travelled from velocity vector and angle? I am trying to get the distance a projectile travels, so I can display it in my program. I'm sort of new to physics, but I've tried looking this up. I'm not getting the right results however, and me being new to physics, I'm not sure if I'm just using the wrong formula or what. This is the formula I have tried using: ![](http://upload.wikimedia.org/math/c/1/d/c1da5860501561519415962ddda5e85e.png) As far as I've read, a projectile launched at 15 degrees would travel the same distance as one launched at 75 degrees, however when I run the calculation I get two different distances for those two instances. Is this not the correct formula, or maybe I'm using it wrong? These are the values I get for 15 degrees and 75: 15: velocity vector = (5,-19) magnitude = 20 vCos = -15.2 vSin = 13 gravity = 9.8 output = 41 75: velocity vector = (19,-5) magnitude = 20 vCos = 18.4 vSin = -7.8 gravity = 9.8 output = 2 The projectile starts on the ground and gets launched at the specified angle over a flat surface. Not sure where I'm going wrong. All help is greatly appreciated.", "Calculating Atmospheric Pressure on an Imaginary Planet I am planning a series of science fiction novels that take place on an imaginary binary planet system. Both planets have a lower surface gravity than the Earth and one has slightly more mass than the other. If average temperature is the same as earth or cooler and the radius of the larger planet is allowed to vary, what is the minimum amount of gravity required for the larger planet to sustain a 50:50 Nitrogen/Oxygen atmosphere with a total pressure of 100 mmHg at 2000 m above sea level? What law or theorem would I need to solve this problem. **Extra stuff about the planets, my motivations and other things I'm trying to figure out that you don't have to read if you don't want to:** I want the larger planet to have an atmosphere that is thinner and whose pressure varies to a greater degree by altitude than the atmosphere of the Earth, but is still breathable by humans at sea level. Basically I want Denver to feel more like Mount Everest and Mount Everest should be pretty much vacuum. Mount Everest has an oxygen partial pressure of about 43 mmHg, and Denver is at an altitude of 1.6 km. Let's say we want 50 mmHg of oxygen at 2km. I figure if oxygen concentration is higher on the planet then on Earth, then atmosphere can be thinner and overall pressure can be lower. I picked a 50:50 mix not knowing whether it is really feasible, but if it is then pressure could be 100 mmHg at 2km. I don't know how to calculate how big the radius and mass of the planet has to be to satisfy these or what the pressure would be at sea level and at what altitude pressure will be 0. The smaller planet should have an atmosphere that is too thin for humans but could conceivably host sentient life. Both planets should have lower gravity than the earth. Each planets has a different species of sentient beings and I would like them to be able to lift stuff into space for much cheaper than here on earth. Basically by the time they have something like a Saturn V rocket, there should already be some trade in manufactured goods between the two. Both planets have awesome magnetic fields that are way better than Earth's at doing the stuff that magnetic fields do. I also would like the binary planets to be in a binary star system and have one or two small moons each, but this is probably pushing it. Even one small ice moon would serve as a handy plot device but I don't want to make it too improbable and I do want to get as much of the Physics right as I can and figuring out the orbits, climate map and the seasons will be difficult enough as it is with two planets, especially considering how little I know.", "Is it possible that only one hemisphere of a planet has an atmosphere? Suppose there is a tidally locked planet orbiting a star. The planet's surface consists of a global ocean, that is, liquid water. At the inner hemisphere the temperature is so high that the water is constantly boiling, creating the atmosphere of water vapor. But the vapor does not reach the dark side of the planet, and precipitates around the terminator line. The further side has no atmosphere and an icy surface. Is this setup possible? Can it be such thing that one side of a planet has liquid (and boiling) water surface while the other side has no atmosphere? Is it possible at all that a part of an ocean was boiling while the other one was icy?", "Position with respect to time with friction I'm interested in equations of motion when friction is present for a little graphical side project I am working on. I'm really rusty with physics, so I apologize if this is a basic question or doesn't make sense... Consider an object on a plane in three dimensions. It has initial position $ \\vec{x_0} $ on the plane and initial velocity $ \\vec{v_0} $ tangential to the plane. Assume it has acceleration (i.e. downhill gravity), $ \\vec{a_G} $, which is constant and tangential to the plane. Now assume it has an additional acceleration (from friction, which I'm modeling as an acceleration), $\\vec{a_F}(t) $, with constant magnitude $ k $ but variable direction, opposite that of velocity. Is there a function $ \\vec{x}(t) $ that gives position with respect to time? Something in the vein of the $$ x(t) = x_0 + v_0*t + 0.5*a*t^2 $$ that I learned in high school?", "During an Ice Age, would someone at moderate latitude get a sunburn/suntan on a sunny day? Let's say you live at a moderate (temperate, in today's terms) latitude during the last glacial maximum. You're probably in some kind of steppe or taiga biome, even though you're at 40 degrees north, and you've never known hot weather. If you're outside on a sunny summer day, would you still get a suntan/sunburn like you would in today's climate? Aside from temperature, which doesn't cause sunburn, would there be any relevant atmospheric differences that might affect the UV radiation?", "Verlet timestep I am using velocity Verlet in molecular dynamics. Is just a simple question, if a simulation using time-step femtosecond, in velocity Verlet is just necessary $dt = 10^{-15}$ to use femtosecond?", "Buoyancy experiment with my child I've read through a few other answers here on buoyancy and I was hoping to get some guidance on discussing it with at 5th grader. So, taking a ball of playdoh clay and dropping it into a container of water which is filled to the top that is sitting in another container, just a little bit of water overflows and we can measure that amount using our kitchen scale. She records this as her value to compare other shapes to. Taking other balls of playdoh which weigh the same amount on the kitchen scale, she's made various \"boats\" which differ mainly in the shape she's made - some are more cup-shaped, some are more pie plate shaped - some have sides and some are more pizza shaped. The pizza shaped ones sink like the ball did. The ones that are more pie plate shaped end up displacing more water than the others (and certainly more than the ball that just sinks) which are cup shaped, at least for her experiments. So, she sees that these \"boats\" are able to float and doing so results in some amount of water that flows over the top of the container but what more can be explained here - that a 5th grader is going to grasp. The weight of the water displaced for each one is different with the cup ones resulting in less water being displaced. Buoyancy isn't my thing so I'm hoping for some layman- friendly explanation as to the difference in the amount of water displaced. And dad will learn a bit along the way too, which is always a bonus.", "Principle of Least Action; Newton's 2nd Law of Motion This question is based on the description of Longair in his book \"Theoretical Concepts in Physics\". He starts by giving some provisions: * Conservative force field * Fixed times $t_1$ and $t_2$ * Object moves from fixed point at $t_1$ to fixed point at $t_2$ Then he defines: * Lagrangian: $L = K-U$ * Action: $S = \\int_{t_1}^{t_2}Ldt$ He goes on to explain, that the principle of least action means, that an object moves on a path so that $S$ is minimized. Then he claims that this priciple is equal to Newton's 2nd law of motion, following through with a proof which is beyond my comprehension (which of course is my fault). After I calculated $S$ for a few examples, I am convinced, that this claim is correct only adding one additional provision (which Longair clearly does not state directly or indirectly): * The object moves on a path fixed in space. (Just the speeds at the points is allowed to differ.) My argument for why this is necessary follows from a counterexample: * Assume a central force field with constant force. Setup the object so that its trajectory is a circle. Take time $t_1$ and $t_2$ so that the object is at opposing ends of the circle, describing a half circle. Now change the force field, so that there is no force inside this circle. (This is still a conservative force field and the object moves still in the same circle.) Compare the $S$ of this half circle to the $S$ of the object moving with constant lower speed along the diameter of the circle. For both trajectories the $U$ is the same but the $K$ is lower for the shortcut along the diameter (lower speed). So the shortcut along the diameter has a lower action. Still, with the correct initial speed the object will move the half circle, fully in accordance to Newton's second law of motion. Since I cannot assume, that I found an error in Longair's standard book, can anyone please explain, what I got wrong."]}, {"query": "What happens to the energy when waves perfectly cancel each other?", "pos": ["can silence happens when 2 sound waves destroy each other Hi is there any possibility that you located between 2 sound sources and u hear nothing? as we know 2 wave in opposite direction will destroy each other...", "Where does energy go in destructive interference? I have read that when two light waves interfere destructively, the energy contained within is transferred to other parts of the wave which have interfered constructively. However, I am having some trouble grasping this. While in experiments such as Young's Double Slit experiment, there are visible bright bands of higher energy, I would imagine that it be possible to configure light waves to propagate linearly such that the waves interfere only destructively and not at all constructively. Is such an arrangement possible? And if so, to where is the energy in the wave transferred? Similarly, how does the energy transfer from one part of a wave which is interfering destructively to another part which is interfering constructively? These regions may be several meters apart for long wavelength light, and I find it strange that energy can travel between these potentially distant and non-interacting regions."], "neg": ["Why does a tire produce more traction when sliding slightly? It is well known in racing that driving the car on the ideal \"slip angle\" of the tire where it is crabbing slightly from the pointed direction produces more cornering speed than a lower slip angle or a higher one. (More explanation as requested) I'm considering two main effects on the tire when in a turn: 1. The tread of the tire is twisted from the angle of the wheel it is mounted to. There is more force as speed increases, and generally, more twisting. 2. The tire slides somewhat at an angle on the road surface rather than rolling. At low speeds, the angle between the pointed direction of the wheel (90 degrees to the axis of rotation) and the direction of travel is nearly 0. When the speed increases to the point the angle reaches about 10 degrees, the tire generate more grip and the car goes faster around the turn. (Higher angles produce lower grip) So the grip is higher at 10 degrees of slip than at 0 or 20 degrees. What is the physical effect that causes this increase in grip?", "Negative Energy and Wormholes Apparently to create wormholes you need negative energy/matter. Say you had negative matter/energy, how would it be applied towards making a wormhole?", "Force from solenoid I'd like to approximate the force from a solenoid, or at the very least find a formula which is proportional to the force so that I can experimentally find the constant for my particular case. Apparently an exact answer to this is hard and involves quantum physics that is a bit beyond me; something about the Ising model. I've found $F =\\frac{(NI)^2 \u03bc_0A}{2g^2}$, where $N$ is number of loops, $I$ is current though the solenoid, $A$ is cross-sectional area of the inside of the solenoid and $g$ is the \"is the length of the gap between the solenoid and a piece of metal\". I found that here. Is this a decent approximation? If so could you more rigorously define $g$, because I don't know what distance this is supposed to be? If it is not, what might I use instead? I found the Gilbert model on Wikipedia that is apparently a good approximation of the force between magnets. Could I use this to approximate the force on a piece of iron from a solenoid?", "Holonomy twisting There is Witten's topological twist of standard SUSY QFTs with enough SUSY into Witten-type TQFTs. What is a holonomy twist?", "Single photon's effect on conservation of momentum? When your looking at basic Compton theory you find that if you shoot a stream of photons at a particle (usually atoms or electrons), then you have the basic laws of conservation of momentum. The photon acts like a particle, like a \"billiard ball.\" The photon interacts with the said electron and the photon goes off in a new path described by $h/\\lambda_2$ ($h$ being Planck's constant and $\\lambda_1$ being the original wavelength of the photon). This wavelength is increased. Using a basic vector diagram with $h/\\lambda_1$, $h/\\lambda_2$ and $m\\vec{v}$ for the particle you get basic conservation of momentum. My question is basically what happens when you are only using a single photon? I'm not aware of any experiments done with a single photon, so far this concept (Compton experiments) have only been done with multiple photons. The reason a single photon is important is because the energy of a photon is inversely proportional to the wavelength. The problem that I have with this is that $E = h\\nu$. This is how we get our inverse wavelength in the formula (wavelength and frequency being inversely proportional). With a single photon you have no frequency, since you only have 1 event/photon. Thus how can you place Planck's constant over $\\lambda$ to represent the energy of the photon, since there is no frequency?", "Why doesn't Fermi's golden rule distinguish attraction from repulsion? Let's say I have two distinguishable charged particles interacting electrostatically. In Fermi's golden rule, the two particles can change state at a rate proportional to: $$|\\langle \\psi_f | H_{int} | \\psi_i \\rangle|^2 = \\left| \\int d^3 r_1 d^3 r_2 \\; \\psi_{1f}^*(r_1) \\psi_{2f}^*(r_2) \\frac{q_1q_2}{|r_1 - r_2|} \\psi_{1i}(r_1) \\psi_{2i}(r_2)\\right|^2$$ The weird thing is: **It doesn't matter whether they are attracting or repelling!** The rate with $q_1 = q_2 = e$ is the same as the rate with $q_1 = -q_2 = e$. I'm shocked that there can be an electrostatic calculation that turns out the same regardless of whether the particles are attracting or repelling each other. How do I make sense of that?", "2 simple Generators = Im lost (intensity) ![enter image description here](http://i.stack.imgur.com/YH1BH.png) What happens? we have 2 Generators and 2 intensities, when I2 and I3 come together (they have opposite sides ) what happens? I tried writing down the voltage relations but I'm stuck because I don't know what intensity should i work with (to determine positive sides) I2 or I3", "Why can't angular momentum be used in flying vehicles? ![Animation of relationship between torque and momentum](http://i.stack.imgur.com/yIa9K.gif) If angular momentum ( **L** ) works like this animation from Wikipedia leads me to believe, why can't we put a large flywheel or several small ones on a chassis, all rotating counter-clockwise around their vertical axes and move the system upwards? It seems that there's nothing countering **L**. Am I missing something? I think the concept of such a vehicle would break Newton's first law, but right now to me that's like saying 'you can't because Newton said so'. Can anyone provide a more detailed explanation that someone with high-school- level knowledge of physics can understand?"]}, {"query": "Is fire matter or energy?", "pos": ["what is the basic form of the 'fire'? > **Possible Duplicate:** > Is fire matter or energy? What is the basic form of fire? physics defines every entity by a basic form either solid or liquid or as a gas, example: water is liquid, ice as solid, water vapor: gas so what is fire? when I queried is 'Plasma a fire?' I landed in below link, where it is said that fire isn't plasma, but not defined which basic form it belongs to! the link: Is fire plasma? What I understand is, it's a form of energy caused by reaction of gases(?) so it's basically a gas! is it true?"], "neg": ["Is the universe a quantum computer - is light speed barrier a computational constraint There is currently a debate ongoing on leading maths blog G\u00f6del\u2019s Lost Letter, between Gil Kalai and Aram Harrow, with the former arguing that building a quantum computer may not be possible due to noise propagation, and the latter arguing to the contrary. I am wondering if there is any argument to show that building a quantum computer is possible, by virtue of showing that quantum computation is evident in the physical world. So the question is: (A) Are there any known examples of physical interactions where macro level state transitions could be determined to only be in correspondence with an underlying quantum computation? I.e. similarly to Shor's algorithm being exponentially faster than any known classical factoring algorithm, are there any examples of known physical processes, for example perturbation stabilization in a very large particle cluster, that could be shown, assuming P<>NP, to only be efficiently solved by a quantum computation. Some, I admit highly speculative, additional questions would then be: (B) Is the speed of light barrier possibly a natural computational limit of our particular universe, so that for the computational complexity class of quantum mechanics, working on an underlying relational network-like spacetime structure, this is the maximum speed that the computational rules can move a particle/wave representation through a network region of the lowest energy/complexity (i.e. a vacuum)? (C) Is quantum mechanics an actual necessity for the universe to follow classical physical laws at the macro level? The informal argument being that in many-to-many particle quantum level interactions, only the capability of each particle to compute in parallel an infinite or quantum-quasi-infinite number of paths is what allows the universe to resolve a real-time solution at the macro level. Requesting references to research along these lines, or any arguments to support or contradict these speculations.", "Terminology for line integral of magnetic field One of the quantities appearing in the integral form of Maxwell's Equations is the line integral of the magnetic field around a closed loop. (The relevant equation states that this is equal to the current through any surface bounded by that loop, plus the displacement current in the case of changing electric fields, with some constant coefficients possibly thrown in, depending on how you manage your units. This is usually called Amp\u00e8re's Law, with Maxwell's correction for the displacement current.) Is there a name for this quantity? More generally, is there a name for the line integral of the magnetic field along an arbitrary non-closed curve? (Then this is not equal to any other named quantity or sum of quantities.) Ideally, I'd want a name for the integral of the H-field (rather than the B-field, when one distinguishes them) in amperes (or the equivalent in non-SI units), but I am not really picky about those details. It seems that every other quantity in the integral form of Maxwell's Equations has a name (magnetic flux, electric flux, charge, etc), so I'd hope that this one does too. Of course, the term for the line integral of the electric field (electromotive force) is somewhat of a historical oddity, so maybe this quantity is too obscure to have a name. Still, you'd think that somebody would have given it one sometime! ETA: A theoretical way to measure this quantity is to place a conductive tube (as conductive as possible, with as small diameter as possible) around the curve in question. The magnetic flux through the tube will induce a current running around (not along) the inside of the tube, which will in turn serve to cancel (or shield) the source of the magnetizing field, in accordance with Lenz's Law (in the broad sense). The current so induced, serving to completely cancel the magnetic field near the curve in question, should equal this quantity, if I'm thinking about this correctly. (Well, I'm having a little trouble getting the sign straight, but one way or the other it should work!)", "Time travel and entropy I saw a post on reddit regarding immortality and how it would never be possible due to entropy. That said, assuming time travel was possible, would it not be possible to never reach this state of entropy if you could keep traveling back in time? Say for instance that you couldn't travel back in time within your own time curve, but you could travel to other time curves. You would merely jump to another curve when your current universe was about to reach its end. Is it too big of an assumption to think that your own initial entropy (by this I mean your entropy from your first timeline) would not 'follow you' to other time curves? I may be totally off-base in my assumptions, as I know next to nothing about physics. Any feedback/criticism is welcomed. Here is the link to the post in reddit.", "How does stuff glow in the dark? Many things have glow in the dark properties (glow sticks, paint, toys ..), and I am wondering what is the physics behind them. How do these materials store light energy and emit it later when dark? What dictates the wavelength(s) of the glow? Is there a limit on how much energy can be stored and recovered in these materials? Do they give out heat as well as light?", "matter wave and wave function Is there any mathematical relationship between matter wave (or de Broglie wave) and wave function? Also, does each type of particle (e.g. photon, electron, positron etc.) have its own unique wave function?", "The commutator of Killing vectors I'm going over an assignment for my general relativity course. My solution to the question below strikes me as too short, considering that it appeared in the \"longer questions\" section of the assignment. > **Question:** > > A Killing vector $V^\\mu$ is one that satisfies the equation $\\nabla_{\\mu} > V_{\\nu}+\\nabla_{\\nu} V_{\\mu}=0$. The commutator of two vectors $U^\\mu$ and > $V^\\mu$ is defined as $[U,V]^\\mu=U^\\nu \\nabla_\\nu V^\\mu-U^\\nu \\nabla_\\nu > U^\\mu$. Show that the commutator of two Killing vectors is itself a Killing > vector. My solution could be (and is likely to be) incorrect, but I'm just using the definitions that I've seen so far. **My solution:** To get from $[U,V]^\\mu$ to $[U,V]_\\mu$ we have to use the metric i.e. $[U,V]_\\nu=g_{\\nu \\lambda}[U,V]^\\lambda$. Now I just plugged this in to the Killing equation to get (for the first term) $\\nabla_{\\mu}[U,V]_\\nu=\\nabla_{\\mu}g_{\\nu \\lambda}[U,V]^\\lambda$. Using that the metric is covariantly constant, we have $\\nabla_{\\mu}g_{\\nu \\lambda}=0$, hence the whole term is equal to zero. The same thing happens with the second term, so that the whole expression is zero. I can't see that I made a mistake, but it seems way too short a solution. When I looked at the solutions provided in the course, they are about a page long, and begin $$\\nabla_{\\mu}[U,V]_\\nu + \\nabla_\\nu[U,V]_\\mu=\\nabla_\\mu (U^\\tau \\nabla_\\tau V_\\nu-V^\\tau \\nabla_\\tau U_\\nu ) + \\nabla_\\nu (U^\\tau \\nabla_\\tau V_\\mu-V^\\tau \\nabla_\\tau U_\\mu )=\\dots$$ i.e. they do things explicitly. Actually, having written this out, I can see that what I've done can't be correct otherwise every vector would be a killing vector just by writing $V_\\mu$ as $V_\\mu=g_{\\mu \\nu}V^\\nu$. However I don't know what I've done wrong, so any help would be very much appreciated!", "Power as a Function of Distance I am interested in trying to understand the meaning of the integral of power with respect to distance. In the case of force, we have the two formulae: $\\int F \\, \\operatorname{d}\\\\!t = \\Delta p$ and $\\int F \\, \\operatorname{d}\\\\!x = \\Delta E_k$. I understand that power is closely linked to time and work by the relationship $P = \\frac{\\operatorname{d}\\\\!W}{\\operatorname{d}\\\\!t}$. However, imagine a body moving continuously from the left to the right. In such a case, we can express displacement as a one-to-one function of time, and time as a one-to-one function of displacement. We could place regular markers along the road side and take power readings as the body passes each of these markers. Assuming the distance between markers is $\\Delta s$ and then letting $\\Delta s \\to 0$ gives power as a function of displacement. We may then ask: **What does the integral of this function mean?** $$\\int_{s_1}^{s_2} P \\, \\operatorname{d}\\\\!x = \\operatorname{F}(s_1,s_2)$$ **Addition:** I've tried to play with the calculus a bit. I'm not sure if this helps: $$P = \\frac{\\operatorname{d}\\\\!W}{\\operatorname{d}\\\\!t} = \\frac{\\operatorname{d}\\\\!x}{\\operatorname{d}\\\\!t} \\frac{\\operatorname{d}\\\\!W}{\\operatorname{d}\\\\!x} = v\\frac{\\operatorname{d}\\\\!W}{\\operatorname{d}\\\\!x}\\implies \\int P \\, \\operatorname{d}\\\\!x = \\int v\\frac{\\operatorname{d}\\\\!W}{\\operatorname{d}\\\\!x} \\, \\operatorname{d}\\\\!x = \\int v \\, \\operatorname{d}\\\\!W$$ Has anyone seen a velocity-work graph? If so, what does the area underneath it represent?", "Virtual vs Real image I'm doing magnification and lens in class currently, and I really don't get why virtual and real images are called what they are. A virtual image occurs the object is less than the focal length of the lens from the lens, and a real image occurs when an object is further than focal length. By why virtual and real? What's the difference? You can't touch an image no matter what it's called, because it's just light."]}], "CQADupstackProgrammersRetrieval": [{"query": "Confusion about dual license (MIT/GPL) javascript for use on my website", "pos": ["Can I use a dual license in my commercial Website I have set up a web application which is of commercial use. This application had to make use of the plugin(which is not downloaded from http://plugins.jquery.com) I downloaded this plugin from http://jquery.malsup.com/cycle2 Kindly, let me know if I could use this plugin in my commercial website. If I do, would it cause any consequences in future? Though, I could see few answers here, I would like to Insist upon itself on this as of critical importance. Licensing Terms"], "neg": ["Working with fubar/refuctored code I'm working with some code which was written by a contractor who left a year ago leaving a number of projects with buggy, disgustingly bad code. This is what I call cowboy PHP, say no more. Ideally I'd like to leave the project as is and never touch it again. Things break, requirements change and it needs to be maintained. Part A needs to be changed. There is a bug I cannot reproduce. Part A is connect to parts B D and E. This kind of work gives me a headache and makes me die a little inside. It kills my motivation and productivity. To be honest I'd say it's affecting my mental health. Perhaps being at the start of my career I'm being naive to think production code should be reasonably clean. I would like to hear from anyone else who has been in this situation before. What did you do to get out of it? I'm thinking long term I might have to find another job. **Edit** I've moved on from this company now, to a place where idiots are not employed. The code isn't perfect but it's at least manageable and peer reviewed. There are a lot of people in the comments below telling me that software is messy like this. Sure I don't agree with the way some programmers do things but this code was seriously mangled. The guy who wrote it tried to reinvent every wheel he could, and badly. He stopped getting work from us because of his bad code that nobody on the team could stand. If it were easy to refactor I would have. Eventually after many ' _just do this small 10minute change_ ' situations had ballooned into hours of lost time (regardless of who on the team was doing the work) my boss finally caved in it was rewritten.", "Algorithm for indexing strings in \"list\" Imagine I have file called `strings.dat`. Inside this file there is alot of string, for example: one million. **String are sorted**. Now I want to find specified string, so I can write method like this: public long FindByName (string text) { // ... } This method can return to me a position within a file where this string occurs. But iterating through lots of data is not efficient. I can do some indexing system, like an `Dictionary` which tells about at what position within file is placed first string with its value starting from given char. Example: if I got 5 strings: hello hello2 world world2 Zzz So my dictionary will be like: h 0 w 2 z 4 But it's not efficient if I will have 1000 string with \"d\" char as first letter, and 10 million with \"r\" letter. Do you know any good algorithms do ahieve what Im asking for?", "How to handle static-ish content from a CDN with authentication? I have a website that allows user uploads of content. Part of the design, to date, involves storing the user content on a NAS that has been configured with a separate app pool in IIS that has scripting disabled, shorter lifespans, no cookies, etc for CDN-type behavior as a subdomain (static.domain.com vs. www.domain.com). I have complete control over this process and all the instances. The design decision behind this was to allow for cheaper storage of uploaded documents (instead of wwwroot or a DB) and help mitigate some security concerns by disallowing scripting. The concern I have now is that CDNs, and this setup, are by nature very permissive and do next to no checking or validation. Are there any _reasonably effective_ measures to discourage idle sharing of this user content? I know nothing will stop determined or malicious people, but I want to at least prevent this user content from being available at large to the general populous. All of the links to the content will be behind a paywall at the 'www' subdomain, but the content itself will be behind the 'static' subdomain. Ideas I had so far: 1. HTTP Referer checking 2. Obfuscated filenames (I know, I know...) 3. Cookie testing with URL rewrite? (IIS8) 4. ... 5. Ask stackexchange", "Single quotes vs double quotes I just started a job where I'm writing Python after coming from a Java background, and I'm noticing that other developers tend to quote strings using single quotes (`''`) instead of double quotes (`\"\"`). For example: line1 = 'This is how strings typically look.' line2 = \"Not like this.\" Is there a particular reason for this other than personal preference? Is this the proper way to be quoting strings? Specifically, what I want to know is if there is some type of standard or accepted best practice that drives this style of coding.", "Is there any research out there on geographic differences in work environments (e.g., respect) for programmers? One thing I've learned from this website is that software developers are not treated the same as what I've seen in the companies I've worked at, and some of the differences seem to be related to the culture or other factors of the geographical location where the programmer works. In some areas, it seems like programmers can expect many perks and a great deal of professional respect, but in others it sounds like programmers are seen as laborers who are told what to do and then should go do it without question. Even in just the USA, there seem to be major differences in \"the norm\" between the various regions of this country. I'm wondering how much of this is just my perception, and how much is real differences about how programmers are perceived in their different locations. Is there any research out there discussing major differences in programmer work environments or attitudes about how to treat or respect programmers by geography? I'd be interested in multiple articles tackling different ways of looking at this. Edit: Research, specifically, doesn't seem to be available, so I'm making the question broader. Any good, thoughtful writing on the topic of any kind available?", "Best Method of function parameter validation I've been dabbling with the idea of creating my own CMS for the experience and because it would be fun to run my website off my own code base. One of the decisions I keep coming back to is how best to validate incoming parameters for functions. This is mostly in reference to simple data types since object validation would be quite a bit more complex. At first I debated creating a naming convention that would contain information about what the parameters should be, (int, string, bool, etc) then I also figured I could create options to validate against. But then in every function I still need to run some sort of parameter validation that parses the parameter name to determine what the value can be then validate against it, granted this would be handled by passing the list of parameters to function but that still needs to happen and one of my goals is to remove the parameter validation from the function itself so that you can only have the actual function code that accomplishes the intended task without the additional code for validation. Is there any good way of handling this, or is it so low level that typically parameter validation is just done at the start of the function call anyway, so I should stick with doing that.", "How and what should I be (unit) testing for in this method? I am relatively new to unit testing and have a query about what/how I should be testing a certain method. For the following (psudo-c#) method I have created (not a real-life example) what would you test for? Initially, my thoughts would be to test the output with variations on the dictionary of form fields, e.g. valid, invalid, missing values. However I also wonder how you would test to make sure the object values have been changed to the correct value and that the correct email message was attempted to be sent (obviously both services could/would be mocked). I hope what I am asking makes sense, I appreciate this is a subjective question and the answers may be 'it depends' ;) public bool ProcessInput(Dictionary formFields, ObjService objService, EmailService emailService) { try { // Get my object id int objId; if(!int.TryParse(formField[\"objId\"], out objId) { return false; } // Update my object - would you validate the save against a DB or a mocked inmemory db? var myObj = objService.Find(objId); myObj.Name = formField[\"objName\"]; objService.Save(myObj); // Send an email - how would you test to make sure content, recipient, etc was correct? emailService.SendEmail(formField(\"email\"), \"Hello World\"); return true; } catch(Exception ex) { return false; } }", "How can I deal a team member who is irresponsible and shows no commitment? I am handling a team of a few guys working on a software module in a large project. As per our estimates our module is getting delayed by a week. Since we can not have this delay, our client and our manager arrive at a decision that we need to work on few weekends (3-4) to try to finish the work. All members of the team are aware of this and understand this and since its just a matter of 3-4 extra days, so we decide to work on weekends to meet the deadline. But one of the team members is not following this. From last three weekends he has some or the other reason to not come on weekend. He is not even willing to put up extra hours during weekdays. Personally I don't care about the number of hours he works as long as he/(any one) can finish their work to meet the deadline. Please let me know how to handle this situation?"]}, {"query": "Is there a license that forbids distribution and gives a Github repo owner full rights?", "pos": ["Software License: Open Source, but no distribution (for free or for profit) I wrote a program in PHP. I want people to be able to use the code to learn from and even include bits in their own apps but I also want to maintain the right to sell it and make it clear that others are not to distribute copies either for free or for profit. I haven't used anyone elses code so I don't have to worry about license compatibility. Which license out there is right for that? I know I can't stop people from ignoring the license but I just want them to at least know it's there and know they're doing something wrong if they try. I can't find anywhere that explains licenses in plain English and yes, I have tried to read the GNU and BSD licenses but I can't get it. Thanks. Ok so here are the clarifications other have asked for: I am going to sell this program for very cheap. People are free to use as much code as they want from it so long as they have first purchased the program and they do not profit from my code. I wouldn't mind if people just took the whole thing and added on and made it better but then people wouldn't be honest and they would just add something on and give it free and then no one would buy my product. I suppose I should just let people have it and ask for donations. So maybe I should GPL or BSD it. EDIT: I understand why everyone is getting confused. It is contradictory but the thing about legalese is that everything seems black or white. I'm trying to achieve a gray area. I want people to buy this thing from me, not copy it and give it away to people, and even use parts of it. By \"use parts\", what I'd say if someone asked me casually would be \"just be reasonable\". So basically don't use a majority of my code in your work and then totally outshine what I did because you'll have it easy as I did most of the dirty work already! I mean, sure, use my DB connect script in your project, I don't care. OR... use all the code and add to it! But only for personal use and don't you dare start giving it out because I'm going to be making money off this thing and that totally undermines my work. And it'd be nice to show me your additions and I'll give credit but the main thing is don't be redistributing my software that I have to earn a living with. Its hard to put that sentiment into legalese. And I just can't understand all these licenses."], "neg": ["Why is first column of list called 0th in so many languages? If you want first element of list or array you reference it as 0 in many languages (like C or Clojure). Is there are some really good reasons why the programming languages was design this way? In old days in assembly languages it makes perfect sense because all possible values needs to be used. But what are nowadays to keep it this way? There is very little advantage when modulo arithmetic and ranges (Wikipedia article.) but not much more. On a disadvantages side it should be: It makes confusion because it human language the first is connected with 1 (1st and it is not in english only). It makes confusion even in XPath (W3School:\"Note: In IE 5,6,7,8,9 first node is[0], but according to W3C, it is [1].\"). There are troubles between languages who use 1-based and 0-based system. Want to know hat are the good reasons to use zero-based numbering and why even creator of new languages (like Clojure) choose this way?", "Why doesn't the .NET world have anything like rails/grails/django/roo? It seems to me that rapid-development web platforms are going to radically change the world of web applications. It has been five years since Rails 1.0 was released for Ruby, and since that time we have seen Grails for Groovy, Django for Python, and Roo for Java. But to my knowledge (which is probably limited, being a Java/Groovy progammer) there is no similar framework for C#. Does such a thing exist? If not, why not? **Edit:** It's quite possible I'm not using the right words when I say \"rapid- development,\" but I'm talking about frameworks that can conceivably allow you to build a working blog engine in 30 minutes. You couldn't reasonably do this with, say, Java, Spring, and Hibernate, given the various configuration needed to allow your controllers to be found, and both configuration and code necessary for your entities to persist and be retrieved. So I'm talking about frameworks that handle all of the CRUD with a convention- over-configuration mentality. If someone has the right words for what I'm talking about, let me know.", "If a library doesn't provide all my needs, how should I proceed? I'm developing an application involving math and physics models, and I'd like to use a Math library for things like Matrices. I'm using C#, and so I was looking for some libraries and found Math.NET. I'm under the impression, from past experience, that for math, using a robust and industry-approved third party library is much better than writing your own code. It seems good for many purposes, but it does not provide support for Quaternions, which I need to use as a type. Also, I need some functions in Vector and Matrix that also aren't provided, such as rotation matrices and vector rotation functions, and calculating cross products. At the same time, it provides a lot of functions/classes that I simply do not need, which might mean a lot of unnecessary bloat and complexity. At this rate, should I even bother using the library? Should I write my own math library? Or is it a better idea to stick to the third party library and somehow wrap around it? Perhaps I should make a subclass of the Matrix and Vector type of the library? But isn't that considered bad style? I've also tried looking for other libraries but unfortunately I couldn't find anything suitable.", "If functional testing is referred as black box..how can it be done on unit test level? Preparing myself for ISTQB, I found a bit odd many things in their textbooks. E.g. they call black box testing as functional testing when you are not concerned with structured but only observe the ouput based on inputs. But later they say that functional testing is done at levels..well, how can I do unit testing without the knowledge how it works if I can just see it (and must see it). It is white box but then it is in the conflict..", "Should we write a unit test for class that call another class that have code written Suppose that there are two class 'A' and 'B' 'A' has a lot of nested conditions that have all unit test covered. 'B' has a property that will call class 'A' and return value according to the result of class 'A' On class 'B', when i want to write unit test. Should i just mock class A and verify on class B that it has been called a specific class 'A' method.", "Why is naming a table's Primary Key column \"Id\" considered bad practice? My t-sql teacher told us that naming our PK column \"Id\" is considered bad practice without any further explanations. Why is naming a table PK column \"Id\" is considered bad practice?", "What's the best way to modularize a User schema so it's generic I have a database design question. Basically I want to be able to create a schema for a User model, then use this User model in other models that extend User but I want to design it in such a way that it's generic enough to be used in every application. For example a Profile or Account model might extend User, and in both cases they will be different based on the web application you are designing but the core credentials of User should never be different across any web application. What fields do you think should be in the User model? I think the bare minimum to successfully handle authentication would be: * email (the login unique identifier) * salt (obviously!) * password (duh) * lostToken (a hash to verify lost password functionality) * role (member, admin, editor, etc.. IMO this list of roles would differ between sites however it's too important to the User model not to have here?) Now we get into other interesting fields that are still very very useful: * createdAt (when the account was created) * ipAddress (track the ip when the account was created) * refererUrl (which site it came from) * lastLoggedIn (the last time the user logged in) * isOnline (is the user currently online) And even more fields that are still pretty useful: * username (might not be used on every site) * number of consecutive logins (similar to the stack network) I think anything else like social data (likes, votes, profile views), badges/achievements, the last time they updated their profile/account/whatever, and other info like their name belong in the per- site Profile model. What do you think? Edit: I fully understand that this question is partly subjective but I do think there's definitely room for discussion.", "Is there a website where we can discuss and improve upon code snippets? Is there a website where we can discuss and improve upon code snippets? For example, if I have written some function and want to know what others think of it."]}, {"query": "Is using build-in sorting considered cheating in practice tests?", "pos": ["Java exam: prebuilt methods? > **Possible Duplicate:** > Is using build-in sorting considered cheating in practice tests? I'm studying for a Java exam at the university. In your opinion, could I use, during the exam, Arrays.sort(intArray); instead of creating my own algorithm? How would you judge it, if you were the professor?"], "neg": ["foreach($items as &$item) considered harmful? Is it considered bad practice to pass items in a PHP array by reference instead of by value? Relevant documentation: http://php.net/manual/en/control- structures.foreach.php", "Would working for an \"adult website\" hurt my future employability? I am considering taking a software engineering job at a pornographic website. While I have no moral objections to the industry, will it be a red flag on my resume?", "Violating SQL principles I have to write a decent size database, 1GB more or less. I have only taken an introductory semester regarding SQL databases. During the course we learned that the relational model under SQL has no implied order and that therefore when querying we should always have a variable that sets the correspondant order in the table. However, when doing practical work I find 'convenient' to make already ordered small, infinite number of tables. For example, lets say that you have 5 clients and that their info will never join their data together. Is it admissible to have a potentially infinite number of tables with a table per client? For example, I append new rows already ordered to the database. The database is already ordered. Is it admissible to make an unordered query and just assume that is implicitly ordered? All this violates the principles that I know. My boss, who does not know about databases says that if it works it works and that speed is important. What shall answer to him?", "When should an IT consultant use full disc encryption? In what circumstances should an IT Consultant encrypt their hard drive to protect their code/data of their clients? I am thinking that if it does not add much to your work load you might as well use full disc encryption with a 'weak' password to at least prevent someone from accessing your email files and other documents if your laptop is stolen, even if they will not get access to any database files or other very sensitive data.", "What advantages do simple text editors like TextMate have over Eclipse for Java development? I'm torn which IDE to use. The power of eclipse or the simplicity of TextMate. I'm wondering which one has specific advantages over the other, productivity wise.", "Project based prefix for class names My project leader uses project based prefixes for class names, lets say projects name ABC, he create User class name as ABCUser. and he says he do this becasuse if he wants to make User.aspx Users get mixed. so I told him why not use namespace (Entity.User ie.) to make it specific but he against it. I would like to hear from you guys' opinion on this subject. We code c#.net and using visual studio for projects.", "Design Methodology for Developing Interoperable Systems? **A bit of background** The company I work for has been creating database applications since around 1980 and, until relatively recently, most of these systems have been stand- alone \"silo\" systems. However, in the last few years, we've seen more of a shift towards gathering \"intelligence\" across all systems within our customers requirements. For example, a system that might collect data about people's dental records may need to talk to a system that collects data about people's optician records, share information about the same person and provide search capabilities across both systems (makes sense, although the example I've used is fictional). In the fictional example above, the dental and optician systems may or may not both be written by the company I work for (in other words we are looking at both internally-developed interfaces and interfaces to systems from third- party providers). **What we've done so far** We have a basic web-services API ( **.asmx** ) for one of our products, but I'm concerned about the change management, in terms of keeping it up-to-date as we add new features to the main product (in terms of providing the new features through the API without breaking compatibility with older interfaces). We have also produced one **WCF** service. The rigid contracts put my mind slightly more at ease than working with the ASMX service, but I think a lack of experience within the company is holding us back, so I'm looking for some guidance on best practice that I can read up on to help move us along (or at least point us in the right direction). **The question** * **Is there a particular methodology or programming practice for designing systems to maximise their ability to interface to other systems?** * **Are there any good online (or offline) resources for these programming practices (assuming they exist)?** Any other advice you can provide based on the information above would be appreciated, but not essential. We primarily develop in Microsoft .NET (mainly ASP.NET, with some windows forms applications as well) with a SQL Server/Oracle database back-end, although I expect the programming practices might be language independent. (I've used the .NET tag as an afterthought, but I might take it out later..!) Thanks for your time.", "Should you refactor existing code that is not broken in a project focused on new features? Given a small project that aims to add new functionality to application, the changes introduced touch some existing code, involving updating these in certain areas. During implementation, I've found some of these code which were updated have candidates for refactoring. Is this an appropriate time to refactor which in turn would require regression testing for those components affected (thus possibly introducing scope not originally part of the project)? Or should I defer, complete the functionality and perhaps have a separate project for refactoring (although I'm a bit hesitant as business users might not fully sponsor a project that does not add any functionality, unless they value code maintainability...)?"]}, {"query": "What are the guidelines for either throwing an exception or failing silently for nonvalid arguments?", "pos": ["Error handling - Should a program fail on errors or silently ignore them I'm writing a simple little program to transmit MIDI over a network. I know that the program will encounter transmission problems and / or other exception situations that I won't be able to predict. For the exception handling, I see two approaches. Should I write the program so that it: * fails with a bang when something goes wrong **_or_** * should it just ignore the error and continue, at the expense of data integrity? Which approach would a user reasonably expect? Is there a better way of handling exceptions? Additionally, should my decision about handling exceptions be affected by whether or not I am dealing with a network connection (ie. something where I can reasonably expect to have problems come up)?"], "neg": ["How to integrate technical line/functional manager into Scrum team? We have recently had a new line manager start to manage our Scrum team. He is immensely experienced in our field but is relatively inexperienced at Agile/Scrum. He has extensive technical expertise in embedded software (the team's domain) that would go to waste if not utilised properly. However, the team is wary of making a line manager part of the Scrum team. The general consensus is that the line manager should not be part of the Scrum team at all. There are a number of issues that may crop up, e.g. the team may start \"reporting\" to the manager (i.e. a daily status update!), the manager may start to micro-manage team members etc etc. As it currently stands, he has already said that he feels like an outsider within the team. We really want to make use of his technical skills, we'd be foolish if we didn't because we are a relatively inexperienced and young team of twenty somethings. What would be the best approach to integrate a senior \"technical\" line manager in a Scrum team and make him feel like he _is_ part of the team?", "Test task : real tasks or not? Just had a discussion with coworkers about test tasks for programmers. Is it morally appropriate to ask programmers do some helpful work for the project in their test tasks or such company just uses the job applicants to do job for free? Is it ethical to do it?", "Silverlight 5 and MVVM. Do I really need other frameworks? What is the best way for rapid development? I've been reading and watching videos on MVVM and Silverlight.. I'm pretty new to Silverlight but not new to .NET. Interesting that I used MVVM in my WPF apps without knowing that it's MVVM. I was creating easily-bindable classes to serve as a layer between data and XAML :) Project that we start will be done with Silverlight 5 and WCF on a back end. Project will be rather large with several modules 50 or screens each, ideally I would like to load them on demand. MOST(not all) UI will be straight-forward data entry stuff. I'm trying to see what should be our architecture and how will it benefit us in future. I think I GOT IT as far as what MVVM and WHY. I also checked Caliburn Micro (and understood what it does). I see ReactiveUI and MVVMLight. To be honest I don't like external libraries/dependencies. Also, I don't really care about using naming conventions to satisfly external framework and perfectly OK with binding in XAML. Since we have good commands support and XAML debugging in SL5 - I don't think I need external framework. So, I think having ViewModels and binding via XAML with minimal view-related code in code-behind will be perfectly fine with me. Here is my dilemma: 1. If I use RIA services. 80% of my UI will bind perfectly to RIA generated stuff with some converters of course. Will it be bad architecture to have everything bind directly and just some more complex views to use ModelView? 2. Should I use RIA services?! I think YES. I'm all for generated code especially when it's plain data-entry stuff. Will it keep client code synced with server-side? 3. From what I see - ModelView have to be manually coded. Am I correct? Again, for 80% of project that's probably going to be waste of effort. 4. If I want to have multiple xap files that load on demand, should I use some kind of framework? I think keeping it in one file may get too big. Thanks!", "What is the clause in an employee contract that says they own all your code? I am looking at my employee contract and I can't seem to figure out where it might say that they own all the code that I write, be it at work or at home. Any examples of what the wording could be like?", "How to communicate with a co-worker that considers frameworks a performance hit How can one sell an idea like \"we should use jQuery because its highly optimized and cross browser compatible\" or \"entity framework is cool because its neat and takes care of our model automagically\" when the common response is a blanketed statement such as \"jquery doesn't perform well\" or \"entities bring in 12 columns on a table when we only need 10\"? I am a pragmatic guy that tends to trust axioms I've developed through experience (its not a performance problem until there's a visible slowdown). I don't know if there's a specific \"category\" that the other extreme fits into, whereas everything is a performance problem until proven otherwise...or even where to begin the communication here.", "Are we using the repository pattern right? We are using a bunch of separate classes suffixed with `-repository` to retrieve the data from the database; for each table its own repository. We have for instance a `customerrepository` class which has all kind of methods to retrieve customers, and a `vacancyrepository` which has all kind of methods to retrieve vacancies. I have two questions about this way of doing things: 1. How about getting data which spans multiple tables? For instance I have a screen which shows all customers who have not yet created a vacancy. Can a `customerrepository` use methods from the `vacancyrespository`, or do both repositories return results and is there a class higher in the hierarchy (let's name it a `dataservice`) which gets the results from both repositories and combine them into 1 result? 2. how much logic can such a repository handle? I think it's OK to implement the 'where active == true' in a repository to retrieve only active records, or should even that simple logic be handled by a class higher in the hierarchy (let's name it a `dataservice`)? The example I was running into now is this one: We have a questions list, which contains one or more questions. The question can have a result, which is hold in a separate table. So when you want to retrieve the total result of the questions list, you have to combine data from the `questionlist` table, the question table and the `questionstatus` table. Right now we have 3 different repositories for these tables. If I would ask the `questionlistrepository` what it's the total result for list number 12, it would have to get data from two other repositories and hence have some logic in it, is that allowed? Or is there a `questionlistdataservice` which knows which repositories to use? One more thing: our repositories can result an `IQueryable` so a calling service can easily combine the results, but how about when this isn't the case, I don't think it's a good idea to retrieve all the content of all three tables from the database.", "Reuse Other Company's Content For Same Client Here's the scenario: a client of mine (lets call them Company A) had a website built by someone else (let's call them Company B). They then asked me (Company C) to configure a third party framework to look and feel exactly the same as what Company B built for them. Would it be legitimate for me to use content (including images, CSS, and even HTML) from the site Company B built for Company A? It's worth mentioning Company A's name is in the copyright notice in the footer of the site Company B made for Company A.", "Why are wrapper classes not suited for use in callback frameworks? I just read the question what are callback frameworks?, where the asker cites the following from Effective Java: > The disadvantages of wrapper classes are few. One caveat is that wrapper > classes are not suited for use in callback frameworks, wherein objects pass > selfreferences to other objects for subsequent invocations (\u201ccallbacks\u201d). So I am curious, why are wrapper classes not suited for use in callback frameworks? And can you provide an example of what the problem is?"]}, {"query": "How much database access should developers have?", "pos": ["Why shouldn't you develop on production database? I need help with organizing my arguments for why it's MADNESS to develop against production data. **Backstory:** I started working here six months ago and I noticed we're developing directly against production data. The codebase is local, but the database we're connected to is live data! So i have to be super careful constantly when doing update/store operations, so that I don't break anything. We have an annual software meeting soon and I want to raise my concerns, and come loaded with arguments but I have a really hard time coming up with good solid points to something that's should be obvious as this. It's as if they would ask me to come up with arguments to why I need to breathe. **My Question:** What arguments are there for NOT developing on production database directly?", "Safely fixing production database data Bugs happen and sometimes data has to be fixed in production. What is the safest way to go about this from a big company standpoint? Are there tools that can help? Here are some considerations driving this requirement... 1. We need to log who ran the query and what they ran 2. Ideally we need to give the person access to only run queries against the tables of interest and only for a short time 3. Whatever is running the queries needs to have some smarts about it to not allow long running and locking SQL to run without explicit permission 4. This process needs to be DB agnostic or at least understand DB2, Oracle, and SQL Server. We are trying to reduce the risk of ad-hoc prod fix-up queries from doing the \"wrong thing\" and at the same time add some security/audtis to the process. Thoughts or Ideas?", "How do you deal with clients asking for manual data edits in the database? I've recently started working on a legacy application that frankly doesn't do all that it should. It's lacking a lot of features, has barely any administration capacities and doesn't check half the data it should. As such, it's very easy for users to do something stupid and get stuck. _\"Oops, I added this item of the wrong type to this thingie and now it won't let me remove it\"_. Indeed, the application should have checked for this, but allowed adding the wrong item. And now, when it comes to deleting the wrong item, it becomes extremely protective and refuses that anything be removed. Problem is, the clients (who are actually users within the company) don't care much for that. They need the application to hold the real-world data as it should be, so they ask the developers to \"fix it\" by changing the data. In this example, deleting the wrong item. In other cases, it will be reassigning items to different parents, fixing various values, etc... Since the application has almost no admin GUI, everything ends up being done directly in the database (augh!), risking even more issues down-the-line unless you know _exactly_ how it works (which no one really does considering the massive application). Ultimately, it feels like the database has become a huge Excel file that devs edit day by day at the whims of the clients, because of failures of the application. It's obvious to me that fixing the application to avoid such situations should be top priority, but it seems the clients prefer asking for a lot of new features instead and it's accepted as such. What can a developer do in such a situation? Is it even possible to refuse DB edits in favor of fixing things? There are so many bugs that it feels like they're never going to wait _that_ long..."], "neg": ["Buy vs. Build - FTP Service We have a need to FTP files that are generated by our system, so we're trying to decide whether we should spend the time to build something that meets our criteria (relatively easy, .NET has FTP functionality built in, among other more advanced libs from 3rd parties). Or if we should buy something off the shelf. Our requirements are roughly: * Must be able to trigger a file send programmatically * Needs to retry _N_ number of times (configurable) * Queryable status of FTP requests * Callback on completion or fail of an FTP request I don't need to be sold on the relative simplicity of building something like that for myself. However I do want to do the due diligence of seeing what products are available ... because if something does exist that matches the requirements above, I wouldn't mind paying for it :-) Any thoughts or links would be greatly appreciated. Thanks!", "Why is 24 lines a common default terminal height? 80x24 characters seems to be a very common default for terminal windows. This answer provides a very good historical reason as to why the width is 80 characters. But why is the height commonly 24 (or 25) lines?", "Combining 3rd party javascript libraries with my code, then using Closure Compiler I'm using multiple third party javascript libraries in my website, and right now I'm keeping each third party library as a separate .js file, with its own `