Unreal Engine 4 install from source code

Followed this tutorial:

I’m running on Visual Studio 2012

Ran across error:
ERROR : UBT error : Failed to produce item: C:\UnrealEngine\Engine\Binaries\Win64\UnrealHeaderTool-Core.dll

Fixed it by:
unzipping with win.rar required_1of2, required_2of2 and optional.zip
ran “GenerateProjectFiles.bat” as administrator

download directx runtime


Error 1 error LNK1181: cannot open input file ‘libovr64.lib’ C:\Users\asdf\Desktop\UnrealEngine\Engine\Intermediate\ProjectFiles\LINK UE4
fixed by downloading oculus rift library



c++ notes

Q: Where are the c++ library/header files located on linux ubuntu ?
A: /usr/include/

c plus plus

Getting started with Node.js and express

# working in ubuntu 12.04

# add package to get latest version to not get errors
sudo add-apt-repository –yes ppa:chris-lea/node.js
sudo apt-get update

# install node.js and npm
sudo apt-get install nodejs npm

# install express framework
$ sudo npm install -g express
$ sudo npm install -g express-generator

# create project
$ express testexpress
$ cd testexpress
$ sudo npm install

# or if you wish to create project with hogan (handlebars) and less
$ express testexpress –hogan -c less

# to run the app
$ DEBUG=testexpress ./bin/www

# miscellaneous
$ npm install -g nodemon

// add code to bottom of app.js to run as 
// $ node app.js
module.exports = app;
/* Use PORT environment variable if it exists */ 
var port = process.env.PORT ||3000;
server = app.listen(port);
console.log('Server listening on port %d in %s mode', server.address().port, app.settings.env);

Ubuntu Adding Packages

When attempting to install a program thru apt-get the most frustrating moment is when the program cannot be found and what’s worst is not being able to add the package to install the program. In the past attempting to add packages by editing /etc/apt/sources.list has been unsuccessful but success has came from adding thru “apt-add-repository” command line command. Here are examples.

To install cmake:
# https://launchpad.net/~kalakris/+archive/cmake
$ sudo apt-add-repository ppa:kalakris/cmake
$ sudo apt-get update
$ sudo apt-get install cmake

To install emacsen-common:
# http://www.ubuntuupdates.org/ppa/kubuntu-ppa_backports?dist=precise
$ sudo add-apt-repository ppa:kubuntu-ppa/backports
$ sudo apt-get update
$ sudo apt-get install emacsen-common

To install cheese
# http://packages.ubuntu.com/precise/i386/cheese/download
# adding a line to your /etc/apt/sources.list like this:
deb http://cz.archive.ubuntu.com/ubuntu precise main universe
$ nano /etc/apt/sources.list
$ sudo apt-get update
$ sudo apt-get install cheese

Wireless Connecting but not Internet

Today I used wireless internet at a doctors office. When I arrived back home home my Dell computer could not connect to the internet wirelessly (could connect thru a ethernet cord). It showed as connected to my router but not the internet. There were no issues with the router and the internet because my iphone could surf the internet. It seems that when I connected to the internet at the clinic it messed up my PC. Here how I fixed it.

Right clicked on the “monitor in front of monitor” icon at the bottom right corner and selected “connect to network”.

Right clicked on the internet that I was trying to connect to and selected “diagnose”.

A new window opened and I clicked on an option that said something about “resetting the the ip address” (not exactly sure) and it shwoed a loading screen saying “repairing”. And that fixed it

wireless connecting but no internet

xdebug setup


copy output of
$ php -i
<?php phpinfo(); ?>

paste into


Follow the instructions on that site after you submit

$ wget http://xdebug.org/files/xdebug-2.2.4.tgz
$ tar -xvzf xdebug-2.2.4.tgz
$ cd xdebug-2.2.4
# install apt-get install php5-dev for phpize to work
$ phpize
$ ./configure
$ make
$ cp modules/xdebug.so /usr/lib/php5/20090626+lfs

or one command setup
$ sudo pecl install xdebug

Edit /etc/php5/apache2/php.ini or /etc/php5/apache2/conf.d/xdebug.ini
Edit /etc/php5/cli/php.ini (for phpstorm interpreter)

zend_extension= [extension provided in xdebug.org]

for phpstorm interpreter to work you need to determine what is the “Loaded Configuration File” and paste the [xdebug] code in aswell (Loaded Configuration File => /etc/php5/cli/php.ini)
$ php -i | grep php.ini

restart webserver


if using port 9003 because I believe fastCGI is using 9000

PHPSTORM 7 setup
Firefox add-on:
The easiest Xdebug
JetBrains Firefox extension 0.6.0

File -> Settings -> PHP

File -> Settings -> PHP -> … (next to the interpreter input)
(debugger will only show if you edit the /cli/php.ini)

File -> Settings -> PHP -> Servers

File -> Settings -> PHP -> Servers -> Validate Remote Environment

File -> Settings -> PHP -> Debug

Run -> Edit Configurations

Create javascript debug

Make sure the listener is on

Run the javascript debugger then its going to ask to install the firefox add-on but it will only work after you restart your computer.

Also make sure you set a break point and that break point is at a point in page it can arrive because if an error the page will terminate without arriving at the break point.

Went to


Generated xdebug bookmarklets with idekey in the site as PHPSTORM
added to firefox bookmark ‘start debugger’
click on the bookmarklet ‘start debugger’ while in my ‘localhost’ site




Installing OpenCV python

Tested on Ubuntu 12.04.4 Desktop (32-bit)


See instructions at


I created a installation script


but found a better more successfull shell one


updated 2014-08-19