News for hackers. Stuff that matters.
Re:Show HN: SoundCloud Instant by rakoo on Thursday April 17, 2014 @02:46AM (#7602283)
Hmmm...

> Blocked loading mixed active content "http://code.jquery.com/jquery-latest.js"

> Blocked loading mixed active content "http://connect.soundcloud.com/sdk.js"

You're trying to mix HTTPS and HTTP...

I also see that your API key is there in clear. I hope no one can do any bad stuff in your name.

Oh, and it looks like every action is sent to google for statistics ?

Re:Show HN: SoundCloud Instant by wdewind on Thursday April 17, 2014 @08:31AM (#7603152)
> I also see that your API key is there in clear. I hope no one can do any bad stuff in your name.

To OP: The way to fix this is to have the JS make a request to your own server, have your own server make the request to Soundcloud and proxy it back to you. That way you don't have to put your key in the JS, you can keep it on your server.

Re:Show HN: SoundCloud Instant by karangoeluw on Thursday April 17, 2014 @09:17AM (#7603341)
Is there any way where it does not use a server? I really do not want to use a server here.
Re:Show HN: SoundCloud Instant by wdewind on Thursday April 17, 2014 @10:49AM (#7603906)
Unfortunately not. Since all JS is going to be transferred to the client, if the key is in the JS the client has access to it.
Re:Show HN: SoundCloud Instant by karangoeluw on Thursday April 17, 2014 @09:16AM (#7603338)
Well the URLs are provided by SoundCloud and jQuery so there's nothing that I can do (other than hosting it myself).

Yeah I just hope no one misuses it.

Yes.

Re:Show HN: SoundCloud Instant by rakoo on Thursday April 17, 2014 @10:43AM (#7603862)
> Well the URLs are provided by SoundCloud and jQuery so there's nothing that I can do (other than hosting it myself).

Drop the scheme [0], the browser will be smart enough to know whether to use http or https.

[0] https://stackoverflow.com/questions/550038/is-it-valid-to-re...

Re:Show HN: SoundCloud Instant by karangoeluw on Thursday April 17, 2014 @11:19AM (#7604119)
Apparently SC doesn't like it and for some reason the app is very slow after dropping the scheme.
Re:Show HN: SoundCloud Instant by karangoeluw on Thursday April 17, 2014 @01:08AM (#7602084)
I made this small app last Saturday solely because I wanted to. Any feedback is welcome.

Oh, and the source code is open: https://github.com/karan/scInstant

EDIT: Right now, it's meant to be used only on desktop. I'm starting to get into frontend stuff, so don't really know how to touch optimize the app. Again, suggestions welcome.

Re:Show HN: SoundCloud Instant by PWaterfield on Thursday April 17, 2014 @01:33AM (#7602119)
It's loading very fast! Cool project. An "add to playlist" button would be cool I think (unless I'm not seeing it).

I'm not sure if this is your type of thing but if you are looking for more ideas I was very impressed by the juketube angular/polymer demos[0]. It'd be very cool to see those projects ported to soundcloud instead of YouTube.

[0]http://jt.ms/juketube/

Re:Show HN: SoundCloud Instant by karangoeluw on Thursday April 17, 2014 @01:45AM (#7602155)
That would need soundcloud auth. I wanted to make a dead simple, click/type and be done app. Thanks though! :)
Re:Show HN: SoundCloud Instant by t0 on Thursday April 17, 2014 @01:43AM (#7602148)
This is great. It would be nice to see the next couple of songs that are going to play and maybe a delete button next to them. A Youtube version would also be useful.
Re:Show HN: SoundCloud Instant by keane on Thursday April 17, 2014 @02:32AM (#7602254)
I like the idea but search on YouTube seems to be so inaccurate I'm not sure if it would work nearly as well.

I'm having trouble thinking of how to improve scInstant as it is--it's so pared down and fast and just works! Great job!

Re:Show HN: SoundCloud Instant by karangoeluw on Thursday April 17, 2014 @02:36AM (#7602259)
I'm glad you like it. Feel free to send any PRs. As long as the UI isn't bloated, I'm happy to merge. :)
Re:Show HN: SoundCloud Instant by karangoeluw on Thursday April 17, 2014 @01:44AM (#7602153)
I thought about showing next songs, but I want to keep the UI minimal, and not showing the app keeps a bit of surprise factor in there.
Re:Show HN: SoundCloud Instant by whizzkid on Thursday April 17, 2014 @03:29AM (#7602370)
Great! I guess it is searching little bit too fast so that using browser's back button showing some other results for each key stroke.
Re:Show HN: SoundCloud Instant by yeukhon on Thursday April 17, 2014 @06:13AM (#7602789)
This reminds me of Feross Aboukhadijeh his Youtube instant. (http://www.quora.com/What-were-the-main-reasons-why-Feross-A...)

Does the API has rate limit? Are you sending a new query every 200ms? https://github.com/karan/scInstant/blob/gh-pages/app.js#L98

Re:Show HN: SoundCloud Instant by karangoeluw on Thursday April 17, 2014 @09:35AM (#7603427)
SC doesn't mention a hard limit (it's vague). And yes, 200ms.
Re:Show HN: SoundCloud Instant by heynk on Thursday April 17, 2014 @09:28AM (#7603384)
Very nice! I had some deja vu when I read the title. I posted an HN thread with the same exact title over two years ago!

https://news.ycombinator.com/item?id=3363451

I will sell you soundcloudinstant.com for 1 million dollhairs. But really, yours is much better :)

Re:Show HN: SoundCloud Instant by karangoeluw on Thursday April 17, 2014 @09:34AM (#7603420)
Ah nice. Sorry but I don't have so much moneyz.
Re:Show HN: SoundCloud Instant by huckyaus on Thursday April 17, 2014 @03:40AM (#7602395)
Nice work. I'm personally not a huge fan of autoplay, since there's a ton of stuff on SC and the search results aren't always accurate enough.

Volume control would also be ace. Not sure how easy that would be to implement - now that I think about it, I've never seen it on any of their widgets.

Re:Show HN: SoundCloud Instant by zeel on Thursday April 17, 2014 @04:50AM (#7602580)
Personally I prefer Bandcamp's approach to volume control:

http://bandcamp.com/help/audio_basics#volume

Re:Show HN: SoundCloud Instant by karangoeluw on Thursday April 17, 2014 @09:35AM (#7603423)
Done with volume control.

    shift up/down - volume
Re:Show HN: SoundCloud Instant by PhrosTT on Thursday April 17, 2014 @01:06PM (#7604831)
Chiming in with shameless me too self promotion...

I have a similar feature on http://tuned.io/ - it's a soundcloud search with autocomplete; you can play any of the search results instantly, etc.

The music makes for good coding background.

Re:Show HN: SoundCloud Instant by karangoeluw on Thursday April 17, 2014 @09:41AM (#7603456)
Also, if anyone wants, I setup a list where you can get notified when I make something cool! http://eepurl.com/SRIPT
Re:Show HN: SoundCloud Instant by dmcswain on Thursday April 17, 2014 @12:44PM (#7604673)
For all you SoundCloud and 8tracks users, here's a way to load tracks by voice: http://bit.ly/1l8r5yf
Re:Show HN: SoundCloud Instant by clay_to_n on Thursday April 17, 2014 @05:02AM (#7602608)
Small bug: it reloads the track when I press the volume up / down keys on my keyboard. Using a samsung 7-series notebook.
Re:Show HN: SoundCloud Instant by karangoeluw on Thursday April 17, 2014 @09:33AM (#7603414)
Well volume control keys don't have a keyCode (or vary from keyboard to keyboard) so I don't think it can be fixed ATM.

FWIW, I just added keyboard shortcuts for volume control though: `shift up/down - volume`

Re:Show HN: SoundCloud Instant by bakli on Thursday April 17, 2014 @01:34AM (#7602124)
It only allows me to search once, if I try to search for something else, I have to refresh.
Re:Show HN: SoundCloud Instant by karangoeluw on Thursday April 17, 2014 @01:43AM (#7602150)
That should be fixed now.
Re:Show HN: SoundCloud Instant by digisocialnet on Thursday April 17, 2014 @08:04AM (#7603056)
i love it but it would be cooler with a full screen UI, there was a soundcloud api hack that would play people's loved/favorited tracks that kind of did that..
Re:Show HN: SoundCloud Instant by karangoeluw on Thursday April 17, 2014 @09:18AM (#7603347)
I don't think it would be very hard to do that. I implemented the streaming in <audio> tag, which means I'm free to implement the UI myself.

It's on the "audio" branch of my code.

Re:Show HN: SoundCloud Instant by digisocialnet on Thursday April 17, 2014 @07:14PM (#7607118)
awesome, i'll check it out.
Re:Show HN: SoundCloud Instant by stratos13 on Thursday April 17, 2014 @02:15AM (#7602216)
NICE. This shit is dope.