Samples of Assignments: Drawing in Xamarin Using Ncontrol

In the process of development, sometimes there’s a need to draw some interface elements manually. The Ncontrol component was created exactly for these purposes.

The library uses the NGraphics library to perform custom drawings to make it easy to build complex controls. The project is hosted on Github and is distributed under the MIT license. NControlView can be used both to do custom drawings and to create complex custom controls.

To make a long story short, it’s a rendering visualization mechanism on top of the standard mechanisms in iOS, Android, and Windows Phone. Continue reading

Naive Bayes Spam Filter Example

Naive Bayes classifier

Naive Bayes classifier is one of the easiest classification algorithms. However, very often it works even better than the more complex algorithms. I want to share the C# code and a description of how it all works.

And so, for example, I will take the problem of determining the type of the vehicle using it’s dimensions. Of course, to determine the type, you can create a large list of vehicles. But this list, in any case will never be comprehensive. In order to solve this problem, you can “train” a model for the marked name. Continue reading

Engineering Samples: The One about Stress Analysis of Riveted Lap Joint

Problem statement: There is a lap joint with one rivet, as shown in the Figure 1 below. The diameter of the rivet is 4 mm. The material of the rivet, as well as the material of pates in joint are given in the table 1 below. Force which is applied to the plate is given in form of distributed force through the cross-sectional area of the plate. Perform the Stress Analysis of the joint in order to verify the durability of the junction.

Lap joint

Figure 1. Lap joint

Continue reading

Engineering Problem Solving

Double Pipe Heat Exchanger Using ANSYS Workbench

In order to design a Double Pipe Heat Exchanger in ANSYS 16.1 the next steps were
accomplished:

a) Creating the project:

  1. Open the ANSYS 16.1 workbench;
  2. Select Fluid Flow (Fluent) in the toolbox menu at the left area of the window and create a new project.
  3. Rename the Project on “double-pipe” as shown in the Figure 1 below.
    figure-1-project-double-pipe

    Figure 1. Project “double-pipe”

  4. Save the project

Continue reading

Solved Problems in Physics: Classical Mechanics

Physics assignment

Classical mechanics

Problem statement

Particles with two different masses m and M are located along a linear harmonic chain
of infinite length. The chain has a force constant k (see the picture below). The
distance between two particles with the same mass is equilibrium and equals to a.
qj and rj are the deviations of particles mj and Mj from their equilibrium positions respectively. Continue reading