Better HN
topnewbestaskshowjobs
Log inSign up

stable-point

123 karma · joined Jul 18, 2016 (10y ago) · 29 submissions

Submissions

comment 9y ago · link · parent

Perhaps SO could include the titles of questions marked as duplicate somewhere in the markup so that Google indexes it?

comment 9y ago · link · parent

I think this highlights that while there are easy solutions to the problem the OP faced, they're difficult for a newcomer to discover. (I have been using Rust for a couple of months and I'd also have reached for serde and maybe serde_derive to solve the problem).

Hopefully this is something the Libz Blitz[0] will solve with their Rust Cookbook[1]. (You could almost but not quite arrive at as simple a solution from chapters 1 and 2).

[0] https://blog.rust-lang.org/2017/05/05/libz-blitz.html

[1] https://brson.github.io/rust-cookbook/intro.html

comment 9y ago · link · parent

I think the key part is "regardless of where they come from". For instance, Scotland has free tuition for the Scottish and other EU citizens, but not for citizens of England/Wales/NI or international students. (The fees for an English person are typically cheaper than other English universities, but still not to be sniffed at).

I am not sure about NI or Wales, but I imagine there's a similar situation.

comment 9y ago · link · parent

I do the same, as do others on my team. If we see an XXX in code-review, then we know someone commited something they didn't mean to.

comment 9y ago · link · parent

The firmware signature ensures the updates are authentic, but not that they are fresh. An attacker could force devices to stay on an older authentic but vulnerable piece of software.

The Google Omaha design docs discuss this a little bit: https://github.com/google/omaha/blob/master/doc/cup.html

I think plain HTTP is not appropriate for most update schemes Interestingly, Google Omaha actually chose not to use TLS to ensure freshness, but has something custom.

comment 9y ago · link · parent

Arguably someone adhering to the C++ Core Guidelines, using GSL and using the new static analysis tools (currently only in VS?) can be reasonably confident about choosing C++ for a new project in 2017.

comment 9y ago · link · parent

The article asks an interesting question which casts doubt on this theory: why does the UK ban affect UK airlines too?

comment 9y ago · link · parent

I don't imagine many start-ups buy them new. My previous employer bought a bunch of Aeron chairs second-hand (from other failed start-ups...)

comment 9y ago · link · parent

Fantastic. Maybe hide the word "MSDN" somewhere in the page, just for search engines. Old habits die hard. :)

Slightly off-topic, but would it be possible to reinstate the code samples on the IIS Native Module section[0]? It seemed to go walkies about a year ago and no amount of "Is this page helpful?" feedback seems to get it back. It's quite important because there is little documentation elsewhere on the internet.

[0] https://msdn.microsoft.com/en-us/library/ms693629(v=vs.90).a...

comment 9y ago · link · parent

Fantastic! Thanks a lot in any case.

I do find the image of "fighting the borrow checker" is quite harmful to how people view Rust. As those links state, an important aspect of teaching Rust is educating people about why the borrow checker complains, so that they might adjust their mental model.

comment 9y ago · link · parent

The new content looks a lot better, but I think it is a shame that this is not using the "MSDN" branding. One of the nicest things about Microsoft documentation is that I can add the term "MSDN" to any random web search and usually get the page I'm after.

comment 9y ago · link · parent

Could you provide an example where the borrowing would cause issues for immutable data?

I'm still learning Rust, but I thought the fact that you could have as many immutable borrows as possible would limit what errors the borrow checker could throw at you.

comment 9y ago · link · parent

It is not written in Python, it is written in RPython:

> So this is written in Python? > It's actually written in RPython, the same language PyPy is written in. make build_with_jit will compile Pixie using the PyPy toolchain. After some time, it will produce an executable called pixie-vm. This executable is a full blown native interpreter with a JIT, GC, etc. So yes, the guts are written in RPython, just like the guts of most lisp interpreters are written in C. At runtime the only thing that is interpreted is the Pixie bytecode, that is until the JIT kicks in...

comment 9y ago · link · parent

Opening it in a text editor is not sufficient. With clever use of 'sleep' you can even have the server return a malicious payload only if it thinks its getting immediately piped to sh[0].

If you're opening it in a browser to check, you've also got to worry that the server may be looking at curl's user agent to decide whether to serve up a malicious payload[1].

