RoNada :: Flux ID [* - vezi toate fluxurile - selectat: articolele vechi afisate primele ]
Cautare fluxuri    
5637 rezultate pentru fluxuri
Melanie Slade - cea mai noua WAG din Premier League
Melanie Slade este prietena lui Theo Walcott, jucatorul lui Arsenal care a inscris trei goluri miercuri in poarta Croatiei! Doboară record după record în ceea ce priveşte performanţa la o vârstă atât de fragedă. Marchează în momentele cele mai importante şi driblează într-un mod imposibil de blocat. La 19 ani, Theo Walcott are deja ani buni în fotbalul britanic şi se anunţă unul dintre cei mai valoroşi jucători englezi. Se pare ca datorita lui Theo Walcott, zilele lui David Beckham la nationala Angliei sunt numarate!

[[ This is a content summary only. Visit my website for full links, other content, and more! ]]

camilressu@gmail.com :: Anglia /Girls :: Thu, 11 Sep 2008 14:38:00 -0500
949545 :: Flux ID :: 5158 :: http://sportro.blogspot.com/

Posh si Becks au lansat noua colectie Fragrance
David şi Victoria Beckham nu pot sta liniştiţi. Au reuşit într-un timp record să câştige şi inimile americanilor. Lansarea ultimului lor parfum demonstrează din plin acest lucru. Cei doi au reuşit să paralizeze traficul din New York, vineri seara, şi să facă Big Apple’s Herald Square neîncăpătoare din cauza fanilor, peste 2000. Sute de împătimiţi ai celor doi s-au înghesuit pentru a-i întâmpina, demolând astfel şi cea mai mică îndoială a faptului că nu ar fi iubiţi în noul lor cămin din America. Vedeta de la LA Galaxy, în vârstă de 33 de ani, şi fosta Spice Posh, 34 de ani, devenită între...

[[ This is a content summary only. Visit my website for full links, other content, and more! ]]

camilressu@gmail.com :: Girls :: Fri, 03 Oct 2008 13:58:00 -0500
949528 :: Flux ID :: 5158 :: http://sportro.blogspot.com/

O privire sceptica asupra "progresului"
Adeptii muncii pe branci, ai cresterii economice si ai imbogatirii, adica cei care se opun ideilor promovate de miscarea downshifting, se folosesc de termenul "progres" pentru a-si impune opinia. Progresul ar fi o valoare in sine, care ar fi ajutat enorm specia umana, iar downshiftingul ar impiedica un asemenea avans prin etica sa relaxata, combaterea muncii in exces si a imbogatirii. Cat de valabil este acest concept al progresului? Se poate spune ca ceea ce s-a intamplat fie si numai in istoria recenta este cu adevarat un progres?
Desi nu se pot nega anumite avantaje aduse de evolutia economico-tehnologica, o privire sceptica in acest domeniu se impune. Vom vedea imediat de ce prin scrierile lui Jared Diamond si Kirkpatrick Sale. Primul este un expert american in evolutionism, fiziolog si biogeograf recunoscut, castigator al Premiului Pulitzer si laureat al medaliai Nationale pentru Stiinta.
Iata ce scrie el in " The Worst Mistake in the History of the Human Race ":

"While the case for the progressivist view seems overwhelming, it’s hard to prove. How do you show that the lives of people 10,000 years ago got better when they abandoned hunting and gathering for farming? Until recently, archaeologists had to resort to indirect tests, whose results (surprisingly) failed to support the progressivist view. Here’s one example of an indirect test: Are twentieth century hunter-gatherers really worse off than farmers?
Scattered throughout the world, several dozen groups of so-called primitive people, like the Kalahari bushmen, continue to support themselves that way. It turns out that these people have plenty of leisure time, sleep a good deal, and work less hard than their farming neighbors. For instance, the average time devoted each week to obtaining food is only 12 to 19 hours for one group of Bushmen, 14 hours or less for the Hadza nomads of Tanzania. One Bushman, when asked why he hadn’t emulated neighboring tribes by adopting agriculture, replied, "Why should we, when there are so many mongongo nuts in the world?"
(...)
While farmers concentrate on high-carbohydrate crops like rice and potatoes, the mix of wild plants and animals in the diets of surviving hunter-gatherers provides more protein and a bettter balance of other nutrients. In one study, the Bushmen’s average daily food intake (during a month when food was plentiful) was 2,140 calories and 93 grams of protein, considerably greater than the recommended daily allowance for people of their size. It’s almost inconceivable that Bushmen, who eat 75 or so wild plants, could die of starvation the way hundreds of thousands of Irish farmers and their families did during the potato famine of the 1840s. (...)
Similar contrasts in nutrition and health persist on a global scale today. To people in rich countries like the U. S., it sounds ridiculous to extol the virtues of hunting and gathering. But Americans are an élite, dependent on oil and minerals that must often be iimproted from countries with poorer health and nutrition. If one could choose between being a peasant farmer in Ethiopia or a bushman gatherer in the Kalahari, which do you think would be the better choice? [... ]

Studies by George Armelagos and his colleagues then at the University of Massachusetts show these early farmers paid a price for their new-found livelihood. Compared to the hunter-gatherers who preceded them, the farmers had a nearly 50 percent increase in [tooth] enamel defects indicative of malnutrition, a fourfold increase in iron-deficiency anemia (evidenced by a bone condition called porotic hyperostosis), a threefold rise in bone lesions reflecting infectious disease in general, and an increase in degenerative conditions of the spine, probably reflecting a lot of hard physical labor. “Life expectancy at birth in the pre-agricultural community was about twenty-six years,” says Armelagos, “but in the post-agricultural community it was nineteen years. So these episodes of nutritional stress and infectious disease were seriously affecting their ability to survive.”

Iata asadar ca vietile asa-zisilor "salbatici" erau si, acolo unde e cazul, sunt mai relaxate si mai sanatoase decat cele ale celor care i-au urmat. Fermierii, considerati pe o treapta superioara a evolutiei fata de vanatori-culegatori se pare ca au avut parte de o existenta mult mai scurta si chinuita decat predecesorii lor.

Odata cu aparitia agriculturii, conform lui Diamond, „besides malnutrition, starvation, and epidemic diseases, farming helped bring another curse upon humanity: deep class divisions.” Pe scurt, ceea ce s-a considerat a fi un pas inainte a insemnat pentru populatie, din multe puncte de vedere, un adevarat dezastru.
Ca sa revenim la timpuri mai recente, este oare actuala oranduire planetara, dominata de capitalism, cu adevarat un semn de dezvoltare si progres? Kirkpatrick Sale, cercetator independent, ne ajuta sa gasim raspunsul. Nu, actuala stare de lucruri nu face decat sa ne indreptateasca sa credem ca progresul e doar un mit.

