HNHacker News
TopNewBestAskShowJobs

betamike

117 karma · joined April 7, 2010

[ my public key: https://keybase.io/betamike; my proof: https://keybase.io/betamike/sigs/WH6jjvgJ6iRtAKwkayMdwMGpLxjvEQtb2os6yJavgWA ]
submissionscomments
betamike··on Ask HN: How do you communicate in a remote startup?
This is what my last, 6 person, startup used, and it was really helpful. It lowered the barrier to having a quick discussion, since you could see if someone was at their "desk" or busy in a meeting.

Also you can see if other teammates are having a discussion or co-working in a common area, which made for some ad-hoc co-working sessions.

betamike··on The Road to RBAC: Evaluating and Implementing Authorization Systems
Author here, and yep! We eventually want to offer those kinds of enterprise features (SCIM, syncing group membership from Okta/other IdPs), so I kept that in mind throughout the process.

While I haven't gone too deep on that yet, I was thinking we'd take inspiration from how GitHub maps IdP groups to native GitHub teams. So first step here would be adding user groups/teams natively in the product.

betamike··on Yabai – A tiling window manager for macOS
Just wanted to point out that disabling SIP is not required to use most of yabai's window management features. You do lose some features[0] but I've found the only ones I really care about is focusing spaces, and you can create keyboard shortcuts for that in System Settings.

[0]: https://github.com/koekeishiya/yabai/wiki/Disabling-System-I...

betamike··on Open source code with profanity in comments is statistically better
I skimmed the paper, and it looks like they are looking for swearing _anywhere_ in the repos' code, not just comments.

I would be curious to see the ratio of swearing in comments vs code identifiers. I'd also be curious to see if the repos with swearing in their comments just have more comments in total. Perhaps the correlation is, "code with more comments is more likely to be higher quality".

betamike··on Tutanota – Revolutionary Changes Ahead
I just saw this earlier this week: Proton just added Calendar search to the beta Android app[1], and it looks like they are working to bring it to other platforms.

[1] https://proton.me/support/calendar-search

betamike··on IBM's Asshole Test
Hah! This reminded me of a similar story:

"In 1951, David A. Huffman and his MIT information theory classmates were given the choice of a term paper or a final exam. The professor, Robert M. Fano, assigned a term paper on the problem of finding the most efficient binary code. Huffman, unable to prove any codes were the most efficient, was about to give up and start studying for the final when he hit upon the idea of using a frequency-sorted binary tree and quickly proved this method the most efficient.[5]

In doing so, Huffman outdid Fano, who had worked with Claude Shannon to develop a similar code. Building the tree from the bottom up guaranteed optimality, unlike the top-down approach of Shannon–Fano coding."

https://en.wikipedia.org/wiki/Huffman_coding#History

betamike··on OpenBoard – FOSS Keyboard for Android which respects your privacy
Just a note for anyone checking it out, Simple Keyboard doesn't support spellcheck (which is why I use OpenBoard instead).
betamike··on Impossible Foods raises $200M in fresh funding
Just for some additional search terms, seitan is a form of prepared Vital Wheat Gluten.
betamike··on Show HN: Create generative background images from a string in Go
Another minor nitpick, here [1] you are using reflection. You can pretty easily convert it to a type switch [2], which is more idiomatic.

[1] https://github.com/pravj/geo_pattern/blob/master/svg/svg.go#...

[2] https://golang.org/doc/effective_go.html#type_switch

betamike··on Show HN: link shortening API in Go
Very cool. If you have a recent enough version of Redis, you may want to move away from doing the lookup using KEYS and move to SCAN (http://redis.io/commands/scan). KEYS will work for a while, but with a large enough DB it can become a very slow operation so it's not typically recommended for a production system.

Also, just curious, I see that the original url is encoded in the key, so the key is "<short>||<original>". Since the key is already a hash, it seems that you could eliminate having to scan over every key in Redis by making each key be only "<short>" and having an additional field in the hash for "original". Then a lookup becomes simply an HGETALL (if you need to get the "count" field, otherwise just an HGET for the "original" field). I might be missing something though! </armchair programming>

betamike··on No app store? No problem: Grooveshark rolls out full HTML5 site for all devices
When that option is enabled, audio will not continue to play in the background.
betamike··on Instantly search Google+ from Google Chrome's URL bar
Alternatively you can go to Google+, right-click the search bar and select "Add As Search Engine..." You can then change the keyword to "+" or "plus", and do the same thing.
betamike··on First Glance at Objective-C and the iPhone SDK (by a Java and C Developer)
You can define a category within your implementation file (.m) and redeclare the property like this:

@interface MyClass (PrivateMethods)

@property(readwrite, retain) NSObject *myProperty;

@end

@implementation MyClass ...

Now only your implementation knows about the generated setter methods, and you don't have to implement them yourself.