Better HN
topnewbestaskshowjobs
Log inSign up

nmc

1,639 karma · joined Jun 13, 2013 (13y ago) · 504 submissions

Submissions

comment 12y ago · link · parent

Two pieces of advice:

Read "horror stories", like a crazy bug introduced by an innocent commit, or how forgetting a single line of code can lead to a massive security breach. This will give you some "subconscious awareness" about the power of the tools you are using.

Pre-emptively prevent yourself from making mistakes. If you know you often misuse some command, just make it ask you for confirmation:

  function confirm() {
    echo -n "Continue? (Y/N) "
    read YN
    return $([ "$YN" = "Y" ])
  }
  alias rm="confirm&&rm"
You could even consider more elaborate checks, like GMail's "Mail Goggles" [1].

[1] http://gmailblog.blogspot.nl/2008/10/new-in-labs-stop-sendin...

comment 12y ago · link · parent

Not to my knowledge (this could vary greatly from one country to another).

They must not disclose private information concerning their patients, but this is precisely because they sometimes need to know very personal stuff in order to better treat and cure.

comment 12y ago · link · parent

You want to ban Google search?

comment 12y ago · link · parent

TL;DR do not look for fancy names like "4k" and "UHD", just check the tech specs by yourself.

Spotted a mistake: when explaining that "4k" designates a resolution of 4096×2160, they incorrectly label 4096 as the "vertical resolution".

comment 12y ago · link · parent

A fun, excellent, interactive place to learn git:

http://k.swd.cc/learnGitBranching-ja

It is hosted in GitHub pages (so in git itself).

comment 12y ago · link · parent

Yes.

Why is that in reply to my own previous comment? I cannot see how this is "replying" (maybe you intended to post a regular comment).

comment 12y ago · link · parent

Seems fixed in French:

http://translate.google.com/#auto/en/combien%20de%20kilom%C3...

But works with yards too! (including French)

http://translate.google.com/#auto/fr/how%20many%20yards%3F

I now want to make a table recording correct/incorrect translations between the metric system and the imperial system! This is going to be an unproductive day.

EDIT: it even works in Spanish if you forget the accent on "kilometros" http://translate.google.com/#auto/en/cuantos%20kilometros%3F

comment 12y ago · link · parent

Broken link

comment 12y ago · link · parent

Why is this on HN?

comment 12y ago · link · parent

Hum... if you can run a browser, you can already run executable files (ELF or the Windows-crap-equivalent), including all TeXLive tools. Thus, running in a browser does not bring portability.

However, as "JoshTriplett" pointed out, running in a browser brings the possibility of client-side computation triggered from a web host. But this is not what I call portability.

comment 12y ago · link · parent

I have lots of remarks, but this is not a psychology essay. The most important part: the style is brilliant and adequate.

comment 12y ago · link · parent

Because TeXLive is already pre-compiled for any distribution you may want to typeset LaTeX with.

comment 12y ago · link · parent

Thank you! I too quickly forgot that JS makes client-side computation easy.

comment 12y ago · link · parent

Yes it was!

comment 12y ago · link · parent

Despite the website being back online, the root URL still redirects to the error page (at the time of writing this).

So https://news.ycombinator.com/news works, but https://news.ycombinator.com still redirects to "Sorry for the downtime. We hope to be back soon.".

comment 12y ago · link · parent

I fail to understand your point.

I see a "pdftex.js" [1] program which seems to compile a TEX file into a PDF file... which I would call writing TeXLive in JS. If I read correctly, this was partly automated by using "emscripten" to convert the original C++ implementation into a JS implementation (which is why some parts "compile to" JS).

I also do not understand what "new assembler language" means in the context of TeXLive. But what I want to understand is: why?

Why would any one want TeXLive in JS? Where is the advantage? (Please do not answer "portability".)

[1] https://github.com/manuels/texlive.js/blob/master/pdftex.js

comment 12y ago · link · parent

Since there already exists a perfectly fine TeXLive distribution, why write it in JS? (In that case, I believe JS is deeply inadequate, probably missing something...)

I was far more impressed by the LaTeX2HTML5 [1] project, to compile LaTeX into part of a webpage instead of a DVI or PDF.

[1] https://github.com/pyramation/LaTeX2HTML5

comment 12y ago · link · parent

A frightening thought: if it was practical to search each and every device going through the border, they probably would do so.

Happily enough, statistical sampling techniques can make that possible [1].

[1] S. Garfinkel. Searching A Terabyte of Data in 10 minutes. http://simson.net/ref/2013/2013-01-07%20Forensics%20Innovati...

comment 12y ago · link · parent

Of course this is possible.

You can even take it a step further: full disk encryption, one key will give an innocent Windows install, and another key will give the diabolical plans.

However, information is only compressible to the extent of redundancy involved, so this can be spotted: compare the amount of encrypted data with the size of the innocent data.

comment 12y ago · link · parent

Help me understand... you read the recent stories on Coinbase and you still sent them money?

comment 12y ago · link · parent

Flagged as pure trolling. We all know CEO earnings are still increasing drastically. The rest is a matter of opinion.

comment 12y ago · link · parent

Oh, I had never tried the "privacy mode" of Firefox! Thanks for the heads up!

However why is this working? I already had disabled JS, so the only thing I can think of is my location (Europe), but "privacy mode" will not prevent anyone from seeing my IP, so... wtf?

EDIT: cookies, of course! I had forgotten I already read the NYT recently. Thanks!

EDIT': confirmed by disabling "privacy mode" again, deleting cookies did it.

comment 12y ago · link · parent

I am the only one seeing the paywall?

comment 12y ago · link · parent

It was shot in France (mostly Paris) by Woow Your Life [1].

[1] http://www.woowyourlife.com

comment 12y ago · link · parent

Nice, reminds me of this funny Mac Pro parody [1].

[1] [video] http://www.youtube.com/watch?v=wShNx6cdk_8

comment 12y ago · link · parent

1. I strongly prefer tabs, mostly because a lot easier to count than spaces, and because I do not like ambiguity (see 2).

2. I think both are correct. Arguably, tab is the indentation character whereas space is the separator character; but languages are human-defined, so I do not mind if people choose spaces over tabs.

3. Never seen company-wide coding guidelines. I have seen project-wide guidelines, which I think makes perfect sense. I believe mixing tabs and spaces for indentation in a single project, let alone in a single file, is extremely bad practice.

EDIT: as an explanation, this is because I regard tabs as individual characters; I believe the real problem is that IDEs will insert 4 (or sometimes 8) spaces when you type a tab.

comment 12y ago · link · parent

Wao, never heard of such an initiative!

If anyone can enlighten me: to what extent is this a joke?

comment 12y ago · link · parent

Previous discussion on HN (275 points | 90 comments)

(Notably about why playing music does not mitigate the threat.)

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

comment 12y ago · link · parent

I believe it means that it "runs on compressed air".
1
1314151617