inf error programming language cpp drawing sketch

1.#INF, 1.#IND and #QNAN floating point numbers and errors

By on May 25, 2015

When programming, there are certain error condition that might arise from your code. If the compiler catches any compilation errors, it will stop compilation and tell you what and where the error is. The compiler also may issue a warning for certain constructs, which may or may not give you Read More ...

SmartAss IRC Bot

By on May 21, 2015

This is an attempt to create an IRC bot, which can talk back to users when they mention it’s name. At the moment it’s in a very early stage of development, and main focus is to adhere to the IRC-protocol and to implement some features here and there. What language Read More ...
Boost logo

The simplest way of building Boost 1.58 for 32-bit and 64-bit architectures with Visual Studio

By on May 20, 2015

Building Boost have never been easier. Just double click this .bat-file and wait for it to be finished. Put this in a file called build_boost_1_58_vs2013.bat and place it next to the boost_1_58_0 folder. The first line will add the Visual Studio tools to PATH, in essence, you can just double Read More ...

Why is Visual Studio always rebuilding some projects?

By on May 19, 2015

Visual Studio is my weapon of choice. But sometimes, it’s stupidity can’t be expressed with words… The project and code from this post is available at GitHub. The problem Sometimes, Visual Studio will always rebuild projects, even though they have recently been built and there are no changes. If you Read More ...

Nanodbc now supports nvarchar(max) and varchar(max)

By on May 16, 2015

“Unlimited” data fields I am in the process of rewriting some software, and one of the steps is to replace an ancient ODBC client library with a more modern client library. Searching for alternatives, with a permissive (and commercial) license turned into a few possible candidates. First was TinyODBC, but Read More ...
body height full css wordpress code long

WordPress Theme development hacks: body height

By on May 12, 2015

I was working with a full width and height slider page for my new theme and it just didn’t want to give me 100% screen height. While on a desktop computer it would not matter, on mobile devices I wanted the slider to be as easy as swooping to the Read More ...
sections visual presentations for redux framework loops

How to create Redux sections in a loop

By on May 7, 2015

We were creating a WordPress theme, SF Parent, for and had stumbled upon a a problem where we needed to create 5 or more sections. In these sections, users could choose any pages from their website and assign background color for each section. The sections would then show up Read More ...

Getting rid of those pesky C-macros in C++-code (QSORT)

By on April 22, 2015

My day to day job is being a software developer, and my primary tasks is to seek out and eliminate performance issues with the C++-based software. Early on I spotted some methods taking their sweet time when sorting, thanks to Intel Parallel Studio and their Amplifier module w/Advanced Hotspots. Those Read More ...
cpp 11 newest version

C2664: void doProcess(Data_ptr &&) : cannot convert argument 1 from Data_ptr to Data_ptr &&

By on April 22, 2015

This error is from Visual Studio, and happens when you try to call a method with move semantics (&&) and the type doesn’t understand it has to be moved. Consider this code: If we change the highlighted line to doProcess(std::move(data)); the program will build just fine.

PHP Fatal error: Call to undefined function ImageTTFBBox

By on April 20, 2015

This error happens when ImageTTFBBox is not available in the pool of PHP functions. To enable this method with PHP on Gentoo, you must build PHP with both GD and TrueType. Required use flags in /etc/portage/package.use: Rebuild PHP with emerge. Press enter and wait a moment or two while PHP Read More ...
synchronization multiple source destination devices algorithm small

Synchronizing data – how easy is it to implement

By on April 17, 2015

In 1999, Bill Gates predicted that there will be developed devices that connect with each other and synchronize data in a smart way. 16 years later such devices and tools are here. It includes both physical devices like mobile telephones and virtual synchronizing services like Dropbox and Octerpus. We can Read More ...
quadcopter drawing

Ways to program your drone to do awesome stuff

By on April 13, 2015

Drones, quadcopters, RS helicopters and other remote controlled crafts are hot topic these days. We programmers are more interested in how to program them to do something cool. Indeed, it’s become more and more easy. In this article I’ll look at drones to program automated behavior with, and programming languages Read More ...