Tag Archives: code snippet

mdds::multi_type_matrix performance consideration

Share Button

In my previous post, I explained the basic concept of multi_type_vector – one of the two new data structures added to mdds in the 0.6.0 release. In this post, I’d like to explain a bit more about multi_type_matrix – the … Continue reading

Posted in | Tagged , , , | 1 Comment

Windows clipboard dumper

Share Button

Inspired by this bug report, I just wrote a small, quick and dirty utility to dump the current clipboard content on Windows. Windows development to me is still pretty much an uncharted territory, so even a utility as simple as … Continue reading

Posted in | Tagged , , | 7 Comments

Working with a branch using git-new-workdir

Share Button

Introduction Git package contains a script named git-new-workdir, which allows you to work in a branch in a separate directory on the file system. This differs from cloning a repository in that git-new-workdir doesn’t duplicate the git history from the … Continue reading

Posted in | Tagged , , , | 2 Comments

STL container performance on data insertion

Share Button

I just ran a quick analysis on the performance of various STL containers on simple data insertion. The result was not exactly what I expected so I’d like to share it with you. What was performed was sequential insertions of … Continue reading

Posted in | Tagged , , , | 5 Comments

This is valid C++ code?

Share Button

My compiler reported a build error in the following code block today. long ScDPOutput::GetHeaderDim( const ScAddress& rPos, USHORT& rOrient ) { SCCOL nCol = rPos.Col(); SCROW nRow = rPos.Row(); SCTAB nTab = rPos.Tab(); if ( nTab != aStartPos.Tab() ) return … Continue reading

Posted in | Tagged , , | 1 Comment

Excel sheet protection password hash

Share Button

When you protect either your workbook or one of your worksheets with a password in Excel, Excel internally generates a 16-bit hash of your password and stores it instead of the original password text. The hashing algorithm used for that … Continue reading

Posted in | Tagged , , , | 8 Comments

Missing vcl resource

Share Button

At one point in the past, I started getting this annoying error message dialog on startup, and OO.o simply shuts itself down after that. It happened whenever I installed the trunk version of ooo-build with ooinstall (with an -l option … Continue reading

Posted in | Tagged , , | 2 Comments

SSE2 Instructions

Share Button

For the past several weeks I have been studying X86 assembly language, mainly because I wanted to update my knowledge on the assembly language to match the latest CPU technology. I had previosly taken an X86 assembly language course at … Continue reading

Posted in | Tagged , , , | 1 Comment

How to (pretend to) write an export filter

Share Button

It turns out that pretending to write an export filter, at least adding a new entry to the Export dialog, is quite easy. In fact, you don’t even have to write a single line of code. Here is what to … Continue reading

Posted in | Tagged , , , | 6 Comments