Profile cover photo
Profile photo
Nam Nguyen
The World's #1 Python Fan
The World's #1 Python Fan
About
Posts

Post has attachment
Explaining Python Concepts: Iterable, Iterator, and Generator
A few days ago, some colleagues at work brought up a discussion about several closely-related concepts in Python: Iterable , Iterator , Generator . And I thought it might be a good blog post to explain them all, down to the words in the PEPs, and just not h...
Add a comment...

Post has attachment
A short joke
Thought of this joke on the way home (based on another religiously-themed version from a colleague at work). How can computer scientists help NASA find the next habitable planet? They do a star search.
Add a comment...

Post has attachment
Quick and easy "software diversification"
The Economist published an article Divided we stand about the work that Full Professor Michael Franz did at University of California at Irvine to further secure software applications. The gist of the technique is to compile the same source code into many va...
Add a comment...

Post has attachment
Functor optimization
I have this piece of code that can be compiled with -On (n > 0) but cannot be compiled with -O0 . #include <iostream>

class Functor1 {
public:
   void operator()() const {
       std::cout << "Functor 1" << "\n";
   }
};

class Functor2 {
public:
   vo...
Add a comment...

Post has attachment
BrowsePass as a Chrome app
I am pleased to announce the availability of BrowsePass Chrome app . This is an easier way to set BrowsePass up on the Google Chrome browser (as well as its open source cousin Chromium). The Chrome app alleviates the most cumbersome steps in setting up Brow...
Add a comment...

Post has attachment
Chainload from GRUB to Chameleon boot loader
A quick note to myself. Assuming OS X is installed in the 2nd partition of the 1st hard disk, modify your /etc/grub.d/40_custom file to have: menuentry "OS X" {
insmod hfsplus
set root="(hd0,gpt2)"
chainload /usr/standalone/i386/boot0
} Then rem...
Add a comment...

Post has attachment
Language definition file vietnam.ldf not found
Just a quick note to myself. VnTeX recently moved its vietnam.ldf file to babel's contrib as vietnamese.dtx . The move happened on April 14, 2013. The babel package in MiKTeX is currently at March 23, 2013. The vntex package in MiKTeX is currently at May 21...
Add a comment...

Post has attachment
Introducing BrowsePass, a KeePass on the web
This post was initially intended to be named &quot;How to have your own open source XXX&quot; where XXX is your favorite commercial online p...
Add a comment...

Post has attachment
How to read .NET GZipStream with Python zlib
Just a quick post, sort of a note to myself. The code below can be used to inflate (unzip, decompress) the byte string that was created by ....
Add a comment...

Post has attachment
A write-up on one of the reverse engineering challenges in DEFCON 21 CTF: Musicman
Add a comment...
Wait while more posts are being loaded