Hacker Newsnew | past | comments | ask | show | jobs | submit | lmohseni's commentslogin

I read a book called Breath by James Nestor, it’s all about the benefits of nose breathing. Anecdotally this has completely fixed my sleep apnea/ snoring/ energy levels/ etc. Highly recommended!


Wait, people aren't breathing through noses?


I'm not sure if it started this way, but I mostly breathe through my mouth at night due to significant congestion in my nasal passage. If I use a nasal rinse or flonase it helps but if I'm not diligent it regresses immediately.


Give this a shot for a week or two. Just jam these up there. It will be uncomfortable at first but you get used to it. Really opens you up and takes away a ton of resistance in nasal breathing.

https://a.co/d/18eLtdw


I found that I have to consciously close my mouth and "tell myself" to breath only through my nose.

When I do this i sleep better.


You sleep better by consciously breathing through your nose at night? Or during the day?


Probably by falling asleep with their mouth closed so that they breathe through their nose for the night.


yes this


I know someone who has to make a "vacuum seal" with their mouth, that is, make some slight suction on the inside so that they won't drool in the night. Is it anything like that?


um... not consciously no.

I think its more just being mindful. Something i feel we could all benefit from doing more of.


> I think its more just being mindful. Something i feel we could all benefit from doing more of.

Absolutely, I'm always surprised by the lack of this in some people. Like are they not self-aware or concerned at all? Just floating through the world existing? Ignorance is bliss but I sure wouldn't want to live like that myself.


too much stimulation. the ways in which we are and can be stimulated are increasingly devisable and persistent. Information or stimulation addiction is a thing...


Hah, preaching to the choir here, ADHD brain that basically shuts down unless there is a constant supply of new and interesting stimuli. I usually can't even get enough, so I end up sleeping for 13 hours and then not even staying up for 8 afterwards. I literally need "stimulants" in order to even have a 24-hour schedule, lol.


I had to have my deviated septum surgically corrected back in my late teens before I was capable of breathing consistently through my nose. Even simple things like chewing with my mouth closed were difficult because I couldn't breath well enough with my nose only.


Nope, usually feel like I don't get enough air.


lots of people with chronic allergic or non-allergic rhinitis aren't able to breathe through their nose.


I thought I'd get a freebie there (like when you lose weight just by cutting soda - which I already don't drink. Another freebie lost), but when I paid attention I am breathing exclusively through my nose and to make matters worse my tongue is in the mewing position. So this is already the best case scenario for my weight, sleep and jawline. Bummer.


What are the best strategies for increasing nose breathing?


Look into the EASE procedure by Dr. Kasey Li


Have you tried this? does this work?


It helped me. I no longer wake up feeling congested. The impact on sleep was more subtle. I had some prior complications so I wasn’t able to expand as much as the avg patient.


I would also suggest looking into the Oxygen Advantage system. Just finished reading the Breathing Cure by Patrick McKeown, makes some interesting claims but mostly found helpful exercises to retrain nasal breathing


His book "Deep" remains one of my very favorite books of all books, and I've turned a fair stack of pages. It's a different kind of medicine though; for me, it revived my soul, if there is such a thing.



Also for blind programmers, tabs are much nicer for a screen reader.


If you hold the function key (‘fn’) and press the left arrow it works. Macs map fn+arrows to home, end, pgup, and pgdown.


Indeed, Myron Scholes was on the board of LTCM when they blew up and kicked off the Asian financial crisis. LTCM could be a poster child for fragile financial systems.


Fermentation is a great way to create cheap or free fertilizer and garden amendments. Look up the works of yungsang cho or hankyu cho.


15% interest? No, surprises!


There’s an option for this under System Prefs > Accessibility > Reduce Motion


It seems like this would work, but unfortunately it just replaces the "slide" animation with a crossfade that takes the same amount of time.


In system preferences, under accessibility, there’s an option to “reduce motion” or something that removes that annoying animation. It’s great!


While this gets rid of the animation itself, the transition to the workspace takes the same amount of time.


When using gestures, the animations kind of match the gesture, which makes them slow because you can physically cancel them.

But some of these may help. There may be more (or less), it's been a while.

    defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false
    defaults write -g NSWindowResizeTime -float 0.003
    defaults write com.apple.dock expose-animation-duration -float 0.15
    defaults write com.apple.Mail DisableReplyAnimations -bool true
    defaults write com.apple.Mail DisableSendAnimations -bool true
