wordpress image upload program code

How to upload images to WordPress programmatically

By , last updated September 30, 2015

I was programming a clothes search engine and ran into many difficulties. In this article I’ll explain what I have done and what problems I had to solve step by step. Step by step guide I was making a PHP script that would run inside WordPress theme on an hourly Read More ...
std async illustration cpp

Simple threading with std::async

By , last updated September 29, 2015

Warning: This post is about std::async and simple threading and tasks. This means std::async is not suited for long lived tasks requiring I/O (input/output), hold mutexes and be a part of a thread pool. With C++11 comes official support for threading in C++ programs. Sure, there have been multithreaded C++-programs Read More ...
visual studio 2015 boost

Building Boost 1.58 with Visual Studio 2015

By , last updated September 28, 2015

If you try to build Boost 1.58 with Visual Studio 2015, you’ll get this error “Unknown compiler version - please run the configure tests and report the results” when building, do this. Read also: Building boost 1.58 with Visual Studio 2013. There are different versions of Visual Studio so the Read More ...
tabs clickable child pages example

How to show child pages as tabs

By , last updated September 23, 2015

In this post I will talk about how to view child pages as tabs in WordPress. We have several plugins where different tabs need to be linked directly from WordPress.org. Readers don’t like to click and search for content. If you don’t serve what people are searching for, they will Read More ...
boost format string examples

Boost::format string examples

By , last updated September 14, 2015

Once boost::format object has been created with a format string and given arguments, there are two ways of getting a std::string (or std::wstring) from it. One is with boost::str() and the other way is with str() member method. Std::string To begin with, we need to include the format library header. Read More ...
cpp read write files

Read and write to file in C++

By , last updated September 13, 2015

Many C++ developers find themselves in a place where they need to store information in an external file, which they can retrieve later to perform the operation based on the values. For instance, they have created a video game which has a high score system, wherein top 5 highest scores Read More ...
closes point to plane thumbnail

Distance from point to plane implementation

By , last updated September 8, 2015

Calculation of closest points between objects gives us the distance between these objects. These calculations are one of the most powerful in collision detection algorithms in a sense that they can minimize calculations a lot. If the combined maximum movement of the objects is less than the distance between them, Read More ...

Testing C++ concepts with GCC 6.0 beta.

By , last updated August 28, 2015

This is a very terse list of steps to be done to be able to start testing concepts with G++. One sample with concepts (requires keyword) is at the end. Building a beta version of GCC 6.0 Beta As root, make a user account for testing GCC: useradd -m betagcc Read More ...
windows cleanup disk c

Master the Windows 10 Clean Up Tips

By , last updated September 17, 2015

Though hard drives are getting larger in size, we still face issues such as filled up space, disorganized data, tons of clutter and duplicate files. The newly launched Windows 10 is also prone to host unwanted junk which should be removed occasionally to keep your computer running at its optimum Read More ...

Migrating to Visual C++ 2015

By , last updated September 28, 2015

At my day time job I decided we should try out Visual Studio 2015 (from Visual Studio 2013). Here are my experiences from it. Installation The installation is easy. Just log in to MSDN and download the VS2015 installer (or ISO-image). When doing C++ work, make sure to install the C++ Read More ...

couriertls: accept: error:14094417:SSL routines:SSL3_READ_BYTES:sslv3 alert illegal parameter

By , last updated August 24, 2015

Just found this error in my system log on my Gentoo system. I’m running Courier-IMAP with self signed SSL certificates, and I’m using Thunderbird 38.1.0 as my mail client. And after I upgrade to Thunderbird 38.1.0 I couldn’t get my mail anymore, and the system log said this couriertls: accept: Read More ...

Apache SIGABRT on Gentoo

By , last updated July 30, 2015

I’ve been trying to set up a PressBooks test site on my Gentoo dec box. I may or may not write a book about programming, but PressBooks is a WordPress plugin for writing and exporting books. I was curious and decided to give it a go. All day I’ve been Read More ...
Facebook IconYouTube IconTwitter IconGoogle Plus