Software

231 posts in Software

Raspberry Pi & @Flightradar24

· hardware, linux, networking, software

In a couple of lines: how to get FR24 (+ dump1090) to work on your Raspberry Pi.

Be sure to have the right hardware: flightradar24.com/dvbt-stick and … obviously … a RPi.

I got a NooElec from Amazon because I didn’t have the patience to wait for something (that might not work) from AliExpress.

As root:

apt-get update && apt-get install cmake gcc pkg-config libusb-1.0 make git-core libc-dev git clone git://git.osmocom.org/rtl-sdr.git cd rtl-sdr mkdir build cd build cmake ../ -DINSTALL_UDEV_RULES=ON make && make install ldconfig cd ../..

Deleting big files from your git history

· linux, software

I committed a couple of big binary files, which eventually really slowed down Git.

Unchanged: This is how you find them, and delete them:

Script (will show top 10 biggest files):

#!/bin/bash
#set-x
# Shows you the largest objects in your repo's pack file.
# Written for osx.
# @see http://bit.ly/UmpwkV

# @author Antony Stubbs
# set the internal field separator to line break,
# so that we can iterate easily over the verify-pack output

IFS=$'\n';
# list all objects including their size, sort by size, take top 10
objects=`git verify-pack -v .git/objects/pack/pack-*.idx | \
grep -v chain | sort -k3nr | head`

echo "All sizes are in kB's. The pack column is the size of the object, \
compressed, inside the pack file."

output="size,pack,SHA,location"
for y in $objects
do
	# extract the size in bytes
	size=$((`echo $y | cut -f 5 -d ' '`/1024))
	# extract the compressed size in bytes
	compressedSize=$((`echo $y | cut -f 6 -d ' '`/1024))
	# extract the SHA
	sha=`echo $y | cut -f 1 -d ' '`
	# find the objects location in the repository tree
	other=`git rev-list --all --objects | grep $sha`
	#lineBreak=° echo e "\n"*
	output="${output}\n${size},${compressedSize},${other}"
done
echo -e $output | column -t -s ', '

And then:

Munin + Raspberry Pi + temperature: updated

· hardware, linux, software

I got a mail in my inbox about a week ago from Anthony, telling me how to improve my Munin & temp script for a RPi:

Hi,

I just read your (old) blog post about monitoring the temperature of the Raspberry Pi with munin[1].

I had the exact same error as you did when I was trying to let munin do the job all by himself:

temp.value VCHI initialization failed)

It turns out the solution was quite easy: in

Mac OS X Mavericks + VLC top bar

· apple, errors, software

Mavericks, and its new "multi display support" adds a grey-ish bar to the top of VLC when watching anything full screen.

VLC-fullscreen-header

I never found a way to get rid of it, and it has annoyed me ever since. Until yesterday...

This is how to get rid of it:

  1. play movie
  2. drag to 2nd screen
  3. click Video > Float on Top
  4. go full screen (cmd+F or Video > Fullscreen)

float-that-shit

Mac OS X: Mavericks causes CPU fan to run at full speed

· apple, errors, software

I’ve noticed that, after upgrading from Mountain Lion to Mavericks on my borrowed MBA, my fan was running a lot… and loudly. As in, moving my mouse caused the fan to run at full speed.

I tried rebooting (and unchecking “reopen apps at startup”), which helped for about 5 minutes.

I tried closing down apps (which helped; especially keeping Mail closed helped a lot). But even watching a YouTube or playing Music on Google Music caused the CPU fan to start spinning way louder than before.