Your job affects your mind. Disadvantage of being a developer: we must be so focused on the task at hand that we evict everything else from our memory.
Sander van Dragt's Notes
-
-
Dropbox Modifies TCC.db to Give Itself Accessibility Access
Dropbox was using a sql attack on the tcc database to circumvent Apple’s authorization policy
Another issue like this and a lot of people will switch to iCloud Drive.
-
How to signup for Flickr without disclosing your mobile number
I was looking to setup a Flickr account and noticed that it requires you to enter a mobile phone number to sign up. I prefer not to disclose this information to third parties so I looked for a solution. Unfortunatley, a lot of information is out of date as Yahoo! (which owns Flickr, and which is the service you sign up to so you can login) turned off third party signups back in 2014. However I found a way...
To complete this process you will need to have a non-yahoo email address. I recommend you try Hover and register your own domain with email (such as your surname), so that you will never have to change it when your email provider closes up shop.
Follow these steps:
- Instead of signing up via Flickr, Sign up for a Yahoo!'s account via their website.
- Notice that a mobile number is required. Follow the I'd rather use my own email address link just below the email address input.
- Notice you can now sign up with your own email and a mobile phone number is no longer required.
- Choosing your password and create a Yahoo! account.
Now you can use the credentials to sign into Flickr!
-
Painless Lektor Setup in Less Than 5 Minutes
Two technologies that I have can really recommend you try out - Lektor and Cloud9 - can be used together to start a static site or blog in a matter of minutes. If you want to try out the power of Lektor without leaving a trace on your machine then follow this quick setup.
Lektor is a flexible and powerful static content management system for building complex and beautiful websites out of flat files — for people who do not want to make a compromise between a CMS and a static blog engine.
Cloud9 combines a powerful online code editor with a full Ubuntu workspace in the cloud.
Because every Cloud9 workspace is also a Docker container, you have full access to a ubuntu system with terminal access. We can use this to install a development Lektor install and work on our static website as follows:
- Create a new Cloud9 workspace with the Python template, as Lektor is written in Python.
- Delete the
ex50folder - In the bash tab of the new workspace, install lektor by running:
curl -sf <a href="https://www.getlektor.com/install.sh" target="_blank">https://www.getlektor.com/install.sh</a> | sh - Once this completes, start a new project:
lektor quickstart - Create a new runner (Run > Run With > New Runner) with the following contents (replace myproject): ```
{
"cmd" : ["lektor", "server", "-p", "8080", "-h", "0.0.0.0"],
"info" : "Started $project_path",
"working_dir": "/home/ubuntu/workspace/myproject"
}
- Press the Run button to start the server, and Preview > Preview Running Application to browse the Lektor site.
That's all there is to it, you can continue with the Lektor Quickstart instructions.
-
I don't know what this implies. #ui
<a href="https://vandragt.com/wp-content/uploads/sites/7/2016/08/img\_0685.jpg"><img class="alignnone wp-image-2285" src="https://vandragt.com/wp-content/uploads/sites/7/2016/08/img\_0685.jpg" alt="" width="336" height="416" /></a>
-
Nvidia unveils GTX 1060: Faster than a GTX 980 for £220
-
Don't think you want to make it this simple to pipe potentially unsafe input to the shell #PHP <a href="http://php.net/manual/en/language.operators.execution.php">[http://php.net/manual/en/language.operators.execution.php</a><p>](http://php.net/manual/en/language.operators.execution.php</a><p>) </p>
-
WorkLog.py - work logging
I wrote this little script and thought it might be useful for others. WorkLog.py allows you to keep track of what you are working on by writing a timestamped message to a CSV file. It turns out it helps me stay in tack during a long day of work.

I've put the latest code on GitHub ``
A great little bit of python code. It requires Python 3. Then just run the file.
-
"From now on, our cars will more deeply understand that buses (and other large vehicles) are less likely to yield to us than other types of vehicles."
-
Traktor streaming to SHOUTcast servers using LiquidSoap
I've been using Traktor for years now as my deejaying solution and broadcasting tool. The one missing feature on the broadcasting side is that it can only stream directly to Icecast servers, lacking the ability to stream to SHOUTcast based servers. Most servers use the SHOUTcast streaming protocol which grew popular through the MP3 movement back around the turn of the century. We will setup a transcoding link to enable streaming to SHOUTcast servers.
This guide will focus on OS X but on a general level is also applicable to Windows users.
This replaces my previous guide at https://sites.google.com/site/traktorshoutcast/
Overview
We will need the do the following things:
- Install Homebrew, a package manager to help set things up.(OS X)
- Install and setup Icecast, a streaming server that will accept the Traktor stream. (aka local streaming server)
- Install and setup LiquidSoap, a transcoder that will connect to the local stream, and broadcast it in SHOUTcast format.
- Configure Traktor's broadcasting settings to point to the local streaming server.
Also useful is to keep the SHOUTcast stream (remote stream) details to connect to at hand (host, port, password).
[

](http://vandragt.com/wp-content/uploads/sites/7/2015/12/Traktor-Broadcasting-2.png)
1) Install Homebrew
Homebrew is a terminal package manager to add / remove / update OS X software and compile it from source code for us, so we don't have to.
Homebrew installs the stuff you need that Apple didn’t.
To install, follow the directions on http://brew.sh. Currently (as of Feb 16) that says:
- Open a terminal window.
- Run
/usr/bin/ruby -e "$(curl -fsSL <a href="https://raw.githubusercontent.com/Homebrew/install/master/install" target="_blank">https://raw.githubusercontent.com/Homebrew/install/master/install</a>)"
Follow any instructions about the Xcode commandline tools.
After everything is setup you can run
brew updateto update your formulae,brew upgradeto upgrade to their latest versions, andbrew doctorto diagnose any issues with your particular installation. Keep the terminal open for the next step.2) Install and setup Icecast
Icecast is a streaming media server which [...] can be used to create an Internet radio station or a privately running jukebox and many things in between.
We will setup the local streaming server so that we can connect Traktor and the transcoder to it.
Install
In the terminal window you left open, run
brew install icecast.If I remember correctly, everything should go smoothly and before long you'll get a message saying it's successfully installed.
Configuration
To keep the configuration files we are about to create nicely together, create a broadcast folder somewhere (I used ~/Music/Broadcast).
I have prepared a very simple configuration file for you, download it from https://gist.github.com/svandragt/f7ecb720416a68f096a1 (right click the raw button and select Download Linked File As.. and save it as
icecast.xmlin the broadcast folder you just created).- This configuration file is insecure and uses the default Icecast passwords, please change them as I have done so that others on your network cannot login and disconnect your stream whilst broadcasting.
- Notice that the mount point is
/traktor.ogg, on port8000, onlocalhost(your own machine). - I've taken out everything that is not necessary to keep the file as simple as possible. There are all kinds of settings you can add, see http://www.icecast.org/docs/icecast-2.4.1/config-file.html">http://www.Icecast.org/docs/Icecast-2.4.1/config-file.html
You won't have to change the contents of this file, apart from the passwords. This configuration creates a mount point on http://localhost:8000/traktor.ogg for Traktor and LiquidSoap to connect to.
Starting and Stopping the Local Streaming Server
In the terminal window, in your broadcast folder, run
icecast -c icecast.xml. It should show a few warnings but no errors, and your local streaming server is now running. Stop it now by pressingctrl+c.3) Install and setup LiquidSoap
Our flagship is liquidsoap, a swiss-army knife for multimedia streaming, notably used for netradios and webtvs. Liquidsoap is a powerful and flexible language for describing your streams. It offers a rich collection of operators that you can combine at will, giving you more power than you need for creating or transforming streams. But liquidsoap is still very light and easy to use, in the Unix tradition of simple strong components working together.
We will install the program and setup a flow (configuration) to connect to the local streaming server, and broadcast it to the remote stream.
It should have been simple to install using brew, but unfortunately it was not. After several days of debugging here is a working set of instructions I produced.
Install
In the terminal window you left open, we will run the following commands:
brew tap drfill/liquidsoap-- This enabled homebrew to install it.brew install --env=std liquidsoap --with-shout-- this installs LiquidSoap using the standard build environment with shoutcast support
Grab a drink. After a while hopefully all works fine. I noticed that LiquidSoap is now recommending OPAM to install it so you could try that if this doesn't work for you. (http://liquidsoap.fm/download.html) - I have not tried it.
Configuration
As before, I have created a very simple flow. You will need to setup one flow per destination stream so if you play at multiple radio stations / SecondLife clubs then you will need multiple flows.
Download it from https://gist.github.com/svandragt/af43c07d5842c9c429d5 (right click the raw button and select Download Linked File As.. and save it as
example.liqin the broadcast folder).This time you have to edit it, to add the remote stream details. Change the following lines to suit your purposes:
output_host = "example.com"output_port = 8124output_pass = "mypassword"
The configuration above is for broadcasting to a SHOUTcast server at http://example.com:8124 (using the password
mypassword). Leave the rest of the file alone or make a copy and start experimenting LATER, see http://liquidsoap.fm/documentation.html. LiquidSoap is very powerful.Starting and Stopping the Transcoder
In the terminal window, in your broadcast folder, run
liquidsoap example.liq. It will start showing a lot of messages, and because you are not currently broadcasting also some errors. Stop it now by pressingctrl+c.Traktor
Start Traktor and open the Preferences menu item. Open the Broadcasting tab.
Use the following information to point to the local streaming server:
Server settings:
- Address:
localhost - Port:
8000 - Mount path:
traktor.ogg - Password:
hackme(but you changed this, right) - Format: Ogg Vorbis, 44100 Hz, 192 kBit/s (highest quality, bottom option)
You can enter whatever you like in the Metadata Settings.

In Traktor, click the broadcast button (the little attenna). It will flash because the local streaming server isn't running and therefore Traktor cannot connect to it. Whenever Icecast is running but the button is still flashing, check that the password and other connection details match.
For now, click it again to stop broadcasting.
All together now
Before you start streaming:
- Start Icecast and keep it running.
- In Traktor, click the broadcast button and confirm its not flashing.
- Open another terminal window / tab in the broadcast folder for the next step.
When you start streaming:
- Start LiquidSoap with the flow of your remote stream. Keep it running.
- Start deejaying!
When you are finished
- Stop broadcasting with Traktor.
- Stop liquidSoap to let the next DJ on the stream.
- Stop Icecast because nothing is connected to it now.
Final thoughts
I hope this helps anyone having trouble deejaying online, I enjoy it very much and if you'd like to listen to deep house / electronica, please listen to my mixes.