44 Matching Annotations
  1. Jun 2020
    1. State management is also easier. Instead of importing hooks and using setters, you just define a property within the script tags. You then change the value by re-assigning it (not mutating the original value).
    2. But it’s impossible to argue with the value binding. You don’t have to worry about defining the value property and an onChange event for an input box in Svelte, bind:value does it all
    1. e present a protocol for secure online com-munication, called “off-the-record messaging”, which hasproperties better-suited for casual conversation than do sys-tems like PGP or S/MIME.
  2. May 2020
    1. See this Hacker News comment thread for more discussion of the issues that might arise and some pro/con comparisons of using Alpine-based images.
    1. After the initial backup, future backups are differential, both in the files that are transferred and the files that are stored on your behalf.

      I guess git can help with the differential part of the backup, but how exactly does it? In order for it to help with transfer from the subject server, wouldn't it have to keep the git repo on that server? Otherwise wouldn't it have to transfer everything to the remote cloud git repo so that git can do the diff there?

      Makes me wonder if simple rsync wouldn't be more efficient than all this.

  3. Apr 2020
    1. The “universal” label that has been slapped on to it is superfluous, but it does have its merits. Now that we have a commonly known term to refer to environment agnostic JavaScript code, it allows library authors to list it as a feature and be fashionable doing it. I’m happy with the term “universal” being fashionable because it makes developers think about their dependencies on the runtime environment. In the end this will help the JavaScript ecosystem mature and allow libraries to be used everywhere.
    1. A language that features polymorphism allows developers to program in the general rather than program in the specific. $(document).ready(function() { recordAdModuleData(2964, "impressions","Dictionary Ad"); });
    2. polymorphism cuts down the work of the developer because he can now create a sort of general class with all the attributes and behaviors that he envisions for it. When the time comes for the developer to create more specific subclasses with certain unique attributes and behaviors, the developer can simply alter code in the specific portions where the behaviors differ. All other portions of the code can be left as is.
    1. minitest doesn't reinvent anything that ruby already provides, like: classes, modules, inheritance, methods. This means you only have to learn ruby to use minitest and all of your regular OO practices like extract-method refactorings still apply.
    1. Tired of wasteful printing? Teachers save valuable time by using Kami, enabling them to enhance workflow and collaborate with their students in real time. 
  4. Mar 2020
    1. This method is easier to implement and it’s very high-performing in terms of load speed
    2. Directly blocking the vendor scripts (using another prior blocking method), then executing them only after consent has been collected. This method requires more implementation work and it’s a bit slower in terms of execution time, but it allows personalized ads to be served from the first page view (where consent hasn’t been collected yet) and gives you more direct and solid control in regards to ensuring compliance.

      pros:

      • allows personalized ads to be served from the first page view (where consent hasn’t been collected yet)
      • gives you more direct and solid control in regards to ensuring compliance.
    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. It let sets of people work with the same copy of a file, instead of (for example) having to copy the file, and hope their copy was up to date.
  5. Dec 2019
    1. The main benefit I can see to having .bashrc sourced when running a (non-interactive) remote command is that shell functions can be run. However, most of the commands in a typical .bashrc are only relevant in an interactive shell
    2. The user's usual setup (command aliases, environment variables, umask, etc.) are in effect when remote commands are run. The common practice of setting an account's shell to /bin/false to disable it will prevent the owner from running any commands, should authentication still accidentally succeed for some reason.
    1. Unlike similar tools that are scheduled to take backups at a fixed time of the day, Timeshift is designed to run once every hour and take snapshots only when a snapshot is due. This is more suitable for desktop users who keep their laptops and desktops switched on for few hours daily. Scheduling snapshots at a fixed time on such users will result in missed backups since the system may not be running when the snapshot is scheduled to run. By running once every hour and creating snapshots when due, Timeshift ensures that backups are not missed.
    1. One of the most important features of rsync is the method it uses to synchronize preexisting files that have changed in the source directory. Rather than copying the entire file from the source, it uses checksums to compare blocks of the source and target files. If all of the blocks in the two files are the same, no data is transferred. If the data differs, only the block that has changed on the source is transferred to the target.
    1. While there are so many tools to backup your systems, I find this method super easy and convenient, at least to me. Also, this method is way better than disk cloning with dd command. Because It doesn’t matter if your hard drive is different size, or use different filesystem.
    1. It doesn't use a database (unlike Keepass) and thus doesn't open all passwords at once. Just one at a time. Since it's just a directory of encrypted files, you can access your passwords with any PGP-compatible tool.
  6. Nov 2019
    1. Middleware works a lot like a decorator. It doesn't alter the original API of the service, but it can augment it with new features and concerns. This has the inherent advantage of allowing all thidparty code to have an influence over the behaviour, state, and UI of a component.
    1. It is used to expose internal data from within a render prop component for making it accessible to other components within the render prop component's composition.
  7. Jun 2019
  8. Mar 2019
    1. Theimpact on congestiondeserves further study. A significant portion of traffic in some cities, such as San Francisco and Los Angeles, is attributable to drivers searching for parking (Winston, 2013). Ridesharing means that people who use ridesharing instead of driving no longer need to search for these spaces, which could reduce congestion.Furthermore, there may be a reduction in congestion costs associated with taxis finding customers (to the extent that ridesharing substitutes for traditional taxi services).The overall impact on congestion is notclear, however,because more consumers will be making use of these services.Some consumers, for example, may switch from mass transit to ridesharing if they are perceived as substitutes. This shift could actually increase congestion

      shows how most traffic is because of people trying to find parking, while if using a ride sharing service there is no need for parking therefore congestion decreases.

    2. Ridesharing platforms canhave several economic benefits.7These platformsincrease the transportation options available to consumers and businessesand are therefore likely to significantly increase consumer welfare. Lyft andUbergivethe consumer multiple different types of rides to choose from.For example, riderscantypicallyrequest a normal car and ride from a partner driver, carpooling at a cheaper price,a ride in a large car,ora luxury car.8These ridesharing platforms may alsoencourage higher utilization of the existing vehicle stock. One study,performed in five cities, found that Uber drivers had higher capacity utilization rates than taxis, likely due to Uber’s more efficient ordering and pricing methods, its larger scale, as well as inefficiencies of taxi regulation (Cramer and Krueger, 2016).Some cities have allocateddedicated parking spots throughout the city to such ridesharing under the assumption that they may generate social benefits (Shaheen, 2010).

      Advantages for ride sharing platforms for the economy with case studies and primary research.

    3. 4trust in exchange, which makes use of buyerand seller ratings. They afford sellers (i.e., drivers) flexibility in when they choose to work.6Riders do not spend time paying for a ride because payment is done automatically with a credit cardwhen the ride is over. In addition, many ridesharing platforms have a transparent way of adjusting prices to balance supply and demandand thus promote economic efficiency(Hall and Nosko, 2015)

      Advantages on how technology makes the proces easier and more efficient

    4. hese platforms take advantage of GPS to arrange for the ride and help determine a driver’s best route. They also provide other benefits for riders and drivers, including measures of rider and driver quality to foster trust(Luca, 2016), and an efficient payment system, frequently using a credit card that is entered into the platform’s data base. The platforms also can help balance demand and supply by adjusting prices in real time to accommodate shortfalls in the supply of drivers or surges in demand.

      HUge advantages for consumers and participants

    5. Typically, a customer uses an app on her smartphone to request a ride at a particular timeand place

      This is one of the main reasesons for the success of the sharing economy, where you get a car at the place you want after a touch of a button.

    6. Ridesharing platforms connect drivers and vehicles with consumers who want ridesat an agreed price.

      thats one of the main advantages to consumers, on the other hand if they take a normal cab they have no clue what they are going to pay

  9. Jun 2017
    1. Replication is important for two primary reasons:
      • HA with fail-over mechanism.
      • scale out your search volume/throughput as searches can happen based on your replicas in parallel.
    2. Sharding is important for two primary reasons:
      • horizontal scaling of a single index
      • parallelize seek operations on multiple shards when index gets too big
  10. Dec 2016
    1. Smalltalk doesn’t have to be pragmatic, because it’s better than its imitators and the things that make it different are also the things that give it an advantage.
  11. Jan 2016
    1. Below I list a few advantages and drawbacks of anonymity where I assume that a drawback of anonymous review is an advantage of identified review and vice versa. Drawbacks Reviewers do not get credit for their work. They cannot, for example, reference particular reviews in their CVs as they can with publications. It is relatively “easy” for a reviewer to provide unnecessarily blunt or harsh critique. It is difficult to guess if the reviewer has any conflict of interest with the authors by being, for example, a competing researcher interested in stalling the paper’s publication. Advantages Reviewers do not have to fear “payback” for an unfavourable review that is perceived as unfair by the authors of the work. Some (perhaps especially “high-profile” senior faculty members) reviewers might find it difficult to find the time to provide as thorough a review as they would ideally like to, yet would still like to contribute and can perhaps provide valuable experienced insight. They can do so without putting their reputation on the line.
    1. With most journals, if I submit a paper that is rejected, that information is private and I can re-submit elsewhere. In open review, with a negative review one can publicly lose face as well as lose the possibility of re-submitting the paper. Won’t this be a significant disincentive to submit? This is precisely what we are trying to change. Currently, scientists can submit a paper numerous times, receive numerous negative reviews and ultimately publish their paper somewhere else after having “passed” peer review. If scientists prefer this system then science is in a dangerous place. By choosing this model, we as scientists are basically saying we prefer nice neat stories that no one will criticize. This is silly though because science, more often than not, is not neat and perfect. The Winnower believes that transparency in publishing is of the utmost importance. Going from a closed anonymous system to an open system will be hard for many scientists but I believe that it is the right thing to do if we care about the truth.
  12. Nov 2015
    1. Manhas,asitwere,becomea kind of prosthetic God. When he puts on all his auxiliary organs he is truly magnificent.

      So... our inventions (technology) and how we implement them throughout society can make us god like? Makes me think of how we acquire different skill sets so that we can adapt to different tasks or work responsibilities (wearing different hats - if anyone has heard that metaphor)