"E.E. Cummings once called progress a "comfortable disease" of modern "manunkind," and so it has been for some. But at any time since the triumph of capitalism only a minority of the world's population could be said to be really living in comfort, and that comfort, continuously threatened, is achieved at considerable expense.

Today of the approximately 6 billion people in the world, it is estimated that at least a billion live in abject poverty, lives cruel, empty, and mercifully short. Another 2 billion eke out life on a bare subsistence level, usually sustained only by one or another starch, the majority without potable drinking water or sanitary toilets. More than 2 million more live at the bottom edges of the money economy but with incomes less than $5,000 a year and no property or savings, no net worth to pass on to their children. That leaves less than a billion people who even come close to struggling for lives of comfort, with jobs and salaries of some regularity, and a quite small minority at the top of that scale who could really be said to have achieved comfortable lives; in the world, some 350 people can be considered (U.S. dollar) billionaires (with slightly more than 3 million millionaires), and their total net worth is estimated to exceed that of 45 per cent of the world's population.

This is progress? A disease such a small number can catch? And with such inequity, such imbalance?

In the U.S., the most materially advanced nation in the world and long the most ardent champion of the notion of progress, some 40 million people live below the official poverty line and another 20 million or so below the line adjusted for real costs; 6 million or so are unemployed, more than 30 million said to be too discouraged to look for work, and 45 million are in "disposable" jobs, temporary and part-time, without benefits or security. the top 5 percent of the population owns about two-thirds of the total wealth; 60 percent own no tangible assets or are in debt; in terms of income, the top 20 percent earn half the total income, the bottom 20 percent less than 4 percent of it.
All this hardly suggests the sort of material comfort progress is assumed to have provided."

Citat luat din articolul " Five Facets of a Myth ".

Totusi, nu se poate spune ca civilizatia a dus la sporirea duratei de viata? Nu este aceasta o dovada ca progresul aduce castiguri concrete si importante? Primul raspuns poate fi ca nu este clar cat de mult va dura aceasta longevitate, date fiind reducerea drastica si constanta a resurselor naturale si scaderea calitatii mediului inconjurator. Mai departe insa, jurnalistul Richard Heinberg scrie in "The Primitivist Critique of Civilization" :

"In terms of health and quality of life, civilization has been a mitigated disaster. S. Boyd Eaton, M.D., et al., argued in The Paleolithic Prescription (1988) that pre agricultural peoples enjoyed a generally healthy way of life, and that cancer, heart disease, strokes, diabetes, emphysema, hypertension, and cirrhosis--which together lead to 75 percent of all mortality in industrialized nations--are caused by our civilized lifestyles. In terms of diet and exercise, preagricultural lifestyles showed a clear superiority to those of agricultural and civilized peoples.
Much-vaunted increases in longevity in civilized populations have resulted not so much from wonder drugs, as merely from better sanitation--a corrective for conditions created by the overcrowding of cities; and from reductions in infant mortality. It is true that many lives have been spared by modern antibiotics. Yet antibiotics also appear responsible for the evolution of resistant strains of microbes, which health officials now fear could produce unprecedented epidemics in the next century."

Civilizatia si progresul au vindecat anumite boli, dar au si creat multe altele, iar progresul in durata de viata se pare ca se datoreaza unor factori mai putin spectaculosi si care nu necesita un grad de civilizatie iesit din coimun, care ar putea fi mentinute chiar si daca am renunta la multe din aspctele vietii moderne. De altfel avem in prezent exemple de populatii primitive ce bat recorduri de longevitate, precum cei din insulele japoneze Okinawa .

Ce concluzie tragem din aceasta expunere? Dupa ce am aflat ca primii umanoizi au avut parte de un trai mai relaxat si in privinte esentiale (miscare fizica si dieta) mai sanatos decat cei de azi; ca oranduirea sociala dominanta de azi a produs dezechilibre si inegalitati monstruoase, dublate de conditii de viata precare pentru un numar enorm de oameni; si ca unul dintre cele mai importante castiguri aduse de "progres" poate fi mentinut fara eforturi extraordinare, o privire sceptica asupra notiunii de "progres" se impune. Evident, nu trebuie sa renuntam la avantajele aduse de civilizatie, insa acestea se dovedesc considerabil mai putine decat la o prima vedere. Asadar, inainte de a ne irosi eforturile pe viitor manati de filosofia hei-rupista a muncii asidue si progresului, e cazul sa ne gandim de doua ori cu privire la utilitatea per-total a actiunilor noastre.
Redistributia veniturilor, reducerea inegalitatilor socio-economice si diminuarea drastica a cantitatii de munca trebuie sa devina la randul lor idealuri, intentia de a "progresa" devenind doar una dintre multele alte interese ale speciei umane.
downshifting_romania :: Spre egalitarism :: 2008-10-20T14:34:25.957-07:00
949465 :: Flux ID :: 4681 :: http://downshiftingromania.blogspot.com/

Capitalismul-aliatul libertatii si democratiei?
De multe ori auzim opinii conform carora capitalismul este garantul libertatii si al democratiei. In 1995, doi jurnalisti de investigatii, Dennis Bernstein si Laura Sydell, au publicat la Eclipse Enterprises o carte intitulata "Friendly Dictators: Trading Cards". In lucrare sunt prezentati peste 35 de dictatori sangerosi si lipsiti de scrupule care au fost ajutati sa obtina/pastreze puterea de SUA, o reprezentata emblematica a capitalismului mondial. Daca cei doi autori au dreptate, fie si numai pe jumatate din cazuri prezentate, rezulta ca echivalarea capitalismului mondial cu pacea, prosperitatea si mai ales libertatea individuala si drepturile omului trebuie pusa serios sub semnul intrebarii.
Care sunt, asadar, acei dictatori aliati ai SUA? Conform Bernstein si Sydell, lista ii cuprinde pe:Abacha, General Sani (Nigeria), Amin, Idi (Uganda), Banzer, Colonel Hugo (Bolivia), Batista, Fulgencio (Cuba), Bolkiah, Sir Hassanal (Brunei), Botha, P.W. (Africa de Sud), Branco, General Humberto (Brazilia), Cedras, Raoul (Haiti), Cerezo, Vinicio (Guatemala), Chiang Kai-Shek (Taivan), Cordova, Roberto Suazo (Honduras), Christiani, Alfredo (El Salvador), Diem, Ngo Dihn (Vietnam), Doe, General Samuel (Liberia), Duvalier, Francois (Haiti), Duvalier, Jean Claude (Haiti), Fahd bin'Abdul-'Aziz, rege(Arabia Saudita), Franco, General Francisco (Spania), Hitler, Adolf (Germania), Hassan II (Maroc), Marcos, Ferdinand (Filipine), Martinez, General Maximiliano Hernandez (El Salvador), Mobutu Sese Seko (Zair), Noriega, General Manuel (Panama), Ozal, Turgut (Turcia), Pahlevi, Shah Mohammed Reza (Iran), Papadopoulos, George (Grecia), Park Chung Hee (Coreea de Sud), Pinochet, General Augusto (Cile), Pol Pot (Cambogia), Rabuka, General Sitiveni (Fiji), Montt, General Efrain Rios (Guatemala), Salassie, Halie (Etiopia), Salazar, Antonio de Oliveira (Portugalia), Somoza, Anastasio Jr. (Nicaragua), Somoza, Anastasio, Sr. (Nicaragua), Smith, Ian (Rodesia), Stroessner, Alfredo (Paraguai), Suharto, General (Indonezia), Trujillo, Rafael Leonidas (Republica Dominicana), Videla, General Jorge Rafael (Argentina), Zia Ul-Haq, Mohammed (Pakistan).