Also, try to use keyboard shortcuts: the animation is muuuuch faster than with gestures. In Keyboard prefpane, Shortcuts, Keyboard, Mission Control (make sure to have many desktops created). I have desktops set to ^1..^0 and left/right to ^left and ^right (which is sadly the only way to move to fullscreen apps), and disable MRU automatic space reordering in Mission Control prefpane.


It's got nothing to do with gestures, the key combo has the same switch delay as a quick gesture swipe (Which seems to have the same delay as mission control selection) when switching workspaces.

I've spent more time than I'd like to admit trying to get rid of this workspace switch delay. The tipping point for me on it was switching to a 16" Pro with a 120 Hz screen and finding out that means it now takes longer to switch.


Got it. In my experience switching with shortcuts takes half a second (which I understand can be annoying, being an i3wm user myself) and is visibly faster than evn quick gestures, which have a slower ease-out for me (but that may be due to how I swipe)


I don't mind the animation, I actually really like the animations in macOS. I just don't want it to take a full second to switch the active window. "Reduce motion" keeps the full-second delay but replaces the nice animation with a less nice fade animation, which is kind of the opposite of what I want.


If you’ve ever written code, and if you’ve ever written a bug, then you will understand that code as law is terrible idea, especially when it comes to finance.



Yikes. Wasn't aware of that one. Thanks for sharing it.

I like smart contracts but you really have to be super careful with them, and ideally they should all be audited by a third party before launch, to help catch stuff like this. But even that's not a guarantee crap like this won't happen sometimes.


Smart contracts have two modes of operation:

1) Upgradeable - where an authority has the right to replace the live contact at any time and rug-pull everyone. That's not trustless, and it's no better than running an app in AWS.

2) Non-upgradeable - where you simply have a self-funding bug bounty waiting to get popped. Even if they're audited.

They're not smart, and they're not interesting, to me anyways.


Re: Upgradeable contracts, there is often some governance method that removes the power from just one person, but there's usually also a time-delay, so that in theory at least, users of the contract can see that an upgrade has happened and remove their interaction with it if they don't like the new contract.

This is quite different from having money in a bank where policy changes and government seizures or freezes may happen without warning.


I'm not sure this is convincing.

If there's some actual benefit, then crappy code that can be iterated is fine. Anything you do today with computer code was likely done worse in the past with worse code.

So what is the actual benefit of "peer-to-peer lending and pooled lending" that blockchain technology provides that makes it worth iterating through these early mistakes?

I'd guess the answer usually involves dodging regulations in some way. Which isn't blockchain specific, lots of 'innovations' in tech or business are basically workarounds that let you dodge taxes or regulations or exploit externalities.


The whole point of the legal system is that whilst it's defined as clearly as possible, there is always going to be some flexibility and interpretation, and a human element, so if someone finds a technical loophole but is clearly defrauding everyone they can still be put in jail. Of course, it isn't perfect, but the idea of law being absolute (as in code is law) is absurd as we lack the capability to consider every eventuality when we release code.


Yeah, but it's the absolutism that's the issue, not the buggy code.

When designing automated replacments for any business process you have to deal with the same 'exceptions'. You could just accept "computer says no" as the desired outcome in exchange for the efficiency, and let hackers take your money because "hey, they beat the system! It's theirs now" but that's a choice, not a limitation of the tech itself. Unless the tech's only benefit is that "computer says no" or "hacker took your money" is final, which doesn't actually sound like a benefit.


The problem is that if you allow overrides in the computer absolutism, corrupt governments will use these overrides to their benefit. And you’re back to the square one.


If the government is corrupt, then you've got problems regardless.

The general solution to this issue has been more and better democracy, which despite a lot of effort being spent undermining it, still seems to be the best solution available today.


I am a laymen who is skeptical of cryptocurrency tech, mostly because of what I'm seeing (hype, greed, fomo, and apparently no real use-cases).

If... crypto were to be able to reverse transactions... would that completely undermine the whole point of it and make it look absolutely stupid?

Do you think the solution to irreversible transactions would be to then have some kind of algo that would then send back a mistaken transaction after getting checked by some intermediary checkpoint? Would that then make the whole point of cryptocurrency also completely pointless?