[0] https://www.idontplaydarts.com/2016/04/detecting-curl-pipe-b... [1] https://jordaneldredge.com/blog/one-way-curl-pipe-sh-install...

comment 9y ago · link · parent

No, he doesn't:

> For request, a full rewrite made sense because urllib sucked so much and we had no good alternatives.

comment 10y ago · link · parent

This is called a Unikernel: https://en.wikipedia.org/wiki/Unikernel

> Unikernels are specialised, single address space machine images constructed by using library operating systems. A developer selects, from a modular stack, the minimal set of libraries which correspond to the OS constructs required for their application to run. These libraries are then compiled with the application and configuration code to build sealed, fixed-purpose images (unikernels) which run directly on a hypervisor or hardware without an intervening OS such as Linux or Windows.

comment 10y ago · link · parent

I don't think it supports any browsers via plugin. You use a separate app to unlock your keychain, it places the relevant password on your clipboard and then it clears the clipboard 30s later. Very simple and therefore avoids a whole bunch of vulnerabilities other password managers (like LastPass) introduce by integrating with browser plugins.

comment 10y ago · link · parent

> More likely because it's not available on-premise. Check into how many use HipChat instead, because it is.

Just one data-point, but: my employer went with HipChat because we needed an on-premise solution. (We were moving away from IRC because we needed persistent chat history for remote employees. Using IRC bouncers was considered too high of a barrier-to-entry, given we wanted non-technical employees to join the conversation too).

comment 10y ago · link · parent

I can't get it to look like a crater, no matter where I pretend the light's coming from. It's always a dome for me.

comment 10y ago · link · parent

Does the government require this arbitrarily, or because that's the will of the people?

Here in the UK, we have Sunday trading laws which limit how long shops can be open on a Sunday. These are reasonably popular (but not unanimously) because they ensure that shop workers have some guaranteed time with their family.

comment 10y ago · link · parent

Or TenFour refers to the announcement date: 10/4.

comment 10y ago · link · parent

It's well worth reading the original 'Good Product Manager/Bad Product Manager' chapter from 'The Hard Thing About Hard Things': https://a16z.files.wordpress.com/2014/08/good-product-manage...

(It is also linked in the article, but I missed it first time through).

comment 10y ago · link · parent

I've attempted to do Coursera's ML course, but I am not very good at learning from videos - I much prefer reading a text book and then attempting the problems in my own time.

Are there any recommended text books that one can read from start to finish in order to get a similar introduction to ML?

comment 10y ago · link · parent

If you have `pbpaste | sh -` on your clipboard and then paste it into a terminal, it'll continually execute itself.

(`pbpaste | sh - | pbpaste | sh - | pbpaste | sh - | ... | pbpaste | sh -`)

comment 10y ago · link · parent

> if someone has those rights, you're already screwed.

I think that this was once true, but Secure Boot was an attempt to improve the situation. My understanding is that Microsoft's Virtualization Based Security (which Device Guard/Credential Guard are built upon) rely on the assumption that the boot process is secure. If an attacker could have their root kit load before the OS/Hyper-V, then they render those mitigations useless.

comment 10y ago · link · parent

The TPM controls the rate-limiting. A compromised OS shouldn't affect it. (Otherwise a live CD could compromise your disk encryption, as the encryption is usually done at the OS level, not in the BIOS/EFI).

comment 10y ago · link · parent

As others have said, going release-by-release is the way to go. I migrated a project from 1.4 to 1.8 (LTS to LTS) over the course of a few months. It wasn't trivial, but it wasn't too difficult either.

The deprecation notices are usually (always?) accompanied by the code giving `DeprecationWarning` messages. These are silenced by default, but can be enabled by setting the environment variable: `PYTHONWARNING=d`. After upgrading to each major version, I'd recommend running with warnings enabled for a little while (in addition to reading the release notes), to see what may bite you at the next jump.

comment 10y ago · link · parent

> If they continue to support this use case, it may be hard to do without introducing bugs - one exposure to a 'real' service which spits out an HSTS header (or the preload list), and the machine loses the ability to conduct Google searches.

Those wishing to spy on their users with nossl could just disable HSTS in the browsers they provide.

comment 10y ago · link · parent

When generating auth tokens for Django apps, I've previously put the user's password's salt into the token for this purpose. The salt is not secret and changes whenever the password changes.