Differences

This shows you the differences between two versions of the page.

Link to this comparison view

software:tips [2010/10/08 01:47] (current)
russ created
Line 1: Line 1:
 +====== Mozilla Thunderbird ======
 +===== Change quote header =====
 +
 +In prefs.js:
 +<code javascript>​
 +// Change the reply header
 +// 0 - No Reply-Text
 +// 1 - "​[Author] wrote:"​
 +// 2 - "On [date] [author] wrote:"​
 +// 3 - User-defined reply header. Use the prefs below in conjuction with this:
 +user_pref("​mailnews.reply_header_type",​ 3);
 +
 +// If you set 3 for the pref above then you may set the following prefs.
 +user_pref("​mailnews.reply_header_authorwrote",​ "%s said the following"​);​
 +user_pref("​mailnews.reply_header_ondate",​ "on %s");
 +user_pref("​mailnews.reply_header_separator",​ " ");
 +user_pref("​mailnews.reply_header_colon",​ ":"​); ​
 +// The end result will be [authorwrote][separator][ondate][colon]
 +</​code>​
 +
 +Source: [[http://​texturizer.net/​thunderbird/​tips.html|http://​texturizer.net/​thunderbird/​tips.html]]
 +===== Use different Quote Level Colors =====
 + in chrome/​userContent.css:​
 +<code css>
 +/* Quote Levels Colors */
 +blockquote[type=cite] {
 +   ​color:​ navy !important; background-color:​ RGB(245,​245,​245) !important;
 +}
 +blockquote[type=cite] blockquote {
 +   ​color:​ maroon !important; background-color:​ RGB(235,​235,​235) !important;
 +}
 +blockquote[type=cite] blockquote blockquote {
 +   ​color:​ green !important; background-color:​ RGB(225,​225,​225) !important;
 +}
 +blockquote[type=cite] blockquote blockquote blockquote {
 +   ​color:​ purple !important; background-color:​ RGB(215,​215,​215) !important;
 +}
 +blockquote[type=cite] blockquote blockquote blockquote blockquote {
 +   ​color:​ teal !important; background-color:​ RGB(205,​205,​205) !important;
 +}
 +</​code>​
 +
 +Source: [[http://​texturizer.net/​thunderbird/​tips.html|http://​texturizer.net/​thunderbird/​tips.html]]
 +
 +====== Bash ======
 +===== Bash Color Prompt =====
 +<​html>​
 +<span style="​background-color:​ rgb(0, 0, 0); color: rgb(255, 255, 255);">​[</​span><​span style="​color:​ rgb(255, 255, 51); background-color:​ rgb(0, 0, 0);">​user</​span><​span style="​color:​ rgb(204, 51, 204); background-color:​ rgb(0, 0, 0);">​@</​span><​span style="​color:​ rgb(51, 255, 51); background-color:​ rgb(0, 0, 0);">​machine</​span><​span style="​background-color:​ rgb(0, 0, 0);">​ </​span><​span style="​color:​ rgb(255, 102, 102); background-color:​ rgb(0, 0, 0);">​01:​00:​00</​span><​span style="​background-color:​ rgb(0, 0, 0);">​ </​span><​span style="​color:​ rgb(51, 102, 255); background-color:​ rgb(0, 0, 0);">​directory</​span><​span style="​background-color:​ rgb(0, 0, 0);">​ <span style="​color:​ rgb(255, 255, 255);">​]$ </​span></​span>​
 +</​html>​
 +
 +Can be done with this in .bashrc:
 +<code bash>
 +export PS1="​[\[\e[1;​33m\]\u\[\e[1;​35m\]@\[\e[1;​32m\]\h \[\e[31;​40m\]\T \[\e[1;​34m\]\W \[\e[00m\]]\\$ "
 +</​code>​
 +
 +====== KDialog ======
 +[[http://​developer.kde.org/​documentation/​tutorials/​kdialog/​t1.html|kdialog]] that comes with [[http://​www.kde.org/​|kde]] is pretty neat.
 +
 +Example to use it is making a simple kde ssh ask passphrase dialog.
 +<code bash>
 +SSH_ASKPASS=/​usr/​local/​bin/​askpass.pl
 +</​code>​
 +
 +askpass.pl:
 +<code perl>
 +#!/bin/env perl
 +my $prompt = join(' ', @ARGV);
 +system("​kdialog --title 'SSH Key Passphrase'​ --password '​$prompt'​ 2> /​dev/​null"​);​
 +</​code>​
 +
 +====== Wine ======
 +===== Games =====
 +If you use wine for emulate windows to play games. I've noticed if you have autofs running it messes with the detection of cd, if it is required for the game. So if you get message saying insert the cd game to play, even though the cd is already there, make sure you don't have autofs running.
 +
 +====== Cups ======
 +===== Cups has no availible printers =====
 + You ever get this in cups log files:
 +
 +[CGI] CUPS-Get-Printers request failed - client-error-forbidden (401)
 +
 +Make sure 127.0.0.1 localhost is in /etc/hosts localhost shouldn'​t be assigned to a different ip.
 +
 +See Gentoo forum link [[http://​forums.gentoo.org/​viewtopic-t-335995-highlight-cups+clienterrorforbidden.html|here]].
 +
 +====== Hole in Ogg ======
 + If you ever have problems playing ogg files in devices that support oggs. It might be because it has id3 tags in it. Especially if you used ripped them with grip.
 +
 +ogginfo will give you a warning about a hole in the file.
 +
 +To remove download [[http://​idv2.sf.net/​|id3v2]] and run:
 +<code bash>
 +id3v2 -d filename.ogg
 +id3v2 -s filename.ogg
 +</​code>​
 +
 +Now ogginfo should be clean.
 +
 +Source: [[http://​lists.xiph.org/​pipermail/​vorbis/​2003-May/​010547.html|http://​lists.xiph.org/​pipermail/​vorbis/​2003-May/​010547.html]]
 +====== Mach64 DRM ======
 +If you want to install a Mach64 (Ati Rage 98s) DRM from http://​dri.freedesktop.org/​snapshots/​mach64-20060403-linux.i386.tar.bz2
 +On a newish system, you need to patch it with:
 +
 +<​code>​
 +--- drm/​linux-core/​drm_compat.h.lama ​   2006-04-03 11:​24:​33.000000000 -0400
 ++++ drm/​linux-core/​drm_compat.h 2007-01-21 00:​18:​24.000000000 -0500
 +@@ -170,7 +170,7 @@
 + #​endif
 +
 + #​ifndef __put_page
 +-#define __put_page(p) ​          ​atomic_dec(&​(p)->​count)
 ++#define __put_page(p) ​          ​atomic_dec(&​(p)->​_count)
 + #​endif
 +
 + #​ifndef REMAP_PAGE_RANGE_5_ARGS
 +</​code>​
 +
 +Source: http://​mailgate.dada.net/​linux/​linux.debian.laptop/​msg59828.html
 +
 +====== Encode to DVD format with FFMPEG ======
 +<​code>​
 +ffmpeg -i /​home/​russ/​get_video.flv -target ntsc-dvd ./dvd.mpg
 +</​code>​
 +
 +Source: http://​en.linuxreviews.org/​HOWTO_Convert_video_files#​DVD
 +
  

software/tips.txt ยท Last modified: 2010/10/08 01:47 by russ