Sa urmarim in cateva din cazuri care sunt legaturile dintre SUA si personajele amintite.

Fulgencio Batista:
"Cuban Army Sergeant Fulgencio Batista first seized power in a 1932 coup. He was President Roosevelt's handpicked dictator to counteract leftists who had overthrown strongman Cerardo Machado. Batista ruled or several years, then left for Miami, returning in 1952 just in time for another coup, against elected president Carlos Prio Socorras. His new regime was quickly recognized by President Eisenhower. Under Batista, U.S. interests flourished and little was said about democracy. With the loyal support of Batista, Mafioso boss Meyer Lansky developed Havana into an international drug port. Cabinet offices were bought and sold and military officials made huge sums on smuggling and vice rackets. Havana became a fashionable hot spot where America's rich and famous drank and gambled with mobsters. As the gap between the rich and poor grew wider, the poor grew impatient. In 1953, Fidel Castro led an armed group of rebels in a failed uprising on the Moncada army barracks. Castro temporarily fled the country and Batista struck back with a vengeance. Freedom of speech was curtailed and subversive teachers, lawyers and public officials were fired from their jobs. Death squads tortured and killed thousands of "communists". Batista was assisted in his crackdown by Lansky and other members of organized crime who believed Castro would jeopardize their gambling and drug trade. Despite this, Batista remained a friend to Eisenhower and the US until he was finally overthrown by Castro in 1959."

Mobutu Sese Seko
"When Zaire's first elected President, Patrice Lumumba, appeared to be getting too close to socialism, US companies feared they might lose control of Zaire's precious cobalt, copper, and diamonds. So the CIA stepped in, assassinated Lumumba, and replaced him with Mobutu Sese Seko. Since 1965, Mobutu has been the US's main man in Central Africa. Mobutu has amassed an estimated $5 billion personal fortune at his nation's expense. He is perhaps the only world leader who could pay his national debt from his own bank account. In fact, there seems to be no division between his pocket and the national treasury. In 1974, when the US sent $1.4 million to assist troops fighting a civil war, Mobutu pocketed the entire sum. And no foreign company sets itself up in Zaire without a tribute to Mobutu. Although Zaire has more resources than most other countries in the region, it is the fifth poorest."

Augusto Pinochet
"Augusto Pinochet deposed democratically elected President Salvador Allende in 1973, and buried Chile's 150 year old democracy. "Democracy is the breeding ground of communism", says Pinochet. The bloody coup, in which Allende was assassinated, was carefully managed by the CIA and ITT. Tens of thousands of Chileans have been tortured, killed, and exiled since then, according to Amnesty International. A U.S. congressional delegation was told by inmates at San Miguel Prison that they had been tortured by "the application of electric shock, simultaneous blows to the ears, cigarette burns, and simulated executions by firing squads." Despite Chile's bad human rights record, the U.S. government continued to support Pinochet with international loans. Even the state-sponsored car-bomb assassination of Chile's former Ambassador to the U.S., Orlando Letelier, did not convince the U.S. to break with Pinochet."

Pol Pot:
"The bombing of Cambodia by the US from 1969 to 1972, left 600,000 civilians dead, millions of refugees, tens-of-thousands dying from disease and starvation, and the Cambodian economy and culture in ruins. Cambodians blamed the US and the puppet regime of Lon Nol for the country's destruction, and gradually sided with the guerrilla army of the Khmer Rouge led by Pol Pot, which finally defeated Lon Nol, and took power in April, 1975. Once in power, Pol Pot emptied the cities, forcing the people into the countryside. Virtually all educated people were killed and more than 1.5 million people perished in this "holocaust". Only when the Khmer Rouge was ousted by Vietnam in 1979, did the terror stop. Washington took steps to preserve the Khmer Rouge as a counter force to the Vietnamese."

Suharto
"Indonesia is a totalitarian state and its uncontested ruler for over 20 years, General Suharto, is one of the most brutal dictators in history. After a CIA organized coup brought him to power in 1965, Suharto, decided to purge every communist subversive from Indonesian soil. General Nasution, a close associate of Suharto, called for the extermination of three million Indonesian communist party members, and with the CIA supervised the murderous purge. Paratroopers would arrive in a region with a list of "subversives" and provide it to local vigilante groups. Using machetes and other crude weapons, the vigilantes would hack the alleged subversives to death. Entire populations of towns and villages were herded to central locations and massacred."

Informatii luate de aici . Cei doi autori au si blog pe aceeasi tema, cu aceasta adresa .

downshifting_romania :: Spre egalitarism :: 2008-10-20T12:53:12.003-07:00
949464 :: Flux ID :: 4681 :: http://downshiftingromania.blogspot.com/

Amenintari globale
In iunie 2006 Oxford Research Group a publicat un raport intitulat " GLOBAL RESPONSES TO GLOBAL THREATS: SUSTAINABLE SECURITY FOR THE 21ST CENTURY ".
Printre altele, cercetarea indica faptul ca omenirea intampina patru mari probleme globale: schimbarile climaterice, competitia pentru resurse, marginalizarea majoritatii locuitorilor planetei si cursa inarmarii.

