Better HN
topnewbestaskshowjobs
Log inSign up

cuspycode

292 karma · joined Aug 25, 2015 (11y ago) · 178 submissions

Submissions

comment 7y ago · link · parent

How about working with Taiwan? I think they too have a space program, although I have no idea how big it is.

comment 7y ago · link · parent

Why does anyone feel the need to take on a new name just because you change your religion? I never understood that. I have had epiphanies that dramatically changed my world-view, but I never thought "Now I must take a new name". I'm not criticizing those who do this, since people change their names all the time anyway, but I'm genuinely curious why this phenomenon is so common when people change their religion?

comment 8y ago · link · parent

People who spy on their own countrymen should be regarded as traitors, in my opinion. And they should be prosecuted as traitors, and punished as traitors. However, the theory of the "Deep State" and its influences makes it difficult to accomplish this. How can we fix this?

comment 8y ago · link · parent

> What you shouldn't do is try to self-study by reading a book.

I say do try self-study first and see if it works. You have absolutely nothing to lose by trying. It doesn't work for everyone, but you will quickly figure out if it works for you. Some people can absorb knowledge from books much more easily than from oral instruction, and for others it's the other way around.

comment 8y ago · link · parent

I distinctly remember when I became aware of NNTP, the new protocol that allowed Usenet to be distributed almost in real-time, using TCP/IP instead of UUCP. Electronic mail, file transfers, and remote terminals already existed using various other protocols, but seeing Usenet over the Internet made me realize that something new and exciting was about to happen (and a few years later that turned out to be Tim Berners-Lee).

comment 8y ago · link · parent

> The key idea of imaginary numbers is to consider multiplication -1 to be a rotation by half a turn rather than a reflection. That is a lot easier to do half of! As soon as you have multiplication by -1 as a rotation by half a turn, it is obvious to identify i as rotation by a quarter turn.

It gets even more interesting when you add additional degrees of freedom so that such rotations can happen via more than one path. For example, quaternions add two extra degrees of freedom, and this lets you have an infinite number of square roots of -1. Any imaginary unit quaternion (i.e. ip+jq+kr where p^2+q^2+r^2=1) is a square root of -1.

comment 8y ago · link · parent

> Also can't think of any portugese scientist, or portugese based lab renowned for anything in biology or computer science.

Fernando Pereira comes to mind: he made significant contributions to the early development of logic programming (e.g. C-Prolog) and natural language processing, as well as other AI research.

comment 8y ago · link · parent

A classic example is daemonizing a process. While still attached to the terminal you first parse command-line options, read config files, and do some sanity checks. Any errors caught at this point cause an error message and exit(1). Otherwise fork+setsid to detach from the session, then fork again to lose the new session leader.

Apart from that, the only thing I have used fork for (apart from fork+exec) is doing concurrent blocking I/O while prototyping, before rewriting the code to use non-blocking I/O with no forking.

comment 8y ago · link · parent

Also, Sweden was the first European country that was connected to the U.S. Internet, or more specifically to NSFNET [1][2]. This was because the adoption of TCP/IP protocols for wide area networks came earlier in Sweden than in other parts of Europe, for various serendipitous reasons. A funny anecdote is that Switzerland could have beat Sweden to be connected first, but they were delayed because they had to renumber all their networks at CERN that were already using TCP/IP.

Initially it was just non-commercial Internet for academic institutions, but lots of students were exposed to the technology and the infrastructure early on.

[1]. https://en.wikipedia.org/wiki/History_of_the_Internet_in_Swe...

[2]. https://en.wikipedia.org/wiki/Internet#History

comment 8y ago · link · parent

Negative in what way? In my experience they were excellent machines that had much better overall performance than the original "toaster" models. Their main problem was that they had non-square pixels, but people put up with that for many use-cases.

comment 8y ago · link · parent

I think it's "Cargo Cult Security". My hypothesis is that someone once realized that having a password stored in the clipboard could be bad, so let's just ban pasting passwords. The logic here is obviously completely backwards, but once a meme is out there it's hard to stop it.

comment 8y ago · link · parent

And that is why I never do automatic OS/platform upgrades on a development machine. When something stops working that was known to work before, I want to know exactly what things have changed, and not have to troubleshoot multiple concurrent changes.

comment 8y ago · link · parent

Do you have a gist or similar link for this code? Copy & paste doesn't work due to indentation issues.

comment 8y ago · link · parent

The article uses two example theorems to justify this: a * (b/c) = b * (a/c), which can be extended to cover the c=0 case, and a/a = 1, which can be extended to cover the a=0 case. I can see how this can be useful in some situations, but it's not natural in the same way as e.g. analytical continuations of complex functions are.

comment 8y ago · link · parent

Ah, the memories! I did some third-party development for Macintosh in 1985, and we used Apple Lisas as our development workstations. These Lisas usually booted into Apple Pascal, which looked very much like the UCSD Pascal development environment that was very popular in the early 1980s. But I don't know if Lisa Pascal shared any common code with UCSD. That development environment also included a pretty good 68000 assembler that we made heavy use of.

