Quick Tip: Displaying the current and total lines in a document with vi

While editing a document in vi you may need to determine the total number of lines in that document or what line the cursor is currently on. Both sources of information can be accomplished with the following commands;

  • := displays the total number of lines in a document
  • :.= displays the current line the cursor is on

Mapping Britain’s Genetic History

I recently had a chance to read a very interesting article on the mapping of Britain’s genetic make up. Not only has the genetic composition of the region been surprisingly consistent, but many of the invasions in Britain’s history have had little genetic impact (eg. The Roman occupation for nearly 400 years, did not drastically change the genetic make-up of the region’s peoples).

This is a wonderful example of geomatics being applied to subjects not often researched by the field. If you’re interested, check out the full article here.


A wonderful spatial application. Check it out at http://twitterbeater.datageeklab.com/


In this new post, I present one of those web app that I have built for testing purposes. Basically, it connects to Twitter Streaming API and visualizes tweets in real-time in Spain and Portugal. I also implemented a sentiment classifier, however, due to the app is hosted in heroku with just one dyno, and this didn’t have enough computing power for handling incoming data rate for classifying.

twitterbeater TwitterBeater – Real-time tweets from Spain and Portugal

View original post

Free Web Hosting with GitHub:

While working through web development course, I came across a great tip for hosting a website for free on GitHub. Simply follow these steps:

  • Step 1: Create a repository in your GitHub account with the name “yourusername.github.io”
  • Step 2: Clone that repository to your computer
  • Step 3: Add an index.html file to your cloned repository
  • Step 4: Commit the changes (the added index file) and push it to GitHub master repository.
  • Step 5: Wait a couple minutes and then type the address “http://yourusername.github.io in your browser to see if the website is live.

For further details head over to this quick tutorial at https://pages.github.com

Quick Tip: Saving Scalable Vector Graphics From A Website

I’ve recently learned an interesting tip regarding the saving of SVG (scalable vector graphics). If you want to save a copy of a svg from a website, you can do so by performing the following steps;

Steps to Save an SVG:

  1. Open up the source of the website (right click on the website and select view page source)
  2. Completely copy the svg element code (make sure to copy all lines of code found between the open svg tag <svg> and the closing svg tag </svg>
  3. Paste the svg element code in to a new text document
  4. Save the text document with the extension .svg

The result is a perfect copy of the svg element seen on the website, which you can open in most vector graphic programs and if desired saved into other graphic file formats (eg. png, gif, jpg, etc).

Note: If you don’t have a vector graphic program, give Inkscape a try.

Quick Tip – Multiple Authors in BibTeX

Recently I was storing some bibliographic data in JabRef and came across an issue in which bibliographic entries which have multiple authors were not being displayed as expected.

Example of Incorrect BibTeX:

The BibTeX Entry of “Author = {John Doe, Jane Doe, Jack Doe, and Jill Doe}” would display as “John Doe and Doe” in JabRef. To correct this issue, mutliple authors need to be delineated with an ‘and’, in order to display correctly.

Example of Correct BibTeX:

“Author = {John Doe and Jane Doe and Jack Doe and Jill Doe}” will display as expected as “Doe et al.”

Welcome to Off-Nadir!

Welcome to Off-Nadir. A blog focusing on the exploration of spatial technology and other technologically related topics. I’m writing this blog not as an expert in any technology field, but as a life long student of technology. My writing will focus on the technology I’m currently exploring, discussing project work, and sharing what I’ve learned. Since I’m mostly interested in the application of geomatics, and programming, I expect many of the topics I initially write about will focus on those topics. I may also explore topics relating to video game development and technology in the news.

To my readers, I encourage you to share your thoughts, and provide your own insights about the topics I’ve discuss. I’ve always enjoyed learning about technology and look forward to hearing your thoughts about how I can use technology better/differently.