Le voi lua aici in discutie pe primele trei.
Schimbarile climaterice
"The Pentagon’s Office of Net Assessment (ONA) identifies climate change as a threat which vastly eclipses that of terrorism. A report commissioned by the head of the ONA, Pentagon insider Andrew
Marshall, and published in late-2003, concluded that climate change over the next 20 years could result in a global catastrophe costing millions of lives in wars and natural disasters. The report’s authors argue that the risk of abrupt climate change should be “elevated beyond a scientific debate to a US national security concern”.
Anyone doubting the serious security implications of environmental disasters, even for rich and powerful countries such as the United States, should simply look at the large-scale loss of life and
breakdown of society that occurred in New Orleans and other Gulf Coast cities (as well as rising petrol prices across the world) in a matter of days following Hurricane Katrina in August and September
2005. This is especially worrying because there has been a near doubling in the number of category 4 and 5 storms such as Katrina in the last 35 years, most likely as a result of rises in the temperature
of the surface levels of the sea."

Care este cauza acestor fenomene dezlantuite ale naturii? Consumul in exces de dioxid de carbon, laolalta cu cel al altor gaze cu efect de sera precum metanul.

"That is, unless carbon dioxide levels can be stabilised and the threat of global warming and climate change taken seriously. Time is of the essence. The average temperature of the earth’s surface has risen by 0.6 degrees Centigrade since reliable records began in the late 1800s. The European Union believes that the eventual rise in the global average temperature must be kept to within two degrees Centigrade of pre-industrial levels to ensure the continued safety of the human population.
However, some leading climate scientists suggest that if the concentration of carbon dioxide (CO2) in the atmosphere exceeds 400 parts per million (ppm), then there will be little hope of achieving this goal.
The concentration of CO2 in the atmosphere is currently 378 ppm, and increasing by about 1.5 ppm per year. If the scientists are correct, that leaves just 14 years before the 400 ppm point is reached and, in fact, some of the early effects of global warming are already apparent. In 2004, for example, the World Health Organisation estimated that current mortality attributable to man-made climate change was at least 150,000 people per year – with the highest proportion of these deaths occurring in Southern Africa (see map opposite)."

Competitia pentru resurse
" Summary of main points:
• Industrialised and industrialising states are increasingly dependent on imported resources, especially oil and gas.
• Oil is currently the main marketed fossil fuel and the Persian Gulf is the dominant region, with two-thirds of world reserves. It is a deeply unstable region with continuing potential for conflict as the United States seeks to maintain control against opposition from regional state and sub-state paramilitary groups.
• There is also a longer-term concern over trends in oil supplies and markets, in which China is rapidly becoming significant. This is partly because China, like the United States, can no longer produce enough oil from domestic fields and increasingly needs to import oil from
the Persian Gulf.
• Oil consumption is a primary cause of climate change and should be rapidly reduced for this reason alone. In a very real sense, the short-term nature of conflict in the Persian Gulf means that this liability of the oil-based economy should also be used to seek a rapid move to renewables."

Dezvoltarea, cresterea scelerata a economiei anumitor tari este factorul principal pentru acest dezastru ecologic.

Limitele dezvoltarii
"The ‘limits to growth’ debate of the 1970s was prompted by an early systems analysis study of the increasing human impact on the global ecosystem. It also did much to stimulate the early development
of the environmental movement. The original study of the same name, published in 1971 a few months before the UN Stockholm Environment Conference, was relatively crude and was much derided by market economists. While it was not predicting major problems for several decades, it did argue the case that there were limits to the capability of the global ecosystem to survive the effects of human
activity, not least in terms of pollution, resource depletion and food shortages.
In spite of the early criticisms, the experience of the past 30 years has done much to support elements of the Limits to Growth thesis. This includes depletion of maritime resources, erosion of biodiversity,
global pollution problems such as ozone depletion, and problems of deforestation. These, together with shortages of water resources and long-term issues of human malnutrition and famine are likely
to remain major factors in the coming decades, but there are also issues of resource depletion and potential conflict that are becoming particularly pertinent. Of greatest significance are the problems
now being caused by an excessive reliance on fossil fuels, especially oil and natural gas. Both as a source of conflict and as a major factor in climate change, the location and exploitation of oil, in particular, is of massive if largely unrecognised importance."

Marginalizarea majoritatii populatiilor de pe Terra
" Socio-economic Divisions
Globally, more than one billion people must try to survive on less than $1 a day and almost half of the world’s 2.2 billion children live in poverty.
Across the world, some 115 million children who should be in school are not – three-fifths of them girls. Indigenous peoples face persecution and the destruction of their lands for profit. Almost two billion people live in countries where regimes do not fully accommodate civil and political freedoms. About 900 million people worldwide belong to ethnic, religious or linguistic groups that face discrimination.
As a result of natural disasters, war and poverty, 815 million people in developing countries are suffering from acute hunger and each year ten million people die of hunger and hunger-related diseases, despite the fact that there is enough food available to feed the entire global population of 6.4 billion people. [...]

There is a clear and present danger in the world today: a complex interplay of discrimination, global poverty, majority world debt, infectious disease – the haves and the have nots – global inequality and deepening socio-economic divisions, that are key elements of current global insecurity. While overall global wealth has increased, the benefits of this economic growth have not been equally shared, with a very heavy concentration of growth in relatively few parts of the world.
The ‘majority world’ of Asia, Africa and Latin America is being marginalised as North America and Europe try to maintain their political, cultural, economic and military global dominance.
Unfair international trade rules, such as the high tariffs imposed by the EU, the USA and other Western countries on imported food, clothing and other goods, prevent poorer countries from developing their economies. Aid is often in the form of loans and is tied to products coming from the donor countries, or is directly tied to the privatisation of public services. Many of the least developed nations are crippled by the huge burden of debt that has been forced on them by economic circumstance and by other governments and international financial institutions. Multinational corporations exploit the natural resources of many countries with little or no benefit to the local population and little concern for the social and environmental impacts of their actions."

Iata deci in ce stituatie ne-a adus capitalismul actual, prevalent practic in toata lumea, in goana lui neimblanzita dupa profituri si mai mari, consum sporit spre infinit: mai mult de un miliard de oameni traieste cu mai putin de 1$ dolar pe zi, peste un miliard din copiii lumii traiesc in saracie, 815 milioane de oameni sufera de foame desi exista in prezent suficienta hrana incat sa acopere nevoile tuturor. Imperialismul si competitia pentru suprematie au creat imense inegalitati socio-economice, grave dezechilibre interne si internationale precum si epuizarea a cantitati insemnate de resurse naturale.

