Website: education.strawbees.com

Previously I worked with programming a new website for strawbees.com, and the second project was to create a similar website to a new target group; educators. To separate the education site from the retail site we divided them on two subdomains. Layout is mostly the same but color schemes and some minor functionalities differ.

Check out education.strawbees.com

Posted in Blog, Timeline

Website: Strawbees.com

Together with the briliant mind of studiooddball we created a refreshed website for Strawbees; a Swedish toy company. She did the design and I did all the programming. Some features:

  • Online store
  • Driven by WordPress, PHP and MySQL
  • Custom javascript to showcase their play guides
  • Responsive design

Check out their website


Posted in Blog, Timeline

Working on a game in Unity3D

Together with my brother we are creating a game for iOS, Android, Mac and Windows. Currently a work in progress but it is starting to be rather fun and challanging gameplay.

Computer graphics is done by my brother; Jonathan Nilsson at Crocoraff.com. I do the C# programming in Unity3D which is quite pleasant to work with. The whole project is open sourced at github.

Posted in Blog, Timeline

Almost completely quiet pc

I hate computer noise but I love computers and it was time for a new computer purchase. My first approach was to buy everything passive (GPU, CPU, PSU) but apparently there are not many components that fit those constraints. Instead I went for semi-passive components that only run their fans if necessary. I chose:

  • low power CPU to not generate too much heat
  • gigantic CPU cooler to eliminate the need of a fan
  • just one big case running on very low rpm to transfer heat out of the chassis

Full component list for a quiet pc

Booting up is a bit noisy because the GPU fans and the HDDs throttle up. But after a few seconds it is almost completely quiet.

Posted in Blog

Cpac Systems: Rapid prototyping

Rapid prototyping is a great way of researching concepts for new products. Recently I got the task of making a proof-of-concept for a Bluetooth device that needed to communicate with smart phones. In a matter of weeks I could present a interface hardware written in C++ and Arduino, together with a rather simple but fully functional mobile app.

Posted in Timeline

Cpac Systems: Inventor in patent applications

When developing new features for marine applications now and then I have the opportunity to work with solving complex problems. Sometimes the solution to those problems are sufficiently good to be patented. I have written numerous internal innovation declarations and a few of them have made it further than others. Right now I am the sole inventor of one patent which is pending in Sweden, and also co-inventor of two patents being filed by one of our company partners (patents also pending).

Posted in Timeline

Cpac Systems: Automated build environment

I have been responsible for automating a large portion of the software build environment for Cpac Systems marine products. Basically new software is built by an automated build server every time someone commits new code to the software repository, but also on request when a software release needs to be done. I have automated the build and release processes piece by piece and now (with a few exceptions) we can release a new software for a large batch of products in a matter of minutes, compared to before when a software release could take a day. The reason for this is Python scripts that handle the complete build and documentation process of every software, which is done in parallell for a multitude of products. Before this process would be done by individuall software programmers for "their product" on build day.

Posted in Timeline

Cpac Systems: Automatic Hardware-in-the-loop (HIL) tests

I like automating boring tasks, and one of them sometimes is integration testing. At Cpac Systems I have been writing scripts and configuring hardware for automatic testing of Electronic Control Units (ECUs). Basically connecting the essential control units for running a boat to the same system, and writing automatic test cases that perform hardware-in-the-loop (HIL) tests. All of it connected to Jenkins Continous Integration server.

Posted in Timeline

ODE solver in Python using custom Forward-Euler


For realtime simulation it is important to have an ODE solver that is simple enough. I did not find any plug-and-play kind of ODE solvers for realtime applications so I wrote one myself. The greatest benefit of this approach is that you have full control of every time step. Good for realtime simulations.


It is very simple but show the basics of how to write an ODE solver. It could be extended to use more sophisticated solvers like Runge-Kutta or Crank-Nicolson.

Tagged with:
Posted in Blog

Trying some game development in Python

I wanted to learn some basic game development in OpenGL and Python. Pyglet is very good for this kind of thing. Unfortunately it seems to have a less active community compared to Pygame (but in my opinion Pyglet seems much more Pythonic in its design). My game will not win any awards since it is a Asteroids clone. But it has some other features like:

  • Bullets have recoil and will slightly accelerate the ship rearwards when shooting.
  • Game graphics from a professional artist. (nalishac.com)
  • When I started this list I thought there would be more features but I think this is it.

pyglet-asteroids on Github


Using a lot of code and inspiration from:

Code structure and inspiration from:

Tagged with:
Posted in Blog