HNHacker News
TopNewBestAskShowJobs

metaphyze

74 karma · joined December 12, 2013

submissionscomments
metaphyze··on What's the most profitable programming hobby?
No, if it's a hobby, it's supposed to be enjoyable. I do enjoy programming. I could enjoy iOS development as much as Android development or server development so why not combine that with making money?
metaphyze··on What's the most profitable programming hobby?
Was that an autocorrect error: "ramen profitable"? I like it, but I'm looking for more than ramen money. I'm guessing you meant "really profitable".
metaphyze··on Disney blocks John Oliver’s new episode critical of India’s PM Modi
This sounds like a great way to get everybody in India to watch it.
metaphyze··on Ask HN: Fastest/easiest framework to build a web application in 2020?
If you love Java but hate JavaEE, check out Spark Java: http://sparkjava.com/
metaphyze··on US colleges struggling with low enrollment are closing at increasing rate (2019)
Why didn't they just ADVERTISE the tuition as $12,000 (or maybe $15,000) rather than $36,000 if they were discounting the tuition for 67% of the students anyway. A lot of people probably didn't even bother to apply because of sticker shock.
metaphyze··on Besides “Show Hacker News”, where do you promote your side projects?
Thanks, everyone, for the suggestions. I think the "niche" suggestions were the most helpful. I haven't had much feedback from Show HN. Just FYI, the project is a mathematical oriented drawing app for Android. It's here: https://play.google.com/store/apps/details?id=com.doodleback...
metaphyze··on Bye Bye Microsoft Office, Hello LibreOffice
Yes. OnlyOffice. There's a community edition. https://www.onlyoffice.com/download.aspx
metaphyze··on Ford CEO says the company 'overestimated' self-driving cars
Both GM and Ford have been hiring a lot of software engineers in Detroit in the past few years. The problem is that they need NASA-style software engineers (crazy-anal nit-picky consider-every-possibility style engineers)--not engineers from the regular software industry. If your car crashes, you can't just reboot it.
metaphyze··on Ultra-Time-Efficient Exercise Lowers Blood Pressure, Boosts Brain Function
I wonder if you could get the same benefits by just blowing up a balloon.
metaphyze··on At high pressures, potassium adopts a mix of crystalline and liquid structure
Sounds like someone has discovered cats.
metaphyze··on CIA Implicated in Attack on North Korean Embassy in Madrid
Actually, this happened BEFORE the summit. Feb 22nd. The summit was Feb 27-28. https://en.wikipedia.org/wiki/2019_North_Korea%E2%80%93Unite...
metaphyze··on Give Me Back My Monolith
I'd like to point out that microservices are not always as cheap as you may think. In the AWS/Lambda case, what will probably bite you is the API Gateway costs. Sure they give you 1,000,000 calls for free, but it's $3.50 per million after that. That can get very expensive, very quickly. See this hacker news post from a couple years ago. The author's complaint is still valid: "The API gateway seems quite expensive to me. I guess it has its use cases and mine doesn't fit into it. I run a free API www.macvendors.com that handles around 225 million requests per month. It's super simple and has no authentiction or anything, but I'm also able to run it on a $20/m VPS. Looks like API gateway would be $750+data. Bummer because the ecosystem around it looks great. You certainly pay for it though!"

https://news.ycombinator.com/item?id=13418332

