Better HN
topnewbestaskshowjobs
Log inSign up

codys

1,284 karma · joined Oct 6, 2011 (15y ago) · 430 submissions

podcast-again-1k@icloud.com
Submissions

comment 6y ago · link · parent

linux-rt is a patchset that changes the behavior of linux to increase the number of places where preemption can occur (among other things).

Doing this decreases certain types of latency in certain situations. As an example, it tries to have interrupts disabled less frequently and for shorter intervals, and uses mutexes instead of spinlocks.

As a result, using linux-rt can provide a lower latency experience compared plain linux.

comment 6y ago · link · parent

The article does mention that the predictive tracking feels worse:

> predictive tracking will feel much worse than direct (technically lagging) tracking when there is no system cursors to match.

Additionally, we can see the lag between the red box and your cursor in the video of your screen that you've uploaded.

https://i.imgur.com/ZEBcGch.png

comment 6y ago · link · parent

One place it's used is to avoid central "registration" for multiple "things". For example, consider a program with many fairly separate "subcommands". Using this mechanism allows adding a new subcommand simply by linking in a new source file (without changing a shared source file to list the new command).

comment 6y ago · link · parent

yep. opening in FF 75.0 on Linux shows a white blank page. Opening in chromium renders properly.

Looks like it's three.js failing to initialize webgl in firefox. Probably some firefox webgl issue.

comment 6y ago · link · parent

The current administration's position isn't relatively pro-state here though: Trump is on record insisting he can "reopen" the economy over the heads of state governments.

The position on "closing down" (that it was up to states) doesn't tell us anything about the administration's principle in regard to COVID because the administration is willing to change those "principles" very quickly, as evidenced by their current statements (among other actions taken by Republicans)

It's arguable that the position on closing down was based on the desire of the admin that the country remain "open", but was faced with legal/political difficulties in directly applying their desire to the country as a whole. What ever tactic is taken with respect to this Pact, we should be unsurprised if it ignores any "principles" and instead looks to effect the policy that Trump desires to put into place, or the effect on Trump's perception of his authority.

comment 6y ago · link · parent

Yes, I'm curious about the way they're intending to handling this legally as well. A bit of searching shows a Supreme Court case Virginia v. Tennessee, 148 U.S. 503 (1893) [1]. This restricts the application of that clause somewhat, but it isn't 100% clear to me that this Pact is a perfect match for the facts in that case.

It also sounds like [2] things are rather flexible in what approval is and when it is obtained. It's plausible that they expect to ask for approval, or rely on it being unlikely that congress explicitly disapproves, or perhaps they expect to obtain approval in the future.

