Category: programming

Install nodejs

Here is how I install nodejs to get access to cool tools like “tldr” (a summarized version of the typical man pages) and “ungit” (an interface to Git to ease people into using it).

Run these two commands to get nodejs:

curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -

sudo apt-get install -y nodejs

then you can install ungit, tldr, whatever you want.

sudo npm install -g tldr

These commands work with Linux Mint 17 (or Ubuntu 14.04).

Relocating Git repository to new URL

The best way I found to do this was by running these two commands:

git clone --mirror old-remote-url-ending-in-dot-git

then move into the directory (ending in .git) that would be created, and run this command:

git push --mirror new-remote-url-ending-in-dot-git

All existing branches and tags would get pushed at one fell swoop.

Frex – with zoom

After a lot of refactoring, Frex now has a code base that I can understand the next day. I took the opportunity to install version control on my laptop to save me from any potential “oh f%*k” moments, or at least make them not as bad. I chose subversion for this, and as the repository is located in my dropbox folder, I’m not worried about having to back it up.

I created a list of features I wanted this thing to have, and along with some speed and user interface improvements, the big feature I added for this version was zoom. This is a screenshot of the app running on my phone, showing a zoomed-in portion of the Mandelbrot set:

Frex zoom

A little bit of Android coding

Back in high school, a friend gave me his book on fractals (thanks Damo!), and I spent hours and hours generating fractals using the bundled ‘fractint’ software. It didn’t matter that I was using a hand-me-down AT PC (everything was ok though, as this was the 8 MHz version!), watching the fractal generate line-by-line was fine by me.

Today I found the time and ambition to create for the Android platform a program that generates the Mandelbrot fractal. That’s all this program does (for now). It does it very slowly, with absolutely no bells and whistles. Say hi to “Frex” (“FRactal EXplorer”).

Frex prototype