LostHero at startovac.cz

Our game LostHero achieved new milestone – we are now at Czech crowdfunding site Startovac.CZ.

You can support us there.

LostHero Game

I was silent for a while as I was working on new project. But now it’s time to publish it.

 

I’m proudly presenting: LostHero Game.

LH_Screenshot

 

MariaDB – raise number of connections

With Centos 7 come replacement of MySQL with MariaDB.

I was already curious into it and quite happy once it come to new server with Centos.

It’s very easy to use, but I has trouble to raise max_connections to my usual number (I use 10.000 as I connect to DB from many connections).

Here is the solution.

Read more

Emptying disk space on Linux Virtual Machine – CentOS

Recently I was creating for somebody empty virtual image based on my actual image. I want to make sure the image will get compressed as much as possible. But I delete there about 1,5 GB of my data.

To make sure the VM will be compressed I needed to fill all empty space with 0.

I found this tool to do that: http://frippery.org/uml/index.html , but it was little bit tricky.

Here is step by step how to proceed:

Read more

Mapping of XBOX controller to Unreal Engine

I’m now playing with Unreal Engine and I found out that the XBOX controller that I use for testing is hard to map to the actions because of the weird names.

So here is the linking:

xbox360controller

 

1) Gamepad Left Trigger

2) Gamepad Right Trigger

3) Gamepad Left Shoulder

4) Gamepad Right Shoulder

5) Gamepad Special Left

6) Gamepad Special Right

7) Gamepad Left Thumbstick

8) Gamepad D (up,down, etc..)

9) Gamepad Right Thumbstick

10) Gamepad Face Button

 

Some of the actions ends with Axis (like Gamap Left Thumbstick Y-Axis). Those map with InputComponent->BindAxis.

Rest of the buttons map via InputComponent->BindAction.

Linux server remembering last used folder

I’m administrating many servers – usually each for different purpose.

When I log to a server very often I need to work at last folder where I was last time – 80% cases. But Linux kicks me to my home directory, which is the last one where I want to be.

Following script will remember where you was and after login it will move you back to that folder. Put it into ~/.bashrc or /etc/bashrc

function mycd() {
 cd $1
 pwd > ~/.pwd
}
alias switch="cd $(cat ~/.pwd)"
switch
alias cd='mycd'

 

How it works:

1) function mycd must be defined at bashrc file to so the command cd will apply to your shell. If you will create small script and call it, it will not work.

2) at the function mycd you execute cd and the you store actual path to file ~/.pwd

3) at the start of the bash, you first restore your path by loading content of ~/.pwd and then you replace cd command with mycd.

 

It’s so simple, but it saves time.

 

Rotation of Image from UPS in PHP

I was recently implementing UPS API for PHP.

I found those two great sources from Gabriel Bull or simple one from Alex Fraundhof.

When I ask to get the shipping Label by

$Response = $ShipperObj->createLabel($params);

the result is label that is rotated by 90 degrees to the right.

view_order

I didn’t found any parameter to get the label rotated as I want.

Read more

SkypeNote

I got an idea for project that will improve user experience of a Skype.

I call it SkypeNote. It will allow users to add notes to each Skype window. It took me some time to create prove of concept, but I manage to make it working and I’m using it for my internal uses.

photo-main

I’m now trying to finance this project over KickStarter.

If you are interested please support me.

Simple solution to store credit card data

I has been getting request to build web pages and applications that would receive credit card for years.

And I always rejected that as I didn’t want to get responsibility of getting those data leaked.

But recently I got to situation that I couldn’t refuse it anymore.

So I was looking how to do it safe and I got an idea – to use SSL mechanism and keep data stored at the server in encrypted form.

purchase-ssl-certificate

Read more

Application to check Delphi XE compatibility with Android Device

I just saw today application called SysCheck for Android by Christopher Moeller .

It will give you detail info about the device. For your Delphi XE you need ARM 7 CPU with NEON support.

That’s really useful, especially if you want to close deal with customer and you want to check if your app in Delphi XE will actually work at his devices.

I was already facing that with one customer of mine who has Samsung LaFleur.

Samsung_Galaxy_Ace_La_FleurSuch mobile is not compatible with Delphi XE at all and I have to rewrite the app into Java.

But it would be nice if Embarcadero would supply similar app it self. It would just open the screen and tell – compatible with Delphi XE or not.