[note: I've linked to a point in the opinion discussing Congressional approval]

1: https://scholar.google.com/scholar_case?case=103881997639573...

2: https://www.gsgp.org/media/1313/understanding_interstate_com...

comment 6y ago · link · parent

Yes, this is because firefox doesn't allow multiple ff instances to use the same profile at the same time. You can ask firefox to create a new profile (`firefox -ProfileManager`) and then use a seperate profile for the remote instance

comment 6y ago · link · parent

`forgetting` is not an edge case. In the context of rust, having an API that invokes unsafe behavior without it being marked unsafe is not acceptable. Keeping ourselves to this rule is what makes the concept of `unsafe` useful because we can rely on the behavior/api-spec of other code.

Failing to ensure correct behavior in the presence of `forget` means that once the program gets complex enough it can blow up in undetermined ways because one piece of code somewhere wasn't aware of a restriction in another piece of code that is potentially very far away.

Failing to isolate this type of unsafety is a pitfall waiting for some future developer to be trapped in.

comment 6y ago · link · parent

gcc also has ubsan since gcc version 4.9. Many of the sanitizers are shared by the clang & gcc projects. Some functionality, like emitting errors on unsigned overflow, is confined to clang.

comment 6y ago · link · parent

That sounds like a performance issue, not a security issue?

comment 6y ago · link · parent

Here in the US, bread machines often end up on the shelves on second hand stores like Goodwill and Savers. Certainly, it involves going to a store to purchase one (and relies on said store being open), but it is an option.

comment 6y ago · link · parent

or https://cloud.google.com/blog/topics/google-cloud-next/join-...

comment 6y ago · link · parent

It feels a bit irresponsible to through around unsourced numbers like that. Makes responding responsibly difficult.

comment 6y ago · link · parent

Bash has arrays.

    x=(1 2)
    echo "${x[0]}"
And associative arrays

    declare -A x
    x[hi]=20
    x[bye]=30
    echo "${x[hi]}"
    for i in "${!x[@]}"; do
        echo "k: $i, v: ${x[$i]}"
    done

comment 6y ago · link · parent

iTunes/local backup works over WiFi without connecting the iOS device via usb.

comment 6y ago · link · parent

The article is about a tool to examine the declarative service configuration provided by systemd. It does not examine services for "unpatched vulnerabilities". Nor does it examine ssh configuration options. It only examines declared sand boxing config in systemd unit files.

If you want a vulnerability scanner and generalize config analysis tool, this isn't it.

comment 6y ago · link · parent

Teams with better people being more productive and getting paid more seems like a normal thing to expect. It seems weird to expect all people and teams to be only to be average, and to see deviations from this as highly risky.

It doesn't make sense to attack the special team here as that team exists to show what is wrong with other parts of the organization, and how productivity might be improved if incentives/measures were changed.

It's also one managers attempt to be more effective. Should one not strive to be more effective? Is it better to make sure that one doesn't differ from average as that would be risky to the business and create resentment?

comment 6y ago · link · parent

Big companies make decisions all the time that harm long term prospects (sometimes in ways that are difficult to measure) in favor of obvious short term gains.

As an example, when I worked for IBM, they furloughed the entire Systems technology group (essentially the folks working on things that aren't pure software or contracting) for a week.

This was done purely to reduce the payroll for the STG so that it's income would look better on the quarterly earnings.

Neither the inability to get anything done for 2 weeks (furlough was staggered so only approx half of folks were out each week) nor any of the follow on effects on project or work force was not enough to impede this type of roughshod pursuit of quarterly accounting numbers.

comment 7y ago · link · parent

Because it's legal for a platform to perform page deduplication as long as from the perspective of the program the correct operating model is followed, many operating systems (including Linux) have a "zero page" that is used for _all_ zeroed memory blocks in the system. Writing a non zero value then would replace it with a different page.

This means that writing zero is unlikely to cause a real allocation to occur. Writing a non zero value may be more likely to cause a page allocation.

That said: it can be entirely legal for a platform to do more page deduplication than just special casing the zero page. Linux has some kernel tooling called KSM (kernel same page merging).

comment 7y ago · link · parent

I've struggled through doxygen generated docs for C++ before, and I think one of the things that helps make javadoc more readable is due to the "stricter" (in a sense) structuring of the java language vs C++: namespaces & objects everywhere make grouping more likely to occur in consistent ways in the code base, which then gets translated to more readable auto-generated documentation.

This is something I think rustdoc (for rust) also has succeeded at, partially for similar reasons.

comment 7y ago · link · parent

I think the confusion here might be a lack of clear distinction in the discussion between "ssh password auth" and "ssh pub key auth".

My impression is that the result of some of the design decisions might make "ssh pub key auth" work less often. IOW: one would need to login via password auth before pub key auth would work.

The alternate ("somehow have pubkey auth work and then ask for a crypto password") sounds like it would need some work and it isn't clear how useful it would be: if I'm already needing to enter a password anyhow, why bother with the previous pubkey auth?

As discussed elsewhere, it's plausible that some mechanism could be developed to use the ssh key material (or some other stored key material) to have the unlocking happen without manual password entry, but that would require some additional development.

Really, all this boils down to is that "login mechanisms aren't quite flexible enough", and the presentation touches on this to some extent as well.

comment 7y ago · link · parent

I think you may be misunderstanding what I'm referring to as "RF" in my comment. In the specific case of old consoles (and VCRs and other equiptment, though this isn't really relevant), there is a built-in or external "RF modulator" which takes the video (composite in this case) & audio signals and modulates them such that they appear as a TV station on channel 3/4 (typically). This is an additional signal conversion from the unmixed and not-modulated-with-a-carrier-frequency signal that is composite + audio, and tends to have additional losses when restoring it to the RGB/YCbCr signal that we actually care about vs going from plain composite to that representation.

The "almost RF" you're referring to here is a different end of things, the end dealt with by domesday, etc, which is the analog signal stored to the medium in question (whether tape, laserdisc, or something else). Using that signal is, as I think we agree, a very reasonable choice for constructing reasonable archival copies.

comment 7y ago · link · parent

In reading this I'm reminded of some efforts to produce a software decoder for Laserdiscs by using a ADC sample the exact data on the disk [1]

1: https://www.domesday86.com/?page_id=978

I wonder if there's some way to tweak the now seemingly common SDR adapters to provide a plain ADC (ie: without demodulation). When folks are capturing old consoles, generally the RF output is avoided because of the extra noise injected. It would be ideal to work directly with the composite video.

Working with the composite video also would have implications for archiving VHS and other tape-based analog footage: right now, folks tend to use hardware devices called TBCs (time base correctors) to correct issues in the video signal from a VHS player. These are all obsolete at this point and growing increasingly expensive, so it would be nice to replace this hardware with software.

comment 7y ago · link · parent

Other google services are also affected:

https://www.google.com/appsstatus#hl=en&v=status

https://i.imgur.com/pcqwwA4.png

comment 7y ago · link · parent

In other words, they have plausible deniability because of how the backdoor was designed.

comment 7y ago · link · parent

I've configured gpg to use keys from "smart cards" before, and didn't really fall in love.

After the setup, things worked ok, but there were a few limitations that made me more happy with just having the key on my computer.

The primary was that I had no way to validate that the key material was encrypted at rest, and no documentation even appeared to make claims about how the key material was stored. My setup used a fairly long PIN to replace what would have been a fairly long password for decrypting the key material stored on my computer. I wasn't really comfortable with using something simpler as a PIN.

It may be the case that I could have leaned more on the hardware for security and told myself that the limit to the number of password attempts should allow for a shorter PIN to be used. But I was looking for something that I could add as another layer to my existing process, rather than something that replaced it.

At the end of the day, using a smart card to store key material just made it harder for me to reason about the security of the key material itself due to the increased number of unknowns. And it was more inconvenient.

comment 7y ago · link · parent

While this is useful, I don't think it would completely resolve the noted "tons of send syscalls" issue. QUIC performs it's own flow control and I don't think it can just send all the packers composing a file at once (all the time, at least)

comment 7y ago · link · parent

One thing to note is that it is not guaranteed that values are ever dropped. In rust, it is "safe" to leak memory (it wasn't possible to make it unsafe in rust).

comment 7y ago · link · parent

The `n` may be any assignment-expression, and as a result values like `n` are appear to be allowed by the standard.

I've used this in code compiled with gcc and clang. Both accept this construct, but I'm not sure how effectively any compiler is able to use this information to emit warnings/errors.

comment 7y ago · link · parent

I agree that implicit conversions in C/C++ are something that ideally wouldn't exist.

IMO, though, the only way to avoid having those rules is by requiring explicitness on the part of the programmer. All other options just substitute a different set of rules which for some cases will be expected and in other cases will be unexpected.

1
8910
15