Friday, September 14, 2007

Blu-Ray PS3 wins in dollars/features ratio over HDDVD+Xbox360...

A lot has been written lately about the High-Definition standard wars of Blu-Ray vs HDDVD.

I only have enough money to buy a single console and HD movies player,
so I have done the math using prices from Amazon.com:

Sony PS3 (60 Gb) console: $499
http://www.amazon.com/gp/product/B0009VXAM0

Sony PS3 Blu-Ray remote $24
http://www.amazon.com/gp/product/B000M17AVO

Sony PS3 cordless Media Keyboard $65
http://www.amazon.com/gp/product/B000MFLBBK

Total: $ 589

Storage: 60GB
Full-size wireless Keyboard: Yes
Runs Linux without mod: Yes, [4, afaik] Yellowdog for PS3 , Fedora-PPC, Ubuntu-PPC, Gentoo

vs

Xbox 360 - 20Gb: $349
http://www.amazon.com/gp/product/B000B43OY4

Xbox 360 HD-DVD player add-on: $180
http://www.amazon.com/gp/product/B000JHO4L0

Xbox 360 Media Remote: $20
http://www.amazon.com/gp/product/B000B6MLSM

Tiny clumsy Xbox rubber mini-Keyboard: $30
http://www.amazon.com/gp/product/B000UN3UDQ

Total: $579

Storage: 20GB

plays HD movies: YES, but with Bulky add-on

You fund an evil corporation which is also a convicted monopolist: YES
Runs Linux without mod?: NO
Full-size wireless keyboard: NO

Game over, Sony's PS3 wins. :)

Price difference:
Sony's $10 more expensive, big freaking deal. :)

Tuesday, September 11, 2007

Another 9/11 - but in Chile

REMEMBERING SALVADOR ALLENDE, AND CHILE's own 9/11

When the new generations hear the words "September 11" they think about the attack on the twin towers in New York.

But there was another September 11 as painful -if not more- for Latin Americans...

Here goes my little homage to a man who valued and kept his words till the end. A man betrayed by power-hungry criminals because the Empire up North wanted to prevent him setting a "bad example" on the region.





















Last words of Salvador Allende (Spanish):

Get this widget | Share | Track details

[English translation here]

Some related reading... :

CIA acknowledges involvement in Allende's overthrow, Pinochet's rise
http://archives.cnn.com/2000/WORLD/americas/09/19/us.cia.chile.ap/

Herald Tribune: Former aide links Pinochet and son to drug trade
http://www.iht.com/articles/2006/07/11/news/chile.php

CHILE 1964: CIA COVERT SUPPORT IN FREI ELECTION DETAILED
http://www.gwu.edu/~nsarchiv/news/20040925/index.htm

Colin Powell: U.S. "not proud" of 1973 covert action in Chile
http://www.fas.org/irp/news/2003/02/dos022003.html

Riggs bank hid Pinochet's fortune
http://www.washingtonpost.com/wp-dyn/articles/A50222-2004Jul14.html

Tinker Bell, Pinochet and the Fairy Tale Miracle of Chile - Greg Palast
http://www.gregpalast.com/tinker-bell-pinochet-and-the-fairy-tale-miracle-of-chile-2/

Chile's privatization failures
http://www.tcf.org/list.asp?type=NC&pubid=962

The fall of a myth - Chile reforms its privatized Education and Social Security systems [Spanish]
http://64.233.169.104/search?q=cache:IKZMLcmjmhoJ:www.cep.cl/Cenda/Cen_Documentos/Pub_MR/Libros/Libro_2006/Libro_2006.doc+chile+cuenta+secreta+pinochet+barings&hl=es&ct=clnk&cd=1&gl=ar

The Case Against Pinochet
http://www.gwu.edu/~nsarchiv/NSAEBB/NSAEBB125/index2.htm

New Evidence: U.S. OK'd Argentina's 'Dirty War'
http://www.commondreams.org/headlines03/1204-01.htm














"-This is admiral Caravajal, ¡I want to speak to the President!

-This is the president speaking
After a few moment, the president's voice
lashed out like a whip:

-¡What do you think, you sh*tty traitors!... ¡Take your plane up your ass!... ¡You're speaking to the President of the country. And the president, elected by the people, does not surrender!

--Salvador Allende, under siege by the military coup, in La Moneda presidental palace, Sept. 11, 1973


[From "Salvador Allende: how the white house caused his death"].
[Published by El Ateneo. ISBN 950-02-7452-3]
















"History is not stopped by repression or crime. This is a stage that will be overcome. This is a hard and difficult moment: it is possible they will crush us. But tomorrow will belong to the people, will belong to the workers. Humanity advances to conquer a better life."

-Salvador Allende's last words message, from La Moneda, Sep-11-1973

(full translation at "Allende's Last Words")

Thursday, August 30, 2007

Humor: the "human age" of nations

