1,639 karma · joined Jun 13, 2013 (13y ago) · 504 submissions
comment 12y ago · link · parent
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
http://k.swd.cc/learnGitBranching-ja
It is hosted in GitHub pages (so in git itself).
comment 12y ago · link · parent
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
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
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 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
I was far more impressed by the LaTeX2HTML5 [1] project, to compile LaTeX into part of a webpage instead of a DVI or PDF.
comment 12y ago · link · parent
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
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
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
[1] [video] http://www.youtube.com/watch?v=wShNx6cdk_8
comment 12y ago · link · parent
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.