EnglishSvenska

Xamarin CustomView Example

Github repo

Example project showing how to create a custom control (UIView) with XIB so that it's available in Xamarin iOS designer. Custom UIView does not render in storyboard, but can be selected from the toolbox window. If you make rendering in storyboard work, please make a pull request and I will merge it into this repo. The reason to this example project simply is that I was looking for an example like this but could not find something that was working out of the box.

Design custom view in xib using Visual Studio or Xcode (less buggy):

xib

CustomView is visible in Toolbox:

Toolbox

CustomView can be droped into your storyboard:

Storyboard

Simulator run. View can also be resized/rotated during runtime:

Storyboard

Getting Started

Clone and run .sln in Visual Studio.

Prerequisites

Visual Studio (Tested on Visual Studio CE 2017)

Author

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

 

Github repo (to download code)

 

Our game Bananpiren now has music

My brother Jonathan Nilsson knows a great music guy; Viktor Envall, that agreed to create custom music with inspiration from Harry Brandelius ("det har kommit en båt med bananer"), and Fred Åkerström ("Gamla Nordsjön").

https://github.com/sebnil/shipper/releases/

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

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

 

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.

Website: Lumlyx.com

In colaboration with Studio Oddball, I made a simple yet functional WordPress website for Lumlyx. The website is made with responsiveness in mind to make sure it is usable on mobile devices. Check it out at lumlyx.com

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.

ODE solver in Python using custom Forward-Euler

Predator-Pray

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.

https://github.com/sebnil/Python-ODE-Forward-Euler/blob/master/Forward-Euler%20ODE%20solver.ipynb

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.

Taggad med:

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:

Taggad med:

Infrared experiments to control the television from a website

Where is the remote? Wouldn't it be good if you could switch channels on the television from a website. A wanted to see if it is possible. It didn't.. Note to self; buy more powerful IR transmitters.