1,258 Matching Annotations
  1. Aug 2020
    1. Perhaps someone should give an example of when 'into' is ever correct. "Turn into bed" is definitely incorrect, unless one is morphing into the form of a bed. But what about "he fell into the hole", "she went into the house", or "Star Trek Into Darkness"?
    1. I used to be a staunch defender of proper reply styles, even for casual emails. Insert your replies below the relevant paragraph and trim the exchange to be just about the matters of discussion.
    1. For example, the word dog describes both the species Canis familiaris and male individuals of Canis familiaris, so it is possible to say "That dog isn't a dog, it's a bitch" ("That hypernym Z isn't a hyponym Z, it's a hyponym Y").
  2. Jul 2020
    1. It would be nice if the tests weren't so implementation specific, but rather tested the essence of the functionality. I tried to make them less brittle but failed. To that end, re-writing all the tests in rspec would be (IMHO) a brilliant improvement and pave the way for better tests in the future and more flexibility in implementation.
    1. if British Army gunners are doing a countdown before making something go bang, they actually leave out Five in case anyone mishears it as “Fire”.
    1. See https://choosealicense.com/ for tl;dr Please, please add a license. The fact none is listed makes using this software a legal quagmire. Currently it is not legal to use this code or its derivatives in any useful software. I may be mistaken but hopefully this is not the intended effect. Currently no license is mentioned anywhere, what makes this code fully copyrighted, like any other creative work. It limits usefulness of this project - and I hope that it is unintentional. For example it seems that it would solve my problem of profiling hilariously slow rspec tests (2036.33 seconds ./spec/word_processor_spec.rb:43), in current situation I would be unable to legally publish project that would use this solution. Obviously, please do not release it under any license if you are not the author (that would be even worse legal quagmire)
    1. Once a test is in quarantine, there are 3 choices: Should the test be fixed (i.e. get rid of its flakiness)? Should the test be moved to a lower level of testing? Should the test be removed entirely (e.g. because there’s already a lower-level test, or it’s duplicating another same-level test, or it’s testing too much etc.)?
    2. Quarantined tests are run on the CI in dedicated jobs that are allowed to fail
    1. I could not find any way to do this with the standard library.

      https://twitter.com/olivierlacan/status/1084964879289778176 / https://hyp.is/aIYDgMVKEequYL8_dgzChQ/twitter.com/olivierlacan/status/1084930269533085696:

      It’s even worse that there’s no alternative method that does the unsurprising thing IMO.

    2. So why isn't there an easy way to remove an element from such an array in a way that respects both the order and number (count) of each element? Why do all methods for removing elements from an array assume that you always want to remove all matching elements from the receiver, with no option to do otherwise?
  3. Jun 2020
    1. For example, if error messages in two narrowly defined classes behave in the same way, the classes can be easily combined. But if some messages in a broad class behave differently, every object in the class must be examined before the class can be split. This illustrates the principle that "splits can be lumped more easily than lumps can be split".
    1. Don’t apply caching if the process is expected to react to changes during the caching period. i.e. Don’t cache when mixing reads and writes.
    2. An example candidate for caching might be a nightly billing task which aggregates billing data for the past month. That kind of task is likely not expecting last minute updates while it runs. It assumes that the state of the world remains constant while processing.
    1. In this case, we notice that comment.post and post should belong to the same database object. But, is Rails smart enough to know that the comment should be removed from both of the associations? Or are comment.post and post different representations of the same database row?
  4. May 2020
    1. Integration specs are relied upon to ensure the application functions, but does not ensure pixel-level stylistic perfection.
    1. Sometimes plugins can conflict with a theme or with each other.  Disable all your plugins and see if the problem persists. If everything is working once the plugins were disabled it means there's a conflict with a plugin or maybe even a set of plugins. Enable the plugins one by one to identify the one that is creating the conflict.
    1. Right click on the /wp-content/plugins folder and rename it plugins.old. This will deactivate all of the plugins. In most cases, this will also lock the WordPress admin area as well.  You will still be able to perform these steps from within the File Manager.Reactivate the plugins folder by following the above instructions and renaming the folder plugins. This will allow you to reactivate each plugin individually to isolate the offending plugin and resolve the 500 Internal Server Error.  This should also allow access to the WordPress Dashboard again. From the WordPress Dashboard: Reactivate each plugin (one at a time) and refresh the website to see if the issue has been resolved.
    1. You should then also create a new View and apply the following filter so as to be able to tell apart which domain a particular pageview occurred onFilter Type: Custom filter > AdvancedField A --> Extract A: Hostname = (.*)Field B --> Extract B: Request URI = (.*)Output To --> Constructor: Request URI = $A1$B1
    1. Hey there. We see you’ve been busy reading, which is fantastic, so we’ve promoted you up a trust level! We’re really glad you’re spending time with us and we’d love to know more about you. Take a moment to fill out your profile, or feel free to start a new topic.
    1. I encourage people to write good commit messages, with a good description that explains what it does.
    2. Having to rebase and cleanup the commits while actively working on something is time and attention consuming.

      I'm not sure how I feel about that. Usually I'd say it's worth it to do it periodically, even while you're working on it. Just not obsessive compulsively to the point that it is distracting from actual work.

    3. It seems weird to me that we are trying to enforce commit messages when they are not really visible or used in the GitLab workflow at all. This is what you see most of the time when interacting with the commit list. I've taken time to compose a nice descriptive body and it is hidden by default:
    4. shouldn't a MR be treated as an unit of work, independent from master?
    5. which might or might not be useful depending on what is the content of the commit.
    6. One way of encouraging users to create good commit message would be to have a better integration with the content of commit message in GitLab itself,
    7. Just to make this clear, I'm on the side that adding strict rules doesn't necessarily improve a situation. Especially with something that is subjective like a commit message.
    8. Good commit hygiene in general is a tough thing to enforce. It requires manual labor and descipline, from both the author and the reviewer.
    9. If we can encourage people to create clean commits as they go, the example as you showed above should be far less common, because cleaning up such history as an after-math is most of the time almost impossible.
    1. sadness.js will not load, however, as document.write() produces script elements which are "parser-inserted".
  5. developer.chrome.com developer.chrome.com
    1. If a user clicks on that button, the onclick script will not execute. This is because the script did not immediately execute and code not interpreted until the click event occurs is not considered part of the content script, so the CSP of the page (not of the extension) restricts its behavior. And since that CSP does not specify unsafe-inline, the inline event handler is blocked.
    1. We group a description of and about personal data (such as a Cookie or IP Address), the purpose of its collection (such as Analytics or Advertising) and the providers (such as Google or even your own website) into what we call services. Each service corresponds to a portion of a privacy policy, and provides all the relevant information to the end users of your website.
    1. "linked data" can and should be a very general term referring to any structured data that is interlinked/interconnected.

      It looks like most of this article describes it in that general sense, but sometimes it talks about URIs and such as if they are a necessary attribute of linked data, when that would only apply to Web-connected linked data. What about, for example, linked data that links to each other through some other convention such as just a "type" and "ID"? Maybe that shouldn't be considered linked data if it is too locally scoped? But that topic and distinction should be explored/discussed further...

      I love its application to web technologies, but I wish there were a distinct term for that application ("linked web data"?) so it could be clearer from reading the word whether you meant general case or not. May not be a problem in practice. We shall see.

      Granted/hopefully most use of linked data is in the context of the Web, so that the links are universal / globally scoped, etc.

    2. The above diagram shows which Linking Open Data datasets are connected, as of August 2014.
    1. This change was made because GitLab License Management is now renamed to GitLab License Compliance. After review with users and analysts, we determined that this new name better indicates what the feature is for, aligns with existing market terminology, and reduces confusion with GitLab subscription licensing features.
    1. $10 donation = $9.41 deposited into your bank account the next business day $100 donation = $96.80 deposited into your bank account the next business day
    1. that a number x {\displaystyle x} is rational (S) is sufficient but not necessary to x {\displaystyle x} being a real number (N) (since there are real numbers that are not rational)
    2. being a male is a necessary condition for being a brother, but it is not sufficient—while being a male sibling is a necessary and sufficient condition for being a brother
    3. in order for human beings to live, it is necessary that they have air
    1. This does not have to be an additional form. In practice, you can simply add several checkboxes informing the user of each additional purpose and allowing them to give consent specific to those cases.

      See the images above, which are a good example of how to do it and how not to do it.

    1. By itself the name John Smith may not always be personal data because there are many individuals with that name. However, where the name is combined with other information (such as an address, a place of work, or a telephone number) this will usually be sufficient to clearly identify one individual.
    2. Simply because you do not know the name of an individual does not mean you cannot identify that individual. Many of us do not know the names of all our neighbours, but we are still able to identify them.
    1. If you’re selling products and keep record of users’ choices for marketing purposes, dividing them into meaningful categories, such as by age, gender, geographical origin etc., you’re profiling them.
    1. It would be best to offer an official way to allow installing local, unsigned extensions, and make the option configurable only by root, while also showing appropiate warnings about the potential risks of installing unsigned extensions.
    2. I appreciate the vigilance, but it would be even better to actually publish a technical reasoning for why do you folks believe Firefox is above the device owner, and the root user, and why there should be no possibility through any means and configuration protections to enable users to run their own code in the release version of Firefox.
    3. I will need to find a workaround for one of my private extensions that controls devices in my home network, and its source code cannot be uploaded to Mozilla because of my and my family's privacy.
    1. Using a very different theoretical approach, Robbins (2009a) suggests that one of the primary reasons for Pentecostal expansion among those most disenfranchised by late capitalism may very well be the ease with which this religion creates social cohesion despite the ‘institutional deficit’ of the neoliberal global order (B. Martin 1998: 117‐18

      This is very interesting to me because of the absence of the state and Catholic church, which led to the growth of prosperity gospel within the Brazilian lower classes. In other words, a clash between "pre-modern" and "post-modern". "Institutional deficit" is a key word coming from the available journal article Robbins (2009a). Martin (1998) is a book chapter that interested me a lot as well, and it is available at the library but not eletronically (maybe Libgen?).

    2. Central to this interpretation has been Comaroff and Comaroff's work on ‘occult economies’ (Comaroff & Comaroff 1999; 2000), which situates the prosperity gospel alongside witchcraft accusations, rumours of zombies, and lurid tales of Faustian pacts with the Devil.

      Very similar folk tales are shared informally in Brazilian prosperity gospel churches of pacts with the Devil and witchcraft explaining mysterious economic events. Comaroff's mechanism of market fetishization is a very materialist and economicist explanation to prosperity gospel according to the article's author.

  6. Apr 2020
    1. purposes are grouped into 5 categories (strictly necessary, basic interactions & functionalities, experience enhancement, measurement, targeting & advertising)
    2. Strictly necessary (id 1). Purposes included:Backup saving and managementHosting and backend infrastructureManaging landing and invitation pagesPlatform services and hostingSPAM protectionTraffic optimization and distributionInfrastructure monitoringHandling payments
    1. A website (also written as web site) is a collection of web pages and related content that is identified by a common domain name and published on at least one web server
    1. It’s true that there are two hard problems in computer science and one of them is naming things. Why? Because good names are important. A good name teaches about purpose and responsibility, so you have to spend some time thinking about it.
    1. In math, idempotence describes only unary functions that you can call on their own output. Math-idempotence is, “If you take the absolute value of a number, and then you take the absolute value of that, the result doesn’t change on the second (or subsequent) operations.” Math.abs is math-idempotent. Math-idempotence only applies to functions of one parameter where the parameter type and return type are the same. Not so useful in programming.
    1. Since the authenticity token is stored in the session, the client cannot know its value. This prevents people from submitting forms to a Rails app without viewing the form within that app itself. Imagine that you are using service A, you logged into the service and everything is ok. Now imagine that you went to use service B, and you saw a picture you like, and pressed on the picture to view a larger size of it. Now, if some evil code was there at service B, it might send a request to service A (which you are logged into), and ask to delete your account, by sending a request to http://serviceA.com/close_account. This is what is known as CSRF (Cross Site Request Forgery). If service A is using authenticity tokens, this attack vector is no longer applicable, since the request from service B would not contain the correct authenticity token, and will not be allowed to continue.
    1. Here you can do some social good; we know how much passwords are reused and the reality of it is that if they've been using that password on one service, they've probably been using it on others too. Giving people a heads up that even an outgoing password was a poor choice may well help save them from grief on a totally unrelated website.
    2. you could even provide an incentive if the user proactively opts to change a Pwned Password after being prompted, for example the way MailChimp provide an incentive to enabled 2FA:
    1. I could have released this data anonymously like everyone else does but why should I have to? I clearly have no criminal intent here. It is beyond all reason that any researcher, student, or journalist have to be afraid of law enforcement agencies that are supposed to be protecting us instead of trying to find ways to use the laws against us.
    2. For now the laws are on my side because there has to be intent to commit or facilitate a crime
    3. it reminds me of IT security best practices. Based on experience and the lessons we have learned in the history of IT security, we have come up with some basic rules that, when followed, go a long way to preventing serious problems later.
    4. The fact is that it doesn’t matter if you can see the threat or not, and it doesn’t matter if the flaw ever leads to a vulnerability. You just always follow the core rules and everything else seems to fall into place.
    1. One suggestion is to check user's passwords when they log in and you have the plain text password to hand. That way you can also take them through a reset password flow as they log in if their password has been pwned.
    1. I think it's useful to differentiate especially because there are many situations where "hack", and its conjugations, is the only effective term to describe something that has nothing to do with malicious violation of security measures or privacy.
    1. Over the years, many people have said "well, the data is public anyway by virtue of it having been breached, what's the problem if you now store the password in your system?" Here's the philosophical problem I have with that:
    1. If you don't—or can't—lock your users in, the best way to compete is to innovate at a breakneck pace. Let's use Google Search as an example. It's a product that cannot lock users in: users don't have to install software to use it; they don't have to upload data to use it; they don't have to sign two-year contracts; and if they decide to try another search engine, they merely type it into their browser's location bar, and they're off and running.
    2. Want to keep your users? Just make it easy for them to leave.
    1. Google's move to release location data highlights concerns around privacy. According to Mark Skilton, director of the Artificial Intelligence Innovation Network at Warwick Business School in the UK, Google's decision to use public data "raises a key conflict between the need for mass surveillance to effectively combat the spread of coronavirus and the issues of confidentiality, privacy, and consent concerning any data obtained."
  7. Mar 2020
    1. Google Analytics Premium (later to be renamed Google Analytics 360)

      Google Analytics Premium was a better name, because it is very clear what it is.

      Google Analytics 360 sounds dumb to me. What does 360 have to do with anything?

      Reminds me Xbox Live 360 (and, though an unrelated number, Office 365). Are they copying Microsoft?

      Reminds me of YouTube Red. Where do they come up with this stuff?

    1. The process of collecting and storing user consent from a technical perspective
    2. First-party cookies are the lifeblood of every website, enabling businesses to remember key pieces of information about users and to collect analytics data. Third-party cookies are the bread and butter of AdTech, allowing publishers to monetize their websites, and brands to run advertising and marketing campaigns.
    1. They are in place to prevent brute forcing a password. If you had to complete these every time you login, a person has to be there to answer it. This makes it so you can’t leave a guessing software to break your password. So, in short, it's for your account’s safety.
    1. Don't be discouraged when you get feedback about a method that isn't all sunshine and roses. Facets has been around long enough now that it needs to maintain a certain degree of quality control, and that means serious discernment about what goes into the library. That includes having in depth discussions the merits of methods, even about the best name for a method --even if the functionality has been accepted the name may not.

      about: merits

    1. The whole point of not relying on debt excessively in normal times is precisely to be able to use debt massively and without hesitation in situations like this.
    1. It is recommended that a library should have one subclass of StandardError or RuntimeError and have specific exception types inherit from it. This allows the user to rescue a generic exception type to catch all exceptions the library may raise even if future versions of the library add new exception subclasses.
    1. Historically, the communitarian bases of the American legal system supported the subordination of individual rights when necessary for the preservation of common good. Quarantine measures were subjected to a deferential review supporting the states' right to substantially limit individual rights for the community's benefit.
    2. The treatment of quarantine reflects the latter. Courts and academics rarely expressed doubt about the validity of quarantine regulations, since the courts presumed that actions taken under the police power were constitutional.10,11 Challenges to the Fourteenth Amendment, usually successful when governmental intervention interfered with individual liberties, were not well received by the courts when communicable disease regulations, including quarantine, were involved.
    3. quarantine was already a well established form of public health regulation, and was considered proper exercise of the police power of the states; the Supreme Court, in its affirmation of this power, noted that the state had the power to quarantine “to provide for the health of the citizens.”10,11 The uncontrollable nature of epidemic diseases moved the Supreme Court to uphold such extreme measures on the basis of the defense of the common good.8
    1. The visitors of that blog post will get third-party non-essential cookies unless they previously set their browser to block cookies.
    1. Also, make sure your client will handle an unexpected response. Don’t assume that the comment-check API will always return either true or false. An invalid request may result in an error response; additional information will usually be available in HTTP headers. And of course, a connectivity problem may result in no response at all. It’s important not to misinterpret an invalid response as meaning spam or ham.
    1. Then there’s markup inside each paragraph, like links and such. You could do it right in the translation strings, but your translator then needs to know how to handle the markup, and you risk duplicating knowledge if you go as far as to hard-code link URLs. What I do is split up the translations, but keep them under the same key: en.yml1 2 3 4 log_in_or_sign_up: text: "%{log_in} or %{sign_up} to do stuff." log_in: "Log in" sign_up: "Sign up" header.erb1 2 3 4 5 <%= t( :'log_in_or_sign_up.text', log_in: link_to(t(:'log_in_or_sign_up.log_in'), login_path), sign_up: link_to(t(:'log_in_or_sign_up.sign_up'), signup_path) ) %> This way, the translator sees no code or markup (except for the i18n interpolation syntax) and there is no duplication.
    2. You probably don’t want one translation key per sentence, though. It’s helpful for the translator to have context rather than a lot of short strings, and less fiddly on your part.
    1. Translatable strings should be limited to one paragraph; don’t let a single message be longer than ten lines. The reason is that when the translatable string changes, the translator is faced with the task of updating the entire translated string. Maybe only a single word will have changed in the English string, but the translator doesn’t see that (with the current translation tools), therefore she has to proofread the entire message.
    1. Layouts uses the Bootstrap framework, so everything you build with it is responsive. Sites that you build with Layouts display great on desktops, tablets and phones. The Bootstrap grid will shift and adjust automatically according to the screen size. Layouts gives you additional control over the exact appearance in every width. You can manually select how the grid will appear, to get perfect positioning on every device. You can even completely hide parts of the page if you don’t want them to appear on narrow screens.

      Good illustration

    1. the feature was dropped to “lack of use.”

      I don't find the reason "lack of use" sufficient in its own right. (I personally didn't use this feature.) People might not use it because they don't know about. And those that do use may find it extremely useful; it's not their fault if others don't know about it or use. It seems to discriminate a bit against the minority who may use a useful feature. They would rather be in the majority, safe from having one of their favorite features removed.

      But I do understand and appreciate the good explanation given below.

  8. Feb 2020
    1. As a result, there is a natural tendency for people to prefer private channels of communication. The intentions are good, as people are looking to reduce noise for others, but this can lead to the same problems as described elsewhere on this page
    1. Do Browse like a user wouldTake natural pauses that users would take to consume page contentFocus on the most common use cases, rather than all the possible use casesTake note of pages where forms/logins occur, you will likely need to complete some scripting there
    1. But, let’s be pragmatic for a second, the 80/20 rule states that you get 80% of the value from 20% of the work and a couple of simple tests are vastly better than no tests at all. Start small and simple, make sure you get something out of the testing first, then expand the test suite and add more complexity until you feel that you’ve reached the point where more effort spent on realism will not give enough return on your invested time.
    1. Load Testing Manifesto Simple testing is better than no testingLoad testing should be goal orientedLoad testing by developersDeveloper experience is super importantLoad test in a pre-production environment
    1. Nix is a purely functional package manager. This means that it treats packages like values in purely functional programming languages such as Haskell — they are built by functions that don’t have side-effects, and they never change after they have been built.
    1. I was able to use the "Gift to a Friend" link on HB on a game I already owned and was able to generate an email to a friend. They were able to successfully get the game.Seeing that my Steam account is linked to HB, I was more worried about clicking the "Reveal Your Steam Key" and getting hosed that way.
    1. It's a good practice to create respond_to_missing? if you are overriding method_missing. That way, the class will tell you the method you are calling exists, even though it's not explicitly declared.
    2. In my opinion respond_to_missing? should never return true as default. Instead, it should be something like check_if_method_meet_condition || super . Another thing is that it is usually defined as respond_to_missing(method_name, include_private = false)
  9. Jan 2020
    1. a private library is not an ego-boosting appendages but a research tool. The library should contain as much of what you do not know as your financial means … allow you to put there. You will accumulate more knowledge and more books as you grow older, and the growing number of unread books on the shelves will look at you menacingly. Indeed, the more you know, the larger the rows of unread books. Let us call this collection of unread books an antilibrary.
  10. Dec 2019
    1. "The replication crisis, if nothing else, has shown that productivity is not intrinsically valuable. Much of what psychology has produced has been shown, empirically, to be a waste of time, effort, and money. As Gibson put it: our gains are puny, our science ill-founded. As a subject, it is hard to see what it has to lose from a period of theoretical confrontation. The ultimate response to the replication crisis will determine whether this bout is postponed or not."

    1. So if you create one backup per night, for example with a cronjob, then this retention policy gives you 512 days of retention. This is useful but this can require to much disk space, that is why we have included a non-linear distribution policy. In short, we keep only the oldest backup in the range 257-512, and also in the range 129-256, and so on. This exponential distribution in time of the backups retains more backups in the short term and less in the long term; it keeps only 10 or 11 backups but spans a retention of 257-512 days.
    1. Four databases of citizen science and crowdsourcing projects —  SciStarter, the Citizen Science Association (CSA), CitSci.org, and the Woodrow Wilson International Center for Scholars (the Wilson Center Commons Lab) — are working on a common project metadata schema to support data sharing with the goal of maintaining accurate and up to date information about citizen science projects.  The federal government is joining this conversation with a cross-agency effort to promote citizen science and crowdsourcing as a tool to advance agency missions. Specifically, the White House Office of Science and Technology Policy (OSTP), in collaboration with the U.S. Federal Community of Practice for Citizen Science and Crowdsourcing (FCPCCS),is compiling an Open Innovation Toolkit containing resources for federal employees hoping to implement citizen science and crowdsourcing projects. Navigation through this toolkit will be facilitated in part through a system of metadata tags. In addition, the Open Innovation Toolkit will link to the Wilson Center’s database of federal citizen science and crowdsourcing projects.These groups became aware of their complementary efforts and the shared challenge of developing project metadata tags, which gave rise to the need of a workshop.  

      Sense Collective's Climate Tagger API and Pool Party Semantic Web plug-in are perfectly suited to support The Wilson Center's metadata schema project. Creating a common metadata schema that is used across multiple organizations working within the same domain, with similar (and overlapping) data and data types, is an essential step towards realizing collective intelligence. There is significant redundancy that consumes limited resources as organizations often perform the same type of data structuring. Interoperability issues between organizations, their metadata semantics and serialization methods, prevent cumulative progress as a community. Sense Collective's MetaGrant program is working to provide a shared infastructure for NGO's and social impact investment funds and social impact bond programs to help rapidly improve the problems that are being solved by this awesome project of The Wilson Center. Now let's extend the coordinated metadata semantics to 1000 more organizations and incentivize the citizen science volunteers who make this possible, with a closer connection to the local benefits they produce through their efforts. With integration into Social impact Bond programs and public/private partnerships, we are able to incentivize collective action in ways that match the scope and scale of the problems we face.

    1. Neutrino only babel-compiles first party source (the JSX -> JS transformation is handled by a babel plugin). It does this because even when using the module entry in package.json, it's expected that the provided file (and it's imports) still be JS and not in some other format - ie: the only difference from the content in main should be that it can use modules syntax (that is import and export rather than require etc).

      module version compared to main version:

      only difference from the content in main should be that it can use modules syntax (that is import and export rather than require etc).

      You can see the difference in this example: https://unpkg.com/browse/reactstrap@8.0.1/es/Alert.js ("module": "es/index.js": import) vs. https://unpkg.com/browse/reactstrap@8.0.1/lib/Alert.js ("main": "lib/index.js": require)

    1. When a javascript module is prepared for use on a client there are two major concerns: certain features are already provided by the client, and certain features are not available. Features provided by a client can include http requests, websockets, dom manipulation. Features not available would include tcp sockets, system disk IO.
  11. Nov 2019
    1. Oh, is it like Object.assign() then? Almost like Object.assign({}, divElement, {newProp: 'newProp'})?

      React.cloneElement(divElement, {newProp: 'newProp'})

      is a lot like

      Object.assign({}, divElement, {newProp: 'newProp'})?

    2. React.cloneElement() allows us to clone a runtime element (not the class), and apply an enhancement to it.
    1. Good tests encode the developer's intention, they don't only lock in the test's behavior without editorialization of what's important and why. Snapshot tests lack (or at least, fail to encourage) expressing the author's intent as to what the code does (much less why)
  12. Oct 2019
    1. well explained article
    2. Rack middleware is more than "a way to filter a request and response" - it's an implementation of the pipeline design pattern for web servers using Rack. It very cleanly separates out the different stages of processing a request - separation of concerns being a key goal of all well designed software products.
    1. It would be safer to just register the JS entrypoints and automatically add CSS packs if there are any required by that JS. Webpacker does this already. Check your webpacker.yml and ensure that extract_css is false. This will prevent webpacker from separating the 2 files.
    1. You probably have extract_css: true in your webpacker.yml. This removes import '../scss/index'; and generates the equivalent style sheet. You do need to add stylesheet_pack_tag yourself.
    1. We live in an age of paradox. Systems using artificial intelligence match or surpass human level performance in more and more domains, leveraging rapid advances in other technologies and driving soaring stock prices. Yet measured productivity growth has fallen in half over the past decade, and real income has stagnated since the late 1990s for a majority of Americans. Brynjolfsson, Rock, and Syverson describe four potential explanations for this clash of expectations and statistics: false hopes, mismeasurement, redistribution, and implementation lags. While a case can be made for each explanation, the researchers argue that lags are likely to be the biggest reason for paradox. The most impressive capabilities of AI, particularly those based on machine learning, have not yet diffused widely. More importantly, like other general purpose technologies, their full effects won't be realized until waves of complementary innovations are developed and implemented. The adjustment costs, organizational changes and new skills needed for successful AI can be modeled as a kind of intangible capital. A portion of the value of this intangible capital is already reflected in the market value of firms. However, most national statistics will fail to capture the full benefits of the new technologies and some may even have the wrong sign

      This is for anyone who is looking deep in economics of artificial intelligence or is doing a project on AI with respect to economics. This paper entails how AI might effect our economy and change the way we think about work. the predictions and facts which are stated here are really impressive like how people 30 years from now will be lively with government employment where everyone will get equal amount of payment.

    1. React is hanging on to a reference to previous functions because memoization typically means that we keep copies of old values to return in the event we get the same dependencies as given previously
    1. Social Psychological Theory and Research Value Priorities

      Read the following section, and briefly describe how liberal (or leftist) thinkers might define the good society and how conservative (or rightist) thinkers might define the good society.

    2. What is the good life? What is the good man? The good woman? What is the good society and what is my relation to it? What are my obligations to society? What is best for my children? What is justice? Truth? Virtue? What is my relation to nature, to death, to aging, to pain, to illness? How can I live a zestful, enjoyable, meaningful life? What is my responsibility to my brothers? Who are my brothers? What shall I be loyal to? What must I be ready to die for?—Abraham Maslow

      Please reflect and respond to the following questions: What is the good life to you? Who are your brothers (i.e., your people)? What should you be loyal to?

      I appreciate your honest reflections (in advance).

  13. Sep 2019
  14. Jul 2019
    1. but Salt Lake City’s cost of living is 16 percent lower than in Denver, 37 percent lower than Seattle’s and 48 percent under San Francisco’s, according to PayScale. The state — often led personally by Governor Gary Herbert — pitches its advantages well to firms considering relocation, says Joe Vranich, whose consulting firm helps small businesses looking to move. “They will roll out the carpet for you and treat you like a king.” The approach is working. Utah’s “Silicon Slopes”

      Utah's low cost of living attracts tech companies to operate in Utah. This will make more outsiders to relocate to Utah for jobs which can further aggravate the burden of housing shortage and pricing.

  15. Jun 2019
    1. The Squire

      Is it just me, or is a squire to most trained, experienced, good looking, physically fit, beautiful sounding person in all of these tales? The knight does not compare to this man.

  16. Apr 2019
    1. Important skillset that can be used for direct work in a wide range of causesWeb design is a skill that’s in-demand in many types of organisations, from charities to startups, giving you great flexibility and the opportunity to work on high impact projects.Organisations that are especially high-impact to work at or volunteer for include:Government departments, such as Obama’s US Digital Service and 18F or the UK’s Government Digital Service.Effective non-profits, such as those recommended by GiveWell, Giving What We Can and The Life you Can Save.Innovative for-profits, such as Google, which now has seven products with over one billion monthly active users (Search, Gmail, Android, Chrome, Google Play, Maps and Youtube)1, or AirBnB.For-profits focused on the global poor, such as Sendwave.Effective Altruist organisations.
    1. Part-time advocacy journalismDue to the rise of online publications it is becoming easier to get published, which opens up the opportunity to pursue advocacy journalism part-time, as a freelancer alongside another job that pays the bills. We know of several people who are successfully pursuing this option.
    1. Documentary film-making seems like a form of art with a good chance of direct and advocacy impact, in that it resembles investigative journalism. It also appears stronger in terms of network and transferability of skills. As a result, we would expect a career profile on documentary film-making to be more positive than this one.
    1. So if you’re choosing between several options, it’s helpful to do your research ahead of time. But eventually you need to actually try things. The closer you can get to actually doing the work, the better. For example, if you’re considering doing economics research, actually try some research and see how well you do, rather than just think about how much you enjoy studying it – studying a subject is very different from actually doing research.This is true whether you’re at the start of your career or near the end, and whether you’re planning what to do long-term, comparing two offers, or considering quitting your job.So, if there’s a job you’re interested in, see if there’s a way to try it out ahead of time. If you’re considering three long-term options and aren’t sure which to take, see if you can try out each of them over the coming years.
    1. 5. It’s better to figure out philanthropy yourself. You say: > “My only hint is: be a Hannah Smith. She wants to help war orphans in the Congo, so she helps them. I would wish Hannah luck but also I think it would be useful for her to be linked in with informed people with similar goals to her, so they could bounce ideas off one another about how each could do their jobs more effectively.” You say “let your own brain and heart be your guide”. I’d say: don’t go it alone. Figuring out how to do good philanthropy is an enormous problem, so whether or not it’s from within this particular community, get support so that your goals are effectively realised.
    2. FLAW #5: There’s an Alternative to EA that’s Far Superior: I call it “DIY Philanthropy” Effective Altruism provides too much advice and too many judgmental opinions on who, how, or why to fund. This renders us passive because EA insists that it’s already done the research and ethical thinking for us. Compassionate people don’t need Big Brother informing them what right or wrong, how to help others. EA is just an obstacle in the path of a far better activity: DIY Philanthropy. I won’t provide your with lengthy instructions detailing how to accomplish this. being a DIY Human means figuring it out yourself. My only hint is: be a Hannah Smith. She wants to help war orphans in the Congo, so she helps them. You don’t need Peter Singer and EA telling you how to be charitable. Let your own brain and heart be your guide.
    3. Effective Altruism has Five Serious Flaws - Avoid It - Be a DIY Philanthropist Instead
    1. Being a teenager is hard; there are constant social and emotional pressures that have just been introduced into the life of a middle or high schooler, which combines with puberty to create a ticking time bomb. By looking at the constant exposure to unreasonable expectations smartphones and social media create, we can see that smartphones are leading to an increased level of depression and anxiety in teenagers, an important issue because we need to find a safe way to use smartphones for the furture generations that are growing up with them. Social media is a large part of a majority of young adults life, whether it includes Instagram, Facebook, Snapchat, Twitter, or some combination of these platforms, most kids have some sort of presence online. Sites like Facebook and Instagram provide friends with a snapshot of an event that happened in your life, and people tend to share the positive events online, but this creates a dangerous impact on the person scrolling.​ When teens spend hours scrolling through excluisvely happy posts, it creates an unrealistic expectation for how real life should be. Without context, teenagers often feel as if their own life is not measuring up to all of their happy friends, but real-life will never measure up to the perfect ones expressed online. Picture Picture Furthermore, social media sites create a way for teenagers to seek external validation from likes and comments, but when the reactions online are not perceived as enough it dramatically alters a young adults self-confidence. This leads to the issue of cyberbullying. There are no restrictions on what you can say online, sometimes even annonimously, so often people choose to send negative messages online. Bullying is not a new concept, but with online bullying, there is little to no escape as a smartphone can be with a teenager everywhere, and wherever the smartphone goes the bullying follows.This makes cyberbullying a very effective way to decrease a youth's mental health, in fact, cyberbullying triples the risk of suicide in adolescents, which is already the third leading cause of death for this age group.

    2. Our culture is defined by the music we listen to, and the way it is portrayed in the media. Every culture around the world has a different style of song or dance that represents their traditions. Culture can not only be changed through popular songs, but is best represented through music. One of the best ways to understand a foreign culture is by listening to the music that is favorable among the people whose culture you are trying to understand. Music is one of the most powerful forms of art between cultures.

      Music has the power to redefine cultures. We can see this through generational differences between song preferences. For example, American country music back in the late 1900s has a much different feel and style compared to country music now in 2019. While keeping within the same genre, this style of music touches upon different subjects, and uses different instruments, sounds and lyrics. Even early hip-hop has evolved from its beginnings. Hip-hop music is considered the most popular music as of right now, but it has not always been that way. Each generation favors different types of genres of music, and it is clear which backgrounds over the years have favored certain genres of music. As much as music can differentiate cultures, and generations, music can bring people of completely different background together by its artistic flavor and general popularity throughout the mainstream media.

    1. Hedgehog & Fox You have emphasized ethical action, but a worry I always have about traditions which emphasize renunciation and detachment is what that means for politics and political engagement and the ability to effect any change. Now, both traditions would say the world is so far from perfect and everything is so impermanent that we’re never going to achieve a perfect political state of being. But is there a danger that if we’re attending too much to this kind of advice that we may just think all sorts of wrongs will go unrighted. Can you say something about how you see going beyond the ethical into a more political arena? Antonia Macaro Again, it’s a difficult one. Definitely there’s a tension in both traditions between detachment and action. The Stoics did have an ‘action streak’, as it were, which was about fulfilling your duties and doing what you could, given the circumstances you were in. But yes, it is definitely a tension and maybe this is the sense in which maybe I’m a bit more of an Aristotelian. I think in the end it’s the Serenity Prayer, which is about having the courage to change things that you can change and the serenity to accept the ones that you can’t change and the wisdom to know the difference, which is actually very hard to do. But I think it’s certainly worth trying to change things in the world that you think is possible to change, maybe sometimes even if you don’t think it’s possible to change. Some things may be worth fighting for anyway. It’s a question of finding a balance between that and not getting too attached to things. I suspect that that balance may be a personal, individual choice.
    2. Hedgehog & Fox One point you make a number of times in the book is that our understanding of the mind and the brain, our processes, what’s actually going on beneath the surface, our understanding of that has changed radically. Not just from two-and-a-half thousand years ago but in the last ten years, five years. How recuperable do you think therefore the kind of wisdom traditions are within a framework where we have a very different understanding from they did of how the human mind works? Antonia Macaro Yes, that’s quite a difficult one because especially the Stoics put a lot of emphasis on only thing we can control being our moral choice. Hedgehog & Fox And rationality is well to the fore, isn’t it? Antonia Macaro Yes, yes, exactly. So I certainly think they were wrong in that, in the sense that we are told that a lot of our functioning is unconscious and that we don’t even know our motivation very well; sometimes we act thinking that we are acting for one reason and in fact we’re acting for a completely different reason. There are a lot of studies in social psychology that show that. So I certainly think we shouldn’t overemphasize those abilities because we need to be aware of the fact that we don’t really understand ourselves. But on the other hand, they are good aims to have, to be rational. That is a very good aim to have. It’s true that we have probably more choice on our reactions to things and the way we act than on actual things that happen in the world. So in that sense I think they were correct. So it’s good to remind ourselves of that, because we do get very worked up about how things go for us in the world and a lot of the time it’s good to remind ourselves that we don’t have any control on on that, so focusing more on our reaction. I think it’s good as an inspiration and as a kind of ideal, but not in that extreme way that they were they were saying.
    3. Hedgehog & Fox In your final chapter you distil some of the wisdom which you think is applicable in a secular context. How did you go about doing that? Were the things you ended up with things which you have personally found useful in those traditions? Antonia Macaro Yes, I think I just approached it in that way, just looking at things that I found useful. We haven’t talked yet about the ideal of equanimity, which was quite important for both of them, although it was tempered by compassion, there is a bit of a tension between equanimity and compassion in both traditions. But equanimity is an important ideal and I personally don’t think that pure equanimity is a realistic goal. I’m not entirely sure it would be a really good goal, because it would mean in a way that we’re too detached from certain things that give life meaning, like personal relationships and other things. But I think we can certainly do with a bit more equanimity, so some of the things that I have there are things that maybe aim to put things in perspective. That’s an important thing to do, although I am a bit suspicious of chasing states of mind because they come and go. And I don’t think that they’re the things that really matter. But yes, we could be a little bit more detached and a little bit more tranquil and that would be a good thing. So some of the things I have in there probably have that aim. And there are some thoughts about how to deal with with people, which again is an interesting one because for the Stoics, for example, you had to be realistic about what you were going to encounter in your daily life and people can be very annoying. So there are quite a lot of really nice quotations about that. But at the same time there is the thing of being compassionate and understanding that everybody has flaws and trying to understand that people act badly because they don’t understand things and that’s the same for us and it’s the same for everybody else. So there’s a lot about trying to be compassionate.
    4. Hedgehog & Fox Because certain of the ancient writers you quote, if you were to apply them strictly, the level of radical detachment would be quite hard core. You quote Bernard Williams calling Stoicism ‘lethal high-mindedness’. It would be quite a strong prescription, wouldn’t it, hardcore Stoicism? Antonia Macaro I think a lot of people who consider themselves Stoics probably aren’t quite. Obviously people do adapt it in modern life, but I’m not sure that they’d even be considered Stoics. I can’t remember the exact quotation but Epictetus does say that a lot of his students, a lot of the people studying Stoicism, if they really examined themselves would find that they are maybe Aristotelians or Epicureans, but not really Stoics, because Stoicism is very, very extreme and I don’t think that many people really live like that. I personally don’t think that it would be necessarily a good thing to be that extreme, so it’s always a modified Stoicism that I advocate. Hedgehog & Fox And maybe even the Stoics were modified Stoics. I did smile when Epictetus was suggesting you shouldn’t have more than you need to eat, and you shouldn’t have a bigger house than you need, and you shouldn’t have more slaves than you need! And then you’ve got Seneca, a very wealthy man wrestling and not quite resolving his problems [with wealth], and I thought maybe there’s a little difficulty there even with the early practitioners of Stoicism applying it rigidly. Antonia Macaro Yes, I definitely think that’s true; maybe some more than others. I don’t really know what Epictetus was like in his daily life. He’s certainly quite extreme in what he says. In fact, if you read Seneca’s letters, there are some things that are more Epicurean than than Stoic. So he was a much more rounded individual and had, as you say, his fair share of dilemmas about how attached he should be to wealth and material comforts.
    5. Hedgehog & Fox Tell me about your title, More than Happiness, because the casual observer might think you are aiming at some greater state of bliss. But tell me what in fact you’re pointing to there. Antonia Macaro It’s about what I just said really, that when we look at the wisdom of these traditions, we shouldn’t really aim just at happiness, we shouldn’t focus on happiness all the time anyway. Hedgehog & Fox Because we miss it because it’s a byproduct rather than a target. Antonia Macaro Yes, for a start it’s counterproductive; it raises our expectations about what things should be like in the world and they’re not going to be like that. So the higher our expectations, in a way, the less happy we’ll be, so it’s not a good thing to aim for. And also it’s quite self-centred, just thinking about being happier; we should think more about how we are in the world and how we act towards other people and so on.
    6. Both traditions say that the real joy that we can get isn’t from things going well in the world, because that’s quite unreliable; it’s from things like thinking clearly about things, accepting things the way they really are, and acting ethically. Doing the right things. That is the way to be happier, not relying on the world giving us what we want, because a lot of the time it doesn’t.
    1. Meaning of life?Love and meaningful work.What makes work meaningful?When you apply your unique abilities to something you regard as worthwhile – especially if you know that no one else would have done it in quite the same way.Wait. Can I have 40 more years to work on my answer?
    2. What do you do in your spare time?Hang out with family, walk and hike, play piano, read speculative fiction and popular non-fiction (esp. history, psychology, technology, and cosmology).
  17. Feb 2019
    1. The first step in understanding what is most important to customers is to develop a task list (task ecosystem) that describes the key things that matter in a specific environment

      thIS IS A GOOD POINT!

  18. Jan 2019
    1. organizations and businesses

      i did find a 2016 Seattle Times pdf that identifies important information about Washington Tribes, including the good things that are happening -- which could be places to start: What's there now? It also provides ideas on how to connect with the people and places. http://nie.seattletimes.com/wp-content/uploads/sites/12/2016/10/WIGA_10-16-16_8PageTab_final.pdf

    1. The We Defense argues that there are two kinds of rhetoric, good and bad. The good kind is used in good causes, the bad kind in bad causes. Our kind is the good kind; the bad kindjs used by our opponents

      Is Lanham suggesting that the "Weak Defense" argues that rhetoricians have an "us" vs. "them" mentality?

  19. Nov 2018
    1. Adult Graduate Student VoicesGood and Bad Learning Experiences

      This article reviews a longitudinal study of graduate students in a Master's degree program that collected both good and bad learning experiences. The comments collect from the participants resulted in themes that were repeated throughout all three years of comments. The comments were compiled to and reviewed to determine adult student perspectives on the learning process. The authors noted that their is a need to balance suppor of students with challenging students. This is a ground work of student perspective and requires further investigation to implement appropriate changes and then review student perspective after the changes.

      Rating: 7/10

  20. Oct 2018
    1. make great suggestions for how the authors could improve the articulation or organization of their work

      good review: 1) make great suggestions for how the authors could improve the articulation or organization of their work

    2. The Good Review will raise smart and tough questions which the authors can then address in their revisions, or it might raise fresh considerations or new aspects of a design space that the authors hadn't fully fleshed out.

      good review: 1) raise smart and tough questions which the authors can address in their revisions 2) raise fresh considerations or new aspects of a design space that the authors hadn't fully fleshed out

    3. how the author’s arguments, results, and demonstrations fit into closely related work as well as the field as a whole.

      argument + results + demonstration + related word + the field, all of them should tight together!