Better HN
topnewbestaskshowjobs
Log inSign up

polymathist

528 karma · joined Mar 26, 2012 (14y ago) · 128 submissions

Github: https://github.com/albrow
Submissions

comment 11y ago · link · parent

I agree with you about gopherjs being an awesome project. And I would love to see a playground-like debugger that you could run directly in your browser for quick debugging!

32.

Show HN: A Background Jobs Library for Go (like Sidekiq/Resque/DelayedJob)(github.com ↗)

5 points · by polymathist · 11y ago · discuss

comment 11y ago · link · parent

From the SpaceX twitter account: "After Dragon and Falcon 9’s second stage are on their way to orbit, the first stage will execute a controlled reentry through Earth’s atmosphere, targeting touchdown on an autonomous spaceport drone ship approximately nine minutes after launch." So it sounds like if you stay tuned for nine minutes after the launch you can see the booster stage attempt to land!

comment 11y ago · link · parent

> My hope is that the next client-side MVC/MVVC/etc. framework will be written in Go from the start.

A friend and I are working on exactly that! It's called humble: https://github.com/soroushjp/humble. We took a lot of inspiration from backbone and react. Still in an experimental phase and hasn't been touched much since we built it for the Gopher Gala, but we have plans to work on it a lot more in the future. There is also https://github.com/gowade/wade.

comment 11y ago · link · parent

I happen to know a few hackathon organizers and have an idea of how these things work under the hood. I wouldn't be so quick to judge. The reason Penn's hackathon is application only is that they literally can only support a certain number of participants. There's a limit to how many people they can feed, fit in one building, control in a big crowd, etc. Some hackathons manage this limit by accepting participants first come, first serve. Penn decided to take what they consider to be the best applicants, and I don't blame them for that. Their goal as organizers is to impress sponsors enough so that they can do it again next year. There's no evidence that this sort of conversation happened.

People are right in criticizing some aspects of the hackathon culture, but be careful about generalizations. For example, HackDuke has taken steps to include beginners with a series of seminars in the off-season (and by offering a beginner prize), encourage projects that do social good (as opposed to just "hacks"), and they encourage people to continue working on their projects after the hackathon is over. Disclaimer: I went to Duke and participated in their hackathons (and greatly enjoyed them!).

comment 11y ago · link · parent

If you, like me, struggled through geometry class more than other math classes, or if you never managed to memorize the relationship between pi and sin/cos/tan, you should watch this. Personally, I think that tau is far more intuitive. If I could go back, I would probably use tau for all my math/physics classes and simply do the conversion tau = 2pi as needed.

Edit: If this interests you check out http://tauday.com for more.

37.

Pi is Wrong(youtube.com ↗)

3 points · by polymathist · 11y ago · 1 comment

comment 11y ago · link · parent

So I found one of these in my city. The Dead Drops homepage has a list of all known locations: https://deaddrops.com/. Took a while to find the exact spot, and when I plugged in... nothing. The drive was completely exposed to the elements without much protection, so it was rusty and as far as I could tell useless. I have a hunch that most of them suffered similar fates.

comment 11y ago · link · parent

I've been testing this out for a week or so. It's amazing what you can do, and the latency is not even close to as bad as I was expecting. They do some clever compression, so it's actually quite tolerable and a good option for people with limited or no data plans.

40.

SMSmart Simulates Useful Apps Using SMS When You Have No Data(lifehacker.com ↗)

12 points · by polymathist · 11y ago · 2 comments

41.

Show HN: An easy-to-use go library for parsing and validating form data(github.com ↗)

5 points · by polymathist · 11y ago · discuss

comment 12y ago · link · parent

I'm just guessing here, and I hope that Joyce or someone from Stellar could correct me if I'm wrong. It could be as simple as announcing that you're going to make this change to de-decentralize, describing what that process entails, and asking all the invested parties (in this case validating nodes) to follow suit. I imagine that the process is similar to when bitcoin has done a hard fork in the past. The bitcoin core developers see the need for a hard fork, announce the hard fork, and ask everyone to update. If the majority of nodes agree than the hard fork was successful. So in Stellar's case, they could be asking people who run validating nodes to update their software, or to simply modify their UNL to point to only a single node (similar to seeding your bitcoin client with only a single peer). I think (and hope) that the Stellar Foundation doesn't have the ability to actually force people to de-decentralize.

43.

Apple Rebuts Complaints of Bending iPhones(m.wsj.com ↗)

1 points · by polymathist · 12y ago · discuss

44.

Petition to Defend Net Neutrality: Nearly 5M Signatures(battleforthenet.com ↗)

2 points · by polymathist · 12y ago · discuss

45.

How many Bitcoins does it cost to maintain the Bitcoin network?(letstalkbitcoin.com ↗)

33 points · by polymathist · 12y ago · 24 comments

comment 12y ago · link · parent

I would recommend downloading the code and building from source on your own hardware or an EC2 instance (a medium sized instance should be good enough).

