Thursday, 28 May 2009

Skype contact will not authorise

Some actions were taken. Skype worked. Who know's which ones are related...

I deleted and re-added the contact.
The contact deleted and re-added me.
I logged into Skype on another machine, repeated the process.
The sun set.
It rained.



Conclusion: Use a different IM client.

Wednesday, 27 May 2009

colors in pgfplots.

Report order:

black
red
blue
green
cyan
orange
brown
violet
teal
magenta
yellow
gray
lime
pink
purple


from


red
green
blue
cyan
magenta
yellow
black
gray
white
darkgray
lightgray
brown
lime
olive
orange
pink
purple
teal
violet

Tuesday, 26 May 2009

ubuntu upgrade broke network connectivity

ifconfig showed eth0 wasn't in the list.

From http://www.ubuntugeek.com/ubuntu-networking-configuration-using-command-line.html

sudo kile /etc/network/interfaces

Add the following (actually, this is all it was):

auto eth0
iface eth0 inet static
address 192.168.1.64
gateway 192.168.1.254
netmask 255.255.255.0
network 192.168.1.1
broadcast 192.168.1.255

Restart via:
sudo /etc/init.d/networking restart


The original attempt to get auto assignment failed.

Monday, 25 May 2009

TOR, privoxy, ubuntu

from http://www.torproject.org/docs/tor-doc-unix.html.en

Add the repo to /etc/apt/sources.list

deb http://deb.torproject.org/torproject.org karmic main

Add the keys required:
gpg --keyserver keys.gnupg.net --recv 886DDD89
gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -

Update and install:

apt-get update
apt-get install tor tor-geoipdb


------------- Old method --------------------------
sudo apt-get install tor
sudo apt-get install privoxy
sudo kile /etc/privoxy/config

Add:
forward-socks4a / 127.0.0.1:9050 .

to the top of the file, including the dot. Update:

logfile logfile -> # logfile logfile

Install torbutton, for firefox:

https://addons.mozilla.org/firefox/2275/

To Torify other applications that support HTTP proxies, just point them at Privoxy (that is, localhost port 8118)


--------------- new method (April 10) --------------

Install polipo (a caching web proxy)

Update its configuration by saving the following link as /etc/polipo/config :

https://svn.torproject.org/svn/torbrowser/trunk/build-scripts/config/polipo.conf

Try setting to root ownership and group, as the other files there are, too.

Restart polipo:

/etc/init.d/polipo restart

