entt EnTT-(de)serialization with nlohmann::json Again playing with EnTT (ECS) which has a builtin mechanism that helps you (de)serialize a registry. You have to implement an 'archive' that (de)serializes the data. Here in
zproject zproject(part3): generate bindings After part1(getting started) and part2(looking at generated code) now its time to generate bindings, but before that let's generate a Docker-Image that will create a docker-image with this
zproject zproject(part 2): the generated files In the first part we saw how to create and build a zproject and in this part we will have a look at the code that is actually generated and
zproject zproject(part1): getting started ZProject is a project skeleton generator that helps you create c-APIs and generate multiple build-targets(cmake,autotools,..) with multiple scripting-language-bindings(python,lua,...) . The single source of truth is that project.
ghost ghost cms: get code highlighting to work If you have (like me) problems to get code-highlighting to work, here is my setup that works good enough for me. I actually use the first 'prism'-way but also added a 'highlight.js'-way. Go to the backend > code injection: Prism: header: <link
cpp use nlohmann::json for serialization Here some samples of how to use nlohmann::json for (de)serialization Define a struct following macro in it: NLOHMANN_DEFINE_TYPE_INTRUSIVE(Struct-name, member1, member2,...)This will add everything
ggj ggj'21: Solt dan Fundo I attended this years (online) global game jam('Headup Remote Jam 2021'). As always I want to use this weekend to kick myself in the butt to finish something in
Mate Linux: alt+tab problems Lately I experienced problems using alt+tab for switching between applications in manjaro-linux using mate-desktop. The problem seems to be the little thumbsnails showing a current preview of the specific application. To get rid of the problem: Pererences > WindowsUncheck 'Enable software compositing window
wasp-os: flash dfu via manjaro-linux At the moment I'm playing a bit with my pinetime smartwatch(es) and want to try wasp-os (python based development). I could flash the bootloader as described in the documentation
qt-creator qtCreator: strange debugging behaviour? My cpp-ide of choice is qtCreator. But lately I stumbled over a strange debugging behaviour where the debugger was triggered by some breakpoint unrelated SIGSTOPS right into the assembly. The easy fix to get around that is to uncheck "Run in terminal". I'm not
linux vim: deactivate visualmode Some linux distributions have vim's visualmode automatically been activated on mouse interaction. If you want to get rid of this: touch ~/.vimrc echo "set mouse-=a" > ~/.vimrc source ~/.vimrcSource: https://gist.github.com/u0d7i/01f78999feff1e2a8361#gistcomment-2698694
gimp Gimp-Quicktip: Show all tool-icons Just wanted to work with gimp and was wandering where the scale-tool went to? Well, I already thought that rotate/scale&co are hidden under some of those visible
blender Blender: installing pip module from within python Since some time the pip module is already installed in blender's python-distro. As I'm using pyzmq in my Urho3D-Blender exporter to have live-preview this is good news. Urho3D Renderer in
zeromq NetMQ in Unity3D Just started to play around with ZeroMQ in Unity3D using the pure C# implentation NetMQ, but I stumpled over this exception when binding the server: SocketException: The operation completed successfully.You can prevent this by just running following command on startup: AsyncIO.ForceDotNet.Force(
flutter Flutter: google signin without firebase I'm working on integrating nakama as backend for my flutter-projects and I do want to use google_sign_in for authentication on android. In order to use nakama's authenticateGoogle(...) you
dart Dart: protobuf - nested fields At the moment I'm working on a dart-client for nakama which defines the transport-layer-messages via protobuf. Nakama uses quite a lot StringValue ( a wrapper the encapsulates a string ). e.g. something like following is generated: class UpdateAccountRequest extends $pb.GeneratedMessage { .... @$pb.TagNumber(1) $1.
dart Dart: Protocol-Buffers If you want to use protocol buffers to generate dart-code you need to install the dart-protoc-plugin pub global activate protoc_pluginDefault proto-files are located (Linux) in /usr/local/google/protobufTo generate dart-code for this proto file: syntax = "proto3"; package tutorial; import "google/protobuf/timestamp.
flutter Flutter: Generating JSON-Serialization Flutter has a library for generating (de)serialization of json-data. You need following development(!)-dependencies: dev_dependencies: # Your other dev_dependencies here build_runner: <latest_version> json_serializable: <latest_version>Your task is to write the class that will hold
flutter Flutter: Passing data to StatefulWidgets If you want to pass data to your StatefulWidget in flutter you pass the data to the widget itself and store it there and access it via widget.XXX from
Let's https: certbot + let's encrypt Getting trusted Let's encrypt-certificates for your domain has never been easier. Even easier than actually creating custom certificates for yourself. At least if you don't have a clue about certificates
wood games You have: 0 friends! Äh, installs 😉 Couple of weeks ago I revived good old wood games to be available in the google play again. Took me quite some effort and I'm actually proud that it is still a fun little game. I actually didn't really told anyone that it is
go orm: xorm Now that I come to a point to start with creating a rest-service I'm ready to go(lang). I want to use an ORM to map go-structs to sqlite tables. For this I want to use xorm. Since I'm also new to golang there
echo go echo: CORS-support At the moment I'm playing around with golang and echo for creating a rest-service. Since my frontend is going to be flutter which is able to build out of the
android Android: accessing host computer from android emulator Quick-Tip: If developing for android using the emulator the host-computer is accessable via the ip-address '10.0.2.2'. Ref: https://stackoverflow.com/a/48737084