HNHacker News
TopNewBestAskShowJobs

pcorey

504 karma · joined August 2, 2013

submissionscomments
pcorey··on Guitar Chord Voicings with Prolog
This is great, thanks for posting! I'll definitely take your advice to heart. I've been noticing that finding different data representations of the problem at hand is a big part of finding the "core relations" that describe the problem. My first attempt at the voicing/4 predicate was attempted with a data structure used in a procedural version of the algorithm, and I just couldn't get it to work in Prolog. The second iteration is what you've seen, and I'm working on a third iteration with a simpler data representation that is simplifying the problem even further.
pcorey··on Literate Commits (2016)
Yeah, I agree that the subject of those commits are far from helpful or descriptive. To be honest, they were written as cheeky subheaders for the generated example article, and don't even do a job there.
pcorey··on Show HN: Affiliate Crawler
Yep. An affiliate link to any Amazon product will set an affiliate cookie that's valid for up to 24 hours.
pcorey··on Exploring the Bitcoin Blockchain with Elixir and Phoenix
Thanks, fixed!
pcorey··on Exploring the Bitcoin Blockchain with Elixir and Phoenix
https://developers.coinbase.com/blog/2016/10/31/sunsetting-t...
pcorey··on Exploring the Bitcoin Blockchain with Elixir and Phoenix
Author here. I totally agree.

I would have loved to throw up the project on a Heroku free tier or something, but it relies on access to a Bitcoin full node. Unfortunately I'm not aware of any publicly accessible JSON-RPC Bitcoin APIs, and I can't route public traffic to my local node.

Here's the project on Github, if you're interested:

https://github.com/pcorey/hello_blockchain

pcorey··on Welcome to password creation hell
PSA: Passwordless authentication is a valid and easy-to-implement authentication technique: http://www.east5th.co/blog/2017/04/24/passwordless-authentic... https://auth0.com/passwordless
pcorey··on Apollo Client 1.0: A flexible, community-focused JavaScript GraphQL client
I just started diving into using Apollo client the an Elixir backend (using Absinthe). It's an amazing combo! I look forward to more releases from the Apollo team.
pcorey··on A Constructive Look at TempleOS (2015)
FWIW, I wrote a Julia Set explorer in HolyC for TempleOS a couple years back. It was definitely an interesting experience!

https://github.com/pcorey/julia-templeos

pcorey··on Building Code Posters with Elixir
Thanks!

I definitely understand about how seriously you take privacy. For a personal project, I wouldn't think twice about sending it your way.

Source Code Pro is my usual default for a good looking monospace font, but Fira looks like a good choice. How do you go about finding monospace font's width to height ratios? I had do dive into SVG versions of Source Code Pro and doing some hands-on testing to come up with a ratio of 0.6.

Yeah, I'm not doing anything with a margin. In hindsight, I probably should have.

I actually manually picked the code I wanted to include in the poster. I imagine doing this in an automated way would be a much more difficult problem... Do you just ignore certain files based on filename patterns? e.g. /node_modules/, etc...

Yeah, there are a few places where I can parallalize the process. There's definitely a lot of room there for future work.

3 to 4 seconds is _very impressive_. Congrats!

I'd definitely push others to go with your solution, if it's a possibility. The elixir_poster project is really just a hacked together project to build a one-off (two-off, I guess) poster for myself.

pcorey··on A Constructive Look at TempleOS
I wrote a Julia Set viewer in HolyC about 6 months ago. It was a very interesting experience to say the least.

Terry seemed to think it was pretty cool, so he made a 3rd Party Software page and linked to the GitHub repo.

https://github.com/pcorey/julia-templeos/blob/master/julia.C...

pcorey··on YouTab: Automatically get chords for music
This is very very cool. How exactly are you getting the audio from youtube? I'm assuming you somehow pull the audio from youtube in your backend (how?), analyze it, use that analysis to build your display and then sync that with the playing youtube video?