Bash : réparer les tables MySQL en cas de crash photo

Bash : convertir une liste de fichiers MP3 en Ogg Vorbis (et vice-versa)

Bash

Pour les besoins du Centre de Kriya Yoga France, j’ai été amené à devoir convertir toute une floppée de fichiers MP3 au format Ogg Vorbis afin qu’il soient lus nativement en HTML5 dans les navigateurs compatibles avec la balise audio.

J’ai utilisé la commande avconv dans un terminal.

Convertir des MP3 en Ogg Vorbis

Voici le script que j’ai écrit pour me simplifier la vie et convertir ma liste de MP3 au format Ogg Vorbis:

for i in *.mp3; do avconv -i $i -codec:a libvorbis -aq 4 ${i/%mp3/ogg}; doneCode language: PHP (php)

Cela recherche tous les fichiers MP3 du répertoire dans lequel on se trouve, utilise le codec libvorbis, encode dans une qualité supérieure ou égale à 128Kbps et nomme le fichier avec la bonne extension (.ogg pour l’Ogg Vorbis).

Convertir des Ogg Vorbis en MP3

Si vous souhaitez convertir des fichiers Ogg Vorbis au format MP3 :

for i in *.ogg; do avconv -i $i -codec:a libmp3lame -aq 2 ${i/%ogg/mp3}; doneCode language: PHP (php)

Cela recherche tous les fichiers OGG du répertoire dans lequel on se trouve, utilise le codec libmp3lame, encode dans une qualité supérieure ou égale à 192Kbps et nomme le fichier avec la bonne extension (.mp3).

Lire la suite

The 18th Century : the Age of Enlightenment photo

The 18th Century: the Age of Enlightenment

  1. The 18th Century: the Age of Enlightenment
  2. The Gothic and the Fantastic
  3. The 19th Century : Romanticism in Art and Literature
  4. English Romanticism (1798-1832)
  5. 19th Century Literary Movements : Realism and Naturalism
  6. British Civilisation and Literature: 19th and 20th centuries

Introduction

The 18th Century can be dubbed “the Age of Enlightenment” as it was marked by French philosophers such as Voltaire, Rousseau or Diderot (the Encyclopédie was published in 1761).

The Enlightenment is characterized by the belief of the natural goodness of man: man is perfectible, it is the idea of progress obtained through the use of reason.

Since man is naturally good, all bad things come from society: if we could fight prejudices and oppressive social institutions, man would be better. It’s a question of education: political and social reforms would bring man happiness. These are the principles of the French Revolution.

The situation is different in the United Kingdom. The revolution had already been made: the “Glorious Revolution” of 1688 established a parliamentary monarchy but it was not a democracy since you needed to be rich to go to Parliament.

John Locke, a famous British philosopher, influenced the notion of parliamentary democracy. He was a predecessor of the Enlightenment but his ideas were only applied in America after the War of Independence (1776-1782).

The American Constitution was applied in 1789. In the USA, there is a republican government with a president and a principle of equality in front of the law: “Everyone has the right to life, liberty and the pursuit of happiness”. There is a truly optimistic belief in man and happiness, and progress and reason.

Lire la suite