(Actually, that didn't work. A reset was required. Perhaps that should have been with sudo)
Install the tor button addin for firefox.

Booklet printing ubuntu

Create a .ps file, by printing to file.
$ psbook input.ps output.ps
$ evince output.ps ( or convert to pdf, using $ ps2pdf output.ps)

Print, 2 pages to a side, duplex, short edge binding.

Monday, 18 May 2009

Mounting windows shares with smbfs

http://www.justlinux.com/nhf/Filesystems/Mounting_smbfs_Shares_Permanently.html

worked. Attempts with cifs failed.

Tuesday, 12 May 2009

***ERROR*** IN D55025 MERGING COUPLING MATRIX

***ERROR*** IN D55025 MERGING COUPLING MATRIX
ROW CANNOT BE FOUND FOR FREEDOM 1711
AT NODE 1417 FACE -1417. -1416. -734.0
THE FLUID FREEDOMS CURRENTLY MERGED IN ARE

452.0 0.000 0.000 0.000 0.000
0.000 0.000 445.0 0.000 446.0
447.0 0.000 0.000 0.000 0.000

Occurred when changing a frontal.sinusoidal job, to natural frequencies.

I forgot to include COUPLED.ACOUSTICS in the control module. This was
an acoustics + structure + pzt job.

Monday, 11 May 2009

jpgfdraw

Brilliant!

Wednesday, 6 May 2009

***ERROR*** IN S60001

***ERROR*** IN S60001
NO RESULTS ARE REQUESTED FOR STORAGE
IN FRONTAL.TRANSIENT ANALYSIS

I added a little to the response module:
RESPONSE
TYPE TIME.STEP FINISH.TIME OUTPUT.TYPE LIST.OF.NODES.AND.DIRECTIONS
2 7E-7 6E-5 123 <'rsn1'> 2

The List of nodes and directions needed filling in.

Note: No masters should be present in a FRONTAL.TRANSIENT job. Also,
removal of LINKS.FOR.DYNAMICS enabled the solution to complete; otherwise, it fell over after many steps in phase 7.

Tuesday, 5 May 2009

Accessing pressure results in PAFEC

Can't convince PAFEC to export pressure at a node? Is it failing in Phase 4, complaining that a node isn't structural and so can't be included in SINUSOIDAL.OUTPUT?

Remove the SINUSOIDAL.OUTPUT module altogether. Results at all nodes will be printed in phase 7.

Cheers Patrick!

Sunday, 3 May 2009

.flv playback, ubuntu

First, try gxine. If that fails.....

From http://ubuntuforums.org/showthread.php?t=484750

How to enable lame for FFMPEG (needed to encode FLV with sound)

KINO FLVs silent? You need to recompile FFMPEG with LAME enabled. FFMPEG can be installed via apt-get as a package, but is not able encode MP3, which is the audio stream in FLV video (like Google & YouTube).

* Ensure Ubuntu Universe repository is selected #How to add extra repositories
* Download and install lame liblame-dev and gcc packages (mp3 encoder + GNU compiler collection)

sudo apt-get build-dep ffmpeg
sudo apt-get install liblame-dev libfaad2-dev libfaac-dev libxvidcore4-dev liba52-0.7.4 \
liba52-0.7.4-dev libx264-dev libdts-dev libgsm1-dev libvorbis-dev libdc1394-13-dev \
checkinstall build-essential gcc

libfaac didnt work for me.

* Download and extract FFMPEG source to current working directory

cd /usr/local/src
sudo apt-get source ffmpeg

* Compile FFMPEG from source

cd ffmpeg-*
NOT THIS ONE:
sudo ./configure --enable-gpl --enable-pp --enable-vorbis --enable-libogg \
--enable-a52 --enable-dts --enable-dc1394 --enable-libgsm --disable-debug \
--enable-mp3lame --enable-faad --enable-faac --enable-xvid --enable-pthreads \
--enable-x264

THIS ONE, without faad
maybe try instead =
sudo ./configure --enable-gpl --enable-pp --enable-libvorbis --enable-libogg \
--enable-liba52 --enable-libdts --enable-dc1394 --enable-libgsm --disable-debug \
--enable-libmp3lame --enable-libfaad --enable-libfaac --enable-xvid --enable-pthreads \
--enable-x264


sudo make
sudo checkinstall [accept defaults, set version to 3:0.cvs20060823-3.1ubuntu2]

If during the make it dies at 'x264.c:147: error: `struct ` has no member name `i_rf_constant` you need to do the following. Open libavcodec/x264.c and goto line 147. Change 'i_rf_constant' to 'f_rf_constant' and retry.

If an application you are using employs FFMPEG to encode FLV, it should now work properly. You can also call FFMPEG directly from the command line. The extension/suffix of the outfile tells FFMPEG which audio or video format to encode to.

ffmpeg [-i infile] [outfile]



Then, i removed xine-ui, downloaded the xine core stuff, ./configured, added an LD_LIBRARY_PATH
to .bashrc (as suggested at the end of the ./configure)

Added include /usr/local/lib to ld.so.conf


sudo make install

sudo ldconfig

wget http://prdownloads.sourceforge.net/xine/xine-ui-0.99.5.tar.gz
tar xzf xine-ui
cd xine-ui
./configure
sudo make install

then i couldnt run it, so bottled the process with:

sudo apt-get install xine-ui

and still, no .flv playback, ffs


and then, somehow, gxine worked! Odd.