Programmer's Notebook
Browse: Home » osx
Clang scan-build: a great C++ Static Analyzer

Clang scan-build: a great C++ Static Analyzer

April 21, 2017 · by rafael · in Programming

Clang has a command line utility that is very easy to use, and adds a static code analysis step to gcc or clang. It is trivial to install (less than 5 minutes – really! ) and works with almost any…

Packing Data Files into Compiled Executables

Packing Data Files into Compiled Executables

May 31, 2013 · by rafael · in Programming

Have you ever wanted to distribute a compiled binary that included data files packed into the executable file? Embedding a Data File Before Compilation You can do this before compilation by encoding the file into a binary representation, and then…

Generating a Cross-Platform Unique Machine Fingerprint

Generating a Cross-Platform Unique Machine Fingerprint

May 31, 2013 · by rafael · in Programming

Sometimes you need a program to know if it is running on the same machine. There are a lot of purposes for this, but a common one is if you are writing a licensing module. You want to generate a…

Implementing Read/Write Locks Portably

October 13, 2012 · by rafael · in Programming

In multi-threaded programs you often find a usage pattern where many more threads need to read a shared resource than write to it, and where reading the resource would be thread-safe without mutexes if it is not being written. (…

Detecting Crashes in Multi-Threaded Programs

October 12, 2012 · by rafael · in Programming

Detecting crashes in multi-threaded systems can be difficult. Often the crashes are difficult to reproduce, and when they happen the faulty operation could have happened many calls ago and so the you don’t get a stack trace at the time…

Get USB Drive Serial Number on Os X in C++

August 10, 2012 · by rafael · in Programming

Getting the serial number for a USB Serial drive on Os X is tricky just like it is to get a USB serial number on Windows. We want to get the serial number of a USB Flash disk that is…

Implementing Portable Threads and Mutexes

May 26, 2012 · by rafael · in Programming

Implementing a portable framework for multi-threading doesn’t have to be difficult or error prone. With the right framework, implementing multi-threaded programs can be pretty simple, and you can hide all the platform dependent functions. You can also implement your threading…

Generate Stack Traces on Crash Portably in C++

May 5, 2012 · by rafael · in Programming

There are three basic steps to getting this done, trapping signals, getting the stack frames, and then demangling the c++ symbols. Trapping Signals When a program crashes the operating system will sent it a signal, to give it one last…

About Me

My name is Rafael Baptista. I'm a Boston area technology guy.

I'm Director of SEO at Kayak, a popular travel web site. I'm also CTO of Mimoco. We make cool designer flash drives based on unique artist designs and popular culture characters ( like Star Wars, Hello Kitty and Batman).

Previously I was an SEO analyist at TripAdvisor. For many years I was a game developer, helping make games for Harmonix, Apple, THQ, LucasArts, Nickelodeon, Ubisoft and many others. I've worked on speech recognizers at Kurzweil, and genome mapping at the MIT/WIBR Human Genome Center.

Social

linkedin icon stackoverflow icon

Projects

Demangler.com

Automatically demangles gcc C++ symbols

RSZ.IO

An online image resizing service

Unfurl

An online web page preview JSON generator

KJam Build Tool

A build tool like make or bjam

Anagramatik

An anagram word game, written in HTML5, crafty.js and a custom server api.

Herbarium

An experiment in organizing the data for the Skyrim Alchemy skill

Massachusetts Election 2010

A news site about the 2010 election

Cr0.me

A URL shortener

Copyright © 2019 Programmer's Notebook

Powered by WordPress and Origin