Search

Categories

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Send mail to the author(s) E-mail

# Friday, January 30, 2015
( Spotify )

http://dmusic.azurewebsites.net – hosting (free option)
https://github.com/djhmateer/davesmusic – source control

/Home/Search

/Home/Search?artist=muse

/Artists/Details/12345

/Albums/Details/12345

 

/Me – gets current logged in user profile (OAuth)

Am designing my routing to follow Spotify’s API
http://stackoverflow.com/questions/12460060/asp-net-mvc-controller-naming-pluralization – lets go plural

| | # 
# Monday, January 26, 2015
( Spotify )

http://www.programgood.net/2014/12/31/SpotifyWebAPI.aspx

/Home/Spotify

/Home/SpotifyAuthenticate

/Home/SpotifyCallback

https://github.com/JohnnyCrazy/SpotifyAPI-NET – Includes his own http server

https://github.com/slyngelstat/Slyngelstat.Spotify.Api – no authorization

https://spotifywebapi.codeplex.com/SourceControl/latest – useful! (spotify webapi)

http://stackoverflow.com/questions/15176538/net-httpclient-how-to-post-string-value – setting up post and async

Can get an access token now!!

image
Using the access token to get data about the currently logged in user

url = "https://api.spotify.com/v1/me"; client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", access_token); httpResponse = client.GetAsync(url); var result2 = httpResponse.Result.Content.ReadAsStringAsync().Result; //dynamic obj2 = JsonConvert.DeserializeObject(result2); var meReponse = JsonConvert.DeserializeObject<MeResponse>(result2);

Useful bit of dynamic code as it allowed me to see the json and convert it using json2csharp.com into a MeResponse class.

HttpClient and HttpWebRequest

HttpClient uses HttpWebRequest as it’s transport library

“The benefits that HttpClient brings is with the standard classes like HttpResponseMessage, HttpRequestMessage, HttpContent and all the strongly typed headers”
http://stackoverflow.com/questions/16194054/is-async-httpclient-from-net-4-5-a-bad-choice-for-intensive-load-applications

http://tmenier.github.io/Flurl/ – possible useful.. a library for helping with Http calls and dealing with API’s

| | # 

http://acousticbrainz.org/ – Automated Analysis of music

image

http://musicbrainz.org/

image
MusicBrainz have an API too

| | # 
# Sunday, January 25, 2015

https://www.gov.uk/photos-for-passports – We need passport photos for our 4 month old daughter, and for me. 

http://www.idphoto4you.com/ – seems like an easy way to print on 6*4

| | # 
# Saturday, January 24, 2015

http://static.echonest.com/SixDegreesOfBlackSabbath/?src_id=2591&dest_id=1419

This is around 2010

image
His artist search box is very fast.. and smart..

Black Crowes returns The Black Crowes

http://musicmachinery.com/2010/05/20/six-degrees-of-black-sabbath/

http://musicbrainz.org/

Written by Paul Lamere  http://static.echonest.com/playlistminer/index.html

Infinite Jukebox

http://labs.echonest.com/Uploader/index.html?trid=TRODVQF14876947261

image

Remixing according to beats

Sort your Music

http://static.echonest.com/SortYourMusic/

“.. developer can add, replace, remove and rearrange tracks in a playlist on behalf of a listener”

Where’s the Drama

image

http://musicmachinery.com/2014/09/08/more-on-wheres-the-drama/

Creating a Music Catalog

http://static.echonest.com/OutsideLands/

 {
            "artist": "Kanye West",
            "ids": {
                "beats": "ar47014",
                "echonest": "ARRH63Y1187FB47783",
                "gracenote": "140643862-9BCF9726FFBE8904A58D8DC4B995D39B",
                "musicbrainz": "164f0d73-1234-4e2c-8743-d77bf2191051",
                "openaura": "52991f89e4b0bd2cefd3a2cd",
                "outside": "42028",
                "rdio": "r20227",
                "spotify": "spotify:artist:5K4W6rqBFWDnAN6FQUkS6x"
            },
            "link": "http://lineup.sfoutsidelands.com/band/kanye-west",
            "shows": [
                {
                    "date": "2014-08-08",
                    "stage": "Lands End",
                    "time": "8:05 - 9:50"
                }
            ]
        },
        {
            "artist": "Arctic Monkeys"

Interesting the different sources of data..

The Set Listener

http://static.echonest.com/SetListener/

http://www.setlist.fm/setlist/foo-fighters/2015/estadio-ciudad-de-la-plata-la-plata-argentina-43ca9b5f.html

http://musicmachinery.com/2014/07/21/set-listener-update-now-listen-to-specific-shows-in-spotify/

 

Autocanonizer

http://static.echonest.com/autocanonizer/go.html?trid=TRXNFCB13D13DD1CEB

http://musicmachinery.com/2014/03/18/how-the-autocanonizer-works/

Maps

image

Uses Echo Nest API to get

image

YouTube SoundCloud

image

SoundShelter

image

| | # 
# Friday, January 23, 2015
( SQL | VB.NET )
Public Shared Sub InsertUser(ByVal userName As String) Using cnn As New SqlConnection(ConnectionStrings.GetConnection()) Using cmd As SqlCommand = New SqlCommand("StoredProc_InsertUser", cnn) cnn.Open() cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.AddWithValue("@Username", userName) cmd.ExecuteNonQuery() End Using End Using End Sub

‘Best’ practice for DBAccess code..
| | # 
( VS2005 )

To do a build (not build solution)

alt B alt U – build unit

| | # 
( Spotify )

http://developer.echonest.com/sandbox/spotify.html

“The Echo Nest has linked our IDs to Spotify”

Biographies

http://developer.echonest.com/api/v4/artist/biographies?api_key=FILDTEOIK2HBORODV&id=spotify:artist:4Z8W4fKeB5YxbusRsdQVPb

image
The last.fm and Wikipedia entries seem to be the best

| | # 
# Thursday, January 22, 2015
( Spotify )

image

Related Artists – I’ve limited it to the top 7 (20 returned by default)

| | # 
# Wednesday, January 21, 2015
( Spotify )

image

image

So now I should make an /Album/Details/ link

image

| | #