Drone Users Anonymous - Feeding the drone addiction

Some [censored] has managed to land a brand new Range Rover in the middle of the roundabout. As it hit the barrier which essentially acted as a ramp, it took off and flew for good a 5-7 metres before smashing to the ground. I obviously had to investigate and flew over with my Phantom to the site of the accident.

What speed the driver of the Range Rover must have been doing to make a such a big jump?

Anyway, here is the video

View original post

Drone Users Anonymous - Feeding the drone addiction

I found a document online intended to instruct police officers on how to deal with drone offenders (pretty much of all the drone users). Here is the list of few interesting extracts:

The ownership and use of drones are not of themselves unlawful but in certain circumstances, their use may contravene air safety legislation or other statutes, commonly used to manage other types of offending. The intention of this guidance is to address the negligent, reckless or malicious use of this technology.

It is not the intention of the Police Service to criminalise innocent misuse and the criminal justice system provides options for non-recordable disposal. However, some innocent misuse might also be reckless and therefore Appendix Two to the SOP provides a gravity factor matrix that users of this SOP may use to help them in decision making.

View original post 268 more words

DJI Phantom 3

I got a DJI Phantom 3 Standard as a present for my 36th and so far I’m more than impressed with the purchase. The drone flies like a rocket has a very good range and beyond excellent gimbal stabilisation. No matter how much I tried to thrash it, the video is perfectly stabilised.

The safety features are even more impressive –  if it happens that you lose the connection to the drone it will automatically land itself where it took off, so you really need to try hard to lose it.

You can install Litchi software on the phone and then use their website to create a flight mission, where you specify the altitude, speed, direction of the drone and the cameraLitchi

Here some sample footage I have taken using waypoint navigation described above.


Efficient linked lists in .NET

Exercises in .NET with Andras Nemes

Sometimes you need a collection that’s modified a lot: you insert, update and remove items. A List of T is then inefficient as it needs to constantly rearrange all other items. The LinkedList class might be a better candidate.

A linked list is a doubly-linked list. Each item has a Next and Previous pointer to look at which element comes right before and after a particular object in the list. A linked list is very efficient at inserting and deleting items in particular.

Initialisation:

View original post 181 more words

Line Saving Code Tricks – C#

Stuart's Pixel Games

Introduction

Reducing lines of code can make your work more readable, making it easier for you and for others to read. More lines means more mental gymnastics to decipher which part of code does what. I want to go over some tips and tricks that helpd me.

This is a guide I’ll update periodically if I discover new line saving tricks. If you know one that I haven’t put in, post a comment below to let me know and it may end up in the guide!

Smart Booleans

A real line saving trick is being smart with booleans. Below is a typical scenario you might have with turning off an objects animator once a counter has finished counting down.

void Update()
{
    counter--;
    
    if(counter > 0)
    {
        animator.enabled = true;
    }
    else  …

View original post 1,696 more words

ErazerBrecht's Blog

Hello,

UPDATE 13/10/2015/
I made another post about MVVM and EntityFramework. After reading this, you should really check that one out!
It’s really worth it to use MVVM 🙂
Link to another post: Click Here

I’ll explain the basics to get SQLite working with EntityFramework 6. It’s a straight forwarded tutorial / explanation. I will not tell you everything about EF (there are a lot of tuturials on the web). Instead I’ll show you the most basic example to get EF working with SQLite, after all it wasn’t that easy!

View original post 1,783 more words

Mirko Maggioni

When we have to test methods that involves Entity Framework, a typical choice that we have to face is use integration tests, with an effective database, or unit tests.

If we choice the first option, with a database like SQL LocalDB, we’ll have performance problems because the cost of the database creation and the data inserts in the test startup is very high, and in order to guarantee the initial conditions we’ll have to do it for each test.

What we can do is use a mock framework that help us to mockup the entity framework context; it would be an in-memory db context, like the in-memory db context of .NET Core, that we have seen in this post.

The factory

In pratice, mocking a class means substitute the real implementation of a method with our custom behaviour; what we can do for every method of the class is…

View original post 482 more words

Stumbled upon this article written by no other than Eric Lippert listing the top 10 design faults of C# language. Here is the summary,  the source to the full article is at the bottom. 

#10: The empty statement does nothing for me

Reflects on the fact that lone “;” is a legal statement

#9: Too much equality

There are too many ways check for equality: ==, Equals, ReferenceEquals, CompareTo(…).

From personal experience double.NaN == double.NaN is false but double.NaN.Equals(double.NaN) is true

#8: That operator is shifty

Weirdness around << and >> operators

#7: I’m a proud member of lambda lambda lambda

The way C# 2.0 implements anonymous delegates

#6: Bit twiddling entails parentheses

Flags Enums

#5: Type first, ask questions later

C# borrows the “type first” pattern from C and many of its other successor languages – something I got used to and the “correct” way now seems illogical to me

#4: Flag me down

The fact that you can create invalid enum values and have to manually check for this in the code

#3: I rate plus-plus a minus-minus

++i, i++, i +=1 etc. how much confusion and the pain it caused.

#2 I want to destruct finalizers

Agree with the author that finilisers in C# are symptoms of a bug. Seen it way too many times myself.

#1 You can’t put a tiger in the goldfish tank, but you can try

“array covariance” and how this could lead to run-time exceptions.

Source: http://www.informit.com/articles/article.aspx?p=2425867

Exercises in .NET with Andras Nemes

In this short post we’ll see a way how to make two custom objects equatable using the generic IEquatable interface. Consider the following object:

The object superclass has an Equals method that we can test as follows:

View original post 208 more words