Articles

2000px-PHP-logo.svg[1]

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 ...
cat eye watching you stock

Monitoring employee’s PC

By on April 12, 2015

Monitoring employee’s PC becomes more and more common. Employers want to know what employees are doing on their work computers and secure their reputation and business against potential damage. This practice is understandable from the employers point of view, but maybe seen as an unlawful or not trustworthy thing to Read More ...
computer question difficult people

How to buy a website on Flippa – list of actions to check for scam

By on March 28, 2015

Many people dream of a business that earns money without you doing a thing. That is called passive income. Although it is the best thing that could happen to you, it is also the most difficult to achieve. It is almost always easier to find a dream job than to Read More ...
plugin widget admin panel autogenerate tags

WordPress Plugin development by example – SF Generate Tags

By on March 16, 2015

One of the plugins that we have developed for WordPress is an auto-generating tags admin widget. You click the button, it scans the post text (content) and names of the attached images and it selects tags for that post. In this post I’m going to explore the process of creating Read More ...
rage-game-poster

RAGE was such a disappointment

By on March 15, 2015

A good while ago, I purchased RAGE on Steam. As usual, it was a good deal then. I’m a sucker for post-apocalyptic games like Fallout 3, New Vegas, STALKER-series and the Metro-series. I wanted to try something new. I haven’t read any reviews of RAGE and I didn’t have any preconception Read More ...
boxes paper on top balanced

Electronic document management system – how to choose

By on March 12, 2015

As our company grows, we get more and more different kinds of documents, both paper and electronic. The question arises – should we start using some kind of document management system? The one that archives all our incoming and outgoing documents and is easily searchable? The reason for question is Read More ...
boost format examples cpp code

Boost::format (and wformat) examples – numbers: int, float, double

By on March 1, 2015

Boost Format is a very versatile and easy to use formatting library. If you’re using Boost, then there is no point in using other formatting libraries for formatting. For most uses, boost::format and boost::wformat are perfectly suitable. Boost Format is not as fast a sprintf and that family of formatters, Read More ...
gta 4 final mission helicopter

Grand Theft Auto 4 and robust design

By on February 7, 2015

Grand Theft Auto 4 Final mission Have you ever tried playing GTA 4 final mission on a slow computer? I did! I managed almost to finish it. There is a bug in the final mission. You are riding a boat and you must catch up with a helicopter. At the Read More ...
wordpress and php shortcodes

PHP array: how to create and extract from WordPress shortcode

By on January 29, 2015

Problem I have a website that is set up with WordPress and PHP. I was going to start selling texture packs with some different number of images inside. In order to provide detailed information about the images I needed to tell my service what images were included in the pack. Read More ...
blaze advisor function should be called while holding treeLock

Blaze advisor error: this function should be called while holding treeLock

By on January 21, 2015

Problem As a Blaze Advisor rules programmer, I often get errors like this. They are almost always Java related. Last time I struggled with “JVM not found” while installing the Blaze Advisor IDE. This time I was getting error message “This function should be called while holding a treeLock. Details Read More ...

C4455: ‘operator “”w': literal suffix identifiers that do not start with an underscore are reserved

By on January 18, 2015

User defined literals are a new feature in C++ since C++11. In it’s simplest form, it allows the programmer to use a suffix on any literal in the code. The most obvious example is to use user defined literals to strongly convert time and make it possible to add weeks, Read More ...
ioexception funny drawing with monsters

WebSphere Application Server problems when changing to Java7

By on December 11, 2014

I needed to reinstall my WebSphere Application Server several times and as a result the server wouldn’t start at all with the following error: After searching for some answers I’ve stumbled upon a link on IBM where they say that the problem is that some metadata became corrupted. The solution Read More ...
arrows symbols utf8

How to fix the prev/next arrows image

By on December 8, 2014

After updating out WordPress installation and changing some fonts we’ve got some strange images instead of arrows on next/previous posts:  (U+F430) and  (U+F429). These images are utf-8 characters in the Private Use Unicode subset. In CSS these arrows are defined as ‘\f430′ and ‘\f429′: So, if you see Read More ...

How to create a custom XML-RPC handler for WordPress 4.x

By on December 5, 2014

This plugin is designed to talk to an application written in C#, which takes large pictures and resizes them locally before uploading them to the host. This is to circumvent the memory limitations when resizing images on the host. However, that code is incomplete. This post will show how to Read More ...
light bulb

25 marketing ideas for your website

By on December 4, 2014

We are trying everything we can to market our own website that sells textures. This is hard work. You need to remember not to spam people, but still spread information about your product. In this article, I’m going to list what we are exploring so far so you could get Read More ...
design development test and bug fix in real programmer life

Software development stages

By on November 25, 2014

Today I was watching our project manager and my colleague programmer fixing a bug in a production code. Something like this. “Windows” is a series of funny drawings on post-it notes from programmer’s life. The notes are posted on a windows screen.
property_pages_character_set

Character set encoding in Visual Studio 2013

By on November 25, 2014

Character set encoding in Visual Studio is not only important for representation of local character sets. It’s also an important factor that will let you compile different libraries together. If you are using many different libraries you must decide what character set your project should use. In Visual Studio you can Read More ...
css div over div in topmenu test

CSS tutorial: div over div and z-index

By on November 22, 2014

We are in a constant process of making our products better. Later I was fixing layout of our texture site SF Textures and faced a problem where I needed to position a shopping cart over and to the right of the top menu. Here’s the HTML code: I have two Read More ...
random number in cpp

Random number generator in C without repetition

By on November 17, 2014

Can’t find the right way to get a random number in the range of your choice? If you are programming in C++ for a while, chances are you once got in a situation where you want to get some random number between two given ranges; you might have used old Read More ...
STL

Finding an element in a container (std::vector, std::list, etc.)

By on November 16, 2014

There is a time during the usage of a container class (std::vector, std::list, etc.) in your program, when you want to know if some element is present in the container. For instance, you want to create a collection of numbers (let’s suppose you have stored them in std::vector) and you Read More ...

How to save money buying computer software and video games

By on November 13, 2014

We computer enthusiasts get to buy a lot more computer equipment and video games than any other people. Sometimes our passion costs huge amounts of money. The last time I spent almost 2 thousand dollars on new hard drives for my pet-PC at home. My wife wasn’t really too thrilled about spending Read More ...

Optimize sort algorithm – or how I managed to get a high performance gain

By on November 12, 2014

I was recently hired as a C++ guru and performance specialist at a fairly large software consultancy company (1000+ employees). This particular division turned out to be a special division. More on that later. They had some software, which was in dire need of some new set of eyes watching Read More ...