Author Archives: Matan

INSPext (Or: Of Uselessness & Usefulness)

To cut things short, INSPext is here. About a month ago I started a new programming project. It was a moment of feeling isolate at home, and so I went out to a near café and started scribbling on a piece of paper. I had no goal or idea where I was going, other than [...]
Posted in Programming | Leave a comment

A Bit of Coding

Given a sequence of cards from a deck of cards (repetitions such as twice ace of hearts are allowed) and a subset of cards, write an algorithm that removes any occurence of any of the cards in the subset from the sequence. For instance, given the sequence [As,4s,6h,6h,7d,Kc,Ks] and the subset [As,6h] the output should [...]
Posted in Programming | Leave a comment

Dynamic Library Binding Error on Mac OSX with Rails

While creating a rails application skeleton I ran into the following dyld complaint: ~$ rails exp dyld: lazy symbol binding failed: Symbol not found: _rb_intern2 Referenced from: /Users/matan/usr/lib/ruby/1.9.1/gems/hpricot-0.8.1/lib/fast_xs.bundle Expected in: flat namespace dyld: Symbol not found: _rb_intern2 Referenced from: /Users/matan/usr/lib/ruby/1.9.1/gems/hpricot-0.8.1/lib/fast_xs.bundle Expected in: flat namespace Trace/BPT trap If the above looks familiar to you try to [...]
Posted in Programming | Leave a comment

vimdiff

If you’re a command-line animal like I am you need to know vimdiff. vimdiff is an interactive file comparison and merging utility for the command-line. It simply starts Vim in a special mode called the diff-mode. To get started with vimdiff from the command-line, $ vimdiff oldfile newfile 2 pairs of commands will get you [...]
Posted in Programming | Leave a comment

My Makefile Snippet

I use SnippetsEmu for my snippets in Vim. Offered for download below are my snippets for makefiles for C and C++.  The C and C++ makefiles will expand on makec and makecc, respectively. Place the file in ~/.vim/after/ftplugin/.  Make sure it is named make_snippets.vim and you have SnippetsEmu installed. make_snippets.vim let st = g:snip_start_tag let et = [...]
Posted in Programming | Leave a comment

How to Uninstall the OS X GTK+ Development Framework

Delete the framework directories /Library/Frameworks/{Gtk,Cairo,GLib}.framework Delete the XCode User Template /Users/You/Library/Application Support/Developer/Shared/XCode/Project Templates/Application/GTK+ Application
Posted in Programming | Leave a comment

Parsing a Graph

In Ruby parsing a graph data-structure from an input stream is surprisingly easy if I represent the graph internally as a hash of node-to-neighbours. Consider the following graph data input: a: [b, c, d] b: [b, c] c: [a] Node a points to neighbour nodes b, c and d. Similarly node c points to neighbour [...]
Posted in Programming | Leave a comment

Quote

And I quote: “steenk, stuhnk, stawnk!”
Posted in Life | Comments closed

Curious Laughs

There’s nothing more heart-warming and curiously funny than another person laughing. It makes me feel good, and I don’t even know why.
Posted in Programming | Comments closed

Posts[0]

Good day stranger, and welcome to my corner on these here interwebs.
Posted in Writing | Leave a comment