[I received this as a chain letter. The original was in Spanish and claims to be written by someone by the name HernĂ¡n Casciari (supposedly from Argentina). Here's my attempt at an English translation]

THE HUMAN AGE OF NATIONS
I read once that Argentina is no worse or better than Spain, only younger.

I liked that theory so then I invented a trick to discover the true "mind age" of nations, taking the "dog system" as a base, and thus equaling countries' ages with human ages.

Since our childhood, we were told that to know if a dog was young or old, to get its "human age" we should multiply its biological age by 7. I found that to find the human age of a nation, we must divide its historical age by fourteen, to get the corresponding "human age" value.

Is it confusing? In this article I'll give you a few revealing examples:

Argentina was born in 1816, so it's already 190 years old. If we divide that age by 14, Argentina has a "human age" of 13 and a half years. That means it's a wanker, a rebel, questions authority, has no memory, answers everything without thinking, and it's full of pimples.

Almost all the countries in Latin America have the same age, and as it happens in that case, they get together, hang around doing nothing, and end up creating gangs.

The Mercosur* gang (Argentina, Brazil, Chile, Uruguay, Paraguay) are a group of teenagers that formed its own rock band. They rehearse in a garage, make a lot of noise, and still haven't got any album released.

Venezuela, which just got its tiny tits, it's about to join them to do the chrorus. In reality, as happens in most cases, she wants to have sex... in this case with Brasil, which has 14 years and a big penis.

Mexico is also a teenager, but with Indian roots. That's why it laughs so little and doesn't even smoke a joint, as the rest of their friends do. Instead, Mexico chews peyote, and hangs around the United States, a brain-damaged spoiled 17 years old rich kid whose idea of fun is attacking younger, starving six year olds in other continents.

In the other extreme is ancient China. If we divide its 1,200 years by 14 we get a "human age" of 85. China is a conservative old woman, that smells of cat pee, and which spends all day eating rice because it still doesn't have -but soon will- enough money to afford the machinery to create herself her own false teeth.

China has an 8 years old grandchild, Taiwan, which gives her hell. China says Taiwan is a walking menace.

China has been long divorced with Japan, an old grumpy man, which is living with the Philippines, a young bitch that does anything for money.

Then... we have the countries that are just old enough to vote and which go for a ride in their father's BMW... for instance, Australia and Canada, typical countries which grew in the safety and protection of its fathers, the UK and France, with a strict and aristocrathic education, and whom are now living a fast life.

Australia is a 18 years old bimbo, doing topless and having sex with South Africa, while Canada us a gay child living on his own... exploring the option of adopting Groenland as a baby to form one of those "alternative" families so much in vogue these days.

France is a divorced 36 years old woman, a sex machine, but very respected in professional and intellectual circles. She has a 6 years old son: Monaco, which is still undecided between being gay, a ballet dancer, or both.

France sometimes goes to bed with Germany, a rich truck driver which is married with Austria, which knows Germany cheats on her, but doesn't care.

Italy has been a widow for a long time. She lives taking care of San Marino http://news.bbc.co.uk/1/hi/world/europe/country_profiles/2669927.stm and Vatican, two identical twins, with an uncanny resemblance to the sons of Ned Flanders on The Simpsons.

Italy had a second marriage with Germany... it didn't last long, but they had a child: Switzerland.

Italy would like to be as Belgium: an independent, professional lawyer, wearing suits and talking politics with the men. Belgium, in turn, sometimes wishes she could cook good pasta.

Spain is the most beautiful womam in Europe -probably on par with France, but France loses points by using so much parfume-.

Spain likes to wander around naked and is often drunk. Sometimes, she gets fucked by England... Spain allows that, but then has second thoughts and goes crying to the police to denounce it.

Spain has offspring everywhere -most of them around 13 years old, that live far away, in South America, all wankers. She loves them a lot, but it bothers her that every time the kids are hungry, they show up at her door, get inside without saying hi, and take food from her fridge.

Another country with lots of offspring is England. He sails off at night and fucks with teens far away, and nine months later there appears a new tiny new island. These new babys are protected by the mother, which maintains them from afar.

Scotland and Ireland are brothers of England, living upstairs. They live drunk and they suck at football (soccer). They're the shame of the family.

Sweden and Norway are two lesbians in their 40s. They're very slim and attractive, besides their age, but they are very self-centered and don't talk to anybody else. They fuck each other and work, because they have a good paying job doing... well... something. Sometimes, they envite Holland to a party (when they need weed).

Other times they show themselves to Finland, which is an androgynous 30 years old who lives alone in a tiny attic with no furniture, and cares only for his mobile phone. Finland's only purpose in life is speaking on its mobile, most of the time with South Korea.

South Korea: she lives a separate life with her schizoid sister, North. They're twins. But North Korea swallowed amniotic fluid at birth, and got brain-damaged and delusional. She spent her childhood playing with real firearms and now, living alone and secluded, is capable of going postal any minute.

The United States, the rich 17 years old dimwit, keeps a close eye on her... not because he's afraid, but because he wants to take all her guns.

Israel is a 62 years old intellectual that lived a shitty life. Some years ago, Germany, the truck driver, ran over her. Since that day, Israel went bonkers. Now, instead of sitting on a rocking chair and reading books, she spends her days at her rooftop, trowing things in Palestine's general direction. Palestine is a poor, uneducated and religious girl who's only trying to do her laundry.

Iran and Iraq were two 16 year olds who nicked bikes and sold those as parts. Until one day they stole the United States' bike and now they're going thru hell and repenting.

The World was fine as is, until one day Russia coupled with Perestroika -without marrying- and they had about a dozen children, all odd, some retarded, others schizoid.

A week ago, and thanks to some shooting with plenty of deaths, we the inhabitants of the World discovered that there's a new country out there named Kabardino-Balkaria. Another new country. With its own flag, president, anthem, and flag. And even people!.

I'm a bit scared to see so many baby countries appearing without notice, all of a sudden. That we learn about them by pure chance... and we have to pretend that we knew about them all along, not to be taken as ignorants.

And I ask myself.... Why are new countries being born, if the existing ones haven't managed to get their acts together yet?

:-)

---------------------------------------------------------------------------------------------------------------------------------------
Note: I translated this as I received it. Before some moron without a sense of humor flames me, keep in mind it's a joke. I'm 90% certain the mention of Israel and Palestine will get emotions high on people without humor. If you want, feel free to switch descriptions around, and it'll be funny as well!. I didn't author this, just translated it.
---------------------------------------------------------------------------------------------------------------------------------------

Saturday, August 18, 2007

Is the supply-side school downplaying the news about Argentina's continued growth?

I recently read an article by David R Butcher titled "Where the Offshore Outsourcers Offshore Outsource" and available HERE.

I had high hopes due to the title, and instinctively tried to read it while scrolling down to find what references about offshoring operations in Argentina were included. I was very disappointed, the word "Argentina" is not even there, despite the increase of Offshoring (IT, software and services) in Argentina, which surely added its part to the sinking unemployment rates and economic recovery the last four years'.

One paragraph reads: "where do India’s outsourcers outsource? China, the Philippines, Malaysia, Vietnam, Brazil, Romania and Morocco — you name it. ". Well, I guess "you name it" also ought to include Argentina. In fact, India's TATA Consulting Services (TCS) arrived five years ago. And success stories of firms offshoring and investing in Argentina in the last four to five years are easy to find if you look hard enough. But no, not a single reference.

