Building fasttext with Visual Studio

While working on classifying knowledge management documents needed word embedding, and this required me to build fasttext on windows using visual studio, as cmake was not available.

Here’s a visual summary of the steps with few things I faced while building fasttext with visual studio 2013.












Error    4    error C2146: syntax error : missing ‘;’ before identifier ‘size’    d:\project\fasttext-master\fasttext-master\src\utils.h    19    1    fasttext

Error    5    error C4430: missing type specifier – int assumed. Note: C++ does not support default-int    d:\project\fasttext-master\fasttext-master\src\utils.h    19    1    fasttext

Error    6    error C2061: syntax error : identifier ‘int64_t’    d:\project\fasttext-master\fasttext-master\src\utils.h    20    1    fasttext

Error    7    error C2146: syntax error : missing ‘;’ before identifier ‘size’    d:\project\fasttext-master\fasttext-master\src\    18    1    fasttext

Error    8    error C4430: missing type specifier – int assumed. Note: C++ does not support default-int    d:\project\fasttext-master\fasttext-master\src\    18    1    fasttext

Error    9    error C2086: ‘int fasttext::utils::int64_t’ : redefinition    d:\project\fasttext-master\fasttext-master\src\    18    1    fasttext


Error    11    error C2061: syntax error : identifier ‘int64_t’    d:\project\fasttext-master\fasttext-master\src\    23    1    fasttext

Error    12    error C2065: ‘pos’ : undeclared identifier    d:\project\fasttext-master\fasttext-master\src\    25    1    fasttext

Error    24    error C2039: ‘iota’ : is not a member of ‘std’    d:\project\fasttext-master\fasttext-master\src\    115    1    fasttext

Error    25    error C3861: ‘iota’: identifier not found    d:\project\fasttext-master\fasttext-master\src\    115    1    fasttext

Error    26    error C2039: ‘iota’ : is not a member of ‘std’    d:\project\fasttext-master\fasttext-master\src\    134    1    fasttext

Error    27    error C3861: ‘iota’: identifier not found    d:\project\fasttext-master\fasttext-master\src\    134    1    fasttext

Error    55    error C2039: ‘iota’ : is not a member of ‘std’    d:\project\fasttext-master\fasttext-master\src\    207    1    fasttext

Error    56    error C3861: ‘iota’: identifier not found    d:\project\fasttext-master\fasttext-master\src\    207    1    fasttext









Patran Neutral Mesh File Writer updated


A recent comment from a blog reader made me relook at the patran neutral mesh file writer routine that I had on this blog.

Since the code was pasted on this blog, it lacked proper update and ability to have a test case or example file.

So spent this weekend, creating an example file and have uploaded the code and the example on github.

The entire writer is now availabe at

Hope to add and update the code more often. 🙂


Flying Through a Turbine Blade

Turbine blades are complicated and delicate pieces of engineering. Each blade has cooling channels that allow air to flow through and exit the porous shell of the blade, maintaining a stable temperature for the assembly. Due to their nature, each turbine blade requires a series of rigorous testing procedures in order to verify their structural integrity. Visual inspection is simple matter but capturing the integral structure is no easy task.

This is where neutron imaging can play a vital role. Neutron imaging is the process of making an image with neutrons. The resulting image is based on the neutron attenuation properties of the imaged object. The resulting images have much in common with industrial X-ray images, but since the image is based on neutron attenuating properties instead of X-ray attenuation properties, some things easily visible with neutron imaging may be very challenging or impossible to see with X-ray imaging techniques

Researchers from Oak Ridge National Laboratory (ORNL)’s Spallation Neutron Source (SNS) have recently utilized neutron imaging to examine the cooling channels and other inner workings of Inconel 718 turbine blades. Watch the video.

Intersection Of two curves in Pure Numpy

Faced the following problem a few months back: Have two sets of curves in Cartesian coordinates, want to find if they intersect and where?

No straight forward solution was available, could find various solution using functions but none available with x, y coordinates.

Solution, found a matlab implementation that did just that, ported it to python. This is a pure python numpy implementation of interaction of two curves.


Example Usage:

Produces the picture at the start of this post. As always the entire code freely available at this github repo.