Friday, February 19, 2010

twisted framework

Modified getPage () to return a factory and deferred, so that we when extract the return cookies.


from twisted.web import client
def getNewPage(url, contextFactory=None, *args, **kwargs):
"""
Download a web page as a string and return clientfactory.
Download a page. Return a deferred, which will callback with a
page (as a string) or errback with a description of the error.

See HTTPClientFactory to see what extra args can be passed.
"""
factory = client._makeGetterFactory(url,client.HTTPClientFactory, contextFactory=contextFactory, *args, **kwargs)
return factory.deferred, factory

Tuesday, January 5, 2010

The Year of Ponzi Schemes Ushers In Tighter Regulation

http://www.theepochtimes.com/n2/content/view/27439/

Financier and fraudster Bernie Madoff was the worst but far from the only Ponzi purveyor nabbed in 2009. (Chris Hondros/Getty Images)
NEW YORK—2009 may go down in the annals of business notoriety as the “Year of Ponzi schemes.”

In early 2009, Bernie Madoff’s $65 billion Ponzi scheme unraveled to a world in disbelief. The former Chairman of the NASDAQ stock exchange in March pleaded guilty to defrauding investors and turning his asset management business Bernard L. Madoff Investment Securities into one giant Ponzi scheme.

In total, the $65 billion in fabricated gains were the largest investor fraud in history, and Madoff is currently in prison serving a 150-year sentence.

But that’s not all. Sir Allen Stanford, a Texas billionaire, was arrested last summer on charges of inventing an $8 billion pyramid scheme. His Stanford International Bank, an offshore holding company based in Antigua, allegedly sold more than $7 billion in CDs to unsuspecting depositors, promising sky-high interest rates.

In addition, Stanford will stand trial for bribing Antiguan finance officials.

Another prominent fraud involves Tom Petters, CEO of the Minneapolis-based Petters Group Worldwide LLC. Petters was convicted on Dec. 2 of carrying out a $3.65 billion Ponzi scheme.

Petters was guilty of wire and mail fraud, as well as money laundering. According to reports, Petters falsified documents to obtain huge loans to support his scam and his venture, which employed more than 2,000 people.

House of Cards

So why were so many frauds uncovered in 2009? The answer lies in that Ponzi schemes require new investors to fund old ones, and as the global recession hit, more investors than usual sought to withdraw their funds.

During boom years, investors have little use for their savings. But during a recession as money is drawn and no new investors can be found, Ponzi schemes are often uncovered.

"I think this has been an incredibly difficult year," former U.S. Securities and Exchange Commision (SEC) Chairman Harvey Pitt told Reuters Television. "We've seen a lot of financial scandals, a great deal of misconduct, an economic meltdown and a concerted push now for meaningful regulatory reform."

In total, the SEC filed 664 civil complaints in 2009 against alleged fraudsters. In 2009, more than 150 Ponzi schemes collapsed, compared to about 40 in 2008, according to the AP’s examination of court records and FBI filings.

And that will heighten regulators’ vigilance against fraud schemes in 2010.

On Dec. 16, 2009, the SEC installed new rules for money managers—investment managers will require surprise inspections by the SEC. The ruling comes more than a year after Madoff admitted to his sons that his business is “one big lie.”

Mary Schapiro, current Chair of the SEC, said in a December meeting that the new guidelines came about from “the Madoff Ponzi scheme and other frauds in which investor assets were misappropriated by investment advisers. Such frauds have caused investors to question whether their assets are safe when they entrust them to an investment adviser.”

Previously, the SEC was criticized for not reining in Madoff earlier, despite several leads and tips that the SEC received but ultimately dismissed in prior years.




Saturday, January 2, 2010

Buying and Selling Thesis Papers Common in China

http://www.theepochtimes.com/n2/content/view/27315/

The buying and selling of academic thesis papers has become so common that in 2007 alone the sales revenue was between 180 million and 540 million yuan (S$26 million to $79 million), according to Chinese media reports.


Buyers from universities and research institutes purchase the theses they need over the internet, according to Associate Professor Shen Yang from Wuhan University School of Information Management, quoted in a Yangtze Daily report.

'Mindboggling' corruption

On Dec. 17, Sound of Hope radio interviewed two professors in China to find out more about the practice.

Dr. Sun, a retired professor from Shandong University, said it’s one of the ways that corruption in academia manifests. “Students, professors, and researchers—they are all involved. Students need to have their papers published in order to graduate,” he said. Professors and scientists need published papers to obtain promotions that reflect the status of their titles, and some Communist Party officials need an academic degree to gain a promotion, Sun explained, all of which drives the market. “The range of needs dictates the phenomenon of publication sales—a multi-million dollar business in Chinese society.”

