News for hackers. Stuff that matters.

betamike

Re:Ask HN: How do you communicate in a remote startup? on Friday November 15, 2024 @03:27PM (#42150577)
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.

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.

Re:Yabai – A tiling window manager for macOS on Thursday November 30, 2023 @11:14AM (#38475279)
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...

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".

Re:Tutanota – Revolutionary Changes Ahead on Tuesday May 16, 2023 @10:47AM (#35962628)
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

Re:IBM's Asshole Test on Wednesday May 04, 2022 @06:22PM (#31266630)
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

Just a note for anyone checking it out, Simple Keyboard doesn't support spellcheck (which is why I use OpenBoard instead).
Re:Impossible Foods raises $200M in fresh funding on Wednesday September 09, 2020 @07:09PM (#24427005)
Just for some additional search terms, seitan is a form of prepared Vital Wheat Gluten.
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

Re:Show HN: link shortening API in Go on Thursday February 13, 2014 @09:50AM (#7231630)
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>

When that option is enabled, audio will not continue to play in the background.
Re:Instantly search Google+ from Google Chrome's URL bar on Friday October 14, 2011 @02:50PM (#3112414)
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.
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.