Unadopted Podcast Session 041 Out Now!

Time to get your nostalgia on. Back in January 2010 I recorded a set of my favourite late-night tracks from the early 2000s. It was originally going to be Session 028 but I ended up not releasing it… until now!

  1. Future Sound Of London – Papua New Guinea (12″ Version)
  2. Moby - Why Does My Heart Feel So Bad? (Red Jerry’s String And Breaks Mix)
  3. Delerium feat Sarah McLachlan - Silence (Niels van Gogh vs Thomas Gold Remix)
  4. ATB – 9pm (Till I Come)
  5. Faithless – God Is A DJ (Monster Mix)
  6. Schiller – Das Glockenspiel
  7. Paul van Dyk – For An Angel
  8. Energy 52 – Cafe Del Mar (Deadmau5 Remix)
  9. Orbital – Frenetic
  10. Jean-Jacques Smoothie – 2 People (Mirwais Extended Mix)
  11. Layo & Bushwacka – Love Story

Listen now over at http://unadopted.co.uk/podcast/. If you haven’t already set it up, search for “Unadopted” in the iTunes Store and have the latest sessions automatically delivered right into your iTunes Library!

Unadopted Podcast Session 040 Out Now!

It’s coming up to the end of another year, so here’s a roundup of some of my favourite tracks from 2013, including the Stanton Warriors remix of I Still Love You, The Music by Marcus Marr, the Jackson & His Computer Band Reprise of Surkin’s White Knight Two and much more.

  1. St Lucia – September (Alex Metric Remix)
  2. Russ Chimes – Tonic (Original Mix)
  3. Switch – I Still Love You (Stanton Warriors Remix)
  4. BURNS – Lies (Acrobat Remix)
  5. Marcus Marr – The Music
  6. Mø – Pilgrim (Digitalism Remix)
  7. Stanton Warriors – MPC (Original Mix)
  8. Human Life – Uptown
  9. The Whip – Secret Weapon (Alex Metrix Remix)
  10. Surkin – White Knight Two
  11. Surkin – White Knight Two (Jackson & His Computer Band Reprise)

Listen now over at http://unadopted.co.uk/podcast/. If you haven’t already set it up, search for “Unadopted” in the iTunes Store and have the latest sessions automatically delivered right into your iTunes Library!

Sharing entropy between computers with entropyservice

Suffering with low entropy on Xen/KVM/VMware VMs? Get help from another computer with better entropy sources.

Check out entropyservice. It allows low entropy machines (eg virtual machines) to collect data from another host with high entropy (eg a real computer) via SSH, then stir it in to the kernel’s entropy pool using rngd.

Find out more at https://github.com/arussell/entropyservice.

OS X Mavericks: restoring my development enviromment

I upgraded to OS X Mavericks last night. It’s great, my Mac is faster, and I’ve not touched a single byte of swap yet, even with a ton of stuff open. But like any OS upgrade, there are some things that are causing my dev environment to work strangely. Here’s how I’m fixing them.

Apache just shows 403 Forbidden for all my sites in ~/Sites

This one’s an easy fix. Open /etc/apache/httpd.conf in your favourite editor. Find <Directory "/Library/WebServer/Documents/"> on line 197 and replace it with <Directory "/Users/your-unix-username/Sites/">.

Alternative solution: If you have multiple users on the same Mac all needing ~/Sites to work, you may need to replace the Directory directive entirely with a <DirectoryMatch "/Users/*/Sites/">, but don’t forget to change out the closing </Directory> for a </DirectoryMatch> too.

Once you’ve made your edits, save the file, and run sudo apachectl restart to make apache pick up the config change.

Git shell integration stopped working

I added these lines to my .bash_profile to get RVM info and Git info in my shell prompt:

# Show RVM gemset and Git branch in Bash prompt
source /usr/share/git-core/git-prompt.sh
export PS1="\h:\W \u\[\033[01;34m\]\$(~/.rvm/bin/rvm-prompt g)\[\033[00;33m\]\$(__git_ps1 \"(%s)\")\[\033[00m\]\$ "

Now, however, my shell prompt is a bit broken and has an error above each prompt, like this:

-bash: __git_ps1: command not found
piro:~ my-unix-username$

Turns out I don’t have a

/usr/share/git-core/git-prompt.sh

file anymore, which is causing the __git_ps1 environment variable to not get set.

But, there does appear to be a copy at /Applications/Xcode.app/Contents/Developer/usr/share/git-core/git-prompt.sh so I edited my .bash_profile to and updated the source line with the new path. Not sure it’s such a great idea running it from the /Applications/Xcode.app path but it’s probably better than copying/symlinking it to /usr/share until I get familiar with The New Way Of Doing Things™.

