MacOs: Automator notes
The stored workflows are in ~/Library/Worflows and scripts in ~/Library/Scripts
To manage folder actions type „Folder Actions Setup“ into Spotlight („Ordneraktionen konfigurieren“ in German)
IT things to remember.
There are plenty of posts on the kernel_task problem of MacBooks (Pro). There is no single solution for this problem. Often you can’t do anything about it except getting a new MaBook. But here is a (incomplete) list of things that might help:
The Mac version for Sebastian Daschner’s simple bash timer (github.com/sdaschner/dotfiles/blob/master/bin/timer)
#!/bin/bash
if [[ "$1" == "" ]];
then echo "Usage: ${0##*/} [message]"
exit 1
fi
mins=$1
message=$2
echo "timer started for $mins min"
(sleep $(echo "$1 * 60" | bc) && osascript -e "display alert \"Timebox over for: $message!\"" > /dev/null) &
If you use
To set the base path, always mind to add the TRAILING slash, to indicate it’s a folder.
To remind my self!
Main.class
@OneToOne @JoinColumn(name = "pk_column_name_in_main_table", referencedColumnName = "column_name_in_depeding_table", insertable = false, updatable = false) public Description getDescription() { return this.description; }
Depending.class
@Id
@Column(name = " column_name_in_depeding_table", nullable = true)
public int getDescriptionId() { return descriptionId; }
@Column(name ="language) Public String getLanguage(){return language;}
Now if I want something like
Select * from main m join depending d on m.pk_column_in_main_table = d.column_name_in_depending_table where d.column_name_in_depending_table is null
You have to put the where-criteria directly into the „left join“ condition of the jqpl query. If you do it like in SQL and put it in the where-clause, JPA (or at least Eclipselink, haven’t tried Hibernate) creates and „old-style“ (ANSI-89) style query, where the join condition is put in the where-clause and you won’t get any results!
@NamedQueries({ @NamedQuery(name = Main.FIND_BY_ID, query = "SELECT c FROM Main c left join c.description des on des.language = :language where c.id = :id")}
A nice overview of different chart types and when to use them. Scroll down a bit to „Visualization Category“
As I have the latest zwave version 3.0 running, which only is supported by Raspian Strecth, the default InfluxDB that gets installed is version 1.0.2 and not the latest (1.7.x as of 8/2019). In order to get the correct version on your Raspberry, do the following
1. Add „deb repos.influxdata.com/debian stretch stable“ to „/etc/apt/sources.list.d/influxdb.list“ 2. sudo apt-get update 3. sudo apt-get install influxdb 4. systemctl unmask influxdb.service 5. Enable Influx on boot: sudo systemctl enable influxdb 6. sudo systemctl start influxdb