160 Matching Annotations
  1. Feb 2021
    1. {a: 1, b: 2, c: 3, d: 4} => {a:, b:, **rest} # a == 1, b == 2, rest == {:c=>3, :d=>4}

      equivalent in javascript:

      {a, b, ...rest} = {a: 1, b: 2, c: 3, d: 4}

      Not a bad replacement for that! I still find javascript's syntax a little more easily readable and natural, but given that we can't use the same syntax (probably because it would be incompatible with existing syntax rules that we can't break for compatibility reasons, unfortunately), this is a pretty good compromise/solution that they've come up with.

    1. @adisos if reform-rails will not match, I suggest to use: https://github.com/orgsync/active_interaction I've switched to it after reform-rails as it was not fully detached from the activerecord, code is a bit hacky and complex to modify, and in overall reform not so flexible as active_interaction. It has multiple params as well: https://github.com/orgsync/active_interaction/blob/master/spec/active_interaction/modules/input_processor_spec.rb#L41

      I'm not sure what he meant by:

      fully detached from the activerecord I didn't think it was tied to ActiveRecord.

      But I definitely agree with:

      code is a bit hacky and complex to modify

    1. Set your models free from the accepts_nested_attributes_for helper. Action Form provides an object-oriented approach to represent your forms by building a form object, rather than relying on Active Record internals for doing this.

      It seems that the primary/only goal/purpose was to provide a better alternative to ActiveRecord's accepts_nested_attributes_for.

      Unfortunately, this appears to be abandoned.

    1. Set your models free from the accepts_nested_attributes_for helper. Active Form provides an object-oriented approach to represent your forms by building a form object, rather than relying on Active Record internals for doing this.
  2. Jan 2021
    1. +1 For Devuan here, running it on my home and work machines, and on my son's laptop, despite his IT teacher telling him to install a proper operating system like Windows 10....
  3. Dec 2020
    1. we have a uber alternative option to search-out equal thought so be free and check the alternative app like uber futures.
  4. Nov 2020
    1. There are actually 3 other libraries that implements material in svelte, i hope this to become the community favorite because using MDC underneath it implements correctly Material guidelines.
    2. For use$ since svelte is never going to support actions for components, i designed something that reminds React hooks that will in some ways replace this feature.

      Isn't that what use$ is trying to do already? How is that "something that reminds React hooks" any different? Will be interested to see...

    3. @monkeythedev I am curious how do you "organize" your work - You forked https://github.com/hperrin/svelte-material-ui and https://github.com/hperrin/svelte-material-ui is not very active. Do you plan an independent project ? I hope the original author would return at some times, if not, i'll see
    1. Converting Angular components into Svelte is largely a mechanical process. For the most part, each Angular template feature has a direct corollary in Svelte. Some things are simpler and some are more complex but overall it's pretty easy to do.
    1. Thomas Edison had done in his 1872 patent for an electric print-wheel device which later became the basis for teletype machines. Lucien Stephen Crandall, the inventor of the second type- writer to reach the American market (in 1879) arranged the type on a cylindrical sleeve: the sleeve was made to revolve to the required letter and come down onto the printing-point, locking in place for correct alignment. (So much for the "revolutionary" character of the IBM 72/82's "golf ball" design.

      competing visions for the typewriter



    1. ut what parents try to do can be greatly affected by public policies and changes in economic and social conditions.

      public policies, economic and social conditions can also set values in the family.

    1. http://jonudell.info/h/tag-rename-02.mp4

      Most people would embed a YouTube video. Nice to see no dependency on 3rd-party service here.

  5. Oct 2020
    1. eeressive hypothesis

      The repressive Hypothesis. Based on suppositions: Historically sex is repressed through a 17th century regime?Mechanism of repression is through the exercise of power through prohibition censorship, denial. *Critical discourse is lacking to question the power.

      He seeks to refute this.



    1. The notion of critique that underlies our concept of alternative media is the Marxian one as laid out in theIntroductionto the Critique of Hegel’s Philosophy of Right

      References a Marxian critical of using capitalistic means for achieving radical ends.

    2. dialectical understanding

      Here, authors refer to Hume framework to contrast opposing idea of Capitalist Mass Media System with Ideal Alternative Media System, highlighted with 1 and 2, below. 1--- structure of the media products (differ from mainstream in that their products aren't commodities to be marketed and sold and that they content is critical of the mainstream ideology) 2---actors (alt media has no division btwn consumer and producer, they can be one in the same. )

      the above are discussed in terms of ideal-typical alternative media.

      --- idea types again

      • Producer
      • Recipient
      • Economic product
      • Media content
      • Media technologies
      • Media institutions
    3. oppositionalmedia that provide critical content, but make use of professional organization structures.

      It doesn't have to be alternative media to present points of view that criticize capitalism and the mainstream. Sites examples (observation) of professionally produced media

    4. participatory production processes can be used for producing conservative or even far right content

      Here the author introduces the perspective that alt media can be used by conservative groups. and supports this by citing other others. as evidence.

    5. Participatory production processes need not necessarily be emancipatory, but can also be used for advancing repressivepurposes.

      Alt media can be used for other things than freeing people from oppression. It can be used for repressing people, too. .... follows assertion with evidence from other thinkers.

    6. it is often argued that with the internet new possibilities for a cheap, participatorymedia production

      Provides another point of view that the internet will transform alt media. and presents evidence by citing theorists that hold this opinion.

    7. emancipatory societal effects of participatory production

      Participatory media provides a democratic venue accessible to people who want to work at changing and developing society from present constructs.

    8. Rodriguez (2003) or Dagron (2004)stress that reachingbroad audiences is not an aim for alternative media projects: ‘‘Anyone asserting that alternative media are fine but their cov-erage is to limited geographically or in terms of users does not understand what alternative media really are”

      the goals of alternative media aren't about making a large impact for the masses.

    9. production processes are at the core of alternative media projects: ‘‘In my own view alternativecommunication is in essence participatory communication, and the alternative spirit remains as long as the participatorycomponent is not minimized and excluded”

      Theory that central to alternative media is the way it is collectively produced

    10. Many current approaches on alternativemedia pick up this vision of a democratic media system. So for example Nick Couldr

      Here sites Nick Couldry - ... alternatives power is about its accessibility to anyone who wants to participate.



  6. Sep 2020
    1. For the past couple of years in particular however, I’ve stopped using Webpack to develop them, opting instead to use Rollup as my primary bundler for apps.
  7. Aug 2020
    1. I went against the grain, applying other tools that people have written over the years to directly perform the job at hand which do not involve entering a program for awk or a shell to run, with answers like https://unix.stackexchange.com/a/574309/5132 and https://unix.stackexchange.com/a/578242/5132 . Others have done similar. https://unix.stackexchange.com/a/584274/5132 and https://unix.stackexchange.com/a/569600/5132 are (for examples) answers that show alternative tools to answers employing shell script and (yet again) awk programs, namely John A. Kunze's jot and rs (reshape), which have been around since 4.2BSD for goodness' sake!
  8. Jul 2020
  9. Jun 2020
    1. Using OpenBTS, which we will be including in FreedomBox soon, and with cheap additional hardware, a FreedomBox can talk directly to GSM handsets, to provide alternatives to commercial mobile services.
  10. May 2020
    1. Mei, X., Lee, H.-C., Diao, K., Huang, M., Lin, B., Liu, C., Xie, Z., Ma, Y., Robson, P. M., Chung, M., Bernheim, A., Mani, V., Calcagno, C., Li, K., Li, S., Shan, H., Lv, J., Zhao, T., Xia, J., … Yang, Y. (2020). Artificial intelligence for rapid identification of the coronavirus disease 2019 (COVID-19). MedRxiv, 2020.04.12.20062661. https://doi.org/10.1101/2020.04.12.20062661

    1. Not merge the values of the keys.

      This is one of the biggest limatations of <<: *anchor: it overwrites values of keys. It's too heavy-handed and therefore of limited use. You can only use it if you don't mind keys getting overwritten (such as if you are going to overwrite the keys below the <<:.).

    2. GitLab will perform a reverse deep merge based on the keys
    3. It’s an alternative to using YAML anchors and is a little more flexible and readable
    1. examples, listing both the conventional systems and their counterpart systems: Conventional schooling Home schooling Encyclopedia Britannica Wikipedia Microsoft Office Open Office Taxicabs Uber Hotel chains Airbnb Big-box stores Ebay National currency Cryptocurrency
  11. Apr 2020
    1. Take a moment to consider the alternative. No, not the IT department's fantasy world, that never-gonna-happen scenario where you create a strong, unique password for every account, memorize each one, and refresh them every few months. We both know it's not like that. The reality is that in your attempts to handle all those passwords yourself, you will commit the cardinal sin of reusing some. That is actually far more risky than using a password manager. If a single site that uses this password falls, every account that uses it is compromised.
    1. there's no reasonable way to communicate effectively with the less technically minded without acquiescing to the nontechnical misuse of the term "hacker"
    2. The more easily relabeled of the two uses of the term "hacker" is the malicious security cracker: it is not only the more recent phenomenon to acquire that label, but also the one whose meaning is most easily evoked by an alternative term. This is why, when you read an article of mine that talks about malicious security crackers, I use the term "malicious security cracker"
    1. Not everybody uses rubygems as their package management system. If this sounds odd to you, read https://gist.github.com/54177.
  12. Mar 2020
    1. 27$/year

      They spell it "27$/year" instead of "$27/year". I love it that they bucked the useless convention of putting $ sign first and did it the way that makes more sense. We've all had that thought, why do we say it "27 dollars" but write it, "dollars 27". It just doesn't make sense.

    1. I usually write in Google's online word processor Google Docs, even when noting the company's shortcomings. This article is different: it was drafted in a similar but more private service called Graphite Docs.
    1. If these asset owners regarded the “robots” as having the same status as guide dogs, blind people or default human citizens, they would undoubtedly stop imposing CAPTCHA tests and just offer APIs with reasonable limits applied.
    1. Q. Why does Rubinius not support frozen and tainted? A. Rubinius has better features; frozen and tainted are considered harmful. To elaborate... Both frozen and tainted depend on strewing checks throughout the source code. As a classic weak-link system, only one of those checks needs to be misplaced for the guarantees offered by either to fail. Since the number of checks is high, and as new code is written new checks need to be considered, the features inherently constitute unbounded complexity and unbounded risk.
    1. You could try AoE (ATA over Ethernet, very fast since it's Layer 2 protocol). SSHfs is yet another option (fast setup and encrypted by default). Or iSCSI (wich is tricky to setup).
    1. . However, the data did not support a meresimilarity effect: Our results were robust to controlling for partic-ipants’ own moral judgments, such that participants who made adeontological judgment (the majority) strongly preferred a deon-tological agent, whereas participants who made a consequentialistjudgment (the minority) showed no preference between the two

      But this is a lack of a result in the context of a critical underlying assumption. Yes, the results were 'robust', but could we really be statistically confident that this was not driving the outcome? How tight are the error bounds?

    1. This might not be the most user-friendly solution. But it’s certainly creative and something different from your typical captcha systems. Pennyauth aims to verify your users by asking them to pay $0.01 per login. Payments are processed using QUID — and users can submit payment in as little time as it takes for them to grab their credit card.
    1. If you ever need to work with external translators, it’s a bit of a pain sending both your YML files and a bunch of views like index.en.html.erb. For one thing, you need some code to find all those files and send them, and put them back after receiving the translations. For another, your translator must respect the markup and code of the template, and know not to translate them. And if you want to use tools like WebTranslateIt, it’s easier to stick to YML.

      Good point. Better to store translations in your I18n backend in the same place as your subject translations, etc. (which by default is in YAML file).

  13. Jan 2020
    1. Testflight and Diawi Alternative

      Install On Air works for both iOS as well as Android apps. It operates as a testflight alternative as well as diawi alternative. With time it is turning to be a must go to application for effortlessly testing mobile apps. The development, ad-hoc and in-house builds can be installed easily with a single tap on this user-friendly app.

  14. Dec 2019
    1. ReST

      "ReST" instead of "REST". I like how this way matches the case of the actual phrase that it's standing in for "Representational State Transfer", so you can better tell which letters are the beginning of words (all but "e").

  15. Nov 2019
    1. REST and GraphQL are wonderful tools to create an API that is meant to be consumed by third parties. Facebook's API, for example, is consumed by ~200k third parties. It is no surprise that Facebook is using (and invented) GraphQL; a GraphQL API enables third parties to extensively access Facebook's social graph enabling them to build all kinds of applications. For an API with that many consumers, GraphQL is the fitting tool. But, to create an internal API (an API developed and consumed by code written by the same organization), RPC offers a simpler and more powerful alternative. Large companies, such as Netflix, Google and Facebook, are starting to replace REST/GraphQL with RPC for their internal APIs. Most notably with gRPC which is getting popular in the industry.
  16. Sep 2019
  17. Dec 2018
  18. Nov 2018
  19. May 2018
  20. Mar 2018
    1. Millennial students seem to prefer badging and certificate programs to traditional bachelor’s degrees

      Students are searching for alternative credits which add to their degrees or perhaps help in some way when they graduate.

  21. Sep 2017
  22. Aug 2017
  23. Jul 2017