Coding Zen - Part 1

While I enjoy the power and flexibility of vim and Sublime Text 2 (or ST3!), I am still on the lookout for an editor that will work well for me. Coming from a non-web-development background, manipulating the HTML DOM and CSS stylesheets seem to always get in the way of my thought processes while writing a web application. Through these (multi-part) article series, I am hoping to review a few tools that I have come...

Smart Pointers in C++

Goals Understand the smart pointers concept in C++ and its different manifestations. Compare it agains Rust's memory model. Resources Mordern C++ design - pg 157 http://ootips.org/yonat/4dev/smart-pointers.html http://www.codeproject.com/Articles/541067/Cplusplus11-Smart-Pointers http://www.drdobbs.com/cpp/smart-pointers-in-boost/184401507

Running Paraview in Distributed Mode

This post details the steps for running a Paraview server on KAUST Supercomputing Facilities (Neser, in particular). Caveats At the time of writing this, Neser only supports Paraview 3.14.1 clients. So makes sure you have the right version of Paraview client (download page) installed on your system. This procedure requires a "reverse connection" from pvserver running on Neser. It follows that you need to ensure that you have a valid ip+port address that neser can...

Closures in Rust

An example of writing a simple closure in Rust Programming Language: // a simple closure in rust fn foo( a: int )-> fn@(int){ return fn@ (b: int) { io::println(fmt!("a=%d, b=%d", a, b)); } } fn main(){ let foo5 = foo(5); let foo4 = foo(4); foo5(10); foo4(8); } //output a=5, b=10 a=4, b=8 Checkout more examples in Rust Language at rustlings. A closure in javascript would look somewhat similar: // a simple closure in javascript function...