HNHacker News
TopNewBestAskShowJobs

Pirate-of-SV

544 karma · joined August 2, 2012

submissionscomments
Pirate-of-SV··on Thread pools: How do I use them?
> Or maybe there is a totally simple way and this could take me 5 minutes!

At that paragraph I immediately thought of http://aadrake.com/command-line-tools-can-be-235x-faster-tha...

Pirate-of-SV··on Syntax Highlighting Off
Many syntax highlight themes seem to hide comments in code by decreasing their contrast. I'm strongly against that so for me the author lost credibility when I saw that's more or less only what his theme do.
Pirate-of-SV··on ".ist" domain extension
.con
Pirate-of-SV··on ".ist" domain extension
My first reaction was [I]slamic [St]ate? Guess that would have been too controversial.
Pirate-of-SV··on How to submit an app to Apple’s App Store when it uses encryption
How is this different from Android apps distributed through Google Play? Legally I mean, why don't Google Play do the same thing?
Pirate-of-SV··on Coca-Cola Owns All 61 URLs from Ahh.com to Ahh-With-60-More-‘H’s.com
No SSL/TLS, I'm disappointed.
Pirate-of-SV··on New Managed NAT Gateway for AWS
Would be nice with a low end alternative as well. At the moment I'm running the NAT instance on a t2.micro at $0.013/hour (On demand). The price of this service starts at $0.045
Pirate-of-SV··on Js.org Subdomains for GitHub Pages
For those who are looking for short domains .SE is selling a few at the moment. http://www.tradera.com/campaign/punktse
Pirate-of-SV··on Mozilla SSL Configuration Generator
Do these configs yield A+ rating in Qualys' SSL Server Test[1]?

[1] https://www.ssllabs.com/ssltest/

Pirate-of-SV··on Announcing Git Large File Storage
Can't wait too see what Linus got to say about this. I suppose he got an arguably better solution to the problem?
Pirate-of-SV··on Why I Love Haskell: An Example
I like Haskell because of some of the related tools.

- HLint, a very helpful linter for ideomatic Haskell

- QuickCheck, Fuzz-testing function's properties

- hpc, Pretty code coverage

Pirate-of-SV··on YAPF – A formatter for Python files
You could try set the line length penalty so something really high. That would probably sort things out.
Pirate-of-SV··on YAPF – A formatter for Python files
I think the original Python Google Style guide did use 2 spaces. https://code.google.com/p/soc/wiki/PythonStyleGuide#Indentat...

And it seems like that's used in YAPF as well: https://github.com/google/yapf/blob/master/yapf/yapflib/styl...

Pirate-of-SV··on YAPF – A formatter for Python files
I've been using YAPF for a while and I really like the idea. Be aware that there are still some nasty bugs that haven't been fixed yet so be careful if you use it for something important.

Do anyone of you guys know what the name YAPF comes from? (The only thing I can think of is "Yet Another Python Formatter", but I'm just guessing)

Pirate-of-SV··on American students head to Germany for free college
> Education in Europe is not free. You pay with your qualifications. If your university grades are not good enough, you go out fast.

Could you be a little more specific? The size of Europe, America and Asia is too huge for statements like that. There are definitely universities in Europe that are more similar to some in the US than other universities in Europe.

I'm a student in Sweden and I have not experienced anything that supports the quote above.

Pirate-of-SV··on Next Generation of Dense-Storage Instances for EC2
If you put it like that every EC2 performance metric is ambiguous when not using dedicated instances.
Pirate-of-SV··on Why Baidu Has Been Hijacked to Attack GitHub
http://www.gov.cn/

That will show them!

/s

Pirate-of-SV··on Why Baidu Has Been Hijacked to Attack GitHub
That's exactly what they did! At the moment of this writing they are sending back:

    alert("WARNING: malicious javascript detected on this domain")
when you're trying to reach: https://github.com/greatfire/ or https://github.com/cn-nytimes/ That's why other people have started to notice it (as the article describes).

Timeline of the attack looks something like this:

1. The Chinese firewall hijacks requests to http://hm.baidu.com/h.js and sends back a script that attacks GH instead.

2. Github notices that a huge amount of people are trying to reach https://github.com/greatfire/ and https://github.com/cn-nytimes/

3. GH figures out what's happening and starts replying with the alert javascript snippet.

4. Users are now getting noticed by the alert every time their browser runs the hijacked javascript.

5. The person that wrote this article writes this article after investigating what the alert message is about.

Pirate-of-SV··on Why Baidu Has Been Hijacked to Attack GitHub
Baidu is not doing anything wrong. The HTTP requests/responses are hijacked.

Baidu could make a switch to only support HTTPS though. That would require a more elaborate attack.

Pirate-of-SV··on Make Your Own Programming Language
In a language like C the parser is going to try to parse Expr - Expr but not Expr Expr since there's no such construct in the language to put two expressions after each other.
Pirate-of-SV··on Make Your Own Programming Language
Nice what kind of code is it going to be used for to generate? A specific language or something more generic.

It would be cool with a DSL to generate low level code like X86 ASM, LLVM IR or JVM bytecode. That would be so meta!

Pirate-of-SV··on Make Your Own Programming Language
Did you create an interpreter for the language before you started on the compiler? I think it's not much overhead and you can run tests with it to make sure you get all the lexing and parsing done correctly. Then you just replace the evaluation with code generation and BAM! you've got a compiler.
Pirate-of-SV··on Make Your Own Programming Language
Nice, what kind of language? I think nice beginner languages are Query languages (like SQL) or markup languages (like Markdown).
Pirate-of-SV··on Make Your Own Programming Language
Thank you! If I can at least make one person interested I'm happy to continue.
Pirate-of-SV··on Make Your Own Programming Language
Author here: This is slightly embarrassing.

I just added a custom domain/CNAME to my github pages so it should be reachable at http://blog.ppelgren.se

Pirate-of-SV··on Show HN: I updated the Smackbook script for OS X Yosemite
I got a MBA (Mid 2011) + Chrome but I can't get it to work.

A friend asked me WTF I was doing and it felt like a April fools joke.

Pirate-of-SV··on [dead]
Well its #TBT so every second of downtime limit the amount of likes I can get. /s
Pirate-of-SV··on Kale, cauliflower, cabbage, broccoli, Brussels sprouts are all the same species
In Swedish and I guess in other languages as well it's not that mind blowing.

We call them: Grönkål, Blomkål, Vitkål, Broccoli, Brysselkål

Pirate-of-SV··on Ten Thousand Years
> ...no highly esteemed deed is commemorated here... nothing valued is here.

Sounds like a great place to hide a treasure.

Pirate-of-SV··on Ten Thousand Years
What if these aliens was standing up when they were sick and lying down when they were healthy?
← PreviousPage 3 of 4Next →