2011/01/27

General strike 27G

Usually I don't write this type of things in this blog, but today I'll do an exception (Like I did when we had protests in the synchrotron). In the future we will see if this is only an exception (looking on the "politics" tag). I hope I am no digging my grave.

Today is general strike in some regions of Spain (Euskadi, Nafarroa, Galiza, Balearic islands, and Catalunya) organized by some syndicalist organizations. In the case of Catalonia: CGT Catalunya, CNT Catalunya, COS and Solidaridad Obrera. I have to say: they are not the majority in workers union organizations in Catalunya.

The announcement of this strike has been silenced by the mass media. Yes, I say that because in the "main" tv news and the paper press, I saw almost anything about this strike. As an example, in the Catalonian tv, in the news I saw last Saturday (non web accessible) they told about an okupation (squat) in an abandoned cinema building. They explain that the police had to remove them due to some similitude with the squat of a building, a few days before the general strike of the 29th of September (2010), without telling "there's an strike planned for the 27th" until the last second of the report.

Today the video they have public is more impartial they explain the thing more in a fifty fifty way. But this was not what the people saw at the first moment that this happen. Also they publish another video about the Catalonian (new) government announcing a zero tolerance in the squatting. Even of the big problem we had in this country last months the government did not say anything about zero tolerance in politics corruption, police, or companies. A citizen can go more days to jail for being in a protest than for million euros corruption.

What the government announce yesterday is the derogation of an internal police rule about ethics. The reason: we can trust in our police. Then we can remove all the laws, because we can trust in our citizens. People is ideal! People is great from nature. I don't thing it's easy to be a cop, but without rules for them weird things happen. Why to remember all the press to dress the distinguish with a bracelet? Do I have to dress another bracelet telling the police that I am a good citizen?

The Spanish mass media are talking about Egyptian, Tunisian and Yemen protests. In local news they don't talk about any type of protest, only they explain the agreement about the prolongation of the age of retirement, even if this is the reason of the general strike of today, they don't talk about strike. In Europe we even don't have media information about Iceland revolution.

We cannot discuss the official speech. If you are not agree about what the capitalism and neoliberalism, the only option they give you is to be excluded of the system, to be against the system. With what is happening on this crisis, the best thing they can tell about the people is that the are anti-capitalist.

2011/01/22

Kona's Gallaxy

