News for hackers. Stuff that matters.

polyphonicist

Re:From Tower of Hanoi to Counting Bits (2011) on Saturday February 29, 2020 @10:08AM (#22450901)
From the article:

> We will be dealing with arbitrary precision integers (bignums) in the problem, so let us also make a few assumptions:

> Addition or subtraction of an m-bit integer and an n-bit integer (m <= n) takes O(n) time.

> Counting the number of 1-bits in an n-bit integer takes O(n) time.

Re:From Perl to Pi on Saturday February 29, 2020 @07:27AM (#22450245)
Here is the fun bit hidden away in the comments page of this post:

> Randal L. Schwartz said:

> 27 Apr 2008 02:30 AM GMT (#1 of 1 comment)

> Glad you enjoyed that bit. That was Tom's humor on that one. I could never have been that clever. :)

It is heartwarming to see the author of a popular Perl book providing credit for a joke to his co-author in the comments of an early 2000 blog post by an independent blogger.

Ask HN: What are good distance learning Bachelor's/Master's degrees one can do?

I do not belong to USA or UK. I am a software engineer with a Bachelor's degree in computer science. But I would like to do a distance learning program to earn an additional bachelor's or master's degree in math or physics or another related topic to satisfy my eagerness to learn more.I would like a distance learning degree from a UK or European University because they are cheaper than American...

( Read More... | 66 comments | 161 points | on HN )
Re:Mathematics for the Adventurous Self-Learner on Monday February 24, 2020 @10:01AM (#22404505)
Like other sibling comments, I would also like to know how you have used Anki to transform your career.

I like Anki but I have never been able to figure out how to capture complex and often long business related information in tiny cards.

Re:Mathematics for the Adventurous Self-Learner on Monday February 24, 2020 @04:06AM (#22402646)
Which university, if you don't mind me asking?

Can you share the names of the textbooks?

Re:Mathematics for the Adventurous Self-Learner on Sunday February 23, 2020 @10:38PM (#22401451)
Shared a similar thought here: https://news.ycombinator.com/item?id=22401420

Yes, it is really important to learn math with study-mates. Just like in code, we do reviews, in math too, we need someone else who can review our proofs. It is even easier to make an error in a proof and believe that something is proven when it isn't. A study-mate helps to prevent us from fooling ourselves.

Re:Mathematics for the Adventurous Self-Learner on Sunday February 23, 2020 @10:35PM (#22401432)
The book looks lovely. Did you write it using latex? What is your tooling to author a book like this?
Re:Mathematics for the Adventurous Self-Learner on Sunday February 23, 2020 @10:31PM (#22401420)
I am going to suggest something that might go against this idea of self-studying math.

Do not do it alone. I mean, it is okay to self-learn mathematics as much as possible but don't let that be the only way to learn. Find a self-study group where you can discuss what you are learning with others.

I think the social-effect can be profound in learning. I realized this when I used to learn calculus on my own. My progress was slow. But when I found a few other people who were also studying calculus, my knowledge and retention grew remarkably. I think the constant discussion and feedback-loop helps.

With round the clock internet connectivity, it is easier to find a self-study group now than ever.

Can you provide detailed steps to reproduce? What strings did you search? Two examples of repos that appeared in the results? What is the link to your repo that did not appear in the results?

Details like this would help the OP to track down the exact cause of why it has indexed the forks but not the original repo.

Re:Fiber – Express inspired web framework written in Go on Sunday February 23, 2020 @10:57AM (#22397449)
Why does Go need web framework? What's wrong with net/http?
Re:Inrupt, Tim Berners-Lee's Solid, and Me on Sunday February 23, 2020 @02:43AM (#22395648)
> Even if you do hand your pod over to some company, it'll be like letting them host your domain name or manage your cell phone number. If you don't like what they're doing, you can always move your pod -- just like you can take your cell phone number and move to a different carrier. This will give users a lot more power.

The domain name analogy scares me rather than reassures me. Sure, DNS was created in good faith to be as distributed as possible, but is it? There are recent stories that show that individuals do not have as much control on domain names as one would ideally like. See these stories -

- Sinkholed: https://susam.in/blog/sinkholed/ (domain name hijack by German authority by accident)

- The duck tape holding the internet together: https://medium.com/thisiscala/the-duct-tape-holding-the-inte... (loss of control on domain name due to registrar error)

While the idea behind Solid sounds solid but the moment they talk about outsourcing pod hosting to third-party pod hosting providers, I get worried. Would it lead to walled gardens of pods? (Example GMail for emails) Would they add non-standard convenience features to create vendor lock-ins (Example GitHub for Git)? Would they abuse their power due to vendor lock-in (Example Sourceforge for SVN)?

Re:Should you self-host Google Fonts? on Sunday February 23, 2020 @12:21AM (#22395291)
Google has a reputation of shutting their services down. What if they shut their fonts CDN down or change their URLs without redirects?
Re:Should you self-host Google Fonts? on Saturday February 22, 2020 @11:11PM (#22395092)
> For example, most people don't consider that the W and the M in your font must look distinctly different, and not just vertical mirrors of each other.

Why isn't relying on default fonts provided by the user's system good enough for that?

Re:More bosses give four-day workweek a try on Friday February 21, 2020 @11:56PM (#22389512)
I have a regular five-day workweek but to be honest, I work productively only 4 days a week. I find it hard to work productively all 5 days. On the day's I am not working productively, I just pretend to look busy to my manager. It would be nice to formalize this working pattern as a four-day workweek.

Where can I find such four-day workweek jobs?

Re:Of Modes and Men (2005) on Friday February 21, 2020 @02:18AM (#22381472)
Actual quote from the article for context:

> Modeless: Computer scientists when writing code typically worked in different modes; you might have an insert mode, a delete mode, or a replace mode. You would first select the mode, then select the point on the screen at which the action was to occur, then perform the action. Tesler, in user experiments, proved that modes were confusing for nonscientific users and championed the “modeless” interface.

For non-technical users, sure modeless editing may be better. But for computer scientists, modeful editing may be better. The article mentions modeless editing to be better for no scientific users only, not necessarily for everyone.

Re:Of Modes and Men (2005) on Friday February 21, 2020 @02:14AM (#22381459)
VSCode has a plug-in for Vim keybindings. Does not emulate Vim entirely but good enough to feel at home. Gives you best of both worlds: IDE-like features of VSCode and ergonomic manipulation of code of Vim.
Re:Let's Encrypt has turned on stricter validation requirements on Wednesday February 19, 2020 @09:45PM (#22372286)
Does this require the user to make any changes?

I run a simple static website served with Nginx. I would like to know if this change has any impact on me.

Re:How to write the perfect pull request (2015) on Wednesday February 19, 2020 @05:22AM (#22364361)
> If you share a development branch with someone, then you should prefer merging over rebasing

Your parent comment is suggesting rebase only for pulling latest changes in master into your pull request.

For merging someone's pull request to the team's master, sure use a merge commit.

But if you are working on a pull request and while you are working on it, the team's master gets updated and now you want to base your work on the recent master, by all means, use git rebase. That is what it is meant for, to rebase your work on another work. It's in the name itself.

Right tool for the right job.

Re:Rust Ghost, Signing Off on Tuesday February 18, 2020 @09:13PM (#22362508)
Yes. And now this whole code-of-conduct business would probably have these perfectly reasonable greybeards banned from their own projects. Gone are the good old days of open source.
Re:Learning from Turing’s silver hoard (2016) on Tuesday February 18, 2020 @08:58PM (#22362439)
Can you elaborate this more? I know about continental drifts and I know they occur at a scale much larger than a tiny box. Does it have any effect on the small scale a tiny box would be buried in if we are not burying the box near fault lines?
Re:Benford's Law on Sunday February 16, 2020 @04:31AM (#22340727)
Came here to say the same thing. Certainly haven't seen such depiction of infinity earlier. But this is a nice way. I am going to use it myself.
Re:Benford's Law on Sunday February 16, 2020 @12:20AM (#22339919)
That's interesting indeed. Any idea why Physics constants obey Benford's Law? Did the universe pick the physical constants from an exponential distribution?
Re:NetBSD 9.0 on Saturday February 15, 2020 @11:42AM (#22336256)
I am a Linux user. What would be a good reason for me to try out NetBSD? Honest question.
Re:Copyright statements do not need the year on Saturday February 15, 2020 @03:51AM (#22334107)
Copyright statements themselves are not required by Berne convention. Copyright exists by default whether or not you put a copyright statement.
Re:To become a good C programmer (2011) on Saturday February 15, 2020 @03:40AM (#22334080)
Why is VLA useless?

Why was it added to C99?

Older »