X11 was no longer installed

Easily fixed, just need to download a fresh copy from http://xquartz.macosforge.org.

More issues will be posted here as I find/solve them.

iOS 7 status bar fix for Sencha Touch apps

Sencha Touch hasn’t been updated for iOS 7′s new fullscreen views yet. This causes the status bar to overlap your app’s content, which looks rather messy.

Luckily it’s really easy to get things working again if all your views use title bars / navigation bars.

Just drop this code into app.js (after your last Ext.Viewport.add line) to make the title bars a bit taller and push the title bar’s contents down a few pixels so that the title and any buttons up there don’t collide with the status bar’s contents:

// Adjust toolbar height when running in iOS to fit with new iOS 7 style
if (Ext.os.is.iOS && Ext.os.version.major >= 7) {
  Ext.select(".x-toolbar").applyStyles("height: 62px; padding-top: 15px;");
}

Unadopted Podcast Session 039 Out Now!

A WILD PODCAST APPEARS! It’s been far too long since I did one of these, so here’s a bunch of awesome stuff that I’ve been listening to lately. Music this time from Hot Chip, Metric, Delphic, Tame Impala, Alex Metric, Tensnake and loads more.

  1. Inner City – Big Fun (Simian Mobile Disco Remix)
  2. Niki & The Dove – The Drummer (Fake Blood Remix)
  3. Totally Enormous Extinct Dinosaurs – Waulking Song
  4. Metric – Monster Hospital (MSTRKRFT Remix)
  5. Alex Metric & Jacques Lu Cont feat Malin – Safe With You
  6. Tensnake – Coma Cat
  7. Hot Chip – Flutes (Sasha Remix)
  8. Kölsch – Zig
  9. Alex Metric & Steve Angelo – Open Your Eyes (Style Of Eye Dub)
  10. Grum – Heartbeats (Joe & Will Ask? Remix)
  11. Delphic – Good Life (Lone Remix)
  12. Tame Impala – Why Won’t You Make Up Your Mind (Erol Alkan Rework)

Listen now over at http://unadopted.co.uk/podcast/. If you haven’t already set it up, search for “Unadopted” in the iTunes Store and have the latest sessions automatically delivered right into your iTunes Library!

Unadopted Podcast Session 038 Out Now!

A lighter mix than the past few. Music this time from Grum, Cassius, M83, Of Monsters & Men, Two Door Cinema Club and more!

If you love the Unadopted Podcast, please add Unadopted on Facebook and tell your friends about the podcast, then tune into Unadopted Radio! Also, please be good and buy the tracks you like, it’s only a few pence a track these days!

Want to send music in to the Unadopted Podcast? Now you can! Visit the Unadopted Soundcloud and send your music in (it’s dead easy). If I like it, I’ll try and get it into one of the sessions!

  1. The Whitest Boy Alive vs Mylo vs Cut Copy – Otto’s Golden Journey (Andy Webb’s Dreamy Blend)
  2. Two Door Cinema Club – Sleep Alone (BeatauCue Remix)
  3. Buffetlibre – The Sun In The Shade (Bonde Do Role Remix)
  4. Cassius – Feeling For You (Les Rythmes Digitales Dreamix)
  5. Grum – Heartbeats
  6. Farleon – Millenium
  7. M83 – Reunion (Mylo Remix)
  8. Of Monsters & Men – Little Talks (The Knocks Remix)
  9. Ellie Goulding – Anything Could Happen (Alex Metric Remix)
  10. The Knocks & Fred Falke – Geronimo (Louis La Roche Remix)
  11. Bertie Blackman – Black Cats (Shazam Remix)
  12. Harry Thumann – Underwater

Listen now over at http://unadopted.co.uk/podcast/. If you haven’t already set it up, search for “Unadopted” in the iTunes Store and have the latest sessions automatically delivered right into your iTunes Library!

Unadopted Podcast Session 037 Out Now!

Just in time to have something to listen to while frantically clicking refresh trying to get tickets for Glastonbury. :) Music this time from Cagedbaby, Van Go Lion, Van She, PNAU, The Migrants and more!

If you love the Unadopted Podcast, please add Unadopted on Facebook and tell your friends about the podcast, then tune into Unadopted Radio! Also, please be good and buy the tracks you like, it’s only a few pence a track these days!