Exemplu concret de imperialism capitalist: SUA si razboiul contra terorii
"Despite the clear evidence of the security risks posed by climate change and related environmental issues, the US government, in particular, remains focused on projecting its influence and securing
access to resources. This is increasingly undertaken through the ‘war on terror’, which relies on an exaggerated perceived risk of the threat of international terrorism, without addressing the underlying
causes of that terrorism.
However, the US State Department’s own figures show that the number of US citizens killed each year by international terrorism is rarely more than a couple of dozen (see graph below).
Even in 2001, which saw the highest death toll from international terrorism on record, the number of Americans killed was around 2,500.
That number of innocent people killed is horrific, but in the same year in the United States 3,500 people died from malnutrition, 14,000 people died from HIV/AIDS, and 62,000 people died from pneumonia. The biggest killer in the USA that year was heart disease, which killed over 700,000 people. Over 30,000 Americans committed suicide that year and over 42,000 were killed in traffic accidents. In addition, there were nearly 30,000 firearm related deaths and over 20,000 homicides. [...]
Instead, the current US government and its allies have chosen a geopolitical ‘war on terror’ as it pursues its New American Century. Since 9/11 this has cost the US government an estimated $357
billion in military operations, reconstruction, embassy costs and various aid programmes in Iraq and Afghanistan, and for enhanced security at military bases around the world.
However, the human cost has been infinitely higher. In Iraq, now on the brink of civil war, at least 40,000 civilians and thousands of Iraqi military and police have been killed as a result of the invasion. To date the US has suffered nearly 2,500 military fatalities in Iraq, with nearly 18,000 thousand troops wounded in action and a similar number evacuated because of non-combat injuries and severe physical or
mental health problems.
In Afghanistan, while the Taliban may have been ousted from power,
more innocent civilians were killed as a direct result of military action there than died in the 9/11 attacks that prompted the US-led invasion.
In the two conflicts, the number of civilians seriously injured is likely to be in the region of one hundred thousand, and tens of thousands have been internally displaced.[...]
It was hoped by the planners in Washington and London that the removal of Saddam Hussein and the spreading of democracy to Iraq would eventually vindicate their policy of pre-emption. However, it has become clear that ‘democracy’ in this instance actually means the privatisation of state-run industries, plus elections."

Desi solutiile pentru aceste probleme globale sunt diverse si unele daca nu utopice, in orice caz ambitioase, precum descoperirea si implementarea pe scara larga a surselor de energie alternativa, nu se poate nega ca renuntarea la traiul excesiv de comod, daca nu chiar luxos al unora dintre tarile capitaliste "dezvoltate", e o solutie reala si imediata pentru prevenirea crizei. Rationalizarea hranei (mai putina dar mai sanatoasa) si energiei electrice, micsorarea dimensiunilor caselor si proprietatilor private, renuntarea la a circula cu automobile, sunt posibilitati la indemana care, departe de a fi costisitoare, presupun tocmai reducerea costurilor si consumului, laolalta cu evitarea unor noi catastrofe naturale, la randul lor din ce in ce mai costisitoare.
Politicile de redistribuire a veniturilor pot insemna scoaterea a milioane de oameni din saracie lucie si o egalizare, echilibrare a nivelelor de trai pe mapamond. Renuntarea la capitalismul devorator, consumerist, poate impiedica noi razboaie, acutizate in timp, asupra resurselor, si pierderi de sute de mii de vieti omenesti.
downshifting_romania :: Spre egalitarism :: 2008-09-22T08:40:09.843-07:00
949456 :: Flux ID :: 4681 :: http://downshiftingromania.blogspot.com/

Minus 25 de grade Celsius la Întorsura Buzăului

Minus 25 de grade Celsius la Întorsura Buzăului Cu şase zile înainte de prima lună adevărată a iernii s-a măsurat deja primul record de temperatură scăzută pe acest an. La Întorsura Buzăului din judeţul Covasna, stratul de zăpadă a atins 25 de cm iar temperatura aerului a scăzut până la -25 °C.

Întorsura Buzăului s-a dovedit mereu a fi una dintre cele mai friguroase localităţi din ţară. Temperatura cea mai scăzută s-a măsurat în luna februarie din anul 2005. Pe vremea aceea mercurul termometrelor a indicat -36 °C.

Oare suntem pregătiţi de noi valori record în ceea ce priveşte temperaturile scăzute din iarna al cărui haină s-a aşternut deja peste întreaga ţară ( sau aproape întreaga ţară )? Sunt curios dacă cei mai importanţi moguli de pe piaţa de retail din România or să introducă în ofertele lor împodobite cu multe rate şi calorifere ultimul răcnet ori rejouri colorate.

De fapt acum ar fi anotimpul investiţiilor pentru lansete de pescuit, pentru ca vara să ne axăm pe calorifere. Asta dacă se mai găsesc şi oameni nepretenţioşi şi fără fiţe din ţara asta, oameni care nu aleargă după plasme peste măsura buzunarelor lor.

foto şi ştire via mediatica.ro

:: :: Tue, 25 Nov 2008 06:30:00 +0000
949360 :: Flux ID :: 5188 :: http://www.henrich.ro/

Flex Camp Triangle - How Was It?

Table of contents

  1. Flex Triangle Bucharest - Flex Camp on 06.11.2008
  2. We Salute You From Flex Camp Triangle
  3. Flex Camp Triangle - How Was It?

As you know on 6th of November we had Flex Camp Triangle (see also myadobe.ro ). A few days has passed and after some “cold thinking” I’m writing some thoughts on about the conference.

It has been a great Flex Camp and the focus was on the newly launched Flash Player 10 and what can be done with it.

Matt Chotin did broadcast his keynote directly from USA focusing on Flash Player 10 and its new features.

Mihai Corlan explained us when, how and why to use AIR and he presented an AIR application coded for MotorPlay . Mihai Corlan and Mihai Pricope did consulting and development for MotorPlay and they did build this application. Another application presented was BlackBookSafe application that will be presented at Adobe Max. BlackBookSafe is build on AIR 1.5 that will be released this year.

Cristian Pascu presented Flair Builder which is a under-development mock-up tool. A lot of work done but frankly all that Flair Builder do can already be done in Flex Builder. Flex Builder can be used with very much success to create mock-ups. We were not impressed by Flair Builder and although everybody laughed Cristi’s remarks on Adobe products were out of the line.

We liked Dragos Dascalita presentation on UI and skinning with AIR. On the same presentaton he touched some issues that are in Flex SDK, issues of DataGrid. Dragos explained that we can use Repeater to create a data grid like control and when to use each one of them.

Mihai Pricope did show us Pixel Bender . Wonderful presentation! He bended: images, videos and sounds. All mathematics!

Victor Dramba presented Cabanova a RIA product made in Romania - a site builder. Impresive work! Project is based on Actionscript 2 and doesn’t use Flex SDK.

The sessions are recorded and can be viewed following this link: https://admin.adobe.acrobat.com/_a295153/p16808009/

Some pictures Fx{r} did take are here: http://www.flexer.info/2008/11/06/we-salute-you-from-flex-camp-triangle/ .

