59 Matching Annotations
  1. Last 7 days
  2. Sep 2020
    1. I think that we should be willing (taking the risk) to make bold changes, as long as they fit in the direction we see the community going in the long term (with Material-UI empowering it).
    1. Force everything to the git root per NPM lameness
    2. For a non-monorepo package you can simply point directly to the Github repo. This case is similar, but you want to scope it just to a single package within the repo. For those that make monorepos they don't necessarily need this feature. It's for those that use projects that use monorepos. Telling them to not organize their projects into monorepos doesn't help people who make use of these projects.
    3. npm's inability to handle monorepos then i'd have designed my repos accordingly
    1. Amazon pushes teams to escalate one-way door decisions – those that can’t be reversed and may have long-term consequences.  However, with “two-way” decisions, managers are coached to make these decisions themselves.

      Amazon encourages employees to escalate decisions that are irreversible (one-way door decisions) and to delegate decisions that are not. The idea being that if you can act quickly, even if you make more mistakes, it will benefit the system as a whole.

    1. This impacts monetization and purchasing at companies. Paying for a new design tool because it has new features for designers may not be a top priority. But if product managers, engineers, or even the CEO herself think it matters for the business as a whole—that has much higher priority and pricing leverage.

      If a tool benefits the entire team, vs. just the designer, it becomes an easier purchase decision.

  3. Aug 2020
    1. I could add .json on the end, but that would mean hacking away at angularjs, which is doing the right thing. I would rather find a good solution and hack away at rails, which is doing the wrong thing :)
    2. In that case I would suggest to use .xml or .json format to eliminate accept header parsing issue.

      Avoid using a perfectly good feature (accept header negotiation) just because browsers screwed things up?

    3. Safari sends following order application/xml (q is 1) application/xhtml+xml (q is 1) image/png (q is 1) text/html (q is 0.9) text/plain (q is 0.8) \*/\* (q is 0.5) So you visit www.myappp.com in safari and if the app supports .xml then Rails should render .xml file. This is not what user wants to see. User wants to see .html page not .xml page.
  4. Jul 2020
    1. Oracle didn’t seem very interested in OpenOffice.org, and the community of volunteers developing it formed The Document Foundation back in 2010. They called on Oracle to participate and donate the OpenOffice.org name and brand to the community. Oracle never did, and the resulting forked office suite has been named LibreOffice since then.
    2. In 2011, Oracle laid off OpenOffice’s paid developers and donated the OpenOffice software to the Apache Foundation, rather than The Document Foundation. It’s remained there since, a project in slow but steady decline.
    1. These seem to be better reasons to support sub-nanosecond resolution. I think either storing picoseconds or storing sec fraction as 64-bit integer are better approaches than storing a rational. However, either change would be very invasive, and it seems unlikely to be worth the effort.
    1. JSON parsing is always pain in ass. If the input is not as expected it throws an error and crashes what you are doing. You can use the following tiny function to safely parse your input. It always turns an object even if the input is not valid or is already an object which is better for most cases.

      It would be nicer if the parse method provided an option to do it safely and always fall back to returning an object instead of raising exception if it couldn't parse the input.

    1. I been using turbo tax for like 5 years now.. Every year the predatory UI gets worse and worse. It constantly badgers you for more service for simple returns, it locks you in to benefits when you are just trying to see if one tax stance is better than another, IT NEVER LETS you go back and undo any PRODUCTS unless you want to delete your whole return. I think part of my frustration is the terrible tax laws we have in this country but for petes sake if you cant let me add up itemized deductions and compare them to a standard deduction WITHOUT locking into a product, you honestly have a terrible product. Just be honest with your pricing instead of trying to trick people into these products and HOLDING THEIR HOURS OF CLERICAL WORK HOSTAGE. WHAT A JOKE.
  5. Jun 2020
    1. and eventually waste away and die never having taken either path.

      Reminds me of Burdian's Ass. As explained at Wikipedia:

      "Buridan's ass is an illustration of a paradox in philosophy in the conception of free will. It refers to a hypothetical situation wherein a donkey that is equally hungry and thirsty is placed precisely midway between a stack of hay and a pail of water. Since the paradox assumes the ass will always go to whichever is closer, it dies of both hunger and thirst since it cannot make any rational decision between the hay and water. A common variant of the paradox substitutes two identical piles of hay for the hay and water; the ass, unable to choose between the two, dies of hunger."

    1. However, a ActiveRecord::Rollback within the nested transaction will be caught by the block of the nested transaction, but will be ignored by the outer transaction, and not cause a roll back! To avoid this unexpected behaviour, you have to explicitly tell rails for each transaction to indeed use proper nesting: CopyActiveRecord::Base.transaction(joinable: false, requires_new: true) do # inner code end This is a safer default for working with custom transactions.
  6. May 2020
    1. the i18n object with all the strings

      They don't require supplying all keys for other objects that can be overridden, such as banner: the default value is used for whatever keys are not provided within the banner object. In other words, values are merged, with the supplied values overriding the defaults. The i18n object should work the same way. Often you only need/want to override a couple phrases/translations, not all of them.

      See: https://www.iubenda.com/en/help/1205-how-to-configure-your-cookie-solution-advanced-guide

    1. I dismissed the idea, though, because I thought that cloning even part of a repository with git-svn required scanning every commit in the entire repository, in order to build the local history. With almost 1.5 million commits in the plugin repository, that would take roughly 4 hours to clone a plugin.
  7. Apr 2020
  8. Mar 2020
    1. Ruby's current handling of Dates and Times is all over the map. We have Date, Time, DateTime, ParseDate, and more, not to mention all the other common extensions running around out there. Ruby needs an improved class that incorporates them all.
  9. Feb 2020
    1. Make two-way door decisions Most decisions are easy to reverse, have the directly responsible individual make them without approval. As Jeff Bezos describes only when you can't reverse them should there be a more thorough discussion.
    1. The .ignore file , from what I can tell, needs to exist in the directory you're targeting for it to be recognized, not the current directory. If you're searching in .src, the file would need to be there for it to work.
  10. Jan 2020
    1. Antonio Damasio, a neuroscientist at USC wrote about a patient he called Elliot, who had damage to his frontal lobe that made him unemotional. In all other respects he was fine—intelligent, healthy—but emotionally he was Spock. Elliot couldn’t make decisions. He’d waffle endlessly over details. ­Damasio concluded that although we think decision-­making is rational and machinelike, it’s our emotions that enable us to actually decide.
    1. ssh doesn't let you specify a command precisely, as you have done, as a series of arguments to be passed to execvp on the remote host. Instead it concatenates all the arguments into a string and runs them through a remote shell. This stands out as a major design flaw in ssh in my opinion... it's a well-behaved unix tool in most ways, but when it comes time to specify a command it chose to use a single monolithic string instead of an argv, like it was designed for MSDOS or something!
  11. Dec 2019
    1. The Internet permission is only used to display the Google Map, which is only displayed once on creating a new location. Meaning, once you created all your needed locations, you can deactivate the Internet permission and still use the location based reminders (Note: Most devices don't allow you to revoke this permission, sorry).
    1. Directly on the Switch: Some third-party games including Fortnite and Overwatch don’t need a separate app. You just connect a standard headset to the single 3.5 mm audio jack on your Switch and chat without the app, just like a smartphone. Again, Nintendo’s own games won’t work with this.

      This seems like the obvious solution. Why would Nintendo make you get a separate app on a separate platform (Android) when they could just let you chat directly via the Switch device like these games do?

    1. The IdentitiesOnly yes is required to prevent the SSH default behavior of sending the identity file matching the default filename for each protocol. If you have a file named ~/.ssh/id_rsa that will get tried BEFORE your ~/.ssh/id_rsa.github without this option.
    1. Arguably, the rails-team's choice of raising ArgumentError instead of validation error is correct in the sense that we have full control over what options a user can select from a radio buttons group, or can select over a select field, so if a programmer happens to add a new radio button that has a typo for its value, then it is good to raise an error as it is an application error, and not a user error. However, for APIs, this will not work because we do not have any control anymore on what values get sent to the server.
  12. Nov 2019
    1. The thing is that each UI decision depends on countless other UI decisions. A simple example is keybindings. On UNIX/Linux, it’s nearly impossible to pick reasonable default bindings for global desktop navigation because they all conflict with bindings that some app is using. On Windows, the desktop navigation bindings are hardcoded, and no app uses them, because apps know for sure which bindings to avoid.
  13. developer.mozilla.org developer.mozilla.org
    1. Using with is not recommended, and is forbidden in ECMAScript 5 strict mode. The recommended alternative is to assign the object whose properties you want to access to a temporary variable.
  14. May 2018
    1. I realized that with my medical condition (link is external), it had to be someone who understood my condition, my philosophy about life and healthcare, along with knowing my long list of allergies to medications and foods.

      This portion of the article highlights the importance of trusting the person that you chose as a health care proxy to respect your values and lookout for your best interest.

    2. Further, a doctor, medical center, hospital, EMT, and even assisted living staff can make decisions regarding your healthcare, treatment methods and type of medical care to provide you if you are not married, over 18 years old, and do not have a health care proxy in place

      Medical decision making has very specific in rules to protect the rights of the patient. The rules can vary according to a patient's age, marital status, and wether or not they signed a health care proxy document in the first place.

    3. Who would decide what was best for you? Who would advocate on your behalf?

      This is a scary question that most people in the United States have to consider at one point in their life. Trust in the person in charge of making medical decisions is essential.

    4. Health care proxy: An advance medical directive in the form of a legal document that designates another person (a proxy) to make health care decisions in case a person is rendered incapable of making his or her wishes known.

      The medical definition of a health care proxy- a legal medical document that transfers power of medical decision making from a patient to a trusted person.

    1. The question each proxy should ask when making decisions on behalf of others is, who am I truly serving — the patient or myself?

      This article really high lights the potential negatives of the concept of healthcare proxies and provides real life scenarios to help the reader relate.

    2. In situations like this, the proxy (knowingly or unknowingly), is primarily motivated by his own need to have one last opportunity to repair the broken relationship and make amends to redeem himself.

      This last situation suggests that a proxy could have personal motives for keeping a patient alive- in this case, a son was trying to keep his father alive due to his feelings of grief and guilt over the broken relationship. The father was being kept alive in the hospital even though the medical professionals had advised against it.

    3. When the patient is unwilling or unable to make medical decisions, the health care proxy is activated and he or she is obligated to make all health choices on behalf of the patient. These may be related to withdrawing or withholding life support, instituting artificial liquid feeding, attempting resuscitation and even whether or not to participate in autopsy and organ donation.

      Any decisions regarding the care and body of the patient are headed over to their health proxy, who assumes any medical decision making responsibilities from there.

    4. Most of us will lose our ability to make medical decisions for ourselves in the last phase of our lives

      This is an issue that may affect the majority of American people towards the end of their lives.

  15. Sep 2015
    1. Each group watched a series of images and the individuals in the group voted for which ones they found most attractive. The results: The oxytocin-influenced participants tended to go with the flow of their group, while the placebo-dosed participants hewed to their own individualistic path. The implication: Oxytocin is great when you’re out with friends or solving a problem with coworkers. It might not be so great when you need to pick a leader or make some other big decision that requires independence, not conformity.
  16. Feb 2014
    1. But when asked what he would have done differently, the answer was easy. "I would have got rid of the slash slash after the colon. You don't really need it. It just seemed like a good idea at the time."
  17. Sep 2013
    1. They also started to standardize and very deliberately reduce the supported infrastructure and configurations. One decision was to switch everything to PHP and MySQL. This was a philosophical decision, not a technology one: they wanted both Dev and Ops to be able to understand the stack, so that everyone can contribute if they wanted to, as well as enabling everyone to be able to read, rewrite and fix someone else’s code.

      NOTE: "This was a philosophical decision, not a technology one."