Checking Symbols GCC and Clang

Just a short one. Reference: http://stackoverflow.com/questions/4548702/whats-the-equivalent-of-cpp-dd-for-clang Gives you list of all symbols defined by compilers. It’s interesting, that you have to feed it something (anything blank) to get this output though. /dev/null, or pipe in a blank echo (echo "” | gcc -dM -E -), etc. Works with NaCl (pnacl-clang), Emscripten (emcc), and pretty much every GCC toolchain known to man....

Setting up NaCL and SDL (on a fresh Ubuntu)

Some notes on getting NaCl working. Of course, things didn’t work out-of-the box. Install nacl_sdk Grab and follow the instructions here: https://developer.chrome.com/native-client/sdk/download i.e. download and do the following: Install 32bit Headers ‘cmon, everybody runs 64bit Linux these days (in my case Ubuntu 14.04 64bit). You need the 32bit libraries for anything to build though. Source: http://stackoverflow.com/questions/23661718/native-client-tutorial-cant-find-libstdc Follow Tutorial ‘make serve’ will now work. https://developer.chrome.com/native-client/devguide/tutorial/tutorial-part1 Test2 probably wont run though. I haven’t checked, but I think it may not be a pnacl file (pnacl is necessary to run in a stock Chrome)....

PPTP Connecting from Ubuntu 14.04

So I was having troubles opening a VPN connection from Ubuntu 14.04. I could VPN just fine on my iPad and Android devices, but I was having no luck on Ubuntu. Looking at my /var/log/syslog, and after much Googling, it seems my problem was ‘secrets’/keyring related. Setting up a PPTP VPN connection is easy. What I was lacking was one very specific checkbox with many implications, none of which were spelled out....

Setting up a remote PPTP server

So I’ve been working on netcode recently. LAN/Local testing is only so effective, when the real internet is so laggy. Ideally, if I could be in 2 places at once, I could test the game under a more natural lagged internet. So that’s what I’ve done. I’ve split in two and sent my other half down south… okay no. I recently set up an inexpensive unmanaged BuyVM VPS server (256 MB RAM, Dual Core) in Las Vegas running a trimmed down version of Ubuntu 14....

Croutons and Chromebooks

More wacky hardware, I picked up a Samsung Chromebook for cheap. I’ve specifically been waiting for a deal on the Samsung Chromebook, as it’s quite unique: It has a Samsung Exynos SOC, which contains ARM CPU and GPU (MALI-T604). Next to NVidia’s efforts, these are some of the most powerful ARM CPUs out there. The GPU is a tiny bit dated though (same one as the original Google Nexus 10), but does support OpenGL ES 3....

Making The GIMP a comfortable Image Editor

I’m a long time Paint Shop Pro user. I’ve used it since Paint Shop Pro 3, but I stopped upgrading after Paint Shop Pro 10. Corel acquired it between versions 9 and 10, and after 10 it was never the same. Paint Shop Pro used to be an exciting image editor that uniquely combined Raster and Vector image editor together. The killer feature would have been support for importing and exporting vector artwork as vector files (you could import vector as raster, but not vector), but alas, after the Corel acquisition, vector got ignored (Can’t compete with Corel Draw after all, that piece of sh**)....

Linux Setup Notes, Part 3

Linux notes again!!?! Yes, as it turns out I decided to replace my dead workstation PC (with beefy specs like Water Cooled Quad Core CPU, NVidia GPUs, RAID Array, etc) with a teeny tiny PC slightly larger than a stack of coasters: A Brix BXi3. I tried using an older NVidia ION powered Nettop, but that machine really didn’t work well with Ubuntu 14.04 (The Window Manager at least). I’m told other WMs are fine, but I’d rather install a Server disto on a lacking machine like that....

NVidia PerfHud ES, Take 2 (Linux)

PerfHud ES is the best OpenGL ES debugger I’ve used, but it can be a bit tricky to set up. And now that I’m on Linux, even more so. NVidia’s Page – Troubleshooting Notes on Forum #1 The latest PerfHud ES is now part of the Tegra Android Development Pack (2.2 as of this writing). An older version is available standalone (2.1), but the latest is now part of the pack....

Linux Setup Notes, Part 2

I’ve been using Linux for a month now, and while I’ve done it, I’ve been adding things to this post over here: /2013/12/29/linux-setup-notes/ Well that post is extremely long now, and I accidentally had to reinstall it (video driver fight), so it’s time for a fresh post! I had some complaints about Ubuntu 13.10, so I decided to go ahead and install the Alpha version of Ubuntu 14.4 (2 months before release)....

C++ typeof vs decltype

GCC and compatible (Clang) compilers implement a feature known as typeof (or __typeof__). http://gcc.gnu.org/onlinedocs/gcc/Typeof.html This is a pre C++11 feature, omitted from the standard, and is unavailable Visual C++. For the most part it does what you’d expect. Given a variable, it returns the type. This lets you create another instance of a type without having to use its full name. This is helpful if you happen to be using templates....