Bits and thoughts

#!/bin/bash is not rude

Archives 2016

Will self-driving cars update their maps ?

Written by ⓘⓓⓔⓝⓣⓛⓤⓓ - -


Self-driving cars look like they have a promising future.

I was wondering if their manufacturers and the software developers are going to use this float of vehicles for other usages than simply driving around people on their errand.
  • Feedback on the road conditions (weather, traffic, accidents, etc... ) that could be shared and used to optimize everybody's journey
  • Finely tune the electronic map they are relying on. It could, for example, detect a one-way road that was previously two-ways. At the time of this detection it would avoid to use this road and it would send the information to a central system that would propagate it for other autonomous vehicles to use.
  • Communicate with each other to improve traffic flow - by starting to move at the same time at traffic light for example

I don't know.

Adapt bayesian filters for spam on server

Written by ⓘⓓⓔⓝⓣⓛⓤⓓ - -

When the detection of spam is activated through spamassassin on the server it would be gold to have the spamassassin daemon to learn what is spam and what is not.

One way to do that is to write a simple script that could be run manually or through a crontab entry :

#!/usr/bin/env bash
basedir=Maildir
ls -d $basedir/.* |  while read dir
do
        processedPart=$(basename "$dir")
        if [ "$processedPart" != "." -a "$processedPart" != ".." ]
        then
                echo -n Processing $processedPart ...
                if [ "$processedPart" == ".Spam" -o "$processedPart" == ".Pourriels" ]
                then
                        echo as SPAM
                        sa-learn --spam "$basedir/$processedPart/{cur,new}"
                else
                        echo as ham
                        sa-learn --ham "$basedir/$processedPart/{cur,new}"
                fi
        fi
done

Of course ".Spam" and ".Pourriels" ara my own choices for IMAP folders to contain spam. Update this script with your own preferences.
I have placed this script in a "spam" file in ~/bin to run it manually.



Jack Johnson - Gone - On and On (2003)

Written by ⓘⓓⓔⓝⓣⓛⓤⓓ - -

Bass tab :


Intro
G|------------------|
D|------------------|
A|--7--7-4--7--7-4--| x2
E|------------------|

Verse x 2
G|----------------------| |--------------------|
D|----------------------| |--4--4-4------------|
A|--7---------4--4------| x3 |------------2--2-2--|
E|-------4---------5----| |--------------------|

Chorus
G|----------------------| |--------------------|
D|----------------------| |--------------------|
A|--7--7------4--7------| x3 |--7--7-4--4-7--7-4--|
E|-------7---------5----| |--------------------|

Verse
G|----------------------| |--------------------|
D|----------------------| |--4--4-4------------|
A|--7---------4--4------| x3 |------------2--2-2--|
E|-------4---------5----| |--------------------|

Chorus
G|----------------------| |--------------------|
D|----------------------| |--------------------|
A|--7--7------4--7------| x6 |--7-----------------|
E|-------7---------5----| |--------------------|

Jack Johnson - Mudfootball (For Moe Lerner) - Brushfire Fairytales (2001)

Written by ⓘⓓⓔⓝⓣⓛⓤⓓ - -

One that I tabbed for bass but not sure about 4th bar


Verse
G|--------|---------|--------|--------|---------|---------|--------|--------|
D|--------|---------|--------|--------|---------|---------|--------|--------|
A|-----35-|-----3-4-|5-55----|5-55-5-3|-----3-5-|-----3-4-|5-55----|5-55----|
E|3-33----|3-33-----|-------5|--------|3-33-----|3-33-----|-------5|--------|

Chorus
G|--------|5---55-5-|--------|--------|--------|--------|
D|----77-7|---5-----|5-5-----|5-5-----|5-5-----|5-5-----|
E|7--7----|---------|---55--5|---55--5|---55--5|---55--5|
A|--------|---------|--------|--------|--------|--------|

Bridge 1
G|-------|--------|--------|--------|
D|5------|5-------|--------|--------|
E|-------|--------|5-------|5-------|
A|-------|--------|--------|--------|

Verse + Chorus again

G|--------|---------|--------|--------|---------|---------|--------|--------|
D|--------|---------|--------|--------|---------|---------|--------|--------|
A|-----35-|-----3-4-|5-55----|5-55-5-3|-----3-5-|-----3-4-|5-55----|5-55----|
E|3-33----|3-33-----|-------5|--------|3-33-----|3-33-----|-------5|--------|

G|--------|5---55-5-|--------|--------|--------|--------|
D|----77-7|---5-----|5-5-----|5-5-----|5-5-----|5-5-----|
E|7--7----|---------|---55--5|---55--5|---55--5|---55--5|
A|--------|---------|--------|--------|--------|--------|

Bridge 2
G|-------|--------|---------|---------|
D|5------|5-------|---------|---------|
E|-------|--------|5-5-5-55-|5-5-5-55-|
A|-------|--------|---------|---------|

G|-------|--------|---------|---------|
D|5------|5-------|---------|---------|
E|-------|--------|5-5-5-55-|5-5-5----|
A|-------|--------|---------|---------|

Verse
G|--------|---------|--------|--------|---------|---------|--------|--------|
D|--------|---------|--------|--------|---------|---------|--------|--------|
A|-----35-|-----3-4-|5-55----|5-55-5-3|-----3-5-|-----3-4-|5-55----|5-55----|
E|3-33----|3-33-----|-------5|--------|3-33-----|3-33-----|-------5|--------|

Chorus version 2
G|--------|5---55-5-|--------|--------|
D|----77-7|---5-----|5-5-----|5-5-----|
E|7--7----|---------|---55--5|---55--5| x2
A|--------|---------|--------|--------|

G|--------|
D|5-------|
A|--------|
E|--------|



Jack Johnson - Posters (bass tab) - Brushfire Fairytales (2001)

Written by ⓘⓓⓔⓝⓣⓛⓤⓓ - -

I couldn't find it properly tab on the net so here it is :

Intro
G|---------|6--986---|---------|6--------|
D|----9-9--|------9-9|----9-9--|-----5-7-| x 2
A|7--------|---------|7--------|---------|
E|---------|---------|---------|---------|

Main part
G|---------|6--------|
D|----9-9--|----9-9--| x 4
A|7--------|---------|
E|---------|---------|

G|---------|---------|---------|6--------|
D|7-7-7-7-7|9-9-9-9-9|----9-9--|----9-9--| x 2
A|---7-7---|---9-9---|7--------|---------|
E|---------|---------|---------|---------|

G|---------|6--------|
D|----9-9--|----9-9--| x 5
A|7--------|---------|
E|---------|---------|

G|---------|---------|---------|6--------|
D|7-7-7-7-7|9-9-9-9-9|----9-9--|----9-9--| x 2
A|---7-7---|---9-9---|7--------|---------|
E|---------|---------|---------|---------|

Bridge

G|---------|---------|
D|---------|---------|
A|7--75---5|4--42---2| x 2
E|---------|---------|

G|---------|6--986---|---------|6--------|
D|----9-9--|------9-9|----9-9--|-----5-7-| x 1
A|7--------|---------|7--------|---------|
E|---------|---------|---------|---------|

G|---------|6--------|
D|----9-9--|----9-9--| x 3
A|7--------|---------|
E|---------|---------|

Outro
G|---------|---------|
D|7-7-7-7-7|9-9-9-9-9|
A|---7-7---|---9-9---|
E|---------|---------|

G|---------|6--------|
D|----9-9--|----9-9--| x 2
A|7--------|---------|
E|---------|---------|

G|---------|
D|---------|
A|7--------|
E|---------|