Gmail: emptying your inbox

The below is all stupid — all I have to do is use the ‘Move to’ button, which is a folder with an arrow to the right.

What I’ve done is go to Gmail settings and change ‘Button labels’ to ‘Text’ so they are not so opaque. I just don’t find their icons useful a lot of the time.

I kind of understand why gmail uses labels — it lets you classify a message as relevant to more than one topic. But because gmail leaves the ‘inbox’ label on everything, the inbox just fills up, even with stuff you’ve labelled and which in a more conventional (and for me intuitive) program would now be in a different folder.

Let’s say I want to find messages in in my inbox, give them all a label and remove the inbox label from them all.

First of all, I have to use standard view because (presumably in an attempt to drive people away fro the basic HTML view), there is no ‘select all’ button in the basic view. Broken by design or what!?

So

  1. Do the search
  2. Select all
  3. Remove any not required
  4. Choose the label icon (sort of luggage tag shape) and either allocate them to an existing label or create a new one; they will now be labelled with the new label and inbox
  5. The hit the archive button (a book with a down arrow on it  — who would guess?) — this  strips off the inbox label (who would guess?)

It’s far from intuitive, at least for old-fashioned me, but it seems to work.

fl

Simple surface plot in gnuplot

Here’s a random example for no good reason.

Here is the gnuplot script (surfaceplot.gp):

set iso 30
set samp 50
unset key
#set title "sin(r)"
set xlabel "x" font "Times:Italic,14"
set ylabel "y" font "Times:Italic,14"
set zlabel "z" font "Times:Italic,14"
set xrange [-4:4]
set yrange [-4:4]
set xtics offset -0.5,-0.5
set ztics 1
unset surf
set style line 1 lt 4 lw 0.5
set pm3d
set term post level1 color font "Times,12" fontscale 1.0
set output "plotfile.eps"
splot sin(sqrt(x**2+y**2))

Here are the commands run at the command line:

$ gnuplot surfaceplot.gp 
$ epspdf plotfile.eps
$ xpdf plotfile.pdf
$ pdftoppm.exe -r 600 plotfile.pdf > plotfile.ppm
$ convert plotfile.ppm plotfile.png
$ display plotfile.png
$ rm plotfile.ppm

And this gives me an eps, a pdf and a png:

89K  plotfile.eps
56K  plotfile.pdf
990K plotfile.png
A coloured surface plot drawn in gnuplot using the script above
Yep

And here’s a simple script to plot sections through the surface:

$ cat cuts.gp 
unset key
#set title "sin(r)"
set xlabel "x" font "Times:Italic,18"
set ylabel "z" font "Times:Italic,18"
set xrange [-4:4]
set yrange [-1:1]
set border lw 0.25
#set style line 1 lt 4 lw 0.5
set term post level1 color font "Times,12" fontscale 1.0
set output "plotfile-cut-y=0.eps"
plot sin(sqrt(x**2+0**2)) lc rgb 'black' lw 4
set output "plotfile-cut-y=1.eps"
plot sin(sqrt(x**2+1**2)) lc rgb 'black' lw 4

And here is plotfile-cut-y=1

A section through the surface, where y=1; looks a bit like a capital M
Section where y=1

 ;ouihgvanieiogywev9np

Page sizes on Seiko SII SLP label printer

The CUPS driver is very useful, but the media selection menu in CUPS does not give the paper size, just the label code, so I thought a table giving the description, the label code and the dimensions in a couple of units might be handy. It’s really for my own reference.

First, find siislp200.ppd and look through it for the relevant text.

grep PageSize siislp200.ppd | grep SLP > sizes.txt

This gives all the lines that set page sizes. The sizes are in points.

Neaten up the output using cut; this pulls out the label size names:

$ cut -d'*' -f2 sizes.txt | cut -d' ' -f2- | cut -d':' -f1 > list-of-labels.txt

This pulls out the sizes (in points)

$ cut -d'[' -f2 sizes.txt | cut -d']' -f1 | cut -d' ' -f1 > size-in-pointsx.txt
$ cut -d'[' -f2 sizes.txt | cut -d']' -f1 | cut -d' ' -f2 > size-in-pointsy.txt

(-d'x' sets x as the delimiter, and -fn takes the nth field defined by these delimiters. I separate x and y dimensions so that paste below will put a tab in between instead the the space that is already there, so when I import into LibreOffice Calc I can set tab as the delimiter.)

Then (I have to do things one step at a time, sorry)

$ paste list-of-labels.txt size-in-pointsx.txt size-in-pointsy.txt > labels-and-sizes.txt

Then opened that list in Libreoffice Calc and calculated the sizes in mm and inches as well as points. (Also decided to separate the label code from the description). Pasted into Writer, formatted the table and exported as HTML, and pasted here.

Note: x = length along label roll, y = width of roll.

Description

Code

x (pts)

y (pts)

x (mm)

y (mm)

x (in)

y (in)

8mmSpine/8mm Spine

SLP-27210

187

26

66

9

2.60

0.36

35mmSlide/35mm Slide

SLP-35L

26

104

9

37

0.36

1.44

AddressLarge/Address – Large

SLP-2RLE

236

99

83

35

3.28

1.37

AddressSmall/Address – Small

SLP-1RL, SLP-2RL

236

68

83

24

3.28

0.94

Diskette/Diskette

SLP-DRL

181

136

64

48

2.51

1.89

EuroFolderNarrow/Euro Folder – Narrow

SLP-FN

526

107

186

38

7.31

1.49

EuroFolderWide/Euro Folder – Wide

SLP-FW

526

136

186

48

7.31

1.89

EuroNameBadge/Euro Name Badge

SLP-ENT

189

108

67

38

2.62

1.50

FileFolder/File Folder

SLP-FLW

230

37

81

13

3.19

0.51

Jewelry/Jewelry

SLP-Jewel

76

136

27

48

1.06

1.89

MediaBadge/Media Badge

SLP-NB, SLP-NR

180

136

63

48

2.50

1.89

MultiPurpose/Multi-Purpose

SLP-MRL

126

68

44

24

1.75

0.94

Return/Return

SLP-RTN

122

45

43

16

1.69

0.62

Round/Round

SLP-RND

62

68

22

24

0.86

0.94

Shipping/Shipping

SLP-SRL

271

136

96

48

3.76

1.89

VHSFace/VHS Face

SLP-VTL

205

127

72

45

2.85

1.76

VHSSpine/VHS Spine

SLP-VSL

400

50

141

18

5.56

0.69

ZipDisk/Zip Disk

SLP-ZIP

156

136

55

48

2.17

1.89

CutHanging13/1/3 cut hanging file folder

SLP-3HFL

90

222

32

78

1.25

3.08

CutHanging15/1/5 cut hanging file folder

SLP-5HFL

90

114

32

40

1.25

1.58

EuroFileFolder/European File folder

SLP-EHFL

139

112

49

40

1.93

1.56

RetailLabel/Retail Label

SLP-RTL

90

104

32

37

1.25

1.44

EuroNameBadgeLarge/Euro Name Badge Large

SLP-ENTL, SLP-FCS2

223

136

79

48

3.10

1.89

TopCoatedPaper/Topcoated Paper is 150 mm length

SLP-P150, SLP-DIA

396

136

140

48

5.50

1.89

4PartLabel/4-Part Label

SLP-MPL4

271

136

96

48

3.76

1.89

CUPS