Thursday, March 25, 2010

How To Flirt With A Scorpio

freedoms and rights ... for whom? A ten-thousandth of

Yesterday, as the rail strike Piedmont from person sighted and well-organized, I decided to go home by bus.

Except that the bus path intersected a protest (apparently not announced), in which some hawkers, with their vans, they decided, in a totally disorganized and improvised, to invade and block the roads and intersections in Corso Giulio Cesare, Porta Palazzo el'imbocco between the motorway. Along with some

van (the "hundred" quoted by La Stampa seems quite exaggerated), there were many cars of the various security forces, who escorted them to the north, taking them out of the city until you gatherings are in the final stretch of Corso Giulio Cesare (zone Auchan - Iveco - McDonald's, to understand).

I do not know what was on the the protest, because beyond the slogan you can not ever get to see, live or in the newspapers. I also know that the freedom to demonstrate is guaranteed by the Constitution. I am not in a van instead of circular hiding and obscuring your license plate (as they did in the protesters) is really legitimate, but we are pretending to fly.

But to ensure the manifestation of 300 dealers, we must necessarily take 60-90 minutes to lose 10,000 people, seized in their cars or public transport from a paralyzed traffic and road closures? There is no guarantee that my right to return home at night?

Tuesday, March 23, 2010

Using Radio Shack Md-1700 Midi

Minister

Yesterday afternoon, do not ask me why, was present at the Polytechnic Minister Scajola .

I noticed when going to take a coffee at the usual insane machine, I noticed a squeal of tires and confusion come from the course Castelfidardo. Tre 'blue car' they stopped in front of the Polytechnic (a flashing light off), blocking one of two lanes of the course and creating a bit 'of confusion in the other car, oblivious, could not understand the situation. Then the cars 'blue', illuminated by a flash of genius, have seen fit to stop the blue lines of the parking lot, instead of occupying the lane.

Then came out (part of the car, leaves from the Polytechnic) drivers, bodyguards, and other musi hard. While I was wondering who it was to deserve much attention in the atrium in front of the coffee machines have materialized with the highest levels of Government Polytechnic, lovingly buzzing around the minister.

Along the way, I did a quick calculation: for the transport needs of the minister, were involved 10-15 people, and 3 cars. I returned by train, driven by a driver + 1 guard, along with other 1000 people.

in due proportion, the attention that the public service (why is the train cars are blue public services) dedicated to a normal citizen is about 1/10.000 times compared to that devoted to a minister. To be this that our ideas and needs are taken into consideration so low?

Monday, March 15, 2010

Master Lock Combination Recovery For Lock Box

Stunts LDAP

In those days I was able to appreciate once more the flexibility operating systems based on linux (or unix in general), especially when you perform system administration operations a bit 'out of normal.
In this case I'm handling the migration of users to a server that was based on an old version of Mandriva , and manage the database users to a LDAP server using a series of scripts ( smbldap ) long not supported, all migrating to a new server openSUSE 11.2. The goal is to continue to use an LDAP backend, but remapping the data representation (the so-called LDAP schema) as managed natively by the excellent administration tool YaST just openSUSE.
During the migration I also wanted to change the login name some people (mainly as a mild anti-spam measure) and delete other users, no longer needed. All this without knowing the password to anyone, so I had to preserve all these passwords.
LDAP is one of those things you have to face little at a time, is a directory server in the documentation tells you everything you need for creating phantasmagoric custom schema, and how to interrogate them with very complex queries. But nobody tells you clearly how the various Linux distributions store the data of users inside.
Or rather, the information is there, even if difficult to read, in RFC 2256 (A Summary of the X.500 (96) User Schema for use with LDAPv3) and RFC 2307 (An Approach for Using LDAP as a Network Information Service). You just have to read it 3 times, to understand that all information relating to a user can be summarized in:
 
 dn: uid = loginname  , ou = people, dc = cad, polished dc =, dc = com 
 objectClass: top objectClass 
: 
 inetOrgPerson objectClass: posixAccount 
 cn: First Name Last Name   
 sn: Surname   
 givenName: Name   
 uid:  loginname  
 uidNumber: 12345   
 gidNumber: 13254   
 homeDirectory: / home / loginname   
 loginShell: / bin / bash userPassword 
:  e1NTS ***** *** = dYUmw  






Fields in italics are those of each individual user, userPassword and the course was changed for security reasons.








that remains is to create a nice text file contains exactly this information, exporting LDIF from the previous server as needed, remove the attributes you no longer use, rename the attributes that were used differently in two scheme, and finally delete the users no longer want. In the end everything is imported to the new server LDIF, et voila, login on the first try!


The various steps followed are not interesting enough to be disclosed here, but I want to indicate the main tool used:





  • for export data from an LDAP server use ldapsearch






 
 ldapsearch-L-x -D 'cn = Administrator, dc = cad, polished dc =, dc = com'-W \\ 
-b 'ou = Users, dc = cad, polished dc =, dc = com' '(objectclass = posixAccount) '






  • for delete unwanted attributes, nothing better than a series of grep-v






 
 ldapsearch-L-x-D 'cn = Administrator, dc = cad, polished dc =, dc = com'-W \\ 
-b 'ou = Users, dc = cad, dc = polished, dc = com '' (objectclass = posixAccount) '






  • for rename attributes or values, a little' sed and regular expression






 
 sed ' s / uid = \\ (.* \\), ou = Users / uid = \\ 1, ou = people / '






  • finally, the retouching hand, the great ldapvi






 
 ldapvi-D cn = Administrator, dc = cad, polished dc =, dc = com 






Try to do the same on a Windows system!

Sunday, March 14, 2010

How Bad Do Microdermal Implants Hurt?

Shows (also) for engineers

Yesterday I went with my family to see the show BBC Walking with Dinosaurs, a wonderfully well done and impressive, which has attracted the attention of children and adults.

Very good scenery, with surprise effects (plants and flowers in particular), good audio with the reconstruction of various types of prehistoric roars and bellows.

But the most impressive part was certainly the life-size reconstructions of some of the most famous dinosaurs, created as a remote-controlled robots ( animatronics). Movements very realistic and plausible, but only limited by the size of the stage and forced to frequent reversing lack credibility.

The entire plant stage, directing, lighting and sound, the set of technologies for the realization of the dinosaurs and their remotes, the perfect coordination between real actors, actors drones and special effects. This is the kind of thing that would be worthwhile to experiment with our engineering students (I think of Eng. Film, mechanics, computer science, electronic, management, etc.).

would have been very instructive to organize a session at the Polytechnic where creative people had been able to explain how the show was made. Too bad not thought of before!