What on earth are people dumping resources into all this as digital currency or even investment/ speculation vehicles if they don't address the irreversible transaction part, or try to compensate for it somehow? It seems utterly anxiety inducing otherwise, where you'd have to quadruple check, then quadruple check again, and then sleep on it and then quadruple check 4 more times before you do any kind of sizable transaction.


> It seems utterly anxiety inducing otherwise, where you'd have to quadruple check, then quadruple check again, and then sleep on it and then quadruple check 4 more times before you do any kind of sizable transaction.

That's mostly due to transactions being non-interactive. If the receiver has to prove their ability to spend the received funds before being allowed to receive them, then most of this anxiety disappears. Certain blockchain designs require transactions to be interactive in this way.


> If the receiver has to prove their ability to spend the received funds before being allowed to receive them

If I want to send you some crypto money in exchange for you mowing my lawn, how do you prove that you can spend the received funds? And if I accidentally send it twice, why would I care that you can spend them twice, unless I have some way to compel you to send half back?


> how do you prove that you can spend the received funds?

You prove it by producing a partial signature for the transaction (a transaction essentially requires a multisig by both sender and receiver).

> And if I accidentally send it twice

You couldn't send it twice because the transaction consumes an input utxo. Paying twice would require two different transactions with two different multisignatures.


> You prove it by producing a partial signature for the transaction (a transaction essentially requires a multisig by both sender and receiver).

Oh, ok, I misunderstood what this meant.

> You couldn't send it twice because the transaction consumes an input utxo. Paying twice would require two different transactions with two different multisignatures.

This assumes the receiver is trust-worthy, that they counter-sign the transaction if it was accidental. So if I accidentally pay twice for a single item, the seller can just sign both transactions and send me only one item, and I can't do much about it. Of course, they can also send 0 items, which is why blockchains can't secure transactions in a useful sense - you need the law and insurance and other social mechanisms for that.


> code as law is terrible idea

I don't know exactly what you mean by 'code as law', and I'm sure there are extremists that think smart contracts make law obsolete, but they are just wrong. Fraud via smart contract is still fraud. Theft via smart contract is still theft.

There's nothing about having automatic processing of transactions that means you get to just ignore the legal system in your country.

And that's fine, proper and good. Automatic processing of complex transactions is phenomenally useful, even if it doesn't make legal systems obsolete.

Simplest example - with smart contracts transacting assets where the canonical record of ownership is on the blockchain, you can have a smart contract act as escrow for you, making sure that the transaction happens atomically without having to pay someone to hold the assets for you and release them once they have both. It is a better, more efficient solution than any that the traditional financial system has been able to come up with.

In fact, it is exactly linking the legal world and the blockchain world that means that you can apply some of the same benefits of immediacy and atomicity to more assets in the real world. All that is needed is for the legal system to recognise blockchains as the canonical record of ownership of real assets. The real world legal system makes blockchain technology more useful, not less.


With smart contracts there is only the code. There is no external trusted documentation that says what the intention of the code is. If the contract allows for an action to occur, then that action is permissible.

It's the old quote taken to an extreme, "The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do."

If there is a 'bug' that allows anybody to empty a smart contract, well it turns out that you were just hosting a complex coding competition with a prize.


> There is no external trusted documentation that says what the intention of the code is.

Working out what both parties intended a contract to mean and what it should mean, sometimes in contradiction of what it actually says is exactly what the legal system does.

You can't evade the legal system by writing your contract in a different form. Weirdly I think this idea comes from thinking law is code when it isn't.


A judge is supposed to read the smart contract source code and determine the intent?

The parties are frequently anonymous and have never interacted outside of the publication the smart contract to the blockchain and another party interacting with it. There is no basis for determining intent besides the code itself.

Are you thinking that the contracts have analogs to legal contracts? Usually (exclusively?) they only mediate transactions and behavior that is contained within the blockchain itself. There isn't an exchanging of assets that exist externally to the blockchain like real estate.

Although I think crypto fanatics think that the world will trend that way. Truly programmable money has never existed before. If more of our monetary infrastructure migrates to blockchains it will be interesting to see how current contract law adapts and is applied.

If you want to argue with 'code is law' proponent, ask them how they feel about the DAO hack and ensuing hard fork of Ethereum. That was an interesting case where the ETH community as a whole decided that code was not in fact law.


>A judge is supposed to read the smart contract source code and determine the intent?

If it's hard for a judge, it's presumably also hard for anyone using the smart contract.

