Category Archives: commands

These are useful linux commands that I have found while doing stuff. Putting them here so I don’t forget.

Showing a pretty ascii git branch topology

If you are using git, you should be branching a lot (it’s encouraged when you use git).  If you have lots of branches (more than two:), you might get a bit lost when it comes to determining the relation between branches. … Continue reading

Posted in commands, git | Tagged , , , , | Leave a comment

imroi: bloated Matlab commands

I was working with rbbox on my Matlab GUI application to create squares that marked important stuff inside an image.  I recently needed to move away from the rectangle based approach to a polygon based approach.  This meant not using rbbox. … Continue reading

Posted in annotation, commands | Tagged | 7 Comments

git: another way of doing submodules.

Git keeps giving us more.  Today I found out another way of doing submoduling.  It’s kinda strange and probably a bit harder than using submodules (But that might be because I’m not used to it yet).  But it adds to … Continue reading

Posted in commands, git | Tagged | Leave a comment

R: Efficient data loading

I’m working with the HOG_01 directory from this dataset.  They have organized so that each data point is a 1568 line text file.  The data sets are also separated in 43 types.  Unzip the data and you will see what … Continue reading

Posted in commands, PhD, R | Leave a comment

R : Finding the ordering index vector

The ordering index vector is a vector that contains indices of another vector.  It’s basically the other vector, but ordered (decreasing or increasing).  Instead of having the values it has the indices :)  I spent close to an hour to … Continue reading

Posted in commands, R | 3 Comments

Curious rounding in R

Sometimes R has a misleading way of displaying values.  Check out this series of commands: > 1111+.5 [1] 1111.5 > 11111+.5 [1] 11111.5 > 111111+.5 [1] 111111.5 > 1111111+.5 [1] 1111112 > 11111111+.5 [1] 11111112 At first I thought that … Continue reading

Posted in commands, PhD, R | Leave a comment

Adjusting point size in R plots.

The trick here is to manage the pch and cex arguments in the plot function.  You can look at more information on these arguments in ?plot, ?par and ?points in the R environment (search for cex and pch).  In general … Continue reading

Posted in commands, R | Leave a comment