yogsototh

yogsototh

46p

86 comments posted · 0 followers · following 0

11 years ago @ Yogsototh's Blog - Yesod tutorial for new... · 0 replies · +1 points

I tried to use the wiki, but it is awful. I might be able to copy my markdown source.

I don't feel I'll have the time to doing this soon. But if anybody can do it. My articles are all open source.

11 years ago @ Yogsototh's Blog - Git pour les nuls · 1 reply · +1 points

Bon alors je vais essayer de mieux préciser.

Git c'est un outil pour gérer des fichiers en local et pouvoir les synchroniser avec d'autres chacun travaillant en local (pas avec ssh).

Chaque personne doit avoir installé en local un serveur (accessible via localhost). Chacun aura une version de dev du serveur. C'est à dire une version avec une base de donnée locale pour être certain de ne rien casser en prod.
Sachant aussi qu'il existe des moyens pas trop horrible de récupérer les données de prod en local.

Le seul moment où ssh est nécessaire, c'est lors d'une mise en production, après avoir testé en local que tout semble correct. En général on va sur la machine de prod, on fait un git pull + restart du serveur.

Concrètement, pour travailler avec joomla, il faut
1 - installer Apache + PHP sur son ordinateur.
2 - Créer un répertoire contenant son projet joomla
3 - Initialiser ce répertoire avec git
4 - Optionnel mais recommandé, fair un push de ce projet vers github (c'est plus simple pour travailler à plusieurs)
5 - Ensuite on entre dans la boucle de travail :

a - git pull (récupérer les modification des autres)
b - faire des modifs, tester
c - faire des git add/git commit pour valider ses modifications
d - prévenir ses associés des modifs qu'on a fait
e - après avoir fais plusieurs tours b,c,d faire une mise en prod et recommencer en a.

Mon conseil pour avoir une vie plus facile serait d'essayer de voir le monde d'heroku. C'est intégré directement avec git. Il me semble qu'il doit exister des CMS basés sur ruby (et pas PHP) tout prêts. heroku est gratuit pour les petits sites, il fourni des outils très utiles pour récupérer automatiquement les données de BD de prod vers dev. Il permet de ne pas trop se soucier des BD (en général en local il utilise sqlite plutôt que d'avoir en plus d'apache a installer une base de donnée en local).

J'espère que ça a aidé. Bon courage pour la suite !

11 years ago @ Yogsototh's Blog - Git pour les nuls · 4 replies · +1 points

Pour les débutants qui ne veulent pas utiliser le terminal, je conseille d'aller voir ça : http://www.git-tower.com/

À mon avis ce sera plus adapté, il s'agit d'une application qui permet de faire l'essentiel de ce qui est possible en ligne de commande. Bonne chance !

11 years ago @ Yogsototh's Blog - Haskell OpenGL Mandelbrot · 0 replies · +1 points

Thanks,

I've finally tried unpacked strict data and I experienced a 40% speedup. I'll update my footer. I might write a sequel.

11 years ago @ Yogsototh's Blog - Haskell OpenGL Mandelbrot · 0 replies · +1 points

Thanks to have caught this. I never use signum. I should fix it.

11 years ago @ Yogsototh's Blog - Haskell OpenGL Mandelbrot · 0 replies · +1 points

As I answered to Gabriel Gonzales,

The problem occurs when you want to include two different modules with functions with the same name.
For example, Data.HashMap and Data.HashSet. They both have a 'null' function.
You cannot export your qualified import. The only workaround is to create a full list function name.

You can never use HashMap.null or HashSet.null in the file that import your module 'ManyImport'.

11 years ago @ Yogsototh's Blog - Haskell OpenGL Mandelbrot · 0 replies · +1 points

Thanks, but I was aware about this.

The problem occurs when you want to include two different modules with functions with the same name.
For example, Data.HashMap and Data.HashSet. They both have a 'null' function.
You cannot export your qualified import. The only workaround is to create a full list function name.

You can never use HashMap.null or HashSet.null in the file that import your module 'ManyImport'.

11 years ago @ Yogsototh's Blog - Indecidabilities ARTICLE · 0 replies · +2 points

I don't know, after reading it another time, I believe some things should be rewritten. I had almost forgotten this one. I'll try to write a sequel in less than one month :)

11 years ago @ Yogsototh's Blog - Learn Vim Progressively · 0 replies · +1 points

I believe this is a great idea! This is genius!

11 years ago @ Yogsototh's Blog - Typography and the Web · 0 replies · +1 points

This might be a workaround but, also I would have to change the letter-spacing dynamically and depending on the size of the font in order to make the word without the ligature as long as the word with the ligature.

But I might give it a try.