>There is no basis for determining intent besides the code itself.

I'll bet you any frequently used contract has an associated website.

Basically, conducting your business on a blockchain doesn't exempt you from the law. You - the squishy human at the end of the transaction - are not on the blockchain, and neither is the author of any smart contract you might use. As long as the law recognizes blockchain assets as valid consideration in contracts, contract law trumps blockchain law.


Does participation in a smart contract imply any kind of legal agreement? You're essentially interacting with an api/bot that's being hosted by whatever blockchain community at large. Anybody can publish anything, and any unrelated parties can interact with it.

Here's a thought experiment for you.

If I were to publish a public webpage where you entered a routing number into a textbox and money was immediately transferred from my account to the specified account for the purpose of sending money to a friend of mine, but somebody else found the website and entered their routing number and drained my account. Would I have legal recourse?

This is essentially the Parity wallet exploit. The API was only slightly more complicated than the example above, initWallet().

It's an interesting paradigm shift. If contracts are automatically enforced, what features of the existing legal system are obsolete? If monetary/financial contracts are completely logically unambiguous in their execution and there is no need to appeal to a designated wielder of physical force to ensure their execution...

I think that notion, which sounds unrealistic to me, is what appeals to lot of crypto absolutists. It fails in a lot of the ways that smart contracts currently struggle, how to computationally, and in an unbiased way, relate crypto to the world outside of the blockchain. A good example of this is oracles, which are so flimsy in so many situations.

As you said we don't exist on the blockchain, the physical world doesn't exist on the blockchain, so how can we do away with our existing systems for mediating disputes, determining intent etc?


> how can we do away with our existing systems for mediating disputes, determining intent etc?

I think everyone in this conversation fully agrees on this point. As I said earlier, "I'm sure there are extremists that think smart contracts make law obsolete, but they are just wrong." We absolutely shouldn't do away with our existing systems for mediating disputes and determining intent.

I think perhaps the crux of the disagreement is that I think we need to apply those systems to smart contract systems in a sensible way and I take it that you think that the fact that we won't do away with our existing systems means there's no reason to use blockchain at all.


I don't think we're in disagreement; I'm more or less agnostic on the points I brought up, just thinking out loud. My original intent was to explain what I think the ethos is behind, 'code is law', which was in response to your statement, "I don't know exactly what you mean by 'code as law'".

But I do think there will be technical difficulties in applying the existing legal system to smart contract execution if there is no other artifact related to its execution (e.g. website, documentation, communication b/w parties etc.), which probably represents the vast majority of such contracts.

I've seen contracts representing complex derivatives, and some insane things like collateralized NFTs. The financial ecosystem within crypto is becoming incredibly complex. Many grey area strategies within traditional finance have been recreated within crypto, e.g. HFT and front-running, and there are some complex strategies like vampire attacks a la sushiswap that I don't think have analogs.

If one participates in complex smart contracts and get hosed, in a lot of cases I think it will be essentially impossible to differentiate between fraud vs. speculation, bugs vs. proper execution, exploitation vs poorly understood secondary effects. I'm curious to see how the legal system will try to keep up. Then again, I'm not sure it has kept up that well with the traditional financial system to begin with.


> A judge is supposed to read the smart contract source code and determine the intent?

If necessary, they can call on experts to provide testimony in such cases. It's probably not necessary all that often though because there's usually more relevant auxillary information to help work this stuff out. Who wrote this smart contract? Why are the parties using it? What information persuaded them to use it? Was the outcome of using the smart contract different to what a reasonable person would have expected?

This is exactly what courts are for! The fact that some of the procedure of the interaction has been mechanised does not mean the participants get to ignore the law.


>All that is needed is for the legal system to recognise blockchains as the canonical record of ownership of real assets.

Then theft via smart contract can't be theft because it acted on the canonical record of ownership. This also causes tons of other problems. What happens if someone loses access to their wallet? Now there's a house that simply can't ever be sold?


> There is no external trusted documentation that says what the intention of the code is.

No, if someone fraudulently updated a canonical record of ownership, then the legal system can provide remedies. If it were me, I'd write the smart contract to enable corrections in case of a legal decision but that's at the choice of whomever sets up the smart contract that provides the canonical record of ownership.

Same situation for if someone loses their keys. All these problems can be solved with appropriately written smart contacts.