The conference was a success and we are looking forward for the next one.

Andrei Ionescu :: Flex in the world / Flex news / Flexer / flex / Flex camp :: Mon, 10 Nov 2008 09:10:12 +0000
949261 :: Flux ID :: 5213 :: http://www.flexer.info

Calendarul Greenfield al zilei - 12 noiembrie 2008
 

1833    - S–a născut compozitorul Alexandr Borodin (m. 27 februarie 1887)

1840    - S-a născut sculptorul francez Auguste Rodin (m. 1917)

1862    - S–a născut omul politic Vasile Goldiş, membru al Academiei Române (n. 12/24) (m. 10 februarie 1934)

1866    - S–a născut Sun Yat–Sen revoluţionar şi om de stat chinez. Fondator şi prim preşedinte al Republicii China între anii 1911 şi 1912, doctrina sa a stat la originea celor două căi pe care s–a dezvoltat ulterior societatea chineză divizată, a Republicii Populare Chineze şi a statului–insulă Taiwan  (m. 12 martie 1925)

1869    - A încetat din viaţă Gheorghe Asachi, întemeietor al presei şi al teatrului românesc în Moldova. (n. 1788)

1871    - Se inaugureaza Uzina de gaz aerian de la Filaret.

1912    - S–a născut Emil Botta, poet, prozator, actor (m. 24 iulie 1977)

1915    - S-a născut Roland Barthes, eseist şi critic literar francez (m. 25 martie 1980)

1916    - Primul război mondial: în împrejurările unei iminente ocupaţii germano-autsro-ungare, autorităţile de stat părăsesc Bucureştiul şi se mută la Iaşi.

1929    - S–a născut actriţa Grace Kelly, cea care a devenit în 1956, prin căsătoria cu prinţul Rainier de Monaco, celebra Prinţesă Grace de Monaco (m. 14 septembrie 1982)

1929    - S-a născut scriitorul german Michael Ende (“Povestea fără sfârşit) (m.1995).

1934    - A încetat din viaţă Pimen (Petru) Georgescu, mitropolit al Moldovei, membru de onoare al Academiei Române (n. 1853)

1950    - S–a născut prozatorul Mircea Nedelciu  (m. 12 iulie 1999)

1982    - Iuri Andropov este desemnat succesor al lui Leonid Brejnev, în funcţia de secretar general al CC al PCUS.

1990    - Prinţul Akihito devine cel de al 125 împărat al Japoniei.

1998    - Societatea naţională de telecomunicaţii Romtelecom a fost privatizată în urma semnării contractului de vânzare-cumpărare pentru 21,21% din acţiunile de stat către firma Hellenic Telecomunication Organization – OTE – din Grecia.

2000    - A încetat din viaţă Henri Mălineanu, compozitor de muzică uşoară, muzică de film şi teatru; („Ce cauţi tu în viaţa mea”, „Cele mai frumoase fete”, „Inimă nestatornică”) (n. 25 martie 1920)

2001    - Războiul din Afganistan: forţele talibane părăsesc capitala Kabul

2001    - A încetat din viaţă, la vârsta de 73 de ani, Adhemar Ferreira da Silva, singurul atlet brazilian care a câştigat două titluri olimpice şi a stabilit şapte recorduri mondiale, în proba de triplusalt.

2002    - Institutul Social Român şi-a reluat, la 54 de ani de la desfiinţare, activitatea de cercetare în domeniul ştiinţelor sociale. ISR şi-a propus să continue, într-o formă modernă, activitatea de cercetare şi acţiune socială realizată, în perioada 1919-1948, de Institutul Social condus de profesorul Dimitrie Gusti.

2002    - Noul ambasador extraordinar şi plenipotenţiar al Regatului Marii Britanii şi Irlandei de Nord la Bucureşti, Quinton Mark Quayle, i-a prezentat preşedintelui Ion Iliescu scrisorile de acreditare

2003    - Sfântul Sinod al Bisericii Ortodoxe Române (BOR) s-a pronunţat împotriva proiectului Roşia Montană Gold Corporation, apreciind că acesta "ar desfigura atât ecologic cît şi uman" zona Roşia Montană din Munţii Apuseni.

2004    - Colin Powel şi-a anunţat retragerea din funcţia de secretar de stat al SUA. Preşedintele George W. Bush a propus-o în această funcţie pe Condolenza Rice.

2004    - A încetat din viaţă Alexandru Vona (Alberto Enrique Samuel Bejar y Mayor), prozator şi poet, stabilit în Franţa din 1947 („Ferestrele zidite”) (n. 3 martie 2004)

2006    - Protocolul privind dispozitivele explozibile de război, care obligă cele 25 de state membre să efectueze sau să finanţeze operaţiuni de deminare post-conflict, a intrat în vigoare.

2007    - Scriitorul american Ira Levin, autorul horror-ului clasic "Un copil pentru Rosemary" şi al thriller-ului nazist "The Boys from Brazil", a murit.  (n. 1929)

2007    - Guvernul italian adoptat oficial directiva Comisiei Europene de recunoaştere a calificărilor profesionale din România şi Bulgaria, ţări care au devenit membre UE la 1 ianuarie 2007.  
altmariusistoric :: Calendar :: Wed, 12 Nov 2008 16:18:02 +0300
949191 :: Flux ID :: 5199 :: http://altmariusistoric.weblog.ro

Windows Vista SP2

   E, a venit si momentul asta. Miercurea viitoare, MS va distribui o versiune beta de evaluare unui grup restrans de membrii TAP (Technology Adoption Program).

   Aparent toate programele care ruleaza pe Vista acum (+/-) SP1 vor fi capabile sa ruleze si pe SP2. Si asta o zice MS, nu producatorii de software (inclin sa cred mai mult MS la treburi de compatiblitate si legacy pentru ca ei controleaza mediul de lucru).

   Service pack-ul va fi acelasi (fizic) si pentru Vista si pt Server 2k8, respectand tendinta MS de a simplifica implementarea tehnologiilor.

   Schimbari anuntate pana acum (pe langa blah blah-ul prezent la fiecare SP):

sursa

AvionarU :: random / IT / microsoft / service pack / vista / windows :: Fri, 24 Oct 2008 23:47:07 +0000
949028 :: Flux ID :: 5167 :: http://www.avionaru.ro

Flex and PHP: remoting with Zend AMF

The last PHP library that adds support for AMF and remoting, is Zend Framework. The prelease version 1.7 offers a new component Zend_AMF, that let’s you create Flex applications that talk to PHP backends using remoting. As I am a big fan of remoting as a way to get your data in Flex/AIR clients, I wanted to add a short post explaining how to do use it ( here is another post I wrote on remoting with AMFPHP). Actually this post, is a part of a larger article I did for Adobe Developer. I want to keep it more focus, and thus I wrote this one.