metaphyze··on Apple Rumors Point to 31.6-inch 6K Display, All-New 16-inch MacBook Pro for 2019
I think you must mean USB-C ports. There are no standard USB-A ports on the MacBook Pro any longer. https://www.apple.com/macbook-pro/specs/
metaphyze··on Apple Rumors Point to 31.6-inch 6K Display, All-New 16-inch MacBook Pro for 2019
How's the trackpad compared to the Mac's? I don't need force touch. Just smooth precise scrolling. The trackpad is actually one of my top considerations when buying a laptop because I rarely use a mouse any more.
metaphyze··on Ask HN: What's the best algorithms and data structures online course?
Just FYI, Kahn Academy's Linear Algebra course is great. Very thorough and well-thought-out.
metaphyze··on Google Won’t Take Down ‘Pirate’ VLC with Five Million Downloads
I think the only part of Android that's under GPL is the Linux kernel. The rest is under the Apache license.
metaphyze··on Amazon to Build Second HQ in North America
I've been to Pittsburgh too, and I do think that a possibility. One advantage that Raleigh-Durham-Chapel Hill has over Pittsburgh is weather. Amazon is very fault-tolerant minded. There's not much chance they'd need to close the facility in Raleigh because of a blizzard (although it has happened a few rare times).
metaphyze··on Amazon to Build Second HQ in North America
I agree. There's a huge tech workforce in RTP, very good universities, affordable costs of living (which I suppose translates to affordable business property). Another indication: Take a look at the size of the Triangle AWS Meetup group on Meetup.com. It has 879 members.
metaphyze··on Ask HN: How much time per week do you spend on side projects?
To everybody posting about not working on a side project because of children, I would ask you to reconsider that if you're truly passionate about something and want to develop it. I've been working on a side project for a few years now. I also have kids and spend a lot of time with them. I've discovered that it's actually very beneficial to spend an extended time working on a project, and by extended time, I don't mean hours every day. I mean stretching the project out over years. For one thing, it gives you the freedom to reconsider solutions and approaches. Work is usually focused on delivering as quickly as possible. It's very refreshing to have the time to consider a problem thoroughly and let it play in your subconscious freely. Also, your kids need time to themselves too so there's no need to feel guilty. But to answer the question, I spend probably 0-15 hours per week, usually working at night after the kids have gone to bed.
metaphyze··on Introducing Cloud Functions for Firebase
Another disappointing limitation is being restricted to Node.js. AWS Lambda lets you write your code in Node.js, Python, Java, or C#. This is particularly useful for tuning your Lambdas based on their expected usage. If you have a Lambda that is being constantly invoked, it might be better to write it in Java. It has a longer start up time but has better performance after the initial startup. However, if your Lambda is invoked infrequently (and thus is frequently shutdown from inactivity), it would better to write it in Node.js or Python to take advantage of the snappier start up time.
metaphyze··on Ask HN: A random maths problem we started discussing at work
I don't think this is exactly the same as the proposed problem. What it's giving you is the expected value. This includes in its calculation the lower probability cases and the higher probability cases. For instance, there's a slim change of this happening when the number of employees is 365. It's been a while since I took probability, but I think the expected value is going to be larger than the minimum value needed to achieve a .5 probability if the probability graph is skewed, which in this case it is.
metaphyze··on Ask HN: A random maths problem we started discussing at work
Brute force gives me about 2287/2288. Trying each number 1,000,000 times (distribute X balls in 365 bins, count number times all bins are filled) so it seems reliable, but maybe I have bug somewhere:

import java.util.Random;

public class Birthday {

private static Random rand = new Random(System.currentTimeMillis());

public static void main(String... args) {

		final int n = 365;
		boolean[] bins = new boolean[n];

		final float maxNumberOfAttempts = 1000000;
		for (int numberOfBalls = 2285; numberOfBalls <= 2400; ++numberOfBalls) {

			int attempts = 0;
			int numberOfTimesAllBinsFilled = 0;

			while (attempts < maxNumberOfAttempts) {
				if (distribute_X_Balls_in_N_bins_randomly_and_return_the_number_of_filled_bins(
						numberOfBalls, bins) == n) {
					numberOfTimesAllBinsFilled++;
				}
				++attempts;
			}

			float prob = numberOfTimesAllBinsFilled / maxNumberOfAttempts;
			System.out.println((prob > .5 ? "PASSED:" : "FAILED:") + numberOfBalls + ":" + prob);

		}
	}

	public static int distribute_X_Balls_in_N_bins_randomly_and_return_the_number_of_filled_bins(
			int x, boolean[] bins) {
		for (int inx = 0; inx < bins.length; ++inx) {
			bins[inx] = false;
		}

		int whichBin = 0;
		int total = 0;

		while (--x >= 0) {
			whichBin = rand.nextInt(bins.length);

			if (!bins[whichBin]) {
				bins[whichBin] = true;
				++total;

                                if (total == bins.length) {
					return total;
				}
			}
		}

		return total;

	}

}