1
0
mirror of https://github.com/mbirth/wiki.git synced 2024-11-09 13:16:45 +00:00

Added more posts. Darkened the green in the bright theme a bit.

This commit is contained in:
Markus Birth 2015-02-19 22:44:52 +01:00
parent 973df55870
commit 9fccbd030a
7 changed files with 131 additions and 17 deletions

BIN
assets/vm3_sm.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 575 B

View File

@ -38,7 +38,7 @@ li {
header { header {
background: rgba(0, 0, 0, 0.1); background: rgba(0, 0, 0, 0.1);
width: 100%; width: 100%;
border-bottom: 1px dashed #93c631; border-bottom: 1px dashed #678b22;
padding: 20px 0; padding: 20px 0;
margin: 0 0 40px 0; margin: 0 0 40px 0;
} }
@ -48,7 +48,7 @@ header h1, #pagetitle {
line-height: 1.5; line-height: 1.5;
font-weight: bold; font-weight: bold;
font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace; font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;
color: #93c631; color: #678b22;
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1),
0 0 5px rgba(181, 232, 83, 0.1), 0 0 5px rgba(181, 232, 83, 0.1),
0 0 10px rgba(181, 232, 83, 0.1); 0 0 10px rgba(181, 232, 83, 0.1);
@ -90,7 +90,7 @@ section img {
h1, h2, h3, h4, h5, h6 { h1, h2, h3, h4, h5, h6 {
font-weight: normal; font-weight: normal;
font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace; font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;
color: #93c631; color: #678b22;
letter-spacing: -0.03em; letter-spacing: -0.03em;
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1),
0 0 5px rgba(181, 232, 83, 0.1), 0 0 5px rgba(181, 232, 83, 0.1),
@ -139,7 +139,7 @@ ul li:before {
content: ">>"; content: ">>";
font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace; font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;
font-size: 13px; font-size: 13px;
color: #93c631; color: #678b22;
margin-left: -37px; margin-left: -37px;
margin-right: 21px; margin-right: 21px;
line-height: 16px; line-height: 16px;
@ -164,7 +164,7 @@ pre, code {
background: rgba(0, 0, 0, 0.1); background: rgba(0, 0, 0, 0.1);
border: 1px solid rgba(255, 255, 255, 0.85); border: 1px solid rgba(255, 255, 255, 0.85);
font-size: 14px; font-size: 14px;
color: #93c631; color: #678b22;
border-radius: 2px; border-radius: 2px;
-moz-border-radius: 2px; -moz-border-radius: 2px;
-webkit-border-radius: 2px; -webkit-border-radius: 2px;
@ -193,7 +193,7 @@ table {
th { th {
text-align: left; text-align: left;
border-bottom: 1px dashed #93c631; border-bottom: 1px dashed #678b22;
padding: 5px 10px; padding: 5px 10px;
} }
@ -204,8 +204,8 @@ td {
hr { hr {
height: 0; height: 0;
border: 0; border: 0;
border-bottom: 1px dashed #93c631; border-bottom: 1px dashed #678b22;
color: #93c631; color: #678b22;
} }
/* Buttons */ /* Buttons */
@ -267,3 +267,4 @@ a {
.cf { .cf {
zoom:1; zoom:1;
} }

View File

@ -1,6 +1,6 @@
--- ---
title: Welcome to the Wiki title: Welcome to the Wiki
layout: bright layout: default
--- ---
### Welcome to GitHub Pages. ### Welcome to GitHub Pages.
@ -12,8 +12,20 @@ All posts:
{% endfor %} {% endfor %}
</ul> </ul>
Tags: Categories:
<ul>
{% for category in site.categories %}
<li>{{ category[0] }}
<ul>
{% for page in category[1] %}
<li><a href="{{ page.url }}">{{ page.title }}</a></li>
{% endfor %}
</ul>
</li>
{% endfor %}
</ul>
Tags:
<ul> <ul>
{% for tag in site.tags %} {% for tag in site.tags %}
<li> {{ tag[0] }} <li> {{ tag[0] }}
@ -25,10 +37,3 @@ Tags:
</li> </li>
{% endfor %} {% endfor %}
</ul> </ul>
Categories:
<ul>
{% for category in site.categories %}
<li>{{ category[0] }}</li>
{% endfor %}
</ul>

View File

@ -0,0 +1,53 @@
---
title: Evoluent Vertical Mouse 3
layout: default
created: 2009-02-09 17:55:53 +0100
toc: false
tags:
- know-how
- hardware
- evoluent
- verticalmouse
- mouse
---
![Evoluent Vertical Mouse 3]({{ site.url }}/assets/vm3_sm.jpg)
* **Homepage:** [evoluent.com](http://www.evoluent.com/vm3.html)
Remapping buttons in Linux
==========================
You can use the following command to remap the buttons:
xinput set-button-map <device-id> <button1> <button2> <button3> ... <buttonN>
The `<device-id>` is shown in the `xinput list` output - you can use the name as a string or the id number. You can query the actual button state using `xinput query-state <device-id>`.
The mouse has following button-ids:
| Button | ID |
|:----------------------|:--:|
| Thumb button | 9 |
| Index finger button | 1 |
| Middle finger button | 8 |
| Ring finger button | 3 |
| Wheel button | 2 |
| Wheel up | 4 |
| Wheel down | 5 |
See [remapping mouse buttons]({% post_url 2009-07-17-remapping-mouse-buttons %}) on what buttons X11 recognizes.
According to this the default configuration (`xinput set-button-map <device-id> 1 2 3 4 5 6 7 8 9`) would give you middle click on the wheel button and right-click on the middle finger.
The ring finger button would be for special use as well as the thumb button.
I for myself prefer having the middle-button on the middle finger and the right-click on the ring finger.
So I mapped 8→3 and 3→2 and I also mapped 9→8 and 2→9 to have the wheel button and thumb button for special use in some programs which make use of additional buttons.
My final `xinput` line looks like this:
# input id: 1 2 3 4 5 6 7 8 9
xinput set-button-map <device-id> 1 9 2 4 5 6 7 3 8
You could also map 9→6 and 2→7 to have the 2 additional buttons emulate *Wheel left* and *Wheel right*:
# input id: 1 2 3 4 5 6 7 8 9
xinput set-button-map <device-id> 1 7 2 4 5 8 9 3 6

View File

@ -0,0 +1,23 @@
---
title: Analog TFT calibration
layout: default
created: 2009-05-12 14:19:22 +0200
toc: false
tags:
- know-how
- hardware
- tft
- calibration
---
If you have connected your TFT via an analog VGA cable, you might have some blurry vision or even flickering
in some cases. If the following picture shows some flickering or looks blurry, your display needs calibration.
![XOR pattern]({{ site.url }}/assets/xor_pattern_small.png)
To calibrate your display, go to [Randy Simons' page](http://randysimons.com/pagina_131_NL.xhtml) and do the following:
- open the [sync pattern page](http://randysimons.com/overige/tftAutoAlignPattern/)
- put your browser in full-screen mode (mostly by pressing <kbd>F11</kbd>)
- issue the auto-calibration on your TFT display (most displays have a specific *"Auto"* button)
- make sure the picture doesn't flicker anymore
- exit full-screen mode (<kbd>F11</kbd> again)

View File

@ -0,0 +1,32 @@
---
title: DYMO LabelWriter 320 under Ubuntu Linux
layout: default
created: 2011-10-09 22:39:57 +0100
toc: false
tags:
- know-how
- hardware
- dymo
- labelwriter
- ubuntu
- linux
---
This label printer doesn't work out of the box under Linux. There are some instructions over at
[ubuntuforums.org](http://ubuntuforums.org/showthread.php?t=861781), but they're missing something
for the latest Ubuntu *Oneiric Ocelot*. These instructions should work:
- download the DYMO SDK `dymo-cups-drivers-1.2.0.tar.gz` from [dymo.com](http://sites.dymo.com/DeveloperProgram/Pages/LW_SDK_Linux.aspx)
- unpack (a directory `dymo-cups-drivers-1.2.0` will be created)
- make sure you've installed [libcups2-dev](apt://libcups2-dev) and [libcupsimage2-dev](apt://libcupsimage2-dev) (and, of course, [build-essential](apt://build-essential))
- run `./configure`
- try a `make all`, you will most probably get various errors like *"size_t has not been declared"* or *"size_t does not name a type"* --- if so, try this:
* add a line: `#include <stddef.h>` as the first line to the following files:
* `src/lw/LabelWriterLanguageMonitor.h`
* `src/lw/LabelWriterDriver.h`
* `src/common/Halftoning.h`
* now, again, run `make all`
- run `sudo make install`
- now open **System Settings** → **Printer**
- make sure, your LabelWriter is connected
- add a new printer, choose your LabelWriter, when asked for a driver, point it to `ppd/lw320.ppd` from the `dymo-cups-drivers-1.2.0` directory
- start printing, e.g. from [glabels](apt://glabels)