Stellard repository: https://github.com/stellar/stellard You can follow this wiki for build instructions: https://wiki.stellar.org/Building_Stellard

Some people may have had luck with Vagrant or Docker, but since I have not I can't vouch for those methods.

comment 12y ago · link · parent

To be fair, I could've used better wording there. I simply meant that Stellar just launched a few weeks ago. I'm not trying to deceive anyone. As others have said, I do mention later on in the post that Stellar is a fork of Ripple, and I even point to some Ripple resources for understanding how the consensus protocol works.

Jed McCaleb, the person you are referring to, was open and honest with the Ripple community, and actually donated a good amount of his XRP to charities: https://xrptalk.org/topic/2629-selling-my-xrp/. He left due to disagreements with the management team at Ripple, not as part of some "pump and dump" scheme. Most estimates indicate that so far he has not dumped much at all: http://crypt.la/2014/01/18/ripple-price-prediction-xrp/.

Compared to Ripple, I like that Stellar is being more honest and fair with their issuance policy https://www.stellar.org/about/mandate/, reserving only 5% for running costs of the Stellar Foundation. I also like that they have created built-in inflation for STR and appreciate how well they are engaging with developers and other participants in the early-stage community.

48.

The Role of Trust in the Stellar Network(hubbledev.com ↗)

31 points · by polymathist · 12y ago · 15 comments

comment 12y ago · link · parent

See the announcement from Stripe: https://stripe.com/blog/stellar and the HN thread for the Stripe announcement: https://news.ycombinator.com/item?id=8114901. Stripe invested in Stellar and the CEO of Stripe is on their board.

comment 12y ago · link · parent

It seems that this is the "secret bitcoin project" that Jed McCaleb (formerly of Ripple) has been working on. Very interesting.

51.

Introducing Stellar: a decentralized protocol for sending and receiving money(stellar.org ↗)

100 points · by polymathist · 12y ago · 35 comments

52.

Larry Page: The Untold Story(businessinsider.com ↗)

3 points · by polymathist · 12y ago · discuss

53.

China's Plan For The Tallest Building Ever Could Save The World(businessinsider.com ↗)

1 points · by polymathist · 12y ago · discuss

comment 12y ago · link · parent

I'm designing a Go backend to interact with a backbone client. Our API receives form data and spits out JSON, so the situation is not exactly the same. But we still ran into a similar problem with the way revel does parameter binding (if fields were not included in the form data, they ended up being interpreted as the zero value).

Check out this solution we came up with in a testing/learning project: https://github.com/cranberryofdoom/peeps/blob/master/app/con.... Basically we just had to do an extra check to see if the fields actually existed in the form data. Will probably generalize it later on to make it less verbose.

55.

How Google Responds to US Government Requests for User Data(google.com ↗)

2 points · by polymathist · 12y ago · discuss

comment 12y ago · link · parent

Can we get a source for that SNAFU claim? If true I would be very interested to read more about it.

comment 12y ago · link · parent

I would have taken a different approach for handling unsupported resource methods. I'd love to hear some feedback on whether or not this is considered idiomatic. Instead of this:

  type HelloResource struct {
     sleepy.PostNotSupported
     sleepy.PutNotSupported
     sleepy.DeleteNotSupported
  }
Something like this:

  type HelloResource struct {
     sleepy.DefaultResponder
  }
DefaultResponder is simply a struct which has all the methods of sleepy.PostNotSupported, sleepy.PutNotSupported, etc, and is defined:

  type DefaultResponder struct{}
  func (DefaultResponder) Get(values url.Values) (int, interface{}) {
     return 405, map[string]string{"error": "Not implemented"}
  }
  func (DefaultResponder) Post(values url.Values) (int, interface{}) {
      return 405, map[string]string{"error": "Not implemented"}
  }
  func (DefaultResponder) Put(values url.Values) (int, interface{}) {
      return 405, map[string]string{"error": "Not implemented"}
  }
  func (DefaultResponder) Delete(values url.Values) (int, interface{}) {
      return 405, map[string]string{"error": "Not implemented"}
  }
Now, if you want to implement resource methods, you define them on the top-level struct, like so:

  type HelloResource struct {
     sleepy.DefaultResponder
  }
  def (HelloResource) Get(values url.Values) (int, interface{}) {
     data := map[string]string{"hello": "world"}
     return 200, data
  } 
So now, if you call Get on a HelloResource type, it uses the method defined on HelloResource, not the one defined on it's embedded DefaultResponder type. But if you call HelloResource.Post, it uses the method defined on DefaultResponder, i.e., it returns a 405 error. This is effectively like "overriding" in Java or other object oriented languages and saves a few lines when people are using your library.

What do you think? Again, I'm really just looking for feedback here as I too am new to go. Is this something that would be considered idiomatic, or is the original solution better?

(Apologies in advance for any typos or syntax errors. Didn't check this with a compiler, but hopefully you get the idea.)

12345