VapourSynth: pythonic alternative to avisynth

What do I know about VapourSynth

http://www.vapoursynth.com/ - website

How to save data from VapourSynth

You need to use vspipe.exe from Vapour distributive
It seems it returns raw data to stdout

Tables in Latex. Multiline, right alignment

I used tabularx package.
Additional definitions:
\usepackage{array}
\newcolumntype{L}{>{\raggedright\arraybackslash}X} % left multiline alignment
\newcolumntype{R}{>{\raggedleft\arraybackslash}X}  % right multiline alignment

Table:
\begin{tabularx}{\textwidth}{@{}p{0.8\linewidth} R}
 Text, aligned to the left, without margin \newline
 Tex in the same cell on the next line   
 &                                          % next column delimiter
 Text aligned to the right \newline second line
\end{tabularx}

Here we have one columt with 80% width and one column with right alignment
@{} is required to suppress left margin in the first column.

Results:


How?

How does start menu in Win7 select the most useless new application i've installed?

Building ConEmu

Problems with ConEmu building from 
https://github.com/Maximus5/ConEmu.git v14.01.06
in Visual Studio 2010

ConEmuC

unresolved external symbol __imp__wsprintfA - add additional dependency User32.lib


ConEmuCD

Error 3 error LNK2001: unresolved external symbol __imp__CharUpperBuffW@8
Error 4 error LNK2001: unresolved external symbol __imp__MapVirtualKeyW@8
Error 5 error LNK2001: unresolved external symbol __imp__VkKeyScanW@4
Error 6 error LNK2001: unresolved external symbol __imp__GetSystemMetrics@4
Error 7 error LNK2001: unresolved external symbol __imp__IsRectEmpty@4
Error 8 error LNK2001: unresolved external symbol __imp__MonitorFromRect@8
Error 9 error LNK2001: unresolved external symbol __imp__GetMonitorInfoW@8
Error 10 error LNK2001: unresolved external symbol __imp__MonitorFromWindow@8
Error 11 error LNK2001: unresolved external symbol __imp__SystemParametersInfoW@16
etc.

Error 101 error LNK1120: 98 unresolved externals

add User32.lib to reduce number of warnings from 99 to 32

Error 3 error LNK2001: unresolved external symbol __imp__LogonUserW@24
Error 4 error LNK2001: unresolved external symbol __imp__RegCreateKeyExW@36
Error 5 error LNK2001: unresolved external symbol __imp__RegQueryValueExW@24
Error 6 error LNK2001: unresolved external symbol __imp__CreateCompatibleDC@4

add advapi32.lib to reduce number of warnings from 32 to 14

Error 3 error LNK2001: unresolved external symbol __imp__SHGetFolderPathW@20
Error 4 error LNK2001: unresolved external symbol __imp__ShellExecuteExW@4
Error 5 error LNK2001: unresolved external symbol __imp__ShellExecuteW@24

add gdi32.lib to reduce number of errors from 14 to 3.
add shell32.lib to reduce number of errors to 0

ConEmuHk

Error 3 error LNK2001: unresolved external symbol __imp__CharUpperBuffW@8
Error 4 error LNK2001: unresolved external symbol __imp__MapVirtualKeyW@8
Error 5 error LNK2001: unresolved external symbol __imp__VkKeyScanW@4
Error 6 error LNK2001: unresolved external symbol __imp__GetCursorPos@4
Error 7 error LNK2001: unresolved external symbol __imp__MapVirtualKeyExW@12
.....

Add User32.lib to reduce from 20 to 4:

Error 3 error LNK2001: unresolved external symbol __imp__RegOpenKeyExW@20
Error 4 error LNK2001: unresolved external symbol __imp__RegCloseKey@4
Error 5 error LNK2001: unresolved external symbol __imp__LogonUserW@24

Add advapi32.lib to fix all


Bonus:

links to Russian habrahabr:
http://habrahabr.ru/company/epam_systems/blog/204368/

Free software for screen video capture

CamStudio 2.7

works fine



Rylstim-Screen-Recorder

There were some troubles while recording ConEmu software
Portable version is available


HyperCam 2

http://www.hyperionics.com/hc/
Works well

Temporary files format that can be deleted from project of Visual Studio 2010

Add to .gitignore:


  • *.ipch 
  • Debug
  • Release
  • *.sdf - The SDF file is your code browsing database which uses SQL Sever Compact Edition. You don't need to copy this SDF file while you move your project, and it will be automatically populated in the new location once you open your project. 

[1][2]

Migrating from SVN to Git and Mercurial

There is a lot of answers here:
http://stackoverflow.com/questions/79165/how-to-migrate-svn-with-history-to-a-new-git-repository

I found rather useful this one.
A guy made a script according to proposed instructions: https://github.com/onepremise/SGMS

This script will convert projects stored in SVN with the following format:

/trunk
  /Project1
  /Project2
/branches
     /Project1
     /Project2
/tags
 /Project1
 /Project2
This scheme is also popular and supported as well:

/Project1
     /trunk
     /branches
     /tags
/Project2
     /trunk
     /branches
     /tags
Each project will get synchronized over by project name:

Ex: ./migration https://svnurl.com/basepath project1
If you wish to convert the full repo over, use the following syntax:

Ex: ./migration https://svnurl.com/basepath .



I tested on the second structure type and it works. The question is only about saving merge structure. It seems it was lost. :( Branches are ok, but merged revisions are not marked as merged. In other words every revision has single parent


Things about C++

  1. rules for resolving calls to overloaded functions: 
    • identify the function that's the best match for the call (name, parameters etc)
    • checks accessibility for the best-match function.

Resolving function overloads (my)

Private inheritance

Example from Meyers "Effective C++"
class Timer {
public:
explicit Timer(int tickFrequency);
virtual void onTick() const; // Called automatically for each tic, 
// onTick() must be redefined to do things
...
};


class Widget: private Timer { // private inheritance
private:
virtual void onTick() const; // redefined to make job done
... 
};

Now clients of Widget get interface untouched and required job is done

Example of protecting method from redefinition in derived classes:
class Widget {
private:
    class WidgetTimer: public Timer {
    public:
        virtual void onTick() const;
        ...
    };
    WidgetTimer timer;
    ...
};
Classes derived from Widget unable to redefine onClick. Analogue of final in Java and sealed in C#