You can download a Flex Builder project that contains the code I explain in this article from here . Inside of the archive you will find a readme.txt file explaining what to do with it.

Installing the Zend Framework

After downloading the Zend Framework 1.7 archive, extract the files. Next, you have to add the folder library to your PHP include path. Open the php.ini file and add the path to the library folder to the include_path; on my machine this is looking like this:
include_path = “c:\htdocs\zend_framework\library”

Next you have to save the file and restart the web server. You can read more about installing Zend Framework here . With this, you’ve completed the “installation” of Zend Framework.

What is AMF and Remoting and why should you use it?

If you already know these answers, you may want to skip to the next section. Let’s start by understanding of remote procedure calls. Remote procedure calls let Flex applications  make direct calls on the methods of your server side classes. Using BlazeDS or LCDS you can expose your Java and ColdFusion classes to the Flex application. However, if you use PHP you need a third party library on the server to expose PHP classes directly. Existing solutions include Zend AMF, WebOrb, and AMFPHP. This article focuses on remoting with Zend AMF. AMF is a binary protocol for serialize the messages. Because it is binary, it is more efficient in terms of bandwidth and server processing load than JSON or XML methods. If you want to see for yourself, James Ward has put together a nice benchmark .

Zend AMF is a PHP library that knows how to serialize and deserialize the AMF protocol (it is part of the Zend Framework starting with version 1.7), and thus lets you expose PHP classes to Flex applications. Another compelling reason for using remoting is code reuse. Because you can call methods on PHP classes and these methods can return PHP objects, you don’t have to modify your existing code to output JSON or XML.

As I said earlier, Zend AMF remoting uses AMF for serializing messages between the server and Flex client. And it offers a nice feature to map an ActionScript class to a PHP class. For example, suppose you want to display in Flex the information from a table with the following structure:

contacts
 -------------------------------
 id      primary key  int 
 name    varchar(255)
 email   varchar(255) 

When using remoting, you create an ActionScript class to model this data in the client and a PHP class to model the same data on the server. When you create the PHP class that you want to call from Flex, you add a method that, for example, retrieves all the contacts from the table. This method will return an array of PHP model classes. This is what you need to do. And in Flex you will get an array of ActionScript objects. All the conversions from PHP to AMF format and from AMF format to ActionScript objects are done automatically for you by  Flex and Zend AMF.

When you use XML or JSON for remoting, usually you need extra steps in Flex to process the data in order to display or store it.

Let’s look at a working example.

Create the Flex PHP project

Usually, when I work with Flex and PHP projects, I prefer to use Flex Builder and Zend Studio installed together. Though you can work with Flex Builder and some PHP plug-in to help you with the PHP code. Either way, you should create a Flex project that uses PHP as server side (if you plan to use Zend Studion and Flex Builder, then first create a Zend PHP Project, then using the wizard Add Flex Nature, add Flex PHP nature on the project). This way you streamline the deployment of the SWF file (the compiled result of the Flex project) to the PHP server. I choose to create a new project called “flex_php”.

Next, I create a folder inside the PHP server root “zendamf_remote”, and I add this folder to the project using “New > Folder” and then click on the “Advanced” button. If you want to have the source files for the Zend Framework available to your project, and you use Zend Studio too, then open the properties page for the project, and go to PHP Include Path > Libraries tab, and add External Folder… pointing to the place where the Zend Framework is installed.

Create the PHP code

In the “zendamf_remote” folder, I create three php files: MyService.php, VOAuthor.php, and index.php. Open the MyService.php page and paste this code (you need to update the connection information for your specific database setup; to do this, look for the four constants at the top of the class):

 'VOAuthor.php' );
  //conection info 
 define( "DATABASE_SERVER" ,  "localhost" );
 define( "DATABASE_USERNAME" ,  "mihai" );
 define( "DATABASE_PASSWORD" ,  "mihai" );
 define( "DATABASE_NAME" ,  "flex360" );
 
  class  MyService {
  /** 
  * Retrieve all the records from the table 
  * @return an array of VOAuthor 
  */ 
  public   function  getData() {
       //connect to the database. 
       //we could have used an abstracting layer for connecting to the database. 
       //for the sake of simplicity, I choose not to. 
      $mysql = mysql_connect(DATABASE_SERVER, DATABASE_USERNAME, DATABASE_PASSWORD);
      mysql_select_db(DATABASE_NAME);
       //retrieve all rows 
      $query =  "SELECT id_aut, fname_aut, lname_aut FROM authors_aut ORDER BY fname_aut" ;
      $result = mysql_query($query);
 
      $ret = array();
       while  ($row = mysql_fetch_object($result)) {
      $tmp =  new  VOAuthor();
      $tmp->id_aut = $row->id_aut;
      $tmp->fname_aut = $row->fname_aut;
      $tmp->lname_aut = $row->lname_aut;
      $ret[] = $tmp;
      }
      mysql_free_result($result);
       return  $ret;
 }
  /** 
  * Update one item in the table 
  * @param VOAuthor to be updated  
  * @return NULL 
  */ 
  public   function  saveData($author) {
  if  ($author == NULL)
       return  NULL;
       //connect to the database. 
      $mysql = mysql_connect(DATABASE_SERVER, DATABASE_USERNAME, DATABASE_PASSWORD);
      mysql_select_db(DATABASE_NAME);
       //save changes 
      $query =  "UPDATE authors_aut SET fname_aut='" .$author->fname_aut. "', lname_aut='" .$author->lname_aut. "' WHERE id_aut=" .  $author->id_aut;
      $result = mysql_query($query);
       return  NULL;
 }
 }
 ?> 

This is the class you will call from Flex. It has two methods: one for get all the records from the table, and another to update the values for one record.

Let’s create the code for the Value Object, the data model. This is used by MyService class to wrap one row from the table. Thus, the method getData() returns an array of VOAuthor, and the method saveData() receives one argument: the VOAuthor of the row that was changed. Select the file VOAuthor.php and paste this code:

 class  VOAuthor {
       public  $id_aut;
       public  $fname_aut;
       public  $lname_aut;
 }
 ?> 

As you can see, this class is very simple; it just provides the same members as the fields from the table. Finally let’s create the code for index.php file. This is the plumbing code that expose the MyService class to Flex clients with the help of the Zend AMF. Paste the following code:

 'Zend/Amf/Server.php' );
 require_once( 'MyService.php' );
 
 $server =  new  Zend_Amf_Server();
  //adding our class to Zend AMF Server 
 $server->setClass( "MyService" );
  //Mapping the ActionScript VO to the PHP VO 
  //you don't have to add the package name 
 $server->setClassMap( "VOAuthor" ,  "VOAuthor" );
 echo($server -> handle());
 ?> 

