The Lonely Green Triangle

Your mission should you choose to accept it is to write an application that opens a fullscreen (or not) window onto which a green triangle using OpenGL is drawn; after 3 seconds the application must close.

Demoscene Lab prelude

Prerequisites for Demoscene Lab and various other little things.

What would you do

Here’s one question (a likely result of too much beer): suppose you survive the end of the world and you happen to run into a group of people (survivors) in the middle of a post-apocalyptic world. You naturally express your great desire to join the group (the more the merrier), but when you do you are faced with the following question: what skills do you think you possess that would benefit the group enough to make wasting existing resources on your sorry ass not a bad business? Remember, computers do not exist anymore due to EMP shockwaves so being a programming guru is worthless now.

Notepad++ window switcher plugin

For quite some time, Notepad++ has become my favourite text editor. I wrote a small plugin to fit it even more with my coding habbits. If you want to switch to a certain window with a shortcut and/or open/switch to the corresponding source/header file for the current document, then this plugin might do what you want.

This is the initial version of the Window Switcher Notepad++ plugin.

What does it do

  • it allows window switching bound to a shortcut. Default shortcuts are set to ALT+1ALT+0
  • it switches between the corresponding .h/.c/.cpp file through the means of a shortcut. The default shortcut is ALT+O

How to install

  1. copy the plugin corresponding to your Notepad++ version into the Notepad++\plugins directory. Use NppWindowSwitcherAnsi.dll for ANSI version and NppWindowSwitcherUnicode.dll for UNICODE.
  2. configure the shortcuts
  3. if you want to use the default shortcuts, be aware of the fact that ALT+1 .. ALT+8 are bound by default to collapse current level functionality. Go to Settings -> Shortcut mapper -> Main Menu and change the shortcuts so they point to something else. I remaped them to Ctrl+Alt+1Ctrl+Alt+8
  4. enjoy

Download the plugin here.

Socket accept and too many open files

Did ever a socket accept() fail on you with the Too many open files error? I know it happened for me so here’s a short article about the things that helped me get rid of the problem.