Better HN
topnewbestaskshowjobs
Log inSign up

sauerbraten

109 karma · joined Apr 15, 2012 (14y ago) · 44 submissions

https://github.com/sauerbraten
Submissions

comment 4y ago · link · parent

Not sure if the site was updated, but there are multiple comments here about sales tax missing for the US price. The site clearly states it added that tax for Canada and the US, and shows two prices for each country reflecting the lowest and highest tax applicable based on where you buy the phone.

comment 6y ago · link · parent

Funny, I use https://addons.mozilla.org/en-US/firefox/addon/mobile-wikipe... because I generally prefer the mobile site, even on desktop. (Same with Twitter by the way.)

comment 6y ago · link · parent

Okay I get what you mean now, I looked at it from a legality POV. I agree with you that plagiarism might not be illegal but still unethical.

Why do you not just pick a license that forbids uses not compatible with your ethical standpoint, and chose to just not enforce the terms should they be violated? This way, companies are likely to respect your intent and preference and you don't have to make use of a legal system you don't support.

comment 6y ago · link · parent

Is it really plagiarism if you explicitly allow them to use and even sell your code, though? Also, plagiarism implies they don't give you credit and instead put their own name on it.

comment 6y ago · link · parent

I checked out the example code for arrays (https://github.com/betty200744/ultimate-go/blob/3de8a053d9f7...) and noticed that OP seems to misunderstand a few things about Go arrays:

- the cheat sheet differentiates between 'declaring' and 'declaring and initializing', but in Go there are no uninitialized arrays (or slices) - a lot of times in this file, a slice is created instead of an array (lines 18, 21, 25, 31) - arrays in Go don't really have a capacity (it's always the same as the array's length) - the built-ins append and copy as well as the sort functions don't accept arrays (I assume this is why slices are created?)

comment 6y ago · link · parent

I don't know much about this, but I assume the advances in renewables and carbon neutral ships is driven mostly by regulation aimed to reduce pollution. Can we really give the cruise companies a lot of credit for that?

> The demand for cruises is not going to go away.

Good, then there will still be cruise ships after the industry felt the consequences, and perhaps they will have learned something.

comment 6y ago · link · parent

*BND, from Bundesnachrichtendienst

comment 6y ago · link · parent

isspace is defined as a macro at the top of the file, and it's definitely not locale sensitive ;)

comment 6y ago · link · parent

I have my doubts about the timestamps on these first posts. How did Kevin get from Pier 38, where Mike supposedly photographed him at exactly noon, to Todos Santos at ~2:30pm, when it's 28 hours away?

comment 7y ago · link · parent

The code in the screenshot is valid Go (switching on strings, no parentheses around the if condition, incrementing a map value using ++) and could even be the output of go fmt (with the { on the same line as the if).

The app itself appears to be written in Ruby (the github link is posted elsewhere in the comments), and looking at the image included in the article further down I assume the code is from a Go app that takes the Ruby app's logs and generates some statistics.

comment 8y ago · link · parent

Don Jon, for those wondering. (At least I think that's the one sjg007 is talking about.)

comment 9y ago · link · parent

> So where is the option for an XPS with Linux, any flavor (or even Freedos or no OS) pre-installed?

The XPS 13 is available as a developer edition with Ubuntu instead of Windows preinstalled: http://www.dell.com/en-us/work/shop/productdetails/xps-13-93...

comment 9y ago · link · parent

Your BahnCard 100 is only for DB trains, and their partners like regional transport associations. Not sure why you suspect it to be valid for a competitor's service. And I doubt Locomore will ever partner with DB...

comment 10y ago · link · parent

Here you go: http://www.dell.com/us/business/p/xps-13-9360-laptop/pd?3x_n...

You have to use the normal XPS 13 page and choose Ubuntu from the OS filter.

comment 10y ago · link · parent

The user(s) you might not want are the parents, not the disabled child. Proper care for the child represents their quite unique problem that they want you to solve so they can use your product. The child having special needs is what sets these patents/users apart from the parents/users you made the product for.

16.

Pocket FM(pocket-fm.com ↗)

30 points · by sauerbraten · 11y ago · 10 comments

17.

Pocket FM(pocket-fm.com ↗)

1 points · by sauerbraten · 11y ago · discuss

comment 12y ago · link · parent

Correction: an API account can see all users that registered through the API with that account's key.

Still, WTF!?

comment 12y ago · link · parent

Just to clear one thing up: the fake warning message doesn't say the security is "compromised", but rather "limited" or "constrained": http://pda.leo.org/ende/index_de.html#/search=eingeschr%C3%A...

What they pull is still shady, but the text seemed a bit sensationalist at that point.

comment 12y ago · link · parent

What a coincidence, I see you use JSON config files: I wrote a tiny package to parse commented JSON files not long ago, maybe it would be a good fit for Goatee?

https://github.com/sauerbraten/jsonconf

comment 12y ago · link · parent

When !E(y,z), then also !E(z,y) (because symmetry). Also, E(y,x).

Thus !E(x,z), because E(y,x) and E(x,z) would imply E(y,z), which is false.

22.

OPPO will offer a version of the N1 with CynaogenMod preinstalled(en.oppo.com ↗)

1 points · by sauerbraten · 13y ago · discuss

comment 13y ago · link · parent

I thought this would look for words in your text that make for a good hashtag, e.g. converting "you only live once" to "#yolo", and make hashtags from nouns but not verbs and commonly used words. Unfortunately it seems to just put a "#" in front of every word, which (for me) isn't even worth it to go to that website, type my text, copy it over to twitter/instagram, paste it, then send it.

comment 13y ago · link · parent

Not really. Memory would only be leaked if there really was an error and rawResp was still nil. Since this usually doesn't happen (at least it never happened to me), you probably wouldn't even have noticed this bug.

comment 13y ago · link · parent

You're right. Fixed it, thanks!

comment 13y ago · link · parent

Yeah, I worded it differently when I submitted it to /r/golang: Example of using Mozilla's persona with Go

27.

Show HN: Example implementation of Mozilla's persona and Go server(github.com ↗)

38 points · by sauerbraten · 13y ago · 6 comments

comment 13y ago · link · parent

Do you know about the tinysong API?

http://tinysong.com/api

It provides only basic search functions of course, but it is publicly documented and I'm sure Grooveshark can't complain if you use it. I wrote a Go package for it years ago (literally, 2010 I think) and it still works fine. You get tinysong.com shortlinks, which lead to the song on Grooveshark.

comment 13y ago · link · parent

Shameless plug: I wrote a package that exposes a CRUD JSON API on top of a backend interface ("Storage") which you implement yourself; so if your API fits the CRUD principle it could be worth to look at:

https://github.com/sauerbraten/crudapi

You could also use it to implement CRUD parts of your API and define your own handlers for more complex API parts.

12