Saturday, August 11, 2012

Opening firefox pages in the background

This from...
http://www.techsupportalert.com/content/how-stop-firefox-stealing-window-focus.htm

First, type (or copy and paste) "about:config" (minus quotes) into the
Firefox address bar and hit enter.
The next thing you'll see is a window telling you this might void your
warranty (a little humor there, Firefox doesn't have a warranty).

Click the "I'll be careful, I Promise!" button. The about:config page will open.
In the Filter bar, type (or copy and paste)
"browser.tabs.loadDivertedInBackground" minus the quotes. You will
then see an entry under Preference Name that matches what you typed
in.

By default, the value of this entry is false. To change it, double
click the entry and it will toggle so that the value reads true.
Restart Firefox and you're done.

If you need to undo the change, right click on the entry, choose Reset
and restart Firefox. This changes the entry back to its default
setting. You can reset any entry that's been changed in the
about:config page the same way. If you scroll down, you'll see some
entries in bold. Those are entries that have been changed already,
either by setting preferences (in the Tools/Options menu) or by an
add-on. Right clicking any entry in bold and choosing Reset will cause
it to revert to the default entry.

Changing entries in the about:config page can cause Firefox to behave
oddly or not work at all. This isn't a good area to experiment with
unless you'd like to uninstall and then do a clean reinstall of
Firefox.

Wednesday, May 2, 2012

SSH aliases

This cool idea came from the March 2012 Linux Format magazine.

Edit your ~/.ssh/config file and if it doesn't exist create one.
To do this type...
touch ~/.ssh/config

Now edit using your favourite text editor.

Add 4 lines...
Host work
  Hostname myworksdomain.net
  User myusernameatwork
  Port 2022

Then save the file. Note the domain at work could be an IP number and the port could be the default port of 22.

Then when you want to ssh to your work just type
ssh work

and when prompted enter your password. this saves you typing long commands like ...
ssh -P 2022 myusernameatwork@myworksdomain.net

Tuesday, August 2, 2011

Speeding Up xvncviewer

If you are not worried about colour of the display and just want performance out of a Remote desktop connection ... use this syntax on your vnc client...

xvncviewer IPNUMBER:PORT -encoding hextile -bgr233 -compresslevel 1 -quality 0

Note. There seems to be variations with xvncviewer and this doesn't work with all :(

Saturday, July 9, 2011

Trash Bin Location on Nautilus on Ubuntu Linux

If you want to find location of the Trash Directory. Turn on Hidden files CTRL H.

It is in...

/home/USERNAME/.local/share/Trash/files

Wednesday, January 5, 2011

Example Dyndns Config file

/etc/ddclient.conf file

# Configuration file for ddclient generated by debconf
#
# /etc/ddclient.conf

#comment out next line if you don't run a mail server
mail=root

daemon=300
pid=/var/run/ddclient.pid

protocol=dyndns2
use=web
#, web=checkip.dyndns.com, web-skip='IP Address'

server=members.dyndns.org
login=login-name
password='replace-with-real-password'

mydomainname.dyndns.org

Monday, December 20, 2010

Automatically backup a Rivendell database

I have just discovered that there is a Rivendell Macro for backing up
a database as often as you wish.

DATABASE BACKUP

Mnemonic: DB
Syntax:
DB !
Create a backup copy of the active Rivendell database in .

On my set up I made a new macro called back up database. It has only 2
lines in it.

DB /home/geoff/Downloads/RivendellBackUp/RD-Backup.sql!
RN /home/geoff/Downloads/RivendellBackUp/datestamp.sh!

The first line makes a new sql file called RD-backup.sql
The second line runs a shell script that renames the backup sql file
to the current day's date.

#!/bin/bash

#Special program to rename the current database back up with todays date.

#NOTE If sharing created files with windows users Colons eg : cannot be in filenames
#I suggest doing the date variable creation like this.
# currentdate=`date +%F-%H.%M.%S`
currentdate=`date +%F-%X`

sleep 30
mv ~/Downloads/RivendellBackUp/RD-Backup.sql
~/Downloads/RivendellBackUp/RD-$currentdate.sql


Note
I found that sometimes the Rivendell macros crash rdairplay so I now run from a command line the following script..... 


#!/bin/bash

currentdate=`date +%F-%X`

echo $currentdate

mysqldump -u rduser -pletmein --lock-tables=false Rivendell > /home/geoff/rivendell-backup/RD-$currentdate.sql



You can set up this macro to run daily weekly or whenever.

Rivendell Time Pips at the Top of Hour by Frederick JH

These instructions were written by Frederick JH and are very good

I made a pips tone audio file using Audacity. Using Generate>Tone from the
Audacity menu, I made a 800Hz, 3 seconds long audio file. I then used the
envelope tool to make 4 pips by pulling the audio level to nothing. The
first three pips are 150ms long starting on the 0 seconds, 1 second and 2
second marks. The fourth started at 2600ms and continued to the end of the
3 seconds.

Go into RDLibrary and create a macro cart. Call it something like "Pips
fade down and up". Then add the following three lines:

MD 1 -9 500!
SP 3000!
MD 1 0 1!



Then go into RDCatch and schedule this macro cart each hour at ??:59:57
Then again in RDCatch schedule a playback of your pips audio cart each
hour at ??:59:57

You need to have a playback output setup in RDAdmin>Manage Hosts> select
your host >Edit>RDCatch>Play Deck Setup a Play Deck to the same Card: and
Port: numbers as one of the Main Log outputs in RDAdmin>Manage Hosts>
select your host >Edit>RDAirplay

What is not real obvious is that you can setup more than one playback deck
for RDCatch. Just select another Play Deck number from the drop down then
set the Card: and Port: numbers to some thing other that None.

Explanation of the RML commands


MD 1 -9 500! => Deck fade Main Log(1) to -9dbFs in 500ms
SP 3000! => Sleep for 3 seconds (3000ms)
MD 1 0 1! => Deck fade Main Log(1) to 0dbFs in 1ms

One other tip, as you may be dreading making all those 48 events in
RDCatch there is a way to "copy" events. Make your original event save it,
then open it again to edit it. Next make the need changes for the new
event, in this case change the hour on the start time, then click the
"Save as New" button.


http://rivendell.tryphon.org/wiki/How_to_play_time_tone_pips_and_fade_the_currently_playing_audio