Skip to content

Instantly share code, notes, and snippets.

Error
Traceback (most recent call last):
File "/home/bolster/src/aietes/src/contrib/Ghia/ecea/mfiles/test_ecea.py", line 53, in test_Phi
oct_phi = octave.Set_State_Propagation_Matrix(sim_conf)
File "/usr/local/lib/python2.7/dist-packages/oct2py/session.py", line 364, in octave_command
return self.call(name, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/oct2py/session.py", line 177, in call
argin_list, load_line = self._writer.create_file(inputs)
File "/usr/local/lib/python2.7/dist-packages/oct2py/matwrite.py", line 69, in create_file
savemat(self.in_file, data, appendmat=False, oned_as='row')
if Pos_Component == 3:
Actual_Pos_Index = Actual_Pos_Index + Configurable_Parameters.Number_Of_State_Vector_Components_Per_Probe - 3
Inertial_Pos_Measurement[(Index - 1), :] = Measurements[(Index - 1), :]
Inertial_Pos_Err[(Index - 1), :] = Inertial_Pos_Measurement[(Index - 1), :] - Actual_Pos[
(Index - 1), :]
awk '{if(NR==1)sub(/^\xef\xbb\xbf/,"");print}' INFILE > OUTFILE
➜ _posts git:(master) ✗ file 2014-01-20-schreibdochmal_19_01_14.md
2014-01-20-schreibdochmal_19_01_14.md: exported SGML document, UTF-8 Unicode (with BOM) text, with very long lines
➜ _posts git:(master) ✗ file 2014-01-11-the-making-of-a-timelapse.md
2014-01-11-the-making-of-a-timelapse.md: ASCII text, with very long lines
@andrewbolster
andrewbolster / .oh-my-zsh\oh-my-zsh.sh
Created January 12, 2014 21:12
My zsh config for debugging
# Check for updates on initial load...
if [ "$DISABLE_AUTO_UPDATE" != "true" ]; then
/usr/bin/env ZSH=$ZSH DISABLE_UPDATE_PROMPT=$DISABLE_UPDATE_PROMPT zsh $ZSH/tools/check_for_upgrade.sh
fi
# Initializes Oh My Zsh
# add a function path
fpath=($ZSH/functions $ZSH/completions $fpath)
@andrewbolster
andrewbolster / eventcamsort
Created January 11, 2014 16:42
Event Cam Management script
#!/bin/bash
BASE="/mnt/eventcam/"
COMPRESS=0
RERUN=0
UPLOAD=1
TODAY=`date +%Y%m%d`
# Move all jpgs in to per date folder for processing
for file in `find $BASE -maxdepth 1 -name '*.jpg' -type f -print`; do
newfilename=`echo $file | awk -F '-' '{print $2$3}'`
date=`echo $newfilename | cut -c 1-8`
@andrewbolster
andrewbolster / motion.conf
Created January 11, 2014 16:27
Motion Configuration file use by Farset Labs
# Rename this distribution example file to motion.conf
#
# This config file was generated by motion 3.2.11
############################################################
# Daemon
############################################################
# Start in daemon (background) mode and release terminal (default: off)
@andrewbolster
andrewbolster / Ubuntu Touch Install
Created December 20, 2013 16:10
Simplest device flashing process ever
sudo add-apt-repository ppa:phablet-team/tools
sudo apt-get update
sudo aptitude -y install phablet-tools android-tools-adb android-tools-fastboot
phablet-flash ubuntu-system --channel devel --bootstrap
@andrewbolster
andrewbolster / NI or Irish Inventions
Created December 2, 2013 19:58
List of Irish Inventions
* C14 - Whiskey
* 1680s - Chocolate Milk
* 1730 - the concept of an entrepreneur - Richard Cantillion introduced the term before Jean-Baptiste Say in his work
* 1813 - the mining safety lamp
* 1836 - the induction coil
* 1844 - the syringe
* 1851 - the stereo-stethoscope
* 1866 - the trans-atlantic phone call
* 1891 - the torpedo
* 1884 - the steam turbine
@andrewbolster
andrewbolster / RCUK Arduino
Created November 15, 2013 11:15
Jing Deng's Arduino code for RCUK Magherafelt project
/*
Melody
Plays a melody
circuit:
* 8-ohm speaker on digital pin 8
created 21 Jan 2010
modified 30 Aug 2011