What should a developer know before building an API for a community based website?

If you really want to define a REST api, then do the following: forget all technology issues other than HTTP and media types. Identify the major use cases where a client will interact with the API Write client code that perform those “use cases” against a hypothetical HTTP server. The only information that client should … Read more

What is the most portable/cross-platform way to represent a newline in go/golang?

I got curious about this so decided to see what exactly is done by fmt.Println. http://golang.org/src/pkg/fmt/print.go If you scroll to the very bottom, you’ll see an if addnewline where \n is always used. I can’t hardly speak for if this is the most “cross-platform” way of doing it, and go was originally tied to linux … Read more

Cross platform IPC [closed]

In terms of speed, the best cross-platform IPC mechanism will be pipes. That assumes, however, that you want cross-platform IPC on the same machine. If you want to be able to talk to processes on remote machines, you’ll want to look at using sockets instead. Luckily, if you’re talking about TCP at least, sockets and … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)