It shows the corruption of Chinese society, Sun continued. “Plagiarism has always existed in China. Directors of academic departments are often politicians with power, but they lack an academic background. When they push for a promotion, besides bribing members of review boards, they pay for people to write research papers for them,” he said. With a loose review process for research papers, an ample sales market for them has formed. “The extent of the corruption within academic institutions is mindboggling.”

Dr. Jiao Guobiao, associate professor of Beijing University’s Department of Journalism, says that the evaluation process for the promotion of teachers, as well as prospective graduating students, all depends on whether they have published papers.

Jiao was blacklisted in China, meaning his name cannot appear in any Chinese media reports, after he published a scathing critique of the role of the Central Propaganda Department in 2004.

“China has rigid standards for who should write what kind of papers and under which circumstances. For students who also need to work part-time, it’s evident that they have neither the time nor the resources to write papers,” he said “They will end up buying their semester, year, or graduation papers. I know this is what happens.”

The Ministry of Education in China apparently plays at least a tacit role in the paper sales scheme. “The Ministry of Education or the universities only expect you to meet the requirement for the number of papers; their expectations are not based on whether you write them or not,” he said. “As long as you have a paper to meet the evaluation criteria, everyone is happy.”

Thousands in New Year Hong Kong March for Democracy

Pro-democracy demonstators march in Hong Kong on January 1, 2010 calling for universal sufferage and the release of political prisoners.
Pro-democracy demonstators march in Hong Kong on January 1, 2010 calling for universal sufferage and the release of political prisoners. ( Anthony Dickson/AFP/Getty Images)
[www.theepochtimes.com] HONG KONG - Thousands of Hong Kong residents appealed to China on New Year's Day to allow full democracy to be introduced soon in the city, as opposition lawmakers pressed forward with a mass resignation plan later this month.

Congregating outside the city's historic domed legislature, protesters carried colourful banners with slogans such as "Democracy Now!" and made their way to Beijing's representative office.

Some demonstrators held aloft portraits of Chinese dissident Liu Xiaobo, demanding the release of the prominent activist and writer, jailed last week for 11 years on a subversion charge.

Organisers said more than 30,000 protesters turned out for the New Year's Day "return our right to universal suffrage" march. Police put the number at around 9,000.

Hundreds of police erected steel barricades as protesters with loudhailers converged on Beijing's liaison office in the former British colony, returned to Chinese rule in 1997.

There were minor scuffles when police tried to prevent a small number of protesters from storming the office.

A group of five pro-democracy legislators plan to resign en masse from the city's legislature, following the release of a political reform blueprint for elections in 2012, which democracy advocates say does not go far enough.

The subsequent city-wide by-elections in Hong Kong's five major districts will trigger what the liberals say amounts to a symbolic referendum on full democracy.

Beijing has already promised to allow a full-scale election in Hong Kong in 2017 for the city's leader. But recent signs, including comments by pro-Beijing figures, have suggested Beijing may only allow a power-preserving version of democracy with rules stacked against opposition candidates.

Hong Kong's mini-constitution guarantees full democracy as an "ultimate aim" but the city's seven million people now have no direct say in their leader.

Beijing remains wary of upsurges of public discontent in Hong Kong, with Chinese premier Wen Jiabao recently warning Hong Kong's bowtie-wearing leader Donald Tsang to be wary of "deep-rooted conflicts". In 2003, half a million protesters spilled onto the streets in anger at the administration of Hong Kong's then-leader Tung Chee-hwa, who resigned soon afterwards.
http://www.theepochtimes.com/n2/content/view/27313/

Wednesday, December 30, 2009

Mainland Chinese Support Argentina’s and Spain’s Decisions on Genocide Case

http://www.theepochtimes.com/n2/content/view/27042/
December 31, 2009 by epochtimes | Edit

Rate This

Quantcast

Democracy activists like Mr. Sun Wenguang express that Chinese officials involved in the persecution against Falun Gong and democracy movements should be tried and appropriately punished. (The Epoch Times)

News of the Spanish court’s acceptance of the lawsuit against five Chinese officials for the genocide and torture of Falun Gong practitioners and Argentine judge Octavio Araoz de Lamadrid’s arrest warrant for Jiang Zemin and Luo Gan have spread among Chinese intellectuals and citizens. Many activists expressed their particular support for the charges against Jiang and Luo.

