☰

Kill the radio (or die trying)

  • Stamp protocol logo
  • Turtl logo
  • Basis project logo

Hi, I'm Andrew Lyon.
I'm working on Stamp, a p2p identity system used as the foundations of other systems, like the upcoming version of Turtl (a p2p encrypted, collaborative knowledge base) and Basis (the world's favorite post-capitalist economic protocol).

  • 
  • 

Recent posts

  • Stamp protocol: a p2p identity system
  • The property "ownership" myth (and other thoughts on socialization)
  • The Five Components of Economic Systems: A discovery through explorations of Socialism
  • The mystification of pricing
  • Wealth is (mostly) a zero-sum game
  • How to really save Net Neutrality
  • Debug comments (or how to save your sanity using git)
  • Ansible: included handlers not running in v2.x
  • Spam entry: We are expert

Subscribe 

  • 201406.19

    Windows GUI apps: Bad file descriptor. (or how to convert a GUI app into a console app for easy debugging)

    Lately I've been neck-deep in embedding. Currently, I'm building a portable (hopefully) version of Turtl's core features in ECL.

    Problem is, when embedding turtl-core into Node-webkit or Firefox, any output that ECL writes to STDOUT triggers:

    C operation (write) signaled an error. C library explanation: Bad file descriptor.
    

    Well it turns out Windows doesn't let you write to STDOUT unless a console is available, and even if using msys, it doesn't create a console for GUI apps. So here's a tool (in lisp, of course) that will let you convert an executable between GUI and console.

    Seems to work great. Special thanks to death.

    Comments
    • 
    • how-to
    • common lisp
    • gui
    • console