Category Archives: Coders Codex

Coders Codex::Best Online Compiler for C++11 Programming

INTRODUCTION

This article briefly discusses Coding Ground from Tutorialspoint for which I feel is one of the best online compilers for C++11 Programming. An online text editor and compiler offers good opportunity to try out C++11 without needing to setup a compiler or IDE on your local computer, so this is great for going through tutorials and sharing snippets of code online.

Online C++ Compiler and Editor
C++ Codingground

DISCUSSION

The IDE features a syntax highlighted text editor which I find to be pleasant and clean to look at. I also like the code-collapse tooltips at the side of the window, allowing the close inspection of code which needs attention. Sadly though, it does not have anything like intellisense, code completion or basic debugging tools. I think it would be nice to see in an update some basic code autocomplete and some break points, step-through, step into and continue debugging features.

FINDINGS

The ability to import GitHub projects looks like a nifty feature however I have yet to try this out. The Bash terminal at the bottom of the window in addition to compiling with gcc allows for the use of makefiles and with make and vi to edit. I am sure a few other features are available although these are out of scope for this article. A quick launch sidebar allows the quick reference to C++ Tutorials which open in a separate tab, all good stuff.

LINKS

Below are a few other links and online IDE’s and articles to check out. Happy Coding!

RexTester IDE
Collection of Online Compilers Article
MSVC and C++11 Compatible online compiler
Compile and Execute C++ Code Online on Coding Ground

Coders Codex::Command Line Arguments Example for JUCE C++

INTRODUCTION

I base this article around the need to pass command line parameters to a running program. Please note this does not seem to work with Windows yet (working in Linux and OSX not tested).

DISCUSSION

The idea is to use a set of command line parameters to execute a set of built in software tests between two or more instances of a given software and then automatically generate unit test reports. The whole thing can be automated via the sequencing of various tests in a bash script or batch file.

FINDINGS

LINKS
Command Line Arguments discussion on the JUCE forum
JUCEApplicationBase Class docs

Coders Codex::How to Generate C++ Code from a UML Class Diagram in Linux

INTRODUCTION

UML Class Generated in Dia

DISCUSSION

FINDINGS

LINKS
C++ Code Generation from UML on Stack Overflow

Coders Codex::Decoding Video Streams to Textures in Unity 3d

INTRODUCTION

Here we will decode an Ogg Theora file streaming from the internet onto a plane surface scripted in Unity 3d.

DISCUSSION

The fastest method to do this as of writing is to look here and then attach this to the camera in a new unity 3d scene.

FINDINGS

The Unity docs do not seem to show a C# source example, so in full Blue Peter (UK) style: Here is one I made earlier.

And the screenshot:

WWWVideoTexture.cs in Unity 3d

LINKS

WWW.movie in Unity 3d Scripting API
Video Streaming solutions for Unity3d on Stack Overflow
C# pixelInset problem on UnityAnswers
Streaming Textures in Unity3d
Video Playback Speed Discussion on Unity 3d Forums

Coders Codex::Reverse Engineering and Binary Auditing Tools

INTRODUCTION

DISCUSSION

This Needs a 64 bit Debugger/Diassembler (Hex Rays IDA Pro)

FINDINGS

LINKS

Binary Auditing Training Material
Detect it Easy Packer Identifier
Cheat Engine Debugger / Disassembler
IDA Pro Disassembler / Debugger 32 and 64 Bit