Archives de catégorie : Informatique

How to run shell files FROM WITHin visual studio

I had a problem recently : my scripting experience coming mostly from Linux, I’m much more used to shell scripts than .bat scripts. And despite working on Windows, I still prefer using shell script language mostly for human factors reasons (I find batch syntax ugly and frankly impossible to understand and/or remember).

But contrary to the Linux world, a shell executable (also known as sh.exe, or any other flavor like Bash or Zsh to name a few) is not installed by default on a Windows. You have to install it yourself and do a bunch of wiring so that shell files are automatically executed by the shell executable using some kind of fake Unix environment (Cygwin is a good example).

My problem of the day is one of yet another kind…

Continuer la lecture de How to run shell files FROM WITHin visual studio

UNREAL ENGINE TIPS – C++ BITFLAGS ENUMS

While working on the game Front Line Zero with the METATEK game developement studio, I’ve used the Unreal Engine 4 game engine for some years now.

I’d like to share some knowledge about the pitfalls and neat tricks I got to discover under the form of short, easily-readable blog posts.

Today’s topic : how to make a C++ enum that displays as an editable bit flags value in the editor.

Continuer la lecture de UNREAL ENGINE TIPS – C++ BITFLAGS ENUMS

Unreal Engine Tips – Playing random animations

While working on the game Front Line Zero with the METATEK game developement studio, I’ve used the Unreal Engine 4 game engine for some years now.

I’d like to share some knowledge about the pitfalls and neat tricks I got to discover under the form of short, easily-readable blog posts.

Today’s topic : how to play a random animation from a predefined list.

Continuer la lecture de Unreal Engine Tips – Playing random animations

Heart.BiTS

Cette année, j’ai participé pour la première fois au prix René.e Barjavel.le, le concours de nouvelles du festival de la science-fiction de Lyon, Les Intergalactiques, qui a lieu tous les ans.

J’ai été agréablement surpris d’apprendre que j’ai failli gagner : en effet, j’ai été mentionné pendant la remise des prix pour ma nouvelle « Heart.BiTS » 🙂 Et pour moi, finir « deuxième », en quelque sorte, avec un seul texte à mon actif, face à d’autres concurrents ayant déjà publié romans et recueils, plutôt pas mal. Pour information, la gagnante est Céline Maltère pour sa nouvelle « La Coupole ». Je vous laisse chercher son parcours si ça vous intéresse.

Comme le texte a été écrit en partie pour répondre au thème du concours (« Lettre ouverte aux vivant.e.s qui souhaitent le rester »), difficile de le réutiliser tel quel, je me demandais un peu quoi en faire… Mais comme certaines personnes souhaitent le lire, j’ai décidé de l’ « auto-publier » sur mon blog.

Pour ceux qui ne s’embarrassent pas des détails, vous trouverez le texte tel que je l’ai envoyé au jury sur ce fichier PDF : cliquez ici. Le seul ajout que j’y ai apporté est mon nom.

Pour les autres, je continue de radoter un peu plus bas.

Continuer la lecture de Heart.BiTS

Python caveats

Working with Python on and off for years now, I had the… opportunity to be the victim of a number of pitfalls inherent to the language, with some of them having caused weird bugs and hard-to-track issues, mostly due to my lack of Python knowledge.

In order to remember them, and perhaps to help you too, reader, if you don’t know them, here are some of my all-time favorites !

Continuer la lecture de Python caveats

Two dangers of modern C++

I’d like to talk here about two not-so-new features of C++ (auto types and lambda functions) that managed to bite me recently, even though I thought I knew them well enough (I still do!).

According to me, it doesn’t show that one should ditch them into oblivion and never use them (but some people make their life easier by doing so), but clearly that they should be handled with care, as they more or less act as syntactic sugar on C++ type system, which can be, unfortunately, both overly rigid (which is why we use them in the first place) and overly flexible (which is usually why bugs get in our way).

Let’s get to the point.

Continuer la lecture de Two dangers of modern C++

Aggressive commit of Intellisense suggestions in Visual Studio

Just to add a bit of context here: at the moment, I’m doing quite a lot of C++ programming on Windows environments, especially with Visual Studio.

And one thing I particularly dislike with Visual Studio’s default settings is that « aggressive commit » of Intellisense suggestions when you’re typing a type is disabled by default.

So, what is « aggressive commit of Intellisense suggestions », you ask…

Continuer la lecture de Aggressive commit of Intellisense suggestions in Visual Studio