Want to send music in to the Unadopted Podcast? Now you can! Visit the Unadopted Soundcloud and send your music in (it’s dead easy). If I like it, I’ll try and get it into one of the sessions!

  1. Goose – Synrise (Soulwax Remix)
  2. Beach Boys – Good Vibrations (Stanton Warriors Remix)
  3. Lazy Jay – Float My Boat (Extended Mix)
  4. The Bird and the Bee – Fucking Boyfriend (Peaches Remix)
  5. Cagedbaby – Forced (Foamo Remix)
  6. Krafty Kuts – Cassius Groove
  7. Afrojack – Replica
  8. Daft Punk – Prime Time Of Your Life (Tits & Clits Remix)
  9. Van Go Lion – Glow (Alfa’s Snow White Remix)
  10. Van She – Idea Of Happiness (SebastiAn Remix)
  11. Deadmau5 & Wolfgang Gartner – Animal Rights
  12. The Migrants – I Thought That (Boris Dlugosch Remix)
  13. PNAU – Come Together
  14. Stereofunk – Rage
  15. The 2 Bears – Be Strong

Listen now over at http://unadopted.co.uk/podcast/. If you haven’t already set it up, search for “Unadopted” in the iTunes Store and have the latest sessions automatically delivered right into your iTunes Library!

shareit: Simple FTP-based file sharing from the command line

File sharing websites tend to have ads everywhere, and long running HTTP uploads of large files can be a pain in the backside, so I stopped using them a while back. Whenever I needed to share a file with someone, I’d figure out the file’s MD5 sum (to avoid naming collisions), fire up Transmit (the nicest Mac FTP app by far), upload the file, rename it after uploading, then manually type the link and copy/paste the MD5′d filename in and send it to whoever I wanted to share the file with.

It was nice because I hosted the files, and didn’t have to worry about my recipient seeing a bunch of ads or the file sharing service going down (or being taken down). But it had a huge downside in that it wasn’t straightforward. I was doing a whole bunch of the work by hand every time I wanted to share a file with someone, which as a coder seems like I’m doing something wrong. Eventually I got round to automating it, and now it’s much easier to share a file with someone quickly, just fire one line into the terminal and you’re done.

Getting Started
Before you get started, you’ll want to create a simple YAML file called .shareit in your home directory with your FTP config details, like this:

hostname: ftp.yourwebsite.tld
username: yourusernamegoeshere
password: yourpasswordgoeshere
path: public_html/shareit/
http_prefix: http://yourwebsite.tld/shareit/

path should exist on the FTP server, and http_prefix should be the URL that the folder is accessible at. Both path andhttp_prefix should also include the trailing slash.

Note that the URLs shareit generates are not secure, but they are random enough that people won’t be able to guess them easily unless they know the file’s exact contents. It is recommended that you disable your webserver’s automatic directory indexing for the folder you define in http_prefix – if you don’t, people will be able to browse your entire collection of shared files.

Once you’ve set up your config file, make shareit available in your PATH by adding a symlink in /usr/bin or /usr/local/bin or something.

Usage
Using shareit is simple, all you need to do is tell it what file to upload:

$ shareit 10mb.txt
Uploading to http://yourwebsite.tld/shareit/596c35b949baf46b721744a13f76a258.txt: 10000K of 10000K (100%)
Upload complete!

You can download shareit from https://github.com/arussell/shareit.

Unadopted Podcast Session 036 Out Now!

After 8 months of neglect, the Unadopted Podcast is finally back! Music this time from Goose, Santigold, Hot Chip, Soulwax, Joe Goddard and more!

If you love the Unadopted Podcast, please add Unadopted on Facebook and tell your friends about the podcast, then tune into Unadopted Radio! Also, please be good and buy the tracks you like, it’s only a few pence a track these days!

Want to send music in to the Unadopted Podcast? Now you can! Visit the Unadopted Soundcloud and send your music in (it’s dead easy). If I like it, I’ll try and get it into one of the sessions!

  1. Goose – Synrise (Housemeister Remix)
  2. Santigold – Disparate Youth (The 2 Bears Remix)
  3. Alex Metric – Deadly On A Mission (Dub Mix)
  4. Miike Snow – Paddling Out (Wolfgang Gartner Remix)
  5. Soulwax – Another Excuse
  6. Boys Noize & Erol Alkan – Lemonade (Justin Robertson’s Deadstock 33′s Remix)
  7. Hot Chip – Touch Too Much (Fake Blood Remix)
  8. Alex Gopher – Brain Leech (Bugged Mind Remix)
  9. Para One – Dundun-Dun (Album Version)
  10. Joe Goddard – Gabriel (Soulwax Remix)

Listen now over at http://unadopted.co.uk/podcast/. If you haven’t already set it up, search for “Unadopted” in the iTunes Store and have the latest sessions automatically delivered right into your iTunes Library!