oriolrius.cat

Des del 2000 compartiendo sobre…

Category: Mussol

XML & DocBook: Structured Technical Documentation Authoring

Reading time: 2 – 3 minutes

docbook.jpg

XML is short for Extended Markup Language and is a subset of SGML, the Standard Generalized Markup Language. XML is an HTML-like formatting language. Whereas most HTML-related formats developed in the past adopted the “be conservative in what you send and liberal in what you receive” attitude, XML takes the opposite approach–documents should be 100% compatible. This compatibility is known as “well-formedness” of an XML document. To this end, even when the goal is clear, a document is rejected if it does not follow XML specifications to the fullest extent. In terms of practicality, this approach guarantees interoperability in the long run. Unlike HTML, which is the standard groupname for a lot of sub-protocols that are slightly different and not fully interoperable with one another, the strictness of XML ensures compatibility. XML also improves security dramatically, because there is only one way to interpret expressions, a way on which everybody agrees.

DocBook is an XML Document Type Definition or DTD. It is a subset of XML particularly suited for but not limited to the creation of books and papers about computer hardware and software. DocBook is well-known in the Linux community and is used by many publishing companies and open-source development projects. Most tools are developed for the DocBook DTD and are included in most Linux distributions. This allows for sending raw data that can be processed at the receiver’s end–wherever applications able to interpret XML directly are available.

The important thing to keep in mind is XML and DocBook let authors focus on content. In that sense, the presence of the word “markup” in the definition of XML is misleading. With XML, authors specify what type of data they are including, such as text explanations, command names, tables or images. How the content is formatted, laid out and displayed should not be their concern. From a single source, the receiver might generate PDF, PS, plain text, HTML and many other representations of the content.

Another advantage is DocBook XML files are written in plain text. Although many editors are available, such as oXygen and XMLmind, advanced DocBook users easily can write the source texts using vim, Emacs or any other text editor.

Publicat al Linux Journal: XML & DocBook: Structured Technical Documentation Authoring

La llegenda dels teclats QWERTY

Reading time: 1 – 2 minutes

keyboard.jpg

Imagino que tots estareu al corrent de la famosa llegenda del perquè els teclats QWERTY estan organitzats d’aquesta manera i no d’una altre. De fet, un gran motiu és que sinó no es podrien dir QWERTY, no em feu cas aquesta parida és meva, tot i que certa. Per si algú no esta al corrent he trobat una web on ens expliquen tota la història sobre la organització de les tecles als teclats: THE FABLE OF THE KEYS. ( local)

Per si algú és un mandrós i no vol llegir-se tot el rollazo en anglès però encara no sap el perquè, us en faig cinc centims. Resulta que quan es van inventar les màquines d’escriure els mecanismes no eren el bons que d’ells es podien esperar i llavors si escribies massa ràpid les “lletres” no tenien temps de tornar al seu lloc. Per tant, es van haver de buscar la forma més “lenta” (òptima) possible perquè els carros de lletres que picaben la tinta i imprimien el paper tinguessin temps de tornar al seu lloc quan algú escribia.

Unison: semblant al rsync però millor en molts aspectes

Reading time: 3 – 4 minutes

A través d’un article de BULMA he recuperat una referència que fa temps havia oblidat i no recordo el perquè. De fet, fins hi tot provat l’Unison però ara mateix el tinc completament oblidat dins el meu cap. Així que penso provar d’usar-lo durant un temps si no us dic el contrari us el recomano, perquè pel que he llegit soluciona molts dels problemes que tinc amb el rsync. Sobre tot a l’hora de fer backups en servidors que no vull tenir l’rsync corrent i en infraestructura windows que malgrat uso el un port d’rsync per win deixa molt que desitjar.

unison.png

O sigui, que el més destacable és que podem sincronitzar dos PCs sense haver de deixar cap port nou obert, simplement connectar-nos a través de l’SSH, per exemple.

Unison
is a file-synchronization tool for Unix and Windows. It allows two replicas
of a collection of files and directories to be stored on different hosts
(or different disks on the same host), modified separately, and then brought
up to date by propagating the changes in each replica to the other.

Unison shares a number of features with tools such as configuration management
packages (CVS, PRCS,
Subversion, BitKeeper,
etc.), distributed filesystems (Coda,
etc.), uni-directional mirroring utilities (rsync,
etc.), and other synchronizers (Intellisync,
Reconcile, etc). However,
there are several points where it differs:

  • Unison runs on both Windows and many flavors of Unix (Solaris, Linux,
    OS X, etc.) systems. Moreover, Unison works across platforms,
    allowing you to synchronize a Windows laptop with a Unix server, for
    example.
  • Unlike simple mirroring or backup utilities, Unison can deal with
    updates to both replicas of a distributed directory structure.
    Updates that do not conflict are propagated automatically. Conflicting
    updates are detected and displayed.
  • Unlike a distributed filesystem, Unison is a user-level program: there
    is no need to modify the kernel or to have superuser privileges on either
    host.
  • Unison works between any pair of machines connected to the internet,
    communicating over either a direct socket link or tunneling over an
    encrypted ssh connection. It is careful
    with network bandwidth, and runs well over slow links such as PPP connections.
    Transfers of small updates to large files are optimized using a compression
    protocol similar to rsync.
  • Unison is resilient to failure. It is careful to leave the replicas
    and its own private structures in a sensible state at all times, even
    in case of abnormal termination or communication failures.
  • Unison has a clear and precise specification.
  • Unison is free; full source code is available under the GNU Public
    License.

Informe estadístic de les TIC i les PIMEs d’aquest país

Reading time: < 1 minute

De fet el títol ja ho diu tot, ara només falta el link. Ah! i dir-vos que si voleu vendre algo a les PIMEs d’aquest país en concepte de TICs o bé treballeu en una PIME i voleu saber com esteu respecte la mitja us serà molt útil.

Introducció molt interessant a del.icio.us

Reading time: < 1 minute

M’he trobat un article a XML.com a part de fer una introducció típica a què és aquest servei de bookmarking public aprofundeix una mica més en l’us de la seva API de la llibreria libxml2 concretament desde Python. Tot plegat molt interessant almenys sota el meu punt de vista.

Per altre banda us recordo que jo continuo usant SiteBar com a gestor de bookmarks multi-usuari, mutli-plataforma i multi-navegador.

Ernest Oriol

Reading time: < 1 minute

Aquest feed va dedicat a l’Ernest i a mi mateix una mica també, que encara no sabia que l’Ernest i jo teniem una joieria a la part de dalt del passeig de Gràcia de Barcelona i nosaltres pensant-nos que erem pobres, eh!? 🙂

ernestOriol.jpg

Més fotos

Operador Neutre de Catalunya

Reading time: < 1 minute

M’ha caigut a les mans a través de la llista de correu de Guifi.net un document sobre l’Operador Neutre de Catalunya, el document es titula Projecte Pla d’Acció Catalunya sense fils, descripció del projecte. Li he estat donant un cop d’ull i us recomano que si esteu interessants en alguna alternativa de wi-fi a nivell local o similar pot interessar-vos molt tot el que es preten fer. Ara com sempre tot el que promou l’administració només cal que s’acabi fent i que no es quedi tot en 4 idees molt màques mortes en papers oblidats i hores i hores perdudes de molts voluntaris.

Scroll to Top