But it's not this writer's fault. (if you're reading this, it isn't about you, read on, it's just that your story and the strange lack of mention of Argentina kickstarted my thought process).

Thinking aloud:

There seems to be a strange "vacuum of good news" about Argentina on the English language mainstream media (and my standard for doing this is simply typing word pairs like "inversion, argentina" (investment argentina-unquoted-) into Google News Argentina (news.google.com.ar) then repeat the search with the same terms, this time in English language and into the international "Google News" search engine (news.google.com).

My unscientific tests showed that roughly nine out of ten times, all positive economic news about Argentina appear ONLY in the local Spanish language news sites, but those news stories are usually -and suspiciously- RARELY echoed in English for the global audience, while short-lived political scandals involving Miami millionaires --once against Chavez but then flip-flopped and doing business with Venezuela's PDVSA (until a few weeks ago)-- caught trying to enter with a bag full of cash ($800,000) into Argentina are regurgitated ad-nauseum as some sort of "further proof of Argentina's corruption and hopelessness". Hrmm ... smearing PR campaigns to weaken the ruling center-left coalition and impose a more "pro-market", "pro-White House" candidate..... where have I heard of that?.

Just for the record: In the last four years, the country's economy grew like never before, plummeting unemployment, the number of unemployed people receiving government unemplyment subsidies fell 50%, and the country has been enjoying for the first time in several decades (it didn't happen since the 1920s!) year-after-year consecutive growth coupled with simultaneous fiscal surplus and a trade surpluses, all this due in part to a competitive exchange rate for Argentina's industrial and agricultural exports.

So is the majority mainstream trade press talking about the "Argentina Miracle". Well, no. Or at least not that I could see. Only BusinessWeek ventured to say so back in 2002, but it was a timid article and the recovery just started back then. When the press speaks about the region it often says "Good times in general for Latin America" and then proceed to name Brazil and Chile, poster boys for "good behaviour" because they never broke paths with the IMF. Coincidence? Don't think so!. (OK, I admit I might be wearing my tinfoil hat now).

Before you accuse me of irrational flag-waving, oldskool right-wing nationalism let me be 100% clear that it's not about this. I'm complaining from the economic policy angle. The failure of ANY major English language mainstream media reporting about the economic progress in the country, and the economic policy angle.

Perhaps the problem for the US and other western media is that portraying that Argentina is doing very well by NOT following the path preached by the right wing think tanks and the IMF would set a "bad example" for the rest of the countries still suffering the anvil's weight of the IMF and its laisez faire policies?.

Think about it... a government with a more progressive, demand side economics policy, that doesn't ask Milton Friedman for advice. A country who asks world famous IMF-critic and long time Washington Concensus skeptic Joseph Stiglitz for advice.

To top it all the results have been good, getting fiscal and commercial surpluses for the last 4 years -and more importantly, doing so for the first time in decades-. BUT, here's the surprise: reading the western English language media daily and seeing Argentina's good news virtually "blacklisted" (other than Reuters' quarter figures for the specialized economics media and speaking usually nothing about the human impact of this growth).

Why is this? I have a theory. I think it's because we pissed off a lot of Wall Street, AEI and right-wing economics technocrats followers of the supply side school, with our debt restructuring, -we paid the IMF and sent them packing-. Also, -now drifting into the political field- I suspect the lack of any good positive reporting is because we are doing good business with Venezuela and supporting projects like Stiglitz' praised REGIONAL INVESTMENT BANK.

That's my theory of why Argentina's good economic news and its social impact ended up blacklisted : due to political and ideological reasons, as it doesn't fit the wire editors' economic psyche.... in other words "nothing good should be said about it, because it didn't sign FTAA, bow to King George, or break relations with Venezuela's Chavez". Is that it?

Fifteen years ago when the country was going downhill and getting deeper and deeper into a cycle of debt yet Argentina was portrayed by the financial media as the poster boy of the IMF and magazines wasted pages and pages on the positive "reforms" that generated an influx of speculative capital (in other words, "mergers and acqusitions", that is capital changing hands, not very much NEW investment in production of real tangible goods and manufacturing) while the gates of cheap imports were opened and it de-industrialized the country sending unemployment through the roof... and culminating in the implosion of the economy when the facade fell....

Back to the news reporting angle: do you think I'm too far from the truth? Am I allucinating? Have you found English language news stories that talk about the revival of industry, the increase in manufacturing jobs,the increase of non-primary (industrial, manufacture, technology and services) exports in the last three years? Where? and when you find it, does it tie these events to the economic policy? or do they just mask it under the usual "it's a result of the increase of commodities prices?

If you find any story with that angle, PLEASE LET ME KNOW, because I've never seen all these elements together in a mainstream, English language story.

To end this long babbling, I have to wonder if perhaps all this is due to the fact that most americans DON'T KNOW DIDDLY SQUAT about Latin America as a recent Zogby Poll found?. Or is it because the American economists establishment has VERY LITTLE TOLERANCE towards dissent when it comes to the supply-side Dogma, as has been recently warned by the progressive U.S. economists?.

Just my $0.02 or $0.06 pesos. :-P

Thoughts, comments, expletives?

Food for thought:

U.S. Economists question dominance of Supply-Side Ideas
http://www.iht.com/articles/2007/07/11/business/economics.php

"Americans know very little about Latin America"
http://www.associatedcontent.com/article/345149/poll_americans_know_little_about_latin.html

Tinker Bell, Pinochet, and the Fairy Tale of the Chile Miracle
http://www.gregpalast.com/tinker-bell-pinochet-and-the-fairy-tale-miracle-of-chile-2/

Bank of the South: Toward Financial Autonomy - Worldpress.org
http://www.worldpress.org/Americas/2852.cfm

Chileans praise Argentina's economic wisdom wrt .IT policy
http://www.atinachile.cl/content/view/31289/Las_razones_que_explican_el_desembarco_de_Google_en_Argentina.html#first


There are the kind of stories NOT FOUND on mainstream US/western English language media*:

(*Spanish language stories, with titles translated by me):

AR: People receiving government unempolyment subsidies fell 50%
in the last 4 years
http://www.telam.com.ar/vernota.php?tipo=N&idPub=59388&id=143954&dis=1&sec=1

Spending by people with the lowest incomes grows in the farther/poorest BA city suburbs
LA NACION, Wed. 16/5/07
http://www.lanacion.com.ar/archivo/Nota.asp?nota_id=909024

quote/translation:
"The combination of union-management agreed salary increases for workers in the formal sector of the economy and the general drop in unemployment levels have begun to show results in the poorest areas of the greater Buenos Aires, which after the second semester of '2006 show consumer spending growth rates above the rest of the population"

Government launches tax reductions for tourism SMBs
http://news.google.com.ar/news/url?sa=t&ct=es_ar/1-0&fp=4626d4c2bd8b59cb&ei=9nMmRvicJZ_coQPyvbS9Cw&url=http%3A//www.adnmundo.com/contenidos/turismo/pymes_tu_180407.html&cid=1154259208

Air traffic between USA and Argentina grows
http://news.google.com.ar/news/url?sa=t&ct=es_ar/9-0&fp=4626d4c2bd8b59cb&ei=9nMmRvicJZ_coQPyvbS9Cw&url=http%3A//www.hostnews.com.ar/2007/sal/070085.htm&cid=1154211647

Google opens regional HQ in Buenos Aires, will hire up to 3,000
http://news.google.com.ar/news/url?sa=t&ct=es_ar/0-3&fp=4626fcdb3ae71ad4&ei=TnYmRtLHI5qKoQOg3ZW3Cw&url=http%3A//www.lagaceta.com.ar/vernota.asp%3Fid_seccion%3D8%26id_nota%3D202119&cid=1154204519

Argentina's Tourism sector now brings more dollars than grains and meat exports combined
http://www.diariohoy.net/notas/verNoticia.phtml/html/268469454/

17/4/07: Argentina's government launches fiscal incentives for the local software industry
http://news.google.com.ar/news/url?sa=t&ct=es_ar/0-0&fp=462657718885b933&ei=-3YmRq-1BoOSogP4z9GzCw&url=http%3A//www.infobaeprofesional.com/interior/index.php%3Fp%3Dnota%26idx%3D44640%26cookie&cid=1154211088

The latest boom: corporate software, made in Argentina
http://www.siliconnews.es/es/silicon/special-report/2007/04/04/boom-del-desarrollo-software

20/4/07 - Argentina's investment level the highest in the last 20 years
http://www.infobae.com/contenidos/310936-100896-0-El-nivel-inversi%C3%B3n-es-el-m%C3%A1s-alto-los-%C3%BAltimos-20-a%C3%B1os

Argentina widens trade surplus with the US
http://www.clarin.com/diario/2006/02/11/elmundo/i-03103.htm

Venezuela and Argentina duplicate its trade
http://www.adnmundo.com/contenidos/comercio/venezuela_argentina_ce_171106.html

"one of the most important aspects is the diversified nature of the current exports from Argentina to Venezuela. From (traditional products like) powder milk and meat to industrial goods like tractors, trucks, SUVs, pipes and valves for the oil industry, among others".

Consumer credit levels now above the historic highs before the crisis
http://www.infobaeprofesional.com/interior/index.php?p=nota&idx=44671&cookie

==========================================================

Two notable exceptions to the "information black cloud": BusinessWeek (US) and the IHT (FR)... two lone positive stories, but one is very dated by now, and the other too short (imho).

Argentina: doint it their own way - 2006
http://www.iht.com/articles/2006/12/28/opinion/edweis.php

Argentina: reversal of fortune (BusinessWeek) - 2002
http://www.businessweek.com/magazine/content/05_19/b3932098_mz058.htm

The following, while good and positive spinned, are not from what I'd call "mainstream media", actually one is a progressive magazine's blogger and the other a little Italian news portal:

Argentina Heads Region's "Human Development" Index
http://www.portalino.it/nuke/modules.php?name=News&file=article&sid=13215

Beat the Press: Argentina's strong growth among Most Important news of '06
http://www.prospect.org/deanbaker/2006/12/most_important_economic_news_s.html

Thoughts? comments? Expletives? ;)
FC

Friday, August 17, 2007

VMware Player FC6 / blag installer for blondes ;)