Even before the Lisa was officially rebranded "Macintosh XL", developers could boot the Mac OS and test their programs on their Lisa. This was great, because the Lisa had 1MB memory while the original Mac had only 128k (and later 512k). The only issue was that the Lisa pixels weren't square, so all Mac graphics looked noticeably squished on the Lisa. We also had an issue with the floppy drives on some of the Lisas: their ejection springs were too strong so dragging a floppy to the trash icon sometimes resulted in the floppy disk flying over the office floor.

comment 8y ago · link · parent

This is a good story that illustrates the problem very well. I don't want to be treated according to what my statistical cohort in a certain particular context suggests. But I have no problem with a personalized treatment from my bank personnel, from my cleaning staff, or from the undertaker. Or from the bartender who knows me.

Personalization != probabilistic statistical match.

comment 8y ago · link · parent

Inflation makes money lose one of the primary purposes of why money exists in the first place: money is a store of value.

comment 8y ago · link · parent

Yes, I have used it to mount document servers as remote drives via WebDAV, and then use standard Unix one-liners to do queries and updates. Much more convenient than working with custom APIs.

I also once integrated an open-source WebDAV server into my own code, in order to expose parts of an SQL database as a remotely mountable filesystem. This would have taken much more effort without the existing WebDAV infrastructure.

comment 8y ago · link · parent

But Article 27(2) explicitly excludes the requirement of designating a representative according to 27(1), if the processing of personal data is limited within perfectly sound limits.

comment 8y ago · link · parent

A designated DPO is only required for companies that have over 250 employees. Surely that can't be a huge burden? Just appoint the head of security to be the DPO. He can google the GDPR requirements and then be all set after 15 minutes.

If you are smaller than that and you outsource processing of the personal data of your customers, then all you have to do is make sure the customers consent to this, and you are good to go with GDPR. It's practically effortless, unless your business model relies on monetizing innocent victimes without their consent.

comment 8y ago · link · parent

This is a hasty conclusion. For example, the city of Kiruna in northern Sweden (latitude 67 degrees north) has about three weeks of total darkness each winter. So there is no sun exposure at all during that time. And even south of the arctic circle, the chance of getting 5-30 minutes of sun exposure twice a week is not guaranteed in northern countries. For example, you might be stuck in an office building while the sun is above the horizon.

comment 8y ago · link · parent

Assume a really fast rocket is traveling from galaxy A to galaxy B. Due to relativistic length contraction, the distance between the galaxies is less as seen by the rocket than it is for a stationary observer in either galaxy. So the travel time from the perspective of the rocket (the "proper time" of the rocket) is less than the travel time measured by a stationary observer. And when you work out the math, the rocket's proper time approaches zero in the limit as the speed of the rocket approaches light speed.

comment 8y ago · link · parent

What makes "mere hacking" different from true enlightenment?

Is it just the perspective of the one who has the experience? As Tim Leary said: The caterpillar cannot understand the butterfly.

comment 8y ago · link · parent

Agreed. The fact that JavaScript lacks reasonable numeric types means that I never use it except when there is no alternative.

comment 8y ago · link · parent

That's a strange comment considering that most people who get hurt in a blood-thirsty revolution are generally not the rich and powerful.

comment 8y ago · link · parent

I think scalable income is a more useful concept than passive income. What I mean by scalable income is when you can increase your income by investing more capital, but keeping time commitment and effort at the same level. In my view purely passive income is either some instance of rent-seeking, or simple risk-free return on economic growth. But even those require a minimal level of effort.

comment 8y ago · link · parent

Servlet containers have two levels of isolation: individual apps are mostly firewalled from each other as you say, but when running multiple servlet containers they are as isolated from each other as multiple docker processes are when it comes to shared libraries, security policies etc. JVM processes are easy to reason about at the OS level, while servlet applications are more complex. But we are comparing Docker with JVM, not Docker with e.g. Tomcat webapps.

comment 8y ago · link · parent

The JVM is a container by itself, and it has been able to isolate dependencies and memory requirements for many years before docker was conceived. The JVM doesn't do everything that docker does, for example it doesn't provide overlay file systems, but this is trivial to add via standard tools (e.g. aufs), and it also doesn't limit CPU usage per container but this is also trivial to add without having to deal with the extra complications of using docker. I think docker is great for non-JVM applications that run into conflicts with other applications, dependency-wise or resource-wise, but I don't see the point of using docker for pure Java applications. It just adds an unnecessary layer that provides no benefit.

Edit: If the point is to encapsulate and isolate a Java application as much as possible, I would consider using a unikernel like OSv before considering Docker. This would be more efficient and also more secure.

comment 8y ago · link · parent

Animals have grunted at each other for hundreds of millions of years, and human speech has slowly evolved from this. Text however was an instant revolution, a complete game changer. I don't think text is going away.

The immediate benefits of text are that text allows information to be stored, verified, indexed, and searched (assuming it was indexed correctly). It's only very recently that these same benefits have become available for audio and video. But they are still way behind text. For example, it's a lot easier to quote a snippet of text than to cut and paste a scene from a video sequence.

comment 8y ago · link · parent

How about a review of one that is marketed as anonymous or privacy-friendly? For example Monero or PIVX. Many people still incorrectly believe that Bitcoin transactions are anonymous (yes, I know they can be anonymous if you make an effort to make them anonymous, but by default they are not).
123456