I use an instance of Zend AMF server to create a PHP end point that can be called from Flex. Then I register the MyService class to the server, thus I can call this class from Flex. And finally I map the ActionScript data model (VOAuthor) to PHP VOAuthor data model.

When you use remoting, you get for free the casting of the data to the right type. For example: MyService.getData() method returns an array of VOAuthor PHP objects. However, as you will see later, in Flex the result is an array of VOAuthor ActionScript objects.

Creating the Flex application

Now that you have the PHP code in place, you are ready to create the Flex code that will call the PHP class. What I want to have is a Flex application that has a button to get the data from the server, uses a data grid to display the data, and you can use this data grid to edit any cell but ids. Whenever a cell is edited, the update is send automatically to server to be saved to the database as well.

First, be sure to select the Flex perspective from the top right icons of Eclipse.

The first thing you need to do is to create a configuration file that Flex can use in order to reach the PHP service. For that create the file services-config.xml in the root of the project, and open it. Copy this code inside of it:

 "1.0"  encoding= "UTF-8" ?>
  
      
          "amfphp-flashremoting-service"   class = "flex.messaging.services.RemotingService"  messageTypes= "flex.messaging.messages.RemotingMessage" >
              "zend" >
                  
                      ref = "my-zend" / >
                  
                  
                      * 
                  
              
          
      
      
          "my-zend"   class = "mx.messaging.channels.AMFChannel" >
              "http://localhost/zendamf_remote/"   class = "flex.messaging.endpoints.AMFEndpoint" / >
          
      
   

What it might be different for your configuration is the endpoint node (at the bottom of the file), your URL to the zendamf_remote folder might be different. Set the value accordingly to your setup.

Now you need to tell Flex Builder to use this file when compiling the project. So, right click on the project name in the Project Explorer and choose Properties. Select Flex Compiler and add to the Additional compiler arguments field this: -services “absolute_path_to_services_config.xml”:

Adding services_config to compile arguments

You will use a RemoteObject to communicate with the server, so add a mx:RemoteObject tag. You need to set the source attribute to MyService (this is the PHP class name) and the destination to zend – this is the destination created in services-config.xml file. Also give a name to this object by adding an id attribute and set it to myRemote, and set the attribute showBusyCursor to true (this will render the mouse icon to a watch whenever a call is made, until the response from the server is received). The code should look like this:

 "myRemote"  destination= "zend"  source= "MyService"  showBusyCursor= "true" >
   

Now you need to declare the methods you want to call on the PHP class, and add the listners for fault and result. The code is:

 "myRemote"  destination= "zend"  source= "MyService"  showBusyCursor= "true"  fault= "faultListener(event)" >
       "getData"  result= "getDataListener(event)" / >
       "saveData"  result= "saveDataListener(event)" / >
   

Next you need the UI for making the call to the server and display/edit the data. A button and a data grid will do. So, add this code above the remoteObject code:

 "30"  left= "100" >
             "Get data"  click= "{myRemote.getData()}"  / >
             "myGrid"  editable= "true"  itemEditEnd= "save(event)" / >
   

As you can see, the button calls the getData() method on the remoteObject. The data grid has an event listener registered for the itemEditEnd event.

The last step is to create the listeners we declared so far. For this, add a mx:Script tag to your MXML application and define four functions in it:

 
       /** 
              * listener for the data grid's itemEditEnd event 
              */ 
            privatefunction save( event :DataGridEvent): void  {
                  //we don't want to update the id of the item 
                  if  ( event .dataField ==  "id_aut" ) {
                       event .preventDefault();
                       return ;
                 }
                  //retrieve the new value from the item editor instance 
                  var  dataGrid:DataGrid =  event .target  as  DataGrid;
                  var  col:DataGridColumn = dataGrid.columns[ event .columnIndex];
                  var  newValue:String = dataGrid.itemEditorInstance[col.editorDataField];
                  //retrieve the data model that was edited 
                  var  author:VOAuthor =  event .itemRenderer.data  as  VOAuthor;
                  // if the value wasn't change, exit 
                  if  (newValue == author[ event .dataField])
                       return ;
                  //update the model with the new values      
                 author[ event .dataField] = newValue;
                  //call the remote method passing the data we want to be saved 
                 myRemote.saveData(author);
            }
             /** 
              * Result listener for get data operation 
              */ 
            privatefunction getDataListener( event :ResultEvent): void  {
                  //set the result array as data provider for the data grid          
 myGrid.dataProvider =  event .result  as  Array;
            }
             /** 
              * Result listener for save data operation 
              */ 
            privatefunction saveDataListener( event :ResultEvent): void  {
                 Alert.show( "The data was saved!" );
            }
             /** 
              * Fault listener for RemoteObject 
              */ 
            privatefunction faultListener( event :FaultEvent): void  {
                 Alert.show( event .fault.message,  "Error" );
            }
 ]]>
   

Finally, you need to create the ActionScrit Value Object that will act as a data model for the data send from PHP. Right click on the src folder from Flex Navigator, and choose New > ActionScript class. Enter as package org.corlan, and as name VOAuthor and click OK. Now it is time to add the members and some meta-data:

package org.corlan {
      [RemoteClass(alias= "VOAuthor" )]
      [Bindable]
      publicclass VOAuthor {
            publicvar id_aut: int ;
            publicvar fname_aut:String;
            publicvar lname_aut:String;
      }
 } 

The RemoteClass meta-data is very important. This is telling to the ActionScript that the remote class (the one from PHP) that maps this it is called VOAuthor. If you forget this or you misconfigure, you will get generic objects in ActionScript instead of VOAuthor, and associative arrays instead of VOAuthor in PHP.

You are done. There shouldn’t be any errors.

Now you are ready to test the code. Start the Flex application by clicking Run in the toolbar. When the application opens in your default browser, click on the Get data button. You should see the data grid populated with some data:

Testing the application

To edit the items, just double click on any name and change something. After finishing the editing, just clik somewhere else than the data grid. The changes will be send to the server. If you don’t believe me, just go to the database and see the records.

Editing a cell

That was it people!

Mihai Corlan :: Flex / PHP :: Thu, 13 Nov 2008 15:56:23 +0000
948818 :: Flux ID :: 5117 :: http://corlan.org

0  1   2   3   4   5   6   7   8   9   10  

Cautarea unui cuvant in titluri sau articole poate da rezultate diferite.
Sari in sus!