summaryrefslogtreecommitdiff
path: root/content/tech
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2019-11-24 17:18:36 +0100
committerschneefux <schneefux+commit@schneefux.xyz>2019-11-24 17:43:52 +0100
commit1f74c443405b2827217275bbdc428bd9320bb99a (patch)
treed97b3c35280ab24fdffd9b099fca0f318239986b /content/tech
parentf752530692e7a3db2d75bc2c77b80839da64d5f3 (diff)
downloadblog-1f74c443405b2827217275bbdc428bd9320bb99a.tar.gz
blog-1f74c443405b2827217275bbdc428bd9320bb99a.zip
Rework index page layout to include projects
Diffstat (limited to 'content/tech')
-rw-r--r--content/tech/audio-output-to-input.md2
-rw-r--r--content/tech/blinkiecar.md37
-rw-r--r--content/tech/brokentalents.md14
-rw-r--r--content/tech/elasticsearch-raspberrypi.md2
-rw-r--r--content/tech/esp-ledstrip.md26
-rw-r--r--content/tech/internet-is-magic.md44
-rw-r--r--content/tech/jimmie-deauth.md21
-rw-r--r--content/tech/kindle-as-screen.md2
-rw-r--r--content/tech/lilypad-bootloader.md2
-rw-r--r--content/tech/music-led-visualisation.md30
-rw-r--r--content/tech/nixos-intro.md2
-rw-r--r--content/tech/nixos-mailserver.md4
-rw-r--r--content/tech/raspberry-pi-router.md2
-rw-r--r--content/tech/raspberrypi-bootstrapping.md2
-rw-r--r--content/tech/scaling-elasticsearch.md12
-rw-r--r--content/tech/weather-snowman.md39
16 files changed, 6 insertions, 235 deletions
diff --git a/content/tech/audio-output-to-input.md b/content/tech/audio-output-to-input.md
index 1ce4068..d6f1fc6 100644
--- a/content/tech/audio-output-to-input.md
+++ b/content/tech/audio-output-to-input.md
@@ -1,6 +1,4 @@
---
-categories:
-- software
date: 2016-06-22
title: ALSA, MPD and Pulseaudio output capturing
---
diff --git a/content/tech/blinkiecar.md b/content/tech/blinkiecar.md
deleted file mode 100644
index 3f461da..0000000
--- a/content/tech/blinkiecar.md
+++ /dev/null
@@ -1,37 +0,0 @@
----
-categories:
-- embedded
-date: 2015-12-21
-title: Blinkiecar - 3D printed car with turn signals
----
-
-With some support from a friend with a 3D printer, I successfully built a magnetic car with working turning lights.
-<!--more-->
-
-![car front view](/images/blinkiecar/finished-front.jpg")
-
-_Right, it's a present._
-
-The car was printed in two pieces, the top and the bottom part. My friend downloaded the model from somewhere, I repaired it with [netfabb](http://www.netfabb.com/) (didn't like their software due to an annoying startup dialog and paid features), cut it with [slic3r](http://slic3r.org) (this program looked better) and gave him the [repetier](http://www.repetier.com/)-converted model back.
-
-![car without top part](/images/blinkiecar/wip.jpg)
-
-_This is how it looks on the inside._
-
-Inside the car is a 3.3V coin cell battery, which is connected to two switches and orange blink LEDs on the bottom of the car. You turn the switch on either the left or the right side on and thereby make the corresponding turn light blink.
-
-A strong magnet from an old hard drive is glued below the car so you can stick it onto a magnetic board.
-
-![magnet below car](/images/blinkiecar/magnet.jpg)
-
-_The magnet also covers the circuit a bit._
-
-The blink LEDs are not in sync for some reason, but that did not matter as they still function as turning lights.
-
-![both leds blinking](/images/blinkiecar/blink-both.gif)
-
-_You can still try to use them as warning lights, but that's not reliable._
-
-![front right led blinking](/images/blinkiecar/blink-right.gif)
-
-Next time, I should think of another solution for power - with this setup, you cannot swap the battery and the LEDs are quite dark.
diff --git a/content/tech/brokentalents.md b/content/tech/brokentalents.md
deleted file mode 100644
index 267732c..0000000
--- a/content/tech/brokentalents.md
+++ /dev/null
@@ -1,14 +0,0 @@
----
-categories:
-- software
-date: 2018-05-24
-title: Data science with functional programming and a MOBA API
----
-
-I created a meta statistics website for the League-of-Legends-like game Vainglory.
-<!--more-->
-
-The mobile online game [Vainglory](http://vainglorygame.com) publishes players' game data via [an API](http://developer.vainglorygame.com).
-Using [RamdaJS](http://ramdajs.com), a functional JavaScript library and knowledge gained from previous projects with the Vainglory API, I built a set of scripts to extract win and usage statistics of the four most popular game modes in Vainglory.
-
-You can check the statistics on [this website](http://brokentalents.fun), which is built using the [VueJS](http://vuejs.org) and [BulmaCSS](http://bulma.io) frameworks and [hosted on GitHub pages](https://pages.github.com/).
diff --git a/content/tech/elasticsearch-raspberrypi.md b/content/tech/elasticsearch-raspberrypi.md
index 98c7111..23da3ec 100644
--- a/content/tech/elasticsearch-raspberrypi.md
+++ b/content/tech/elasticsearch-raspberrypi.md
@@ -1,6 +1,4 @@
---
-categories:
-- software
date: 2017-09-16
title: Deploying Elasticsearch on a Raspberry Pi
---
diff --git a/content/tech/esp-ledstrip.md b/content/tech/esp-ledstrip.md
deleted file mode 100644
index 1342a2f..0000000
--- a/content/tech/esp-ledstrip.md
+++ /dev/null
@@ -1,26 +0,0 @@
----
-categories:
-- embedded
-date: 2016-06-05
-title: (Almost) Wireless LED strip controller
----
-
-After a [failed attempt]({{< ref "music-led-visualisation.md" >}}), I succeeded in building a wireless analog LED strip controller.
-<!--more-->
-
-![Glowing led strip around controller](/images/esp-ledstrip/glowgreen.jpg)
-
-The most important part in this setup is a 12V-3.3V regulator that passes 12V to the transistors and 3.3V to the WiFi chip. Instead of gluing inefficient Darlington transistors on top of CD cases, I used IRFZ44N MOSFETs with a heatsink each on a stripboard. The principle remains the same as with the Arduino.
-
-![Controller top view](/images/esp-ledstrip/top.jpg)
-
-There are fewer long cables, which makes the controller more compact and less ugly.
-
-![Controller back view](/images/esp-ledstrip/back.jpg)
-
-On the ESP8266 runs a web server with a simple API to change the colors and a UDP listener that allows the Hyperion server to connect.
-The Arduino sketch can be found [here](https://git.schneefux.xyz/electronics/esp-ledstrip/src/master/esp-ledstrip.ino).
-
-![Controller attached to FTDI](/images/esp-ledstrip/debug.jpg)
-
-A few weeks later, I spotted a mistake in my build. I used IRFZ44N transistors but I should have used IR**L**Z44N transistors instead. The difference is that the Z version needs a higher voltage at the base, so the LEDs were never bright and drew just about two thirds of the power at maximum brightness.
diff --git a/content/tech/internet-is-magic.md b/content/tech/internet-is-magic.md
deleted file mode 100644
index 3dd625c..0000000
--- a/content/tech/internet-is-magic.md
+++ /dev/null
@@ -1,44 +0,0 @@
----
-categories:
-- embedded
-date: 2015-10-29
-title: Internet is magic - Glowing ponies show your friends' online status
-aliases:
-- /2015/10/29/internet-is-magic.html
----
-
-Friendship is magic! I like the My Little Pony series, and two of my best friends, knowing that, surprised me with self-made versions of Twilight and Fluttershy at my birthday.
-<!--more-->
-
-![Twilight and Fluttershy](/images/internet-is-magic/twilight-fluttershy.jpg)
-
-_Aren't they adorable?_
-
-As you can see in the picture, I grabbed some diffused LEDs and illuminated my ponies.
-
-That was kind of unexciting after a while. Luckily, I had an [ESP8266](https://en.wikipedia.org/wiki/ESP8266) to spare. These modules are small Arduino compatible WiFi modules, so with some programming knowledge you can control GPIOs via WiFi.
-
-Awesome! Let's connect the ponies to the world wide web.
-
-![Inside view](/images/internet-is-magic/inside.jpg)
-
-_Not much to see here_
-
-I wrote a quick-and-dirty Arduino sketch, [uploaded it]({% post_url 2015-10-14-esp8266%}) and was able to control the LEDs via netcat. You can find the sketch [here](https://git.schneefux.xyz/electronics/internet-is-magic/src/master/luminate.ino).
-
-![Twilight glows](/images/internet-is-magic/twilight-glow.jpg)
-
-_The cables in the background supply power._
-
-And now comes the fun part. Both of my friends chat with me via [Telegram](https://telegram.org). Unlike WhatsApp, Telegram has an open API that allows me to easily receive their online status.
-
-I installed the [telegram-cli](https://github.com/vysheng/tg) client on my [Raspberry Pi](https://raspberrypi.org), a cheap and small computer, and set up an autostart script. telegram-cli runs in bot mode, a python script updates the LEDs every minute. I uploaded the script [here](https://git.schneefux.xyz/electronics/internet-is-magic/src/master/client.py).
-
-So whenever my friends are online, their corresponding pony starts to glow.
-
-![Fluttershy glows](/images/internet-is-magic/fluttershy-glow.jpg)
-![Twilight and Fluttershy glowing in the dark](/images/internet-is-magic/night.jpg)
-
-_When they light up at night, you can feel the magic._
-
-If you want to build something similar to this, be sure to ask your friends whether it's okay for them that you monitor their presence all day long.
diff --git a/content/tech/jimmie-deauth.md b/content/tech/jimmie-deauth.md
deleted file mode 100644
index 36b051b..0000000
--- a/content/tech/jimmie-deauth.md
+++ /dev/null
@@ -1,21 +0,0 @@
----
-categories:
-- embedded
-date: 2016-06-12
-title: Jimmie Deauth
----
-
-Jimmie Deauth is a cheap and small ESP8266 WiFi deauthentication tool.<!--more-->
-
-![jimmie front view](/images/jimmie-jammer/front.jpg)
-
-The ESP8266 module is capable of sending almost arbitrary WiFi packets, including so-called deauthentication packets and packets including beacon information.
-Browsing the internet, I found that RandDruid [already did](https://github.com/RandDruid/esp8266-deauth) most of the work for me. He wrote software for the ESP that kicks everyone in range out of their WiFi hotspot. Why does that work? The router and the client talk to each other. The router can send a special packet - the deauthentication packet - to the client that makes the client disconnect. The software now searches for nearby hotspots and clients, and as soon as there are any found, the module, claiming to be the router, sends the deauthentication packet.
-There is another special packet that tells a client a router's name (SSID) and a kind of address (MAC). kripthor wrote a [small example](https://github.com/kripthor/WiFiBeaconJam) that sends random beacon packets in the air. I used their code as template for a function that I included in RandDruid's original software. You can download the code [here](https://git.schneefux.xyz/schneefux/jimmiedeauth/blob/master/jimmiedeauth.ino).
-
-Next came the hardware part. The ESP8266 is a 3.3V device that draws up to 200mA, maybe about 100 mA on average in this application. As power supply, I used rechargable LiFePo4 batteries. Those are very robust and, unlike typical batteries, stay at 3V for a long time. Mine has a capacity of 700mAh which should be enough for a few hours.
-The battery can be directly connected to the ESP. I added a switch to be able to turn it on and off.
-
-Modern WiFi devices are immune to a deauthentication, but be aware to not to disturb clients that are not your own. Use at your own risk and only for testing purposes.
-
-![rear view](/images/jimmie-jammer/battery.jpg)
diff --git a/content/tech/kindle-as-screen.md b/content/tech/kindle-as-screen.md
index 8fae439..4ebc132 100644
--- a/content/tech/kindle-as-screen.md
+++ b/content/tech/kindle-as-screen.md
@@ -1,6 +1,4 @@
---
-categories:
-- software
date: 2013-10-26
title: Use your Kindle as VNC viewer
---
diff --git a/content/tech/lilypad-bootloader.md b/content/tech/lilypad-bootloader.md
index 0b42c04..4c5e5bb 100644
--- a/content/tech/lilypad-bootloader.md
+++ b/content/tech/lilypad-bootloader.md
@@ -1,6 +1,4 @@
---
-categories:
-- embedded
date: 2016-01-02
title: Burning an Arduino's bootloader
---
diff --git a/content/tech/music-led-visualisation.md b/content/tech/music-led-visualisation.md
deleted file mode 100644
index 792d3ed..0000000
--- a/content/tech/music-led-visualisation.md
+++ /dev/null
@@ -1,30 +0,0 @@
----
-categories:
-- software
-date: 2016-02-13
-title: Visualize music with MPD and an LED strip
----
-
-With Arduinos, 5050 RGB LED strips, Hyperion and MPD on a Raspberry Pi I created a low cost party lightning environment.
-<!--more-->
-
-![First test results](/images/music-led/led-floor.jpg)
-
-_First tests show that the setup seems to work._
-
-The setup consists of cheap RGB LED strips, 2 \* 5 meters, powered by two 12V 3.5A adapters and an Arduino with three TO-120 transistors each.
-For strips with 30 LEDs per meter, you need 0.5A per meter. To be safe, add additional 10% to the total. So for my 10 meters, I could also have used a single adapter with at least 5.5A.
-The Arduino's GPIOs are not nearly able to supply 5.5A \* 12V = 66W, so we need transistors - either darlington transistors or MOSFETs. [Adafruit](https://learn.adafruit.com/rgb-led-strips/usage) has more information and detailed explanations. After wiring, the Arduino needs to be flashed with a software that communicates with the Raspberry Pi. I adapted a sketch that implements the Adalight protocol, you can find it [here](https://git.schneefux.xyz/electronics/mpd-rgb-vis/src/master/adastrip.ino).
-
-The Raspberry Pi as server runs [Hyperion](https://github.com/tvdzwan/hyperion) which is AmbiLight-like. On the same host, MPD outputs music to speakers and a FIFO. I wrote a Hyperion plugin that processes the output of the FIFO and thus visualizes the music that is currently be played. The plugin and more installation instructions are [here](https://git.schneefux.xyz/electronics/mpd-rgb-vis). In my case, I started two Hyperion daemons, because I had two Arduinos connected and it is currently not possible to output the same data to two Hyperion compatible devices.
-
-Initially, I planned using an ESP8266 instead of the Arduino. I had not the right parts to step down 12V to 3.3V and tried to hack something together with LEDs and a 7V-3.3V-stepdown converter.
-Well… that didn't work out quite well. I used Arduino Unos instead.
-
-![Failed attempt of connecting an ESP8266](/images/music-led/controller-failed.jpg)
-
-_Do not reproduce, this fries the ESP…_
-
-![Arduino controller](/images/music-led/controller.jpg)
-
-_The controller in use_
diff --git a/content/tech/nixos-intro.md b/content/tech/nixos-intro.md
index ab80dcd..1f12a8c 100644
--- a/content/tech/nixos-intro.md
+++ b/content/tech/nixos-intro.md
@@ -1,6 +1,4 @@
---
-categories:
-- software
date: 2016-06-01
title: NixOS introduction
---
diff --git a/content/tech/nixos-mailserver.md b/content/tech/nixos-mailserver.md
index 6be8610..8b5e19b 100644
--- a/content/tech/nixos-mailserver.md
+++ b/content/tech/nixos-mailserver.md
@@ -1,6 +1,4 @@
---
-categories:
-- software
date: 2016-06-11
title: NixOS mail server
draft: true
@@ -248,7 +246,7 @@ smtpd_helo_restrictions = permit_mynetworks
smtpd_data_restrictions = reject_unauth_pipelining
-mailbox_transport = lmtp:inet:127.0.0.1:8458
+mailbox_transport = lmtp:inet:127.0.0.1:8458
milter_default_action = accept
milter_protocol = 2
diff --git a/content/tech/raspberry-pi-router.md b/content/tech/raspberry-pi-router.md
index b38ab96..4631a85 100644
--- a/content/tech/raspberry-pi-router.md
+++ b/content/tech/raspberry-pi-router.md
@@ -1,6 +1,4 @@
---
-categories:
-- software
date: 2014-08-05
title: Use your Raspberry Pi as WiFi router
---
diff --git a/content/tech/raspberrypi-bootstrapping.md b/content/tech/raspberrypi-bootstrapping.md
index 8cd907e..a6f42ed 100644
--- a/content/tech/raspberrypi-bootstrapping.md
+++ b/content/tech/raspberrypi-bootstrapping.md
@@ -1,6 +1,4 @@
---
-categories:
-- embedded
date: 2016-01-30
title: Installing Arch Linux ARM on a Raspberry Pi
---
diff --git a/content/tech/scaling-elasticsearch.md b/content/tech/scaling-elasticsearch.md
index 88ab1e6..fc4b9b0 100644
--- a/content/tech/scaling-elasticsearch.md
+++ b/content/tech/scaling-elasticsearch.md
@@ -1,6 +1,4 @@
---
-categories:
-- software
date: 2017-08-26
title: Scaling down an Elasticsearch cluster
---
@@ -13,8 +11,8 @@ Taking nodes out of the cluster is more challenging. First, make sure that the c
```bash
curl -XPUT 'localhost:9200/_cluster/settings' -d '{
- "transient" : {
- "cluster.routing.allocation.enable" : "none"
+ "transient" : {
+ "cluster.routing.allocation.enable" : "none"
}
}'
```
@@ -34,7 +32,7 @@ Finally, force the reallocation:
```bash
curl -XPOST 'localhost:9200/_cluster/reroute' -d '{ "commands":
- [{ "move" :
+ [{ "move" :
{ "index" : "yourindex", "shard" : 1, "from_node": "anothernode", "to_node": "laptop" }
}]
}'
@@ -44,8 +42,8 @@ Take the node down as soon as the cluster status is green again and reactivate b
```bash
curl -XPUT 'localhost:9200/_cluster/settings' -d '{
- "transient" : {
- "cluster.routing.allocation.enable" : "all"
+ "transient" : {
+ "cluster.routing.allocation.enable" : "all"
}
}'
```
diff --git a/content/tech/weather-snowman.md b/content/tech/weather-snowman.md
deleted file mode 100644
index 7be9a08..0000000
--- a/content/tech/weather-snowman.md
+++ /dev/null
@@ -1,39 +0,0 @@
----
-categories:
-- embedded
-date: 2015-12-12
-title: Weather snowman - Embedded LED forecast
----
-
-It's christmas time! As a kind of pre-christmas gift, I built an Internet of Things enabled snowman for one of my best friends.
-<!--more-->
-
-Like in [my last project]({{< ref "internet-is-magic.md" >}}), I used an ESP8266 again, some LEDs and an old acrylic snowman that I cut open.
-
-![blue glowing snowman](/images/weather-snowman/snowman-glowblue.jpg)
-
-_The electronics were cheaper than the snowman._
-
-Inside the snowman was a fading RGB led, a switch and batteries. Boring!
-
-I replaced it with the ESP8266, which had 3 LEDs attached to it (red, green, blue). Via a USB cable and a voltage converter, I powered it:
-
-![inside setup](/images/weather-snowman/leds.jpg)
-
-_Luckily, you don't see how messy it really becomes once you put all this in that tiny snowman…_
-
-![inside setup, top view](/images/weather-snowman/leds-esp.jpg)
-
-Coding took a while.
-
-The ESP creates a wireless access point with a web server after powerup and asks you to enter your WiFi credentials. After first setup and whenever the module is started again, it connects to your wireless network and queries [OpenWeatherMap](http://openweathermap.org/) every hour for a 3 hour forecast.
-
-Depending on the forecast, the blue and red LEDs glow in different patterns. If a rainy day is to be expected, the top red LED lights up and the bottom blue LED fades in and out. A storm at night is displayed via a deep blue head and a blinking snowman's body.
-
-If you inspect [the source code](https://git.schneefux.xyz/electronics/weather-snowman), you'll see that there also is an Android app. The app simplifies the setup and runs a background service that makes your snowman's green LED flash on new notifications.
-
-![new notification snowman](/images/weather-snowman/snowman-blink.jpg)
-
-_Gotta check my mails._
-
-![blue and red glowing snowman](/images/weather-snowman/snowman-glowbluered.jpg)