Thursday, 22 September 2011

ERROR IN C24012 NODE1= 78 IDTS= 0 ICOL= 79 IPATCH= 7 NBF= 12

PAFEC.

Axisymmetric acoustics with constant pressure patch.

ERROR IN C24012 NODE1= 78 IDTS= 0 ICOL= 79 IPATCH= 7 NBF= 12

in Phase 7

Friday, 2 September 2011

Why should I avoid Labview?

Here is an example:

http://forums.ni.com/t5/LabVIEW/how-can-i-export-my-FFT-vibration-data-to-excel-using-write-to/td-p/1052505

With the instructions provided at,

http://forums.ni.com/ni/attachments/ni/170/468006/1/fft.png

In short, it's a world of unexplained acronyms; hidden details; and graphically driven commands.

Saturday, 27 August 2011

rsync

Copy all mp3 files in directory and subdirectories:

rsync -avz --progress --include='*/' --include='*.mp3' --exclude='*' /home/me/music ./

Saturday, 13 August 2011

Installing ubuntu from usb

Download iso

Plug in 2GB usb

sudo usb-creator-gtk -i /home/ms/Downloads/ubuntu-11.04-desktop-amd64.iso

No. This program seg faults on my machine.

Use unetbootin instead, with the same iso.

Friday, 29 July 2011

[13:12:17] Gavin:

`Mark, I need your help, I slipped with a knife in my hand and I accidentally cut my jugular, I'm bleeding quite heavily.'

`That's nothing! If I cut myself it would be much worse, and much more painful!'

Tuesday, 10 May 2011

mutt

(o): Sort messages according to options presented.
(l): Limit view to a search parameter.
(t): Tag message.
(;): Operate on tagged messages
(s): Save message (or, following `;' tagged messages)
(c): Change to directory
(b): Bounce message (forward, without changing the message at all)
(g): Group reply (reply to all)
CTRL b: View html links in message; select one; run in a browser. Needs urlview from apt-get

Thursday, 14 April 2011

Deleting .FS and .ES recursively.

for j in `find -maxdepth 1 -name '*parallel'`; do cd $j; echo $j; for i in `find -mount -name "*.ES"`; do ls -lha $i; done; cd ..; done;

Change the ls to rm when comfortable.

Or, bigger:


for j in `find -maxdepth 1 -name '*parallel'`; do cd $j; echo $j; for i in `find -mount -name "*.ES"`; do rm $i; done; for i in `find -mount -name "*.FS"`; do rm $i; done; cd ..; done;

------------------------

The find command gives a cleaner approach:
 
find . -type f -name "*.ES" -exec ls -lha {} \;

ls -lha can be replaced with, say, rm when I'm happy the command is working as expected.