Hubei democracy activist Song Xiangxian thinks the legal actions undertaken in Spain and Argentina place the two countries at the forefront of civil rights history. Song believes such actions demonstrate leadership and advocacy for a system of values for humanity.

“The actions of Jiang Zemin and Luo Gan do not simply harm the Falun Gong community, but they plunder and encroach upon all of civilized humanity,” said Song. “Their crimes must be met with a corresponding punishment.”

Song believes that only free and democratic countries with independent judicial systems are capable of investigating these crimes and following through with the appropriate legal punishment.
Praise From Professors

Retired professor Sun Wenguang from Shandong University praised the prospect of a trial as a just act, saying, “Their crimes should be punished, I highly praise the judges.”

Retired professor Mr. Hu from the Chinese Foreign Affairs University in Beijing also voiced his support for bringing the leaders of the persecution of Falun Gong to justice in international courts.

“Since the Chinese regime always asserts that China is a country ruled by law, it needs to follow the standards of a country ruled by law,” said Mr. Hu.
Related Articles

* Spanish Judge Calls Top Chinese Officials to Account for Genocide
* Argentine Judge Issues Arrest Warrants for Chinese Officials
* Argentina Lawyer Speaks on Falun Gong Genocide Decision

Guizhou democracy activist Mr. Chen Defu, who has been following international lawsuits against Jiang for several years now, thinks the arrest warrants symbolize support for civil movements and a reprimand against the trampling of human rights in China.

“This arrest warrant is a warning to high ranking Chinese Communist Party (CCP) officials, warning them to not persecute Falun Gong practitioners and democracy activists. I think this is very good, very good. Now everyone is talking about this, so it is a form of encouragement for the disadvantaged groups being suppressed inside China.”

Residents in various areas of China have also expressed their support for the arrest warrants and demands for legal proceedings against the defendants. One Beijing resident wanted to express gratitude through Sound of Hope (an independent radio network) to all judges and lawyers involved in the lawsuit for their brave action and hard work.

In July 1999, Jiang single-handily launched a persecution against Falun Gong practitioners to eradicate the practice. The campaign against Falun Gong practitioners included orders to destroy their reputation, finances and physical bodies. Practitioners have been, and are being tortured and persecuted to death — and many are victims of organ harvesting. Practitioners tortured to death are counted as having committed suicide. The persecution is still ongoing in China today and affects thousands of citizens.

Tuesday, December 29, 2009

Family's House Demolished 'By Accident' While Away

http://www.theepochtimes.com/n2/content/view/27152/

By Gu Qing’er
Epoch Times Staff Created: Dec 29, 2009 Last Updated: Dec 29, 2009
Facebook icon Facebook Digg icon Digg del.icio.us icon del.icio.us StumbleUpon icon StumbleUpon Print | E-mail to a friend | Give feedback
Related articles: China > Society

The owners camp out on a cold December night after their house was demolished.
The owners camp out on a cold December night after their house was demolished. (Internet posts from China)

As Chinese families gather to celebrate the New Year holiday, one family won’t get the chance; authorities demolished their house while they were away, leaving them only a pile of rubble. The case of Li Xueping of Wuhan City, documented in pictures and text on Internet posts, alleges that authorities have adopted a new term for demolishing houses outside prescribed channels: doing it “by accident.”

On Dec. 11, Mr. Li returned to find that the five-story building he used to live in was in shambles. Apparently, while his family was away during the day, local authorities demolished the building to make way for new urban development.

Li’s family had never discussed the building’s potential demolition with local officials. When they went to the demolition bureau to protest, officials said that it was a mistake, and that his building had been confused with another. They added, however, that the building had been newly added to a list of those to be demolished in a later phase, and that the family shouldn’t cause trouble.

They agreed to give compensation to the Li family based on 180 square meters of building space. Li’s family contended that the building was 900 square meters. Since the building was demolished, and prior records were incomplete, Li’s family had no way of challenging the figure, the information online said.

Residential demolitions have been happening across China for over a decade to make way for large-scale redevelopment and expansion of urban centres, a process closely tied to the growth of the economy and soaring land prices. Under Chinese law, the state owns all urban land. Residents are supposed to receive the market value for their house when being relocated, but this amount is rarely enough to buy a house of similar price and location.

The residents hang read lanterns, which usually expresses holiday joy, to protest their treatment.
The residents hang read lanterns, which usually expresses holiday joy, to protest their treatment. (Internet posts from China)

The process of forced land acquisition is often enmeshed in corruption, as officials buy land off residences for nominal prices then sell it to developers at a large profit. Chinese who are on the receiving end of such raw deals sometimes resort to extreme measures to protest their treatment, including self-immolation, or violence directed toward the wrecking crews.