OK, so ... which courts of which legal jurisdictions can correct which contracts? Are courts in Guinea-Bissau allowed to correct contracts between counterparties in the US?


This stuff is all normal when you're dealing with international contracts - it's not like nobody thought of doing international deals before satoshi.

Some of the answers do depend on the specifics of course. If the asset being traded is US real estate for example I would expect the smart contract to be set up so it requires a US court decision to correct the register.


My point is that there's an entire subbranch of the law, generally called private international law, that has been created to deal with conflict of laws and jurisdictional issues. You're implying that there are simple deterministic rules to determine those kinds of questions but in fact it's a meta-problem.


It sounds like we agree then. I'm not saying it's simple or deterministic, I'm saying it's not new and it's not made inapplicable just because the systems we're using have changed.

The problems that are raised as if they are uniquely issues to blockchain solutions are not in fact specific to blockchains at all. We can and should apply the same rules to blockchain transactions and smart contracts give us a fantastic way of encoding those rules. For example you can have a token that represents proof that you have been kycd by a particular authority and you can restrict transactions of particular assets to those between addresses holding one of those tokens.


Also, if you've ever been let off with a warning for some minor infraction, or had a generous client who ignored a late-by-a-few-hours delivery, or...


A terrible idea, or just terrible in practice, and in particular with the current state of tooling and understanding etc.?

For every lawyer relishing a loophole there's surely another wishing for a more codified less ambiguous language than even Legalese English.

(I'm no cryptocurrency advocate, hold a small amount, have never written a 'smart contract', I just find it interesting and somewhat compelling. As an idea at least, yes I've written bugs.)


"If you’ve ever written code, and if you’ve ever written a bug, then you will understand that code as law is terrible idea, especially when it comes to finance."

If your argument is that there could be bugs in the code, then how is this different from the law today? The legal system is rife with abuses and injustices. It most certainly has bugs as-is.


The difference is the judge that applies the law and looks at the context. Not that it is perfect.


You could still have judges looking at the context. The blockchain would only be for the written statutes and code.

Judges can also be incompetent. Just look at how magistrates don't even need a law degree nor pass the Bar.


Indeed, bugs are a feature


LOL


^ you will understand that code as law is terrible idea, especially when it comes to finance.

Why are we relying on code for controlling Safety-critical system? e.g. Nuclear Reactors, Autopilot of aircrafts, docking of two separate free-flying space vehicles, and weapon of mass destruction launch and control machines. All of them use "code", is finance more critcal than systems which are kill capable.


    Why are we relying on code for controlling 
    Safety-critical system? e.g. Nuclear Reactors
Because humans can't perform calculations quickly enough to compute math millions of times per second?

Computers work well when there are a finite set of fixed, quantitative inputs and outputs: if x < 20, do y

Many parts of law are a lot more complex and can't be reduced to such formulas. Suppose you're suing an employer for wrongful termination. They say your job performance sucked and that's why you were fired. You say it was a hostile workplace, and when you tried to point that out you were fired in retaliation.

Go write some code to evaluate that. Let us know when you're done. Should be pretty exciting. Hopefully we can retain all of the judges and lawyers now that they're not needed any more.


All of that code usually has a human override, and it can be turned off, fixed and upgraded. Also, it isn't (in the main) in the public and under constant probing attack.


In the cases of those I'm familiar with, most code in the system does not need to be bug-free for safety, and the code that does is kept simple and heavily reviewed at the binary level.

For most contacts, it is not financially feasible to use the techniques developed for safety-critical software.


Well, nuclear reactor use dumb electronics overrides, and each time an operation is done inside, each operation is done with human supervision. Override mechanisms are regularly tested and used. If your override is not dumb/simple enough, and you rely on code, you have the 380 max.

What are the override, who are the supervisors for cryptocurrency?


You mean there’s a contingent within Google that further compromises their moral integrity.

Edit: downvotes won’t help you sleep at night!


It seems to be quite a leap from "furious with a product change" to "compromising one's moral integrity".

I don't agree with every decision our PM's go with, but I don't feel compromised either.


> I don't feel compromised.

I get it.

It’s a long road from “dont be evil” to illegal wage fixing, mass ad fraud, omnipresent dragnet surveillance, and cooperation with totalitarian nation states; all of those with compunctions are long gone, the rest are like you.


I’m sure all the work you’ve done and your closest loved ones have done, had amazing “moral integrity”


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: