Skip to content

Instantly share code, notes, and snippets.

View mloskot's full-sized avatar
🏠
Working from home

Mateusz Łoskot mloskot

🏠
Working from home
View GitHub Profile
#include <boost/gil/gil_all.hpp>
#include <boost/gil/extension/io_new/bmp_all.hpp>
using namespace std;
using namespace boost;
using namespace gil;
int main()
{
typedef rgb8_image_t image_t;
@mloskot
mloskot / vector_resize_benchmark.cpp
Last active December 14, 2015 22:48
Is your std::vector<byte>::resize implementation optimal?
// Is your C++11 std::vector<byte>::resize implementation optimal?
//
// Visual C++ 11:
// reserve() -> fill_n -> detail: _Fill_n -> memset:
//
// inline unsigned char *_Fill_n(unsigned char *_Dest, size_t _Count, unsigned char _Val)
// { // copy unsigned char _Val _Count times through [_Dest, ...)
// _CSTD memset(_Dest, _Val, _Count);
// return (_Dest + _Count);
// }
  • view - Restore previous list of ORACLE_OCI_NAMES
  • view - Add ORACLE_HOME to ORACLE_LIB_DIR
  • view - Remove linking against Oracle OCIEI lib.
  • view - Add PPC64 to tested platforms.
  • view - Test functions with ':=' and causes a crash case
  • view - Fixes a crash and allows creating complex function
  • view - Use standard "||" instead of "or" keyword in Firebird backend code.
  • view - Fix
@mloskot
mloskot / msvc_fileno_std_streams_test.c
Last active December 16, 2015 10:29
Different fileno() return value reported for standard streams in non-console Windows application (i.e. MFC GUI application)
BOOL MyOnInitDialog()
{
int fdi, fdo, fde;
fdi = fileno(stdin);
fdo = fileno(stdout);
fde = fileno(stderr);
#if _MSC_VER < 1700
assert(fdi == -2);
assert(fdo == -2);
assert(fde == -2);
@mloskot
mloskot / vim-shortcuts.md
Last active December 16, 2015 15:28
List of useful Vim shortcuts
@mloskot
mloskot / soci-pre-3.2.2-github-changelog.md
Last active December 17, 2015 22:19
pre-SOCI 3.2.2 release changelog

List of candidate commits to include in SOCI 3.2.2:

  • List of issues assigned to milestone 3.2.2
  • List of commits already in develop branch is below:
$ git log master...develop  --pretty=format:"1. [%h](http://github.com/soci/soci/commit/%H) - %s"
  1. 4f37c3f - Fix typo
@mloskot
mloskot / boost_geometry_status-20130620.md
Last active December 18, 2015 17:58
Quick report of the Boost.Geoemtry implementation support status in plain text format, with modified code for text_outputter.hpp to pretty-print with geometry names included.
@mloskot
mloskot / soci-3.2.2-github-changelog.md
Last active December 22, 2015 18:49
SOCI 3.2.2 release changelog

List of commits included in SOCI 3.2.2:

  • List of issues assigned to milestone 3.2.2
  • List of commits already in develop branch is below:
$ git log develop...hotfix/3.2.2  --pretty=format:"1. [%h](http://github.com/soci/soci/commit/%H) - %s"
  1. d71d552 - Merge branch 'soyersoyer-develop' into hotfix/3.2.2
  2. c62521c - code cosmetic
@mloskot
mloskot / AlexPuccioTraining.md
Last active January 13, 2016 16:04
Alex Puccio's training overview based on interview given to TrainingBeta.com
@mloskot
mloskot / pdal_build_incredibuild_vs_msbuild.md
Last active February 18, 2016 17:24
Timing PDAL build using VS2015 and IncrediBuild vs MSBuild

PDAL parallel builds on Windows

Quick wall clock comparison of PDAL parallel builds using MSBuild and IncrediBuild.

TL;TR

Build (cores) t(s)
MS (48) 44
MS (32) 44