In this case the family only set up tents on the debris, and hoisted red lanterns with white banners to express their outrage. The banners read: “Illegal demolition [happened here], give us back our home;” “Forced demolition without compensation,” and “Yesterday our home was here, today it is gone.”

Demolitions later termed “accidents” have happened elsewhere, too, according to Mr. Liu Feiyue from Civil Rights & Livelihood Watch, an NGO based in China. He said it shows that there are deceptive practices and violations of citizens’ rights in the urban development process, partly reflecting the failure of rule of law in China.

Mr. Li and his family’s story generated responses expressing sympathy, anger, and hopelessness.

“This is what society is like today. Regardless of how long your family has lived on that land, whoever has money now owns the land. Is there really no one who will do something about this kind of forced demolition?” one user wrote.

Another thought the incident was no accident, writing “This method is commonly used in demolitions today. They first demolish the building, then make up excuses and call it a mistake. There is a legal loophole. This [method of forcing people to move] is much more effective than cutting off their water and electricity.”

“Such mafia-style demolition sucks the blood of ordinary citizens. The Yellow River and the Yangtze River are howling in rage,” another comment says.

Read the original Chinese article.

Internet Censorship Tightens in China

Internet Censorship Tightens in China

http://www.theepochtimes.com/n2/content/view/27167/

Latest attempt only spawns circumvention
By Gu Yunyin
Epoch Times Staff Created: Dec 29, 2009 Last Updated: Dec 29, 2009
Facebook icon Facebook Digg icon Digg del.icio.us icon del.icio.us StumbleUpon icon StumbleUpon Print | E-mail to a friend | Give feedback
Related articles: China > Regime

The CCP has blocked several hundred thousand Web sites in China. (Getty Images)
Several hundred thousand Web sites in China have been blocked as Chinese officials quietly carry out a new Internet censorship program, according to industry insiders.

There have been no public announcements regarding the shutdowns.

A so-called “white list” has been created. It is a list of Web sites that have been registered and certified to have no undesirable content.

Web sites that are not on the white list can no longer be viewed by Web surfers in China.
Killing Off 1,000 Innocents Rather Than Letting One Go Free

Mr Sun, a cyberspace service provider from Beijing, said the high-pressure policy started in December, and now Internet Data Centers (IDC) and Web sites nationwide have been shut down one after another. Sun said, “At present, the situation is quite severe. Now, in the entire Anhui Province, there is no Internet, and all telecommunication networks have stopped working.”

Currently, all IDC access providers are being closely monitored. Once a Web site is determined to be unacceptable, the entire server center hosting the Web site will be shut down.

An employee from West263 (www.west263.com) told Radio Free Asia on Dec. 24 that the policy is affecting businesses in a large area, as several overseas Web sites are no longer accessible.

”A ‘blacklist’ would be illegal, but a ‘white list’ is legal and is put on record,” the caller said.

According to a non-government statistical report released on the Chinese Internet, IDC servers in Shanghai, Sichuan, Anhui, Shandong, Zhejiang, Jiangsu, Guangdong, Henan, Hunan, Yunnan, and other provinces have all been shut down consecutively. In Shanghai alone, at least five or six major server sites have been affected.

A source at West263 said that in the past, the regime adopted a relatively relaxed attitude toward Web sites that walk a fine line. Now the attitude is: Better to kill 1,000 innocents than let one that is guilty go free.

According to a Web site owner, authorities have also recently tightened their control of video Web sites and will shut them down if they have not obtained a permit. Tudou.com and Sina.com are supported by the Communist Party and have the necessary permits. Those without the support of the Party will likely be shut down, he said.
Incentives for Anti-Blockade Software

Guangdong human rights lawyer Tang Xingling said the so-called “striking at false information,” and “controlling pornography and obscene information” are cover-ups often used by the Communist regime for its Internet censorship policies. Some well-known web portals in China contain undesirable content including false advertisements, pornographic pictures, and videos, yet the authorities have not shut down these portals.

Tang said: “It is inevitable that certain Web sites will be blocked; but when they are, Internet users will improve existing techniques to break through the Internet blockade or will look for new ways to circumvent this kind of information blockade.”

A web master, who asked to remain anonymous, stated that the public can still break through the regime's Internet blockade through the use of software such as Wujie, Freegate, Garden Network, etc. Furthermore, he wonders, what is the point of the authorities going through all of this trouble to control Internet access? In reality, though a lot of resources have been used, it is impractical from a technical perspective.