61 Matching Annotations
  1. Sep 2024
  2. Jul 2024
  3. Sep 2023
  4. Apr 2022
  5. Nov 2021
    1. con: doesn't let you define after_transaction callbacks anywhere like ar_after_transaction does (outside of the after_commit, etc. callbacks which only happen at certain points in the model's life cycle)
  6. Sep 2021
  7. Jun 2021
    1. That’s not the only way of writing end-to-end tests in Rails. For example, you can use Cypress JS framework and IDE. The only reason stopping me from trying this approach is the lack of multiple sessions support, which is required for testing real-time applications (i.e., those with AnyCable 😉).
  8. Mar 2021
  9. Feb 2021
    1. STATSD_SAMPLE_RATE: (default: 1.0)

      It's recommended to configure this library by setting environment variables.

      The thing I don't like about configuration via environment variables is that everything is limited/reduced to the string type. You can't even use simple numeric types, let alone nice rich value objects like you could if configuration were done in the native language (Ruby).

      If you try to, you get:

      ENV['STATSD_SAMPLE_RATE'] = 1
      config/initializers/statsd.rb:8:in `[]=': no implicit conversion of Integer into String (TypeError)
      
    1. The downside is that if you introduce multiple layers of scrolling (one for the browser, one for the iframe) your users will get frustrated. Like adzm said, you don't want to use an iframe for primary navigation
  10. Jan 2021
    1. However, one of the drawbacks of this property is that the line intersects descenders of the characters.

      I think it actually looks great/better because it intersects descenders of the characters.

    1. The downside is the installation files are bigger than the traditional Debian package manager (DEB) files. They also use more hard drive real estate. With snaps, every application that needs a particular resource installs its own copy. This isn’t the most efficient use of hard drive space. Although hard drives are getting bigger and cheaper, traditionalists still balk at the extravagance of each application running in its own mini-container. Launching applications is slower, too.
    1. I had one issue with snap and that involved VLC but I can see how it would lead to issues with other packages. I hav the libdvdcss2 package installed to allow me to watch DVDs on my laptop. The snap version of VLC was not aware of that and wouldn’t play the DVD. I had to uninstall the snap and install the .deb package. Just one example, but I know there will be others. Due to the quasi-legal nature of libdvdcss2, I doubt it’ll ever be bundled in a VLC snap package.
    2. Moreover, due to the confinement, snap does not allow Chromium to download by default in another folder than /home : “it won’t let the application see files on the host system (save for a few exceptions, like $HOME)”. Is it a definitive point for snap ? If yes, it means that when all apps will be converted to snap without possible backport to debs (if installed without --classic and perhaps excepted Nautilus), it will be impossible to save files issued from them elsewhere than in /home ? Absolutely all my datas (documents, music, videos, photos) are on other partitions, this would be prohibitive…
    3. If folks want to get together and create a snap-free remix, you are welcome to do so. Ubuntu thrives on such contribution and leadership by community members. Do be aware that you will be retreading territory that Ubuntu developers trod in 2010-14, and that you will encounter some of the same issues that led them to embrace snap-based solutions. Perhaps your solutions will be different. .debs are not perfect, snaps are not perfect. Each have advantages and disadvantages. Ubuntu tries to use the strengths of both.
    1. Sadly, unlike Apt, it isn’t possible to uninstall all of these packages in bulk. You must manually remove each one of these packages by hand.
  11. Nov 2020
    1. SVG has the advantage that integrates very well with Svelte, since it’s an XML and the nodes can be managed as if they were HTML. On the other hand, Canvas is more efficient, but it has to be generated entirely with JavaScript.
    1. Combining with minimizing is not possible as minimizers usually only emit a single line.
    2. This prevents you from debugging execution on statement level and from settings breakpoints on columns of a line.
  12. Sep 2020
    1. Also, Rollup, which I use in the article as a bundler is pretty slow. Why? Because it needs to re-compile the whole shebang every time you change a file. It produces very small and efficient bundles though.
  13. Jun 2020
    1. But with Disqus, these advantages are not valid anymore, because your blog text and its comments are hosted separately on different servers.
    1. most com-monly, systems such as PGP are used, which use long-livedencryption keys (subject to compromise) for confidentiality
  14. May 2020
    1. Note that this will pull the container if it exists. Pulling even the small alpine is quite an overhead just to get that information. Not mentioning the several GB-Image one often has in CI-Environments.
    1. using SSH is likely the best approach because personal access tokens have account level access

      personal access tokens have account level access ... which is more access (possibly access to 10s of unrelated projects or even groups) than we'd like to give to our deploy script!

    1. JAVA based

      They list this as if it is a selling point (pro), but to some of us with different backgrounds/biases, this may be the opposite: something to stay away from.

    1. Thank you for letting me know about this move by Google. Definitely something to watch. While I agree with Google's position from an end user experience perspective, it unfortunately puts Firefox at a further disadvantage since Mozilla does not have its own language translation initiatives.
  15. Apr 2020
    1. But where is the helper method defined? What’s its visibility? Can I put it in a module? Can I use inheritance? Who can call it? Can I call super from the extracted method? If so, where does super go?
    1. The downside of this is that the Agile Keychain had to keep the titles and the web locations unencrypted. In the OPVault format, we found a way to work with all data encrypted.
    1. One mistake that we made when creating the import/export experience for Blogger was relying on one HTTP transaction for an import or an export. HTTP connections become fragile when the size of the data that you're transferring becomes large. Any interruption in that connection voids the action and can lead to incomplete exports or missing data upon import. These are extremely frustrating scenarios for users and, unfortunately, much more prevalent for power users with lots of blog data.
    1. This situation usually arises from external constraints not design choices such as my example with Sequel. My point is that assigning a value to a constant is allowed by Ruby in certain scopes and not others. It used to be up to the developer to choose wisely when to perform the assignment. Ruby changed on this. Not for everyone's good.
  16. Mar 2020
    1. stored in a first-party cookie, which means that users will be requested to give their consent again after deleting browser cookies or switching to another device or browser
    1. Probably the greatest disadvantage is the issue of security.  Because  NFS is based on RPC, remote procedure calls, it is inherently insecure  and should only be used on a trusted network behind a firewall.
    1. Also, if a host is having network problems, it may stop logging, making it difficult for the administrator to determine what chain of events led up to the current state. At the very least, the administrator will not be able to access these logs from that host.
    1. Another problem with simple login-based authentication is that there is no way to control how much access an individual third-party application gets: it's an all-or-nothing deal based on whether you are willing to give the program your password.
    2. When third-party software runs amok with your login information for a Web application, the only way to stop it in some cases is to change your password
  17. Jan 2020
  18. Dec 2019
    1. Using Todo.txt for Android requires a Dropbox account in order to sync your file across devices.

      Shouldn't be tied to a specific, proprietary service

    1. The only real trouble with rsync (underlying), is that it can still take considerable time with large file systems and remote systems over slow links. You might want to think about snapshots as well (not just the rsnapshot ones, but file system ones).
  19. Nov 2019
    1. However, in this case you would lose the possibility to render something in between. You are strictly coupled to the higher-order component's render method. If you need to add something in between of the currency components, you would have to do it in the higher-order component. It would be quite similar as you have done it previously by rendering the currency components straight away in the Amount component. If using a render prop component instead, you would be flexible in your composition.