I'm sick and tired of having to do the work that paid programmers should do.

And no, I'm not thinking about the nice guys at blag Linux which work nearly for free :)

I'm thinking about VMWare, which distributes a "VMWare player" aimed at end-users but makes installation a nightmare full of pitfalls needing patches and lots of manual fiddling.

Don't believe me? Do you think things are "fine" as they are and there's no room for improvement? see the results of this web search on Google and compare it to this one.

In short: I'm tired of having to do the work that paid programmers, many of them surely earning 50x more than me- should be doing in the first place.

Now, to follow the suggestion of Steve from the blag forums, I will just "CHILL OUT , man..." and let you have my script:


... so you will hopefully end up with VMware Player 2.0 up and running in your blag 60000 linux box (or hopefully Fedora Core 6 as well) running the latest 2.6.22-1 Linux kernel and just pressing [enter] a dozen times....


ENJOY:
http://the13thfloor.org/musthave/easyvmware4blag001.tar.gz

FC

Sunday, August 05, 2007

Extracting icon from win32 app (or apps) using WINE on Linux

Native Linux apps are of course preferable to running Win32 ones under compatibility libs like WINE.
But when you install one such app on Linux, one of the problems of those apps is what icon to put to the launcher object(s) in our desktop or Gnome panel.

(It's not that I use a lot but the PMView PRO trial and WORDVIEW.EXE PPVIEWER.EXEs from MSFT come to mind (as my winders now runs under Win4Lin)...

I found THIS FREEBIE from MSFT (actually a coding sample from MSDN).
http://download.microsoft.com/download/win95/utility/1.0/w9xxp/en-us/4493.exe

Just extract it with unzip, find icontool.exe, and then run it with wine ./icontool.exe
There's an option in the app that allows to "Extract Icon from EXE/DLL", navigate to your Win32 installed app (usually in your $home/.wine/drive_c/Program Files/Application_Name_here), find the EXE, and then use the option "EXPORT AS BMP" to save a BMP you can then use (after conversion to PNG) as icon for your win32 app under Linux. (Save it under /usr/share/pixmaps).

There you have. And if this helped you a lot, remember I always gladly accept $5 Amazon.com gift certificates delivered to my e-mail f c a s s i a @ g m a i l . c o m
:-D

Have a nice day!

FC

Friday, August 03, 2007

JAR is a bitch, and then you die!

[WARNING: This is geeky stuff, if you're NOT a computer geek, then scroll down to the next post. Move along, nothing to see here!]

Instead of the old adage "Life's a bitch, and then you die" I propose a new version: "JAR is a bitch, and then you die".

In case you're living in a bottle or you're not a geek, JAR is the Java JDK tool used to build the compressed ".JAR" (Java Archive) files that contain a Java software application (all the different binary files inside it). It's a tiny command line application just like everything in the JDK that should be no different or more complex to use than ZIP or tar.

However, it proved to be a real pain in the ass and a TIME WASTING EXERCISE, just to update a SINGLE TEXT LINE inside an existing .jar file's "Manifest".

1. What I wanted to do:
Unpack an existing application,
update its MANIFEST file, to include the "Main-Class: ClassnameHere" statement, so I could just start the application by typing

java -jar applicationname.jar
instead of using the author's ancient approach of having to name the "Main-Class" on the command-line every time...

java -classpath applicationname.jar LongNameofTheStupidStartupClass
2. I unpacked the existing application's .jar file just fine with 'unzip', and created a text file with my favorite text editor which read:

Main-Class: LongNameofTheStupidStartupClass

I saved it as "./manifestinfo.txt"

3. So, not having used jar before, I go to a tutorial I find online here

http://java.sun.com/docs/books/tutorial/deployment/jar/modman.html

which reads

"The basic command has this format:

jar cfm jar-file manifest-addition input-file(s)


...and thinking I know what I'm doing, I type:

$ jar -c jftpd.jar ./manifestinfo.txt ./ ./ftpserver/*


I get this as a result:



4. I had to close the terminal as I couldn't type anymore (I could type but I couldn't understand anything).

Then I found what I think is a more friendly explanation on how to update the "Manifest" of the .JAR file with new info, over HERE:
http://java.sun.com/developer/Books/javaprogramming/JAR/basics/update.html

(Later I realize that what happened in Step#3 was that I forgot to include the "f" parameter to indicate that I wanted output to a file rather than to STANDARD OUTPUT. What the **** is the purpose of having output of JAR to standard output?? I don't get it).

5. So I type
jar cf jftpd.jar ftpserver/*
and IT WORKS!
But I forgot about the new manifest info... so I type:

$ jar umf ./manifestinfo.txt ./jftpd.jar
...and I get this beauty:

java.io.IOException: misplaced continuation line
at java.util.jar.Attributes.read(Attributes.java:374)
at java.util.jar.Manifest.read(Manifest.java:182)
at java.util.jar.Manifest.(Manifest.java:52)
at sun.tools.jar.Main.update(Main.java:481)
at sun.tools.jar.Main.run(Main.java:184)
at sun.tools.jar.Main.main(Main.java:1022)
[fcassia@m6810 tmp]$

WHAT THE F#CK IS GOING ON NOW????????

6. You know what was the problem? the file "manifestinfo.txt" had TWO BLANK SPACES before the text "Main-Class: ..." and TWO BLANK LINES below it !! (I pressed [Enter] twice).

Apparently, JAR FREAKS OUT (this is JAVA 6.0 update 2 JDK's JAR, for crying out loud!).

7. I removed the two leading spaces and trailing blank lines and guess what? IT WORKED!.

[fcassia@m6810 tmp]$ jar umf ./manifestinfo.txt ./jftpd.jar
[fcassia@m6810 tmp]$

8. Done.... BASTARDS!!

9. Another Golden Rule when dealing with JAR:
JAR NAME APPARENTLY ALWAYS GOES LAST.

So, contradicting what would be the 'zip' usage of "hey zip, I want to update THIS ZIPFILE with THIS_DATA" (zip something.zip newfile.txt) in JAR is totally the opposite way: "hey JAR, I want THIS NEW FILE into THISJAR" (jar umf newdata ./intothisjar.jar).

GRRR

And finally, found this thread
http://forum.java.sun.com/thread.jspa?threadID=549376

See comment #11:
"
The JAR tool is rather finicky. I have found that each HEADER:VALUE pair must be separated by a newline but not more than 1 newline. When I tried putting blank lines in the MANIFEST, I would get "Error: failed to load Main-Class attribute...". Sun needs to update their tutorials or fix this problem with the JAR tool's manifest parser."

FINICKY? That's being mercyful...

and then comment #15:

"One diference between unix and windows' file system is that text files in unix always have a final linebreak at the end of the file, while windows doesn't need to.

Java, being developed by Sun primarily for the unix comunity requires that the
manifest file ends with a new-line.

no new-line, no manifest file."

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Want more? See the comments on page #2 of the above thread at Sun.com, discussing the "joys" of the "jar" command:

===================================
Does this instruction really work???

http://java.sun.com/docs/books/tutorial/deployment/jar/appman.html

They specify the following command:
jar cmf MyJar.jar Manifest.txt MyPackage/*.class

When I tried that with my classes and files (with different names, of
course), it didn't work. What worked for me is equivalent to the
following:
jar cmf Manifest.txt MyJar.jar MyPackage/*.class

The order is simply permuted. Maybe it's just Apple's Java
implementation. Is this what you were asking about?

-jonnie

==================

The Tutorial is wrong. It should be jar cfm, not cmf.
The order of the command must match the order of the parameters.

==================

Thank you. That is good to know.
===================================

I REST MY CASE:

JAR IS A BITCH, AND THEN YOU DIE

FC

Saturday, July 21, 2007

A red mouse pointer in Linux - The REALLY Important Things in Life ;)


For the moment -and for the last year or so- I'm running the free Linux distro "blag" from the UK. It's based on RedHat's Fedora Core 6 project, with a lot of stuff removed so that it fits on a single CD, and also a nice look, with custom visuals/login screen/backgrounds.

What it lacks, apparently like Fedora Core 6, is a set of NICE COLOUR mouse pointers. blag includes the default black cursors dubbed "bluecurve" and a white colour variation of the same. I didn't like those. I wanted a big red mouse pointer in Linux and the Gnome desktop.

Well, to make a long story short: I pulled my hair reading all the contradicting and conflicting info on changing mouse pointers. Most of the stuff on the net is seriously outdated. For instance you often find results from XFree86 lists several years back saying that Linux mouse cursors can only be black and white.

Here's how to install beautiful RED mouse pointers in blag 6K, and Fedora Core 6.x or higher for that matter:

I have settled on one of two choices: "red mix" and "Komix". I'll let you guys decide which ones are better...

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
1. As root, from a shell do
cd /usr/share/icons

2. If you want Komix...
wget http://art4linux.org/pages/download/cursors/Komix-0.1.tar.gz
tar xvfz ./Komix-0.1.tar.gz
tar xvfz ./Komix-0.1/Komix-Red-Regular.tar.gz
tar xvfz ./Komix-0.1/Komix-Red-Large.tar.gz

Go to System->Preferences->Mouse
Click on the "Pointer" tab, scroll down and find Komix_Red below LBlueCurve. Click on that option. DONE!

3. If you want "red mix"
wget http://www.kde-look.org/CONTENT/content-files/5605-cursor_mix.tgz
tar xvfz ./5605-cursor_mix.tgz
Go to System->Preferences->Mouse
Click on the "Pointer" tab, scroll down and find "cursor_mix" at bottom. Click on that option. DONE!
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////




There you have, a nice red mouse pointer that you can ALWAYS see, even with the corner of your eye.
Enjoy!

FC

Thursday, July 19, 2007

Argentina cartoonist and comic genius died today... Roberto Fontanarrosa, we will miss you!


Today cartoonist, writer and humorist Roberto Fontanarrosa passed away.

Fontanarrosa was born in Rosario in 1944. Comic-clopedia describes him accurately: "He was a representative of the Argentinan sharp humor cartoonists that made their appearance in the 1970s. A very productive artist, he drew satirical comics and cartoons in such magazines as Boom, Hortensia, and (to this day) on the daily newspaper ClarĂ­n. Several compilation albums of his gags have appeared ('¿Who is Fontanarrosa?', 'Fontanarrosa and the medical doctors', 'Fontanarrosa and politics', 'Fontanarrosa and Relationships', 'The Sex of Fontanarrosa'). He has created numerous characters, the two most famous are the gaucho 'Inodoro Pereyra' and 'Boogie, el Aceitoso'".

If you are reading this outside Argentina, let me tell you that one of the characters of his comic, Inodoro Pereyra, a lone gaucho traveling the pampas with the companion of his talking/thinking dog, is a classic for argentineans.


I discovered him at around age 12, when I first read "Boogie, el aceitoso" (translated as "Boogie, the oily one" or the "slicky one").

Best described at Everything2, here: "First conceived when the Vietnam war was fresh in the mass unconscious of the world's peoples, Boogie is an extreme caricature of one impression the rest of the world gets from the United States. Since his birth in 1972 to the quiet retirement he faced in the late 90's, Boogie has participated in every major armed conflict that has involved the United States and is familiar with every imaginable form of inflicting pain on his fellow man (and oftentimes woman too). During peacetime, if it can so be called, for Boogie hates the word, Boogie is a professional assassin or a bodyguard, a mercenary. Occasionally, when his usual profession hits a slump, he will also accept other jobs such as babysitter (he'll give the kids plastic explosives for them to craft little animals) or romantic escort (you must understand that although he is a man, that lump you feel when slow dancing with him is in fact his revolver)."


If you read Spanish, you can have a laugh here by reading Roberto´s speech at the Spanish Language International Congress

http://www.me.gov.ar/monitor/nro3/dossier3.htm

But if you need any proof of Roberto Fontanarrosa´s genius, here´s an animation of one of his comics, with an embedded anti-war message, to boot... I don´t know about you, but if I were a foreigner, I would learn Spanish just to understand the funny animal names of this comic masterpiece, which reads as a mix of Darwin's theories of the Evolution of the Species, and a touch of "Discovery Channel" documentaries ...



(Too funny!. You can understand the meaning of it even if you don't understand a word of Spanish... he begins describing an imaginary cold dry plain... and the cold winds, and the 'threatening clouds' and then the whole ecosystem in that plain, funny creatures with even funnier names, that are eaten by predators one after the other until... watch and you'll understand :).

If you want to practise your Spanish, you can find almost all of Fontanarrosa's books on Amazon.com.


In short: the World lost one genius today. Goodbye Roberto Fontanarrosa, we will miss you dearly...

FC


Wednesday, July 11, 2007

Fernando's Crumbling Empire

[UPDATE]: things are safe at my flat. An engineer was here and suggested the internal / hollow brick failure was either due to poor materials used in a modification of the wall or a water leak before I arrived.

Things are going to be repaired soon. :)

Sleep safe, the building where I live will not collaps@#@#@)
;)

Monday, July 09, 2007

Nieve en Buenos Aires - 9 de Julio de 2007

Wow... since about 4:00 PM local time, it's SNOWING -albeit intermitently- down here in Buenos Aires.
More precisely in Almagro, as I can only speak about the view from my Windows... :)

How rare is this...? VERY rare. It "never snows" in Buenos Aires. According to what I found in the Net, the last recorded snow was June 22, 1918!!

The day started chilling cold, and it was only a handful of foreign tourists and myself at the Plaza de Mayo and surrounding areas...










And by later aftenoon, first a timid then full snowfall decorated the tops of the highest buildings



By night, even the international media started paying waking up to the newsworthyness of this ocurrence:

First major snow in Buenos Aires since 1918

http://www.iht.com/articles/ap/2007/07/09/america/LA-GEN-Argentina-Historic-Snow.php

Monday, June 25, 2007

Argentines have a short memory span - The "New Politics" -that are really oldskool-, won....

Unless you've been living in a bottle, let me tell you that we had ellections down here for city mayor and the right wing candidate won.


"Moderate" Right candidate Mauricio Macri danced and was carried around by his supporters at PRO


¡Poor joke Mauritzio! ¡Saying that Argentina must get on its feet, with Michetti on wheelchair next to you!!
Very inconsiderate of you with your loved Free Trade Agreements expert at the WTO

¡"Speaking less" is "PRO" !

¡Speaking about "not speaking" is even more PRO!


According to "Mauricio" the middle class or "so-so class" as Mafalda called it will be able to "drink mate again in front of their homes" and Buenos Aires will turn overnight, by the power of his "magic" into a city "without security fences in parks, no security bars in shops, no security bars at homes, ENOUGH! Buenos Aires is not our (loved) city anymore!" .

Well, Mauricio, it's your turn now to see how you perform. That assorted bag of leftovers from different right wing factions that is PRO with people from the far right UCeDe, allong with collaborators of former finance minister Domingo Cavallo (or Sunday Horse as I like to call him), succeeded in convincing the -once again- "so-so (middle) class" that a businessman like you is more experienced and more trustworthy than someone from the academia.

And that your work experience "working on dad's firms" after a brief 6 months tenure at Citibank are better attributes than the vast academic experience of Daniel Filmus, someone with a remarkable background.

¡Thank the heavens your campaign manager Rodriguez Larreta was "very succesfull" at handling Social Security and even your conservative colleagues remember him!.

I'm sure you will turn the city upside down and that Utopian vision of grandmas drinking mate in front of their homes (with the door open behind them as was the earlier XXth century image), will become real. Yeah, right. I specially like your compaign promise about the parks without fences and the shops and homes without security bars at windows.

¡If you believed Mauricio's empty promises above, let me tell you I have bridge I could also sell you!. No city as big as Buenos Aires is without crime. That simply does not exist. For some reason (I suspect the reason but I'd be accused of being a tinfoil hat conspiracy theorist) the local media seems to have established the notion that "the crime wave doesn't stop" assuming that it's even possible for crime to "stop". IF that would be the case, there would be cities around the world with no police, and that doesn't exist.

In fact, crime has been going up in the US of A in the last few years...

-----
Violent crime up again, more murders, robberies - US
http://news.monstersandcritics.com/usa/news/article_1313133.php/Violent_crime_up_again_more_murders_robberies

"The report showed that murders in big cities jumped last year by 6.7 percent. Robberies, an important indicator of crime trends, increased 6 percent nationwide. Cities with big increases in the number of murders included Orlando and Miami in Florida; Oakland and San Diego in California; Phoenix, Arizona; Corpus Christi, Texas; Grand Rapids, Michigan; Reno, Nevada and Little Rock, Arkansas.

Even though the higher violent crime numbers had been expected, they still represented bad news for Attorney General Alberto Gonzales, who has targeted violent crime as a top priority for the U.S. Justice Department. A department study released last month of 18 metropolitan areas cited more violence by local gangs or street crews, a greater prevalence of guns in the hands of criminals and younger, more violent offenders as key reasons for the rising crime rates.
------

But I digress...



















¡Here comes the New Politics that is "non-partisan" ! ¡The new "sweetened" right! ¡Hooray for PRO! Hooray for the UceDe! Alvaro Alzogaray must be smiling in his rotting grave...

Two weeks ago I received one of those e-mail chain letters, forwarded by someone not too bright that I know, the kind of person who cannot send e-mail with bcc: and always copies his entire list, in plain view to everyone who receives each message, you know the kind of middle-class "so-so class". The mail content was 100% anti-Kirchner and had by subject line "I don't give a damn about politics!" and called upon the reader to "vote for change" and babbled about the 'new politics', pointing the blame on the K administration for everything from 'drugs and pickpockets' to car accidents and 'soccer hooligans'(!)".

But hey... we cannot ask the average Mrs. Jane Doe to distinguish between the current Mayor -who was not elected to the post but rather "landed" on it after Ibarra was ousted- and Kirchner's candidate.... Mrs. Jane Doe was ANGRY, angry at...well... something... and she voted for "Saint Mauricio!".

I end this analysis with a quote I've seen on the Net, used as forum taglines...

"In this town 5% are fascists, 30% indifferent, and 40% not
interested in politics. Total: 75% of fascists." From "The school of Barbiana."

¡¡So, let's enjoy the coming "City without fences" headed by the "New Politks" which are really oldskool rightwing!



FC

Friday, June 01, 2007

Natural alternative to Aspartame might come from Argentina

Two years ago, I read this interesting comment about an unknown plant dubbed Stevia. I saved the post.

I was surprised this week to read that Coca Cola is going to use it as natural sweetener to replace controversial/unhealthy artificial sweeteners like Aspartame.

-------------------------------------------------------------------------------------------------------------
2005:
" Why not a STEVIA coke.. its about time these large companies got on the back of the FDA and got stevia legalised... its a sham that i dont have the choice to have that natural sweetner in products i like. Call your congressperson!"

http://www.diet-blog.com/archives/2005/06/14/coke_zero_confused_anyone.php

May 31, 2007:

Coke teams up with Cargill to launch new sweetener
"Giants of food and drinks aim to develop their own natural rival to NutraSweet and sucralose, to meet health demand"

http://business.timesonline.co.uk/tol/business/industry_sectors/consumer_goods/article1864667.ece

"It has spent the past three years developing Stevia plantations in China, Paraguay and Argentina."

For those who can read Spanish, more info about Coke/Cargill's moves in .AR, here:
http://www.clarin.com/diario/2007/06/01/elpais/p-02202.htm

My translation of a key paragraph:

"Originating in Paraguay and Northern Argentina, Stevia is produced in the country in industrial scale only by the Tobbaco Cooperative in the province of Misiones, which in 2004 used 100 has of land for the plant, and plans to produce about 500 tons. This co-operative associated with a laboratory from Mar del Plata for Stevia post-processing".
-------------------------------------------------------------------------------------------------------------

So... I would start investigating this Stevia plant if I had a piece of productive land. Since I don't... I'll leave this exercise for young entrepreneurs like Mike... :). Who knows, maybe this natural sweetener without the health problems of Sugar or Aspartame could be even used in Cookies!. ;-)

Good for people like me with bloody chronic liver disease... my doc told me to avoid artificial sweeteners whenever possible, and it's harder to do every day as the profit-hungry companies are starting to add it to more products every passing day, from cookies to 'flavoured water' to gelatin (even the non-Diet ones, damn you, Royal!).

PS: This is the closest to an admission about the dangers of artificial sweeteners (if those were safe, why would they need to change to something "healthy"?.

If you think that artificial sweeteners like Aspartame are 100% safe over long term use... you are not aware of all the material casting doubt on artificial sweeteners.

Wednesday, May 30, 2007

Move on, Mr. Anonymous, there's nothing to see...

Dear Mr. Anonymous, please go away.

The post detailing the media reports on the young yankee busted on a disco, was removed.

I'm tired of having to read your irrational babbling in my blog comments.

There's nothing to see now.

Stupidity




... a three-ton SUV to drive around a city like Buenos Aires....

Great American ambassadors

I have to recommend two blogs from Americans who have settled down here in Buenos Aires: Frank' s Sugar&Spice -check out his cookies!- and of course Mike from "YanquiMike.com.ar".

¡Gracias por sus posts inteligentes!.

EstarĂ­a bueno que EE.UU. los tenga de embajadores.

FC

Tuesday, April 24, 2007

My first bash hacking in 7 years...

Last time I did a BASH (linux shell) script was, I think, back in y2k. I ran Caldera Openlinux in an ancient underpowered 233Mhz Pentium I, and the desktop was then bloated KDE. Nowadays, I run Blag, based on RedHat's Fedora Core 6.
But now I was fed up with having to manually seek, download and install "pptpconfig" to get a friendly-easy to use PPTP VPN applet. (Blag includes PPTP but for some reason pptpconfig is not included).

So, I spent a couple hours tonight reading -once again- about bash scripting HERE and HERE, and thanks to a great tutorial on Gnome desktop integration at RedHat's site HERE - I was able to code a simple script which downloads the required RPMs from Fedora repositories, calls the YUM system updater, and installs everything required for PPTP VPN networking into blag, creating a default launcher with nice icon in the desktop. It's a pretty simple script, but nobody had done it before. So here it is. I have released it under the GPL, for what it's worth.

WOW,I can still code stupid little shell scripts!. What an ego boost!. ;-)


Specially since my attention defficit personality usually makes me leave my programming projects incomplete at the first sign of trouble... this time that didn't happen and it was kinda fun, reminded me of my first babbling with OS/2 Rexx...

http://the13thfloor.org/blagpptp/easypptp4blag6kv0001.tar.gz

FC

Wednesday, April 18, 2007

Proof that too much Oracle DB makes you suck at picture taking and writing

Buenos Aires: "they don't bathe daily, and they have bad taste like the French"
http://dba-oracle.blogspot.com/2006/12/buenos-aires-paris-of-south-america.html

He must be on medication, I mean God, look at the blurred pictures! -or perhaps he was sweathing and shaking in fear while walking the streets with his armed bodyguard expecting an attack at any minute!!- LOL

I nominate Mr Oracle expert as the laughing stock of the Year!!!

===
Quotes from his "book"
http://www.rampant-books.com/south_america_travel_tips/t_buenos_aires_argentina.htm

"Buenos Aires is a city of contrasts, with virtually no middle class"

"Argentina has a history of civil unrest and the wholesale killing of foreigners dating back for centuries."
[!!!]

" and let's not forget the Americans who were tortured and killed in Argentina over the past decades. "
[huh? maybe he means the 30,000 disappeared thanks to Mr. Kissinger's attitude towards Latin America and the U.S. supported military coup in Chile and later the U.S.-tolerated military government in Argentina?]

"Buenos Aires has lots of police, but many are veterans of the Falkland invasion, so don't expect too much sympathy."

[huh?? Military =! police!! 90% of the soldiers who took part in the 1982 war were 18 year olds doing the mandatory draft]

"Simpson's re-runs are on the local television stations constantly and the translations are true to the English originals, and you can recognize Marge and Lisa even though they are speaking Spanish."

[Gee, has this guy ever heard of globalization and the concept of the international TV? Guess it' s not the same in every other country around the world huh? Only Argentina airs the Simpsons dubbed into the local language?? I have news for you: we grew watching "Knight Ridder" and "Get Smart" in the 80s, shocker!]

"Buenos Aires is plagued by “Ladrones”, local pickpockets who are found in all major tourist areas."
[No, stupid. Ladrones is spanish for Thiefs. What you are referring to is "pungas", local slang for pickpockets]

" Puerto Madero was built in-response to the complaints from the Buenos Aires women about all the streets of Buenos Aires having all-males names."
[AAHHAHAHAHAHAHAH!!!!!!!!!!!!!!!!!!!!! ROF,LMAO!!!
Yes, the women complained so much that we created Puerto Madero just because of their complaints... LOL]
===

I will leave aside for a moment the stupid and inaccurate references to the Falklands/Malvinas issue, but suffice to say that: a) it was a stupid act ordered by a military dictatorship trying to stay in power and supported by Washington at the time, b) the invasion of the islands was completed on April 2nd, 1982, with ZERO deaths on the part of the islanders, and one Argentine soldier dead. All further deaths were caused months later in the fight by the UK forces to retake the islands.

Monday, April 02, 2007

Get 1080i HD upscaling over component video with the Helios H4000 DVD player!

A couple months ago, the nice folks at Neodigits were kind enough to send me a sample Helios H4000 upscaling DVD player for testing.


The small black H4000 over a Philips DVP9680

I'm holding out my review publication on the INQUIRER until I see if they release firmware fixes or not (I already emailed them some of my suggestions).

Another design win: vent holes!
However, that doesn't prevent me from wholeheartedly recommending this DVD player. If all you need is a DVD player for DVD movies and MPEG4 avis (DIVX or XVID) which also is capable of doing High-Definition (HD) upscaling to 1080i over component video, then look no further!.


Surprise: a VGA out!. You can hook it to a SVGA monitor, projector
or anything with VGA input!


The H4000 is well constructed, has an internal 5.1 audio decoder (no need for an external box!), a nice, big remote control with keys that glow in the dark (hurrah!), and ... get this... a POWER SWITCH in the back. This means you can actually turn the device completelly off, it cuts the AC power from the power supply!. No need to waste power in "standby" mode!. It also protects the unit from power fluctuations when not in use.

A built-in 5.1 audio decoder, to boot!


The player works flawlessly. It played every Region-1, Region 2 (Europe), and Region 4 (South America / Australia) that I threw at it. No need to enter region codes, the player arrived as "Region Free"!.


The H4000 hooked to my HD-ready 29" Philips CRT TV
which notably lacks HDMI inputs, so HD over Component
is the only way. To my knowledge the H4000 is the ONLY
DVD player capable of bypassing HDCP and doing HD over CVI.

So, do I recommend it? Yes.

Are there things that could be improved?

Yes. If you plan to use it for mp3 playback or if you have audio in .ogg (Vorbis) format, or if you plan to look at high-quality (2MP and upwards) photos with this player, be advised that these features leave a lot to be desired.

The Helios boot logo. Notice how the Philips TV shows HD 1080i mode!

R.E.M. DVD player in 1080i mode

For instance, photos look as if they are reduced to 640x480 then displayed (with visible dithering). MP3 and general data cd-r or dvd-r file browsing is limited because it doesn't support long filenames (Joliet). The names are shortened to the first few characters.

That's why I'm waiting to see if they fix these issues via a firmware update.

However, if all you want is a DVD player that does HD 1080i or 1080p upscaling via component video outputs, this is a must, get one while you can!.

See also my INQ article:

Big fat "HDTV-ready" CRT lack HDMI
http://www.theinquirer.net/default.aspx?article=36644