This week, I shared with some friends the Astronomy Picture of the Day (there's a very nice Spanish translation). I like to share a bit more this picture.

Look the people at the other side of the galaxy, they are small from this perspective. Realize also: there is a bench close to the galaxy center! Assuming that this bench can be 2 meters long, who big this garden can be?
They have a few more pictures in the site of the garden, but the link with I enjoy much more is from the Spanish translation to a zoomed atlas of visible universe from the Earth.

2011/01/14

What's next for the Fermilab?

One of the Fermilab's projects arrives knows when will be its last day: the Tevatron. This is the second biggest collider that the human beings build, and has been the the first one during many years before the start up of the LHC.

The machine was completed in 1983 being a collider of two beams of 512GeV, resulting collisions of about 1TeV (this is the reason of its name). An upgrade (I think in 1994, but I'm not completely sure) allows to have both beams close to 1TeV (meaning that the collisions are about 2Tev).

Many data has been collected with this machine and specially its bigger detectors: CDF and DØ. But meny more experiments are running in the Fermilab.

This news about close this project can be feel only like a budget cut, but I hope this is like the day that the LEP was closed. I hope this will mean a push on the ILC project.

2011/01/12

Elliptic curves with a git repository

Good news, finally someone found time to do what has to be done asap, with the development of elliptic curves in the field of the free software.

Also the repository of the GnuPG has been successfully migrated to git (human readable in wikipedia), great. (good and short howto)

I have not enough time for the full development of the ecdh development and I feel really glad that some one founds it. Now is time for help in test.

Great job Andrey!

To work with the git sources, 5 projects must be cloned:
$ git clone git://git.gnupg.org/libgpg-error.git
$ git clone git://git.gnupg.org/libksba.git
$ git clone git://git.gnupg.org/libassuan.git
$ git clone git://git.gnupg.org/libgcrypt.git
$ git clone git://git.gnupg.org/gnupg.git

Then go the the branches for the elliptic curves:
$ pushd libgcrypt
$ git checkout ECC-INTEGRATION-1-5
$ popd
$ pushd gnupg
$ git checkout ECC-INTEGRATION-2-1
$ popd

Now you have the sources of the GnuPG with elliptic curves support.

Update:
$ libgcrypt-config --version
1.6.0-git8993868
$ libgcrypt-config --algorithms
Symmetric cipher algorithms: arcfour blowfish cast5 des aes twofish serpent rfc2268 seed camellia
Public-key cipher algorithms: dsa elgamal rsa ecc
Message digest algorithms: crc md4 md5 rmd160 sha1 sha256 sha512 tiger whirlpool

$ gpg2 --version
gpg (GnuPG) ecc 2.2.0-git5761a9b
libgcrypt 1.6.0-git8993868
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Home: ~/.gnupg
Supported algorithms:
Pubkey: RSA, ELG, DSA, ECDH, ECDSA
Cipher: 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH, CAMELLIA128,
CAMELLIA192, CAMELLIA256
Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB

2010/12/22

FERMI@Elettra: First coherent emission

Last year we put beam in the booster ring (at December 21th, from the linac transfer line to a few meters in the booster) and this year we cannot do the injection to the storage ring due to reasons that are only rumours listened in the corridors of Alba.

But the good news arrives from Elettra, and one of their on going projects: the Fermi. Also they have a third generation light source, but they are doing a fourth generation one: a FEL. Last Monday they get the goal like we did with the booster, but with next generation machine (and all of this next generation are under construction).

2010/12/20

scopes device server improve (III)

Again, new commit (r2509) to the tango-ds svn. This have some improvement more, trying to alow the user to do what they want, but with some reliability about it.

The initial design when many attributes (read_attributes([]))was requested at the same time, they was Ask() to the lower level device PyVisa, one by one. And this means one query per attribute:


On the last improvement, the device does one query to the instrument when many things are requested at the same time:


But with this, the issue is when you use a small scope (and I mean small, one with a small embedded system inside) some types of measurements block the instrument. When this multiple request is too big for this scope, a time out occurs. But for a bigger scope this can be not a problem, or the problem in a different number of multiple requests.

What has been committed today add a new attribute ('QueryWindow') to the device class to group this multiple query in smaller requests. Then configuring it, this allows to query one by one, in a really small scope; or all at the same time if the scope can support it. The image of the design can be:

Also another attribute has been introduced ('TimeStampsThreshold'). Even if the requests are grouped or not, if the client starts with many requests of the same value too often, the problem is shown again. Only requesting one attribute, but 10 times per second, depending on the scope can be an issue or not.

The solution I propose is cache values, with an attribute saying expiration time of the value. This means, when the client likes to read a value that has been never before read, this will be included in the list of attribute to read. When the answer is back, the data is saved with the time stamp of when it was read.

Some time in the future, the client can ask again for this value. This could happen 100ms after the first read, or 10minutes. The device will check the time stamps of the last read, and if it is too old, this will be read like in the case before. But if this is too short, the answer will be the previous value, and the tango attribute will have the time stamp of when this was read. This last part is really important to avoid confusion to the user: if the value is from the past, the user should be able the realize that. Also if more than one client request values to the device, this doesn't increase the number of hardware reads if they are asking the same thing.

I hope with this changes, the usage of this device class will be better. We will see if something has to be change, and I'm open to other ways to solve this.

Update (2010/12/21): commit 2510
  • When a measurement is not possible, incomplete or stopped, the result is 9.99999e+37. Before this triggers an exception, but is better to returns NaN.
  • Fix the dictionary set for the cache on the start up
  • Add a filter for the spectrums attributes
  • After a time out the PyVisa goes back to its default value, check it before ask to it.
Update (2010/12/22): commit 2511
  • Bug fix in the group method. It cuts the last elements if they wasn't in the same length of the cut. ex: group([1,2,3,4],3) was excluding the last incomplete element, now it is returning [(1, 2, 3), (4,)].
  • Reduce the filters to one iteration instead of one per filter.

2010/12/15

Wikileaks pursuit

There is a lot of information about the wikileaks pursuit on the web. Just I read this funny comic.

Don't kill the messenger. After Wikileaks revelations, it seems that the problem is when secret information is shown. The problem is that the citizens are able to have proves of what we suspect: too many times our democratic representatives lie us. This informations, with many more revelations, are the final proof that they lie on purpose!