Legal stuff about this site and your private life:

  • We use a cookie to keep your preferences (language, NSFW status, login status) during navigation.
  • We use your local storage to save the announces you closed (like this one).
  • We don't save informations you don't give
  • We don't share your email address if you comment or register
  • There is no tracker of any kind.

If you're not OK with this, move your way.

04-07-2020
07:49
L'article "Travailler avec Git, le workflow d'Opus Codium et ExperimentsLabs" a été mis à jour. ajout de section "Git add -p, késako ?"
04-02-2020
19:12
L'article "Travailler avec Git, le workflow d'Opus Codium et ExperimentsLabs" a été mis à jour. rephrasage
09:44
L'article "Travailler avec Git, le workflow d'Opus Codium et ExperimentsLabs" a été mis à jour. typos et rephrasage
09:29

Depuis deux ans maintenant, je travaille régulièrement avec l'équipe d'Opus Codium. Nous avons un workflow concernant la gestion de nos dépôts Git que je souhaitais partager avec vous.

02-20-2020
17:54
Le projet "Elabs CMS" a été mis à jour.
02-12-2020
23:15

The Experiments Labs engine was a good exercise, but I have no more time to spend on it. It will be archived and the website will become a standard Rails application.

01-17-2020
22:03
  • Langue : English
  • Licence : MIT
  • Publié le: 17 jan. 2020 22:03
  • SFW :
  • Tags : VueJS
  • Albums : Aucun album

Small jigsaw game where you have to swap tiles to reconstruct an image.You can use your own images or select one in a set from Wikimedia.

12-30-2019
15:02

Rails: Check Pundit authorization in RSpec

Pundit provide two helper methods to help you ensure the actions are authorized/scoped: verify_authorized and verify_policy_scoped. They are meant to be used in an after_action hook.

As the check is made after the action, I see no point of using it in production, so I use it in RSpec:

# rails_helper.rb
# ...
config.before(:suite) do
  FactoryBot.create :user, :known
  ApplicationController.send(:after_action, :verify_authorized, {except: [:index]})
  ApplicationController.send(:after_action, :verify_policy_scoped, {only: [:index]})
end
# ...

This way, it's still checked during all the tests using controllers.

12-28-2019
12:54

Rail: sending emails via a rake task won't work if you use the_mail.deliver_later. Use the_mail.deliver, instead.

Keep in mind that .deliver will be blocking in the context of the Rails server.

09-06-2019
06:13

I heard that finding names for projects is "the hardest thing in development, after cache invaliadation". And that's right.

"Site compare" was a bad name because of two things: it compares sites, that's true. But it does not compare sites. So that's false.

"Capyxel"? After all, that does not mean anything, but it's about Capybara and pixels. Without being too obvious. So why not?

06:08
Le projet "Capyxel" a été mis à jour. Change the project name to "Capyxel"
08-13-2019
15:09
  • Langue : English
  • Licence : MIT
  • Publié le: 13 août 2019 15:09
  • SFW :
  • Tags : Pas de tag
  • Albums : Aucun album

Fed up of searching for document examples?

07-15-2019
07:14
07:12
  • Langue : English
  • Licence : MIT
  • Publié le: 15 juil. 2019 07:12
  • SFW :
  • Tags : ruby
  • Albums : Aucun album

Tool to compare two websites with screenshots diff.

06-16-2019
10:05

This is a compilations of notes that leads to the setup of a control repo managed with r10k and the use of Hiera.

06-14-2019
15:04

This is a compilation of notes that leads to an installation of a Puppet server on an Ubuntu server 18.04.

04-23-2019
16:17
04-21-2019
22:48
04-05-2019
06:54

If you have issues with the KDE menu / KRunner items (items not appearing, wrong targets on .desktop entries, ...), you can try to rebuild the cache by running kbuildsycoca5 as an user.

02-14-2019
22:25
  • Langue : English
  • Licence : MIT
  • Publié le: 14 fév. 2019 22:25
  • SFW :
  • Tags : VueJS
  • Albums : Aucun album

Small app to compute volumes of liquids to use in e-liquids mixes.

01-15-2019
08:39

After testing Vuex(3.0.1) in a Nativescript-vue (2.0) app I noticed that when using ModalViews or ListViews, $store is not available in the list items components or modal component. For now, use a StackLayout for lists and I pass the $store as a prop to the ModalView:

<!-- Instead of a ListView -->
<StackLayout class="list-group">
  <MyComponent v-for="item in items" :item="item" :key="item.id" class="list-group-item"/>
</StackLayout>

In MyComponent, the method to open the modal is like:

import ItemForm from '../forms/ItemForm'

export default {
  name: 'MyComponent',
  props: {
    item: { required: true, type: Object },
  },
  methods: {
    openForm () {
      const props = {item: this.item, store: this.$store} // props for ItemForm
      this.$showModal(ItemForm, { props })                // Show ItemForm as a ModalView
    },
  },
}
12-31-2018
14:31

Elabs engine has been updated with an announcement system and a totally new UI.

Updating to this version breaks the original style and layout.

Join the project !

12-28-2018
13:14
  • Langue : English
  • Licence : MIT
  • Publié le: 28 déc. 2018 13:14
  • SFW :
  • Tags : Pas de tag
  • Albums : Aucun album

A small tool to visually sort files in directories.

12-01-2018
16:01
Le projet "Chatiments" a été mis à jour.