Skip to main content

Posts

Showing posts with the label macosx

Inkscape extension example

Recently, when preparing figures for publications using Inkscape, I decided to simplify my life. Some of the figures can be described as 2x2, 2x3, or even 2x6 grids. Sometimes it is very awkward to rearrange them if you decide to switch from 2x6 to 3x4 or vice versa. It would be nice to have an Inkscape extension, which will minimize the efforts. For the sake of simplicity we assume that all the elements are equal in width and should be rearranged symmetrically with respect to the vertical axis. Also, the element should be ordered according to its relative to the other elements location. The top left element is the first and the bottom right is the last one. So for example, you can visually prepare the elements and then tidy them up with a single click of our magic button. Hint : before developing a similar extension, you may want to check the standard Align and Distribute tool (Ctrl+Shift+A). Before writing any actual code let's take a look at some official Inkscape extensio...

How to solve the cabal ld: library not found issue on Mac OS X

Today, after upgrading haskell platform, bumped onto a strange cabal installer problem: $ cabal install distributive-0.4.4 Resolving dependencies... [1 of 1] Compiling Main ( /var/folders/2k/6dnfg_x43_a21poayfbpnby40000gn/T/distributive-0.4.4-27117/distributive-0.4.4/dist/setup/setup.hs, /var/folders/2k/ 6dnfg_x43_a21poayfbpnby40000gn /T/distributive-0.4.4-27117/distributive-0.4.4/dist/setup/Main.o ) Linking /var/folders/2k/ 6dnfg_x43_a21poayfbpnby40000gn /T/distributive-0.4.4-27117/distributive-0.4.4/dist/setup/setup ... Configuring distributive-0.4.4... Building distributive-0.4.4... Preprocessing library distributive-0.4.4... [1 of 2] Compiling Data.Distributive.Generic ( src/Data/Distributive/Generic.hs, dist/build/Data/Distributive/Generic.o ) [2 of 2] Compiling Data.Distributive ( src/Data/Distributive.hs, dist/build/Data/Distributive.o ) ld: library not found for -lHStransformers-compat-0.3.3.4-ghc7.8.3 clang: error: linker command failed with exit code 1 (use -v to see invoca...