420 Matching Annotations
  1. Mar 2024
    1. Empower doesn't allow you to import legacy data from other sources (like Mint) or input manual transactions such as cash. The latter isn't important to me, but the former certainly is. I have 16 years of transaction data in Mint that I want to preserve.
    1. You can’t split anything, so that charge at the gas station is all gas, even if you spent a little in the food mart.
  2. Feb 2024
    1. As you've seen, there is no DM system, but you can invite users to chat directly. More generally, consider commenting on the question itself and @-ing the user who made the edit(s). To my understanding, this should work, and it may allow for a quick explanation that doesn't require going in to chat.

      I think commenting in the context of question is better than a DM, though I don't always like making my question "messy" by having a bunch of comments under it... but maybe that is the best way.

    1. one of the core ways that we're weird is that we think we have a self

      for - definition - Weird - stats - Weird countries - greatest sense of self - inspiration - introduce - Sarah Stein Lubrano - Rachell - Indyweb - Indranet

      definition - Weird - Western Educated Industrialized Rich Democratic

      inspiration - introduce Rachel and Sarah to Indyweb / Indranet - As soon as I heard Rachel and Sarah talk about the prominent and unique WEIRD feature of sense of self, - I immediately thought that we must introduce them to our work on the Indyweb / |ndranet as our system is designed based on the epistemology that - we are not a thing - we are a process - we are evolution in realtime action - the very use of the Indyweb / Indranet reinforces the reality that we are a process and not a fixed entity - so deconstructs the social construct of the self

  3. Jan 2024
    1. Some frameworks call this “template inheritance”. In this example, we might say that the application layout “inherits from” or “extends” the base layout. In Rails, this is known as nested layouts, and it is a bit awkward to use. The standard Rails practice for nested layouts is complicated and involves these considerations
    2. But what if you want to reuse one layout within another?
    1. his is a killer-feature which I miss since I switched from Jira to GitLab. I'm using GitLab on a daily basis even in solo-projects and I miss this every day. Everybody would find value to this when using Issues and realize, that some depend on others (so basically always).
    2. Using an issue tracker without them is, in my opinion, a little like using an outlining program that only supports two levels of nesting, or like using Wiki software that doesn't have the concept of reverse links. Makes me sad!
    3. (I grant that many of us contribute code to Gitlab, and would also like to participate as members of the development team in guiding the implementations, but clearly the core team has to have the final say in what direction that takes... unless someone wants to create and maintain their own fork of Gitlab ;) )
    4. Another example are issue boards. They represent elegant use of a good infrastructure ­— it is all just a smart use of labels. It would be very complex feature without the use of labels.
    5. Issue relations are meant to be the basic infrastructure to build on (at least that is how I meant it when I posted the original feature request). Just like the labels are just a binary relation between a issue and a "label", the relations should be just a ternary relation between two issues and a "label". Then you can build issue task lists on top of the relations like you've built issue boards on top of the labels.
    6. We already have a very nice example of such tool and its great use: the Board, where labels are used to store metadata and the Board is built above this storage. Do the same with the relations -- simple metadata storage to build on.
  4. Dec 2023
    1. This is similar to gdonato's answer, but scopes in doorkeeper are better used for managing which permissions are being given to the authenticated app (i.e. "Give this app permission to read X and write Y on your behalf").
  5. Nov 2023
    1. Eine neue Studie ergibt, dass sich das Abschmelzen des westantarktischen Eisschilds selbst dann fortsetzen wird, wenn die Erderhitzung auf 1,5° begrenzt wird. Das Schelfeis stellt ein Kipppelememt dar. Der Abschmelzvorgang verstärkt sich selbst und führt zu einer unaufhaltsamen Erhöhung des Meeresspiegels, weil er den Weg für das hinter dem Schelfeis gelegene Gletschereis frei macht. https://www.derstandard.at/story/3000000192327/meterhoher-meeresanstieg-durch-abschmelzen-des-westantarktischen-eisschelfs

      Studie: https://www.nature.com/articles/s41558-023-01818-x

      Mehr zur Studie: https://hypothes.is/search?q=tag%3A%27report%3A+Unavoidable+future+increase+in+West+Antarctic+ice-shelf+melting%27

    1. Google Chrome for Android no longer has an option to disable “Pull to Refresh”. For people who don’t really like using this feature, this is pretty annoying. There was a way to disable this using a flag, but version 75 removed this flag too.
    2. The nice point of Kiwi is that it supports Chrome extensions, this is why I am trying it. Browser extensions are something which I believe should be rather more widespread in Android by now.
    3. I was filling and completing a report on a website, uploaded an attachment just wanted to fill up some remaining inputs on final step, while scrolling down the whole page refreshed!.. hours of work and composition was gone instantly, extremely frustrating!
    4. I stoped using chrome android for purchases, due to the refresh occuring while scrolling up. Poor design choice
  6. Oct 2023
    1. When a language presumes to know more than its user, that's when there's trouble.
    2. Just because a language has a feature that might be dangerous doesn't mean it's inherently a bad thing. When a language presumes to know more than its user, that's when there's trouble.
    3. I'd argue that when you find a programming language devoid of danger, you've found one that's not very useful.
    4. The reason eval is there is because when you need it, when you really need it, there are no substitutes. There's only so much you can do with creative method dispatching, after all, and at some point you need to execute arbitrary code.
  7. Sep 2023
    1. Send on behalf of another user or account  Uncheck Treat as an alias. Example: You manage 2 email addresses in separate accounts or mail systems. You sign in to each account separately to read messages. But you want the convenience of sending mail as either address from your Gmail account.
    1. Die Pasterze ist 2022 mit über 87 Metern viermal schneller abgeschmolzen als davor. Insgesamt haben die österreichischen Gletscher 2022 6% ihrer Fläche verloren. Selbst bei einem sofortigen Stopp der globalen Erhitzung dürften diese Gletscher vollständig abschmelzen. Seit 2-3 Jahren zerfallen die Gletscher auch großflächig. Überblicksartikel zur österreichische Kryosphäre; im September erscheint der nächste Bericht zur Lage der österreichischen Gletscher. https://www.derstandard.de/story/3000000185725/alpine-eisforschung-mit-ablaufdatumexpert:

    1. I'm curious: what is the reason for Yahoo discontinuing the "@ymail.com" domain?I'm aware that there's now a 2nd domain option available, "@myyahoo.com", and I recently took advantage of that to create a new address. But "@ymail.com" honestly looks more appealing to me than either of the "yahoo" iterations.
  8. Aug 2023
    1. I ran into the same problem and never really found a good answer via the test objects. The only solution I saw was to actually update the session via a controller. I defined a new action in one of my controllers from within test_helper (so the action does not exist when actually runnning the application). I also had to create an entry in routes. Maybe there’s a better way to update routes while testing. So from my integration test I can do the following and verfiy: assert(session[:fake].nil?, “starts empty”) v = ‘Yuck’ get ‘/user_session’, :fake => v assert_equal(v, session[:fake], “value was set”)
    1. Auto-update aside, you might also have found it hard to find a Chrome binary with a specific version. Google intentionally doesn’t make versioned Chrome downloads available, since users shouldn’t have to care about version numbers—they should always get updated to the latest version as soon as possible. This is great for users, but painful for developers needing to reproduce a bug report in an older Chrome version.
    1. rendered.should have_selector("#header") do |header| header.should have_selector("ul.navlinks") end Both of which silently pass - however, capybara doesn't support a :content option (it should be :text), and it doesn't support passing blocks to have_selector (a common mistake from Webrat switchers).
  9. Jul 2023
    1. „Die Marmolada ist ein Symbol des Zugs, aus dem wir nicht aussteigen wollen.“ Die hochalpinen Regionen gehören durch die globale Erhitzung zu den verwundbarsten und gefährlichsten Zonen der Erde. Reinhold Messner blickt auf das Marmolada-Unglück vor einem Jahr zurück und stellt fest, dass nicht einmal die alltägliche Erfahrung ökologischer Katastrophen zu einer Abkehr von den fossilen Energien führt – weil diejenigen, die die Katastrophen verursachen nicht diejenigen sind, die für sie bezahlen.

      https://www.repubblica.it/cronaca/2023/07/01/news/messner_intervista_un_anno_dopo_la_marmolada_il_ghiaccio_continua_a_sciogliersi-406344573/?ref=nl-rep-f-anr

  10. Jun 2023
    1. Das neueste Kohlekraftwerk in Bangladesch musste kurz nach seiner Eröffnung bereits zweimal stillgelegt werden, weil Bangladesch nicht über die Devisenreserven verfügte, um die nötige Kohle aus Indonesien zu importieren. Die New York Times stellt ausgehend von diesem Beispiel die zunehmenden wirtschaftlichen Schwierigkeiten wegen der Kosten der Köhleenergie dar. Im Augenblick ist China das einzige größere asiatische Land, das massiv Kohlekraftwerke ausbaut. https://www.nytimes.com/2023/06/18/climate/coal-electricity-bangladesh.html

    1. Wassermangel gefährdet inzwischen den Schiffsverkehr durch den Panamakanal und damit die internationale Versorgung mit Agrarprodukten, aber auch mit Flüssiggas. Die Trockenheit ist ein Ergebnis veränderter niederschlagsmuster, die in diesem Jahr durch das El Niño-Phänomen verstärkt werden.

  11. May 2023
    1. Kalifornien Nevada und Arizona haben sich mit der amerikanischen Bundesregierung auf ein Abkommen geeinigt, dass die Wasserversorgung durch den Colorado River bis 2026 regelt. Die Staaten verzichten auf die Bewirtschaftung erheblicher landwirtschaftlicher Flechten, erhalten dafür von der Regierung aber Kompensationen. Für die Zukunft wird wegen der zunehmenden Trockenheit mit schwierigeren Verhandlungen gerechnet. https://www.nytimes.com/2023/05/22/climate/colorado-river-deal.html

    1. George Monbiot über den katastrophalen Zustand der englischen Flüsse, der zu einem Thema im Wahlkampf vor den Lokalwahlen an diesem Donnerstag geworden ist. Der Artikel geht auf die Verbindung der Degradierung der Flüsse mit der Agroindustrie und der Privatisierung des Wassermanagements ein. https://www.theguardian.com/commentisfree/2023/may/03/england-rivers-election-sewage-water-pollution

  12. Apr 2023
    1. Foto-Reportage des Guardian über die indigene Bevölkerung in der Nähe des Quelccaya-Gletscher, der bereits etwa die Hälfte seines Umfangs durch die globale Erhitzung verloren hat. Das Abschmelzen des Gletschers trägt zur erheblich vergrößerten Trockenheit bei, die wiederum den Lebensunterhalt der Bevölkerung, der von der Alpaka Zucht bestimmt wird, erschwert und auf Dauer unmöglich machen dürfte. Die Reportage ist Teil des preisgekrönten Projekts "Hüter der Anden". https://www.theguardian.com/global-development/2023/apr/18/andes-community-devastated-by-climate-crisis-quelccaya-glacier-peru

    1. The research, published in the journal Scientific Reports, is based on data from automatic weather stations on the islands of Svalbard and Franz Josef Land. Until now, this had not been through the standard quality control process and made public.
  13. Mar 2023
    1. Impersonation is a security concept implemented in Windows NT that allows a server application to temporarily "be" the client in terms of access to secure objects.
  14. Jan 2023
    1. There is no predetermined correlation between this import path and the file system, and the imported module doesn’t have to know anything about the import path used in an importing module.

      This is not a good approach. It's the opposite of what you want. Module resolution remains easy for computers (because of their speed), but tedious for humans.

      As a writer, maybe there's some benefit for no correlation. As a reader trying to understand a foreign codebase, esp. one who is in the moment trying to figure out, "Where is this thing defined? Where can I read the source code?" when jumping through procedure definitions, not being able to trivially ascertain which file a given thing is in is unnecessary friction. Better to offload a tiny bit of work onto the author who knows the codebase (or at least their own immediate intention) well rather than to stymie the progress of dozens/hundreds of readers trying to work things out.

    1. There is no such method in ruby, but you can easily define it like: def my_strip(string, chars) chars = Regexp.escape(chars) string.gsub(/\A[#{chars}]+|[#{chars}]+\z/, "") end
  15. Dec 2022
    1. This document describes a method for signaling a one-click function for the List-Unsubscribe email header field. The need for this arises out of the actuality that mail software sometimes fetches URLs in mail header fields, and thereby accidentally triggers unsubscriptions in the case of the List-Unsubscribe header field.
  16. Nov 2022
    1. I came to this page looking for a way to disable news stories in Windows 11 Widgets. I attempted one of the solutions (Disable Interests From Widgets To Turn Off News Feeds) but News recommendations still appeared.

      Since I mainly wanted the Widget enabled for a calendar view, I decided against using Widgets altogether and settled for using the calendar in the notifications bar.

      Another alternative I considered was to have 4 static Widgets pinned to obscure any news articles in the feed. However, unless one uses the insider Windows 11 build 25211 or later, Widget display will pop up from mouse hovering.

  17. Oct 2022
  18. Sep 2022
    1. Consumers can use the status member to determine what the original status code used by the generator was, in cases where it has been changed (e.g., by an intermediary or cache), and when message bodies persist without HTTP information. Generic HTTP software will still use the HTTP status code.
    1. We do not want to change or remove additionalProperties. Providing a clear solution for the above use case will dramatically reduce or eliminate the misunderstandings around additionalProperties.

      annotation meta: may need new tag: - don't want to change or remove existing feature [because...] - solving problem B will reduce misunderstandings around feature A

  19. Aug 2022
    1. Well I would like to express my huge concern regarding the withdrawal of support for the SMB 1.0 network protocol in Windows 11, and future versions of the Microsoft OS, as there are many, many users who need to make use of this communication protocol, especially users households, since there are hundreds of thousands of products that use the embedded Linux operating system on devices that still use the SMB 1.0 protocol, and many devices, such as media players and NAS, that have been discontinued and companies no longer update their firmware.
  20. May 2022
  21. Apr 2022
    1. output.addEventListener("click", ((event) => { if (event.target == output.querySelector("a.bookmarklet")) { alert("It's not an ordinary link; you need to bookmark it");

      This should use the registered control service pattern (or something). It's too hard to override this behavior. For example, I could remix the page and remove it, but I should also be able to write a bookmarklet that achieves the same effect.

    Tags

    Annotators

    1. There are ways to create aspect-ratio sized boxes in HTML/CSS today. None of the options are particularly elegant because they rely on the “hack” of setting a zero height and pushing the boxes height with padding. Wouldn’t it be nicer to have a platform feature to help us here?
    1. Starting from random noise, we optimize an image to activate a particular neuron (layer mixed4a, unit 11).

      And then we use that image as a kind of variable name to refer to the neuron in a way that more helpful than the the layer number and neuron index within the layer. This explanation is via one of Chris Olah's YouTube videos (https://www.youtube.com/watch?v=gXsKyZ_Y_i8)

  22. Mar 2022
    1. GitLab self-monitoring gives administrators of self-hosted GitLab instances the tools to monitor the health of their instances. This feature is deprecated in GitLab 14.9, and is scheduled for removal in 15.0.

      motivated by profit?

  23. Feb 2022
    1. With schools open now, State governments must set clear priorities, says Anurag Behar, CEO, Azim Premji Foundation. The syllabus from Classes I to XII must be re-configured, reducing content without compromising on core learning objectives.

      Meet atleast any one Core objectives for each student

      ... If I was asked in a teaching staff meeting, about my role as a teacher in a semester, I will say, fulfilling atleast any one core objective in the subject curriculum to each and every student is my highest priority *if this has been the priority for every teacher and the pressurising management during covid online classes, the [[covid batch wisdom catastrophe]] would not be this much impact - I can certainly write an feature article on this covid batch catastrophe topic - especially who passed 10th as covid batch, during start of the covid now directly face 12th public face-off with [[post-covid zero knowledge calibre]]. And then going to join college without learning subject fundamentals [[Devastating post-covid college education for freshers]]

  24. Jan 2022
    1. he observationrecently made by [35] that StyleGAN2 tends to inherentlycontain a disentangled StyleSpace space, which can be usedto extract individual attributes. Thus, we argue that modify-ing coordinates of StyleSpace is a natural approach to ourproblem of modifying classifier-related attributes.

      Key aspect of StyleGAN2 in which the authors based this current research on.

    1. Thunderbird provides the ability to archive messages - that is, to move them from the default folders to archive folders without deleting the messages altogether. This makes it easy to organize archives or move them to a backup device, and keep the Inbox clean. Messages can only be archived manually, not automatically.
  25. Nov 2021
    1. apt-rdepends exists. This functionality should really reside in apt-cache itself.

      Update: Maybe it does already exist now. I was able to run this, for example without apt-rdepends being installed: apt-cache rdepends --installed libwebpmux3

  26. Oct 2021
    1. Exporting your active tabs to a TXT or HTML file is something that many people want to do, but which is impossible right now in Google Chrome without turning to an extension.
    1. We do not need images here. you can use some kind of icon if you wish. But this is largely text. Also FYI this section might need a headline. Such as summary overview - tbd.

  27. Sep 2021
  28. Aug 2021
    1. Javascript required? In other words, one cannot do this on cross-site iframes (due to cross-site scripting restrictions), is that right? As @clankill3r is suggesting, this demonstrates the need for a pure CSS solution to this problem
    1. With JavaScript, you can actually calculate the width of the scrollbar and whether it’s visible by comparing two properties—window.innerWidth and document.body.clientWidth. If these are equal, the scrollbar isn’t visible. If these are different, we can subtract the body width from the window width to get the width of the scrollbar:const scrollbarWidth = window.innerWidth - document.body.clientWidthWe’ll want to perform this both on page load and on resize, in case someone resizes the window vertically and changes the overflow. Then, once we have the scrollbar width, we can assign it as a CSS variable:document.body.setProperty("--scrollbarWidth", `${scrollbarWidth}px`)

      missing feature: vw/vh can't be used "directly" because doesn't account for scrollbars

    1. In the vast majority of cases when I'm using prettier-ignore I'm only really looking to prevent it from breaking my code into new lines, whilst keeping its other transformations such as switching quotes and adding space between brackets. When ignoring single lines, fixing these formatting problems by hand is very manageable. With the ability to have Prettier ignore entire blocks of code I think the ability to specify what you want it to ignore is essential.
    2. This should be basic functionality.
    1. 3. The no-keyword-arguments syntax (**nil) is introduced You can use **nil in a method definition to explicitly mark the method accepts no keyword arguments. Calling such methods with keyword arguments will result in an ArgumentError. (This is actually a new feature, not an incompatibility)
    2. you can use the new delegation syntax (...) that is introduced in Ruby 2.7. def foo(...) target(...) end
  29. Jul 2021
    1. Has the Linux Mint team decided whether it might please add this sorely missed feature? I'm keeping Nautilus around in addition to Nemo just for this one feature. This feature is so much more efficient than other methods when you have a giant folder of many files and want to organize it into subfolders (which you can then easily move or rename afterwards — but at least this helps with the first step, which is to get the correct files into a folder together). P.S. This was also requested in #560.
  30. Jun 2021
    1. I am not sure if this is an improvement. To me it does not seem very pretty. Of course I am biased since I also prefer () in method definitions if they have arguments; although I think it is fine that ruby does not mind omitting the (). For my brain, I like the () for visual separation.
  31. May 2021
    1. The simple problem that I see with fragment identifiers is that their existence and functionality relies completely on the developer rather than the browser. Yes, the browser needs to read and interpret the identifier and identify the matching fragment. But if the developer doesn’t include any id attributes in the HTML of the page, then there will be no identifiable fragments. Do you see why this is a problem? Whether the developer has coded identifiers into the HTML has nothing to do with whether or not the page actually has fragments. Virtually every web page has fragments. In fact, sectioning content as defined in the HTML5 spec implies as much. Every element on the page that can contain content can theoretically be categorized as a “fragment”.

      at the mercy of author

    1. But in the dark world of HTML email, where the motto is "code like it's 1996" because Outlook uses the rendering engine from MS Word and Gmail removes almost everything, every method for making two elements overlap that I can think of is unsuitable due to poor client support
  32. Apr 2021
    1. Probably the only thing I'd like to see fixed now is the possibility of quick restart like in the old Timberman and not having to wait for the 'Game Over' screen to finally be back to the good ol' choppin'
    2. I don't know why but they just removed some featuresAt first, you can't play this with your friend online except waiting for random matchingYou can't invite your friends to your closed room and play togheter
    1. It's as good as online-only, however with noone actually playing you'll find yourself queueing for bot matches (even having to wait for the "other players" to select their vehicles). You want to just race your mate in a local game- nope! Local races are single-player only (apparently the devs couldn't be bothered with coding a split-screen or zooming camera to enable local multiplayer races). Want to play online but specify the map? Nope! Play a game online with a good lobby and want to stick with that group? Nope! Every game forces you to exit after each event.
    1. Basically every review complains that saves don't work and the dev still hasn't fixed it after four years, gj.
    2. it WILL NOT SAVE the progress!!!!!!!So, no, forget it!!!!
    3. With absolutely no means of saving progression in this game I cannot for the life of me understand why anyone would give this game a positive review. It could have been a decent enough game for the genre, however unless you have all day to dedicate to completing the game in one sitting, avoid.
    4. I was going to give this a good review, then I went and read the other reviews about the game not saving. I thought to myself, surely not! This must some sort of smear campaign against the fine developers at jemchicomac?!? Alas, it is my duty to report that there is indeed no save functionality in this game. Tis a pity.
    5. Alright, let me get this straight: the developer decided to create a game that's 60 levels long, which is 5 worlds each with 12 levels, and didn't implement a save feature? We are in a time where save features are a high need for a game. If anything, for a long game, they'd have passcodes, but we're past those times now, so a save feature is what one would expect in a game. Why does the developer ignore the players who want a save feature? I saw in the discussions that what looked like a parent/guardian bought this game specifically for their kids to play. Do you think the kids will be able to play a game like this and complete it in one sitting? No, I don't think so. Those poor kids are now stuck with a game where they won't feel any accomplishment with because they have to restart every time.
    6. The game save doesnt work, what is the point in playing something with so many levels if you cant and never will reach the end of it, unless you dont turn of your pc/game for days till you pass all the levels.
    7. Despite being a nice game... no saving progress kills it.
    1. Unstoppable CrapsterThis is crap shovelwareRe-skinned exact same other 10 games this sad excuse for a developer been farting out.No sound, no gameplay, no nothing.Can't press two buttons at the same time like jump and move.Plays like sonic the hedgehog just had sex with painbrushWhile having a stroke, heart attack and anal prolapse at the same time.Don't support this developer.Steam get your sh!t together, start filtering out this crap.
    1. The default fill_in method of Capybara is case sensitive. This is apparently due to their use of XPath. Anyhow, this seems to not be very well aligned with the entire idea of DSLs and letting non programmers write tests.

      not very well aligned

    2. After some searching i found a stack overflow problem that didn't fix my issue but anyhow… I simply used a little ruby and the capybara library to find the field myself with some case insensitive regex and the ruby detect method
    1. Now VS Code's generic debugger UI supports all data breakpoint access types defined in the Debug Adapter Protocol as context menu actions in the VARIABLES view: Break on Value Read: breakpoint will be hit every time a variable gets read. Break on Value Change: breakpoint will be hit every time a variable gets changed (this action was previously available). Break on Value Access: breakpoint will be hit every time a variable is read or changed.
  33. Mar 2021
    1. The words type, concept, property, quality, feature and attribute (all used in describing things) tend to be used with different verbs. E.g. Suppose a rose bush is defined as a plant that is "thorny", "flowering" and "bushy". You might say a rose bush instantiates these three types, or embodies these three concepts, or exhibits these three properties, or possesses these three qualities, features or attributes.
    1. 'female' + 'performer' = 'actress'
    2. An individual semantic feature constitutes one component of a word's intention, which is the inherent sense or concept evoked.

      Would this be referring, then, to explicit meaning or implicit meaning -- or neither?

    3. The semantic features of a word can be notated using a binary feature notation common to the framework of componential analysis.[11] A semantic property is specified in square brackets and a plus or minus sign indicates the existence or non-existence of that property.
    1. If you really want this, I suggest you write a little function that extracts the executable name from the .desktop file and runs it. Add these lines to your shell's initialization file (e.g. ~/.bashrc): runDesktop () { eval "$(awk -F= '$1=="Exec"{$1=""; print}' "$1")" } Then, you can run your .desktop file with runDesktop ~/Desktop/slack.desktop
    1. Ironically, what we’re doing today, is essentially the opposite: rather than reducing the scope of the problem, we continue to grow it, effectively increasing the number of details — and problems — for everyone.
    1. The :empty selector refers only to child nodes, not input values. [value=""] does work; but only for the initial state. This is because a node's value attribute (that CSS sees), is not the same as the node's value property (Changed by the user or DOM javascript, and submitted as form data).
    2. There is (currently) no CSS selector for detecting directly whether an input control has a nonempty value, so we need to do it indirectly, as described above.
    1. Validating forms has notoriously been a painful development experience. Implementing client side validation in a user friendly, developer friendly, and accessible way is hard. Before HTML5 there was no means of implementing validation natively; therefore, developers have resorted to a variety of JavaScript based solutions.
  34. Feb 2021
    1. Personally, I'm starting to think that the feature where it automatically adds xray.js to the document is more trouble than it's worth. I propose that we remove that automatic feature and just make it part of the install instructions that you need to add this line to your template/layout: <%= javascript_include_tag 'xray', nonce: true if Rails.env.development? %>
    1. So how are we going to create a model that doesn’t have a database table behind it? There are several potential solutions including various plugins but we’re going to use the method described in an entry on the Code Tunes blog. This shows a techinque that involves overriding a couple of methods in an ActiveRecord model and then manually defining the columns in the model file rather than in the database table. In our Recommendation model we’ll add in the two overridden methods and then use the column class method to define the columns in a similar way to how they’re defined in a migration file.

      Does this still work in Rails 6? I wonder.

    1. For now I feel ActiveForm is still a bit early to transition to a gem  as there are still things to improve and work out. One day I'll invest more time into making it extendable and release it as a gem. For now I feel it's an unnecessary complexity.

      If he's like most of us, though, this means it will never happen...

    2. Writing the uniqueness validations yourself is easy so I felt it was better to leave this up to the developer
    1. There is nothing wrong with accepts_nested_attributes_for. This is what you should use in your typical case. My post describes a non-typical case. ContactListForm is not an ActiveRecord object, it is an object that includes ActiveModel::Model, which does not support accepts_nested_attributes_for.
    1. Report: This price didn't exist on the store This price did show on the store but the game could not be bought This was a very short price made by a mistake (glitch)
    1. Adding backgrounds and borders does feel like a missing feature of the CSS Grid specification and one which the Working Group have discussed along with many members of the community (the discussion thread is on GitHub).
    1. I hope we see new CSS capabilities arise that allow this sort of effect without the need for trickery.
    2. Since CSS doesn’t (yet) offer a way to style grid cells, areas, or tracks directly, we have to stretch elements over the parts we want to style independently from the elements that contain content.
    3. They likely won’t have any content, making them a sort of structural filler to spackle over the gaps in Grid’s capabilities.
  35. Jan 2021
    1. Great, I can use vw to scale text so it doesn't look puny on a desktop! Perfect... Oh. Huh, now the text is too small to read when viewed on a phone. Okay, well I can just use "max(x,y)" to make sure it doesn't get shrunk beyond a minimum size. Perfect... Oh. Hmm. Looks like "max" isn't supported properly by Chrome. Okay, well guess I'll just use "px" again.
    1. Interesting . That feature (<slot slot="..."/>) was only recently added in #4295. It wasn't primarily intended to be used that way, but I guess it's a good workaround for this issue. I'm yet to find caveats to slotting components that way, other than it's inconvenient, as opposed to <Component slot="..."/>.
    1. Related to #1824, can do <svelte:component this={Bar}> <slot></slot> <slot name="header" slot="header"></slot> </svelte:component> <script> import Bar from './Bar.svelte'; </script> as a forwarding workaround
    1. https://github.com/sveltejs/svelte/issues/1037#issuecomment-737872461

      Explanation (from https://github.com/sveltejs/svelte/issues/1037#issuecomment-739458005):

      @AlexGalays register is an action created and passed in from the parent node (Wrapper) which allows the child to register with it. Not builtin to svelte.

      That's very clever @PatrickG. Nice one. I was a bit confused when first looking at it to understand what was going on, but I think that will be a handy tool in the toolbox.

      But why do we need this? If we remove all use:register, it still toggles just fine. Seems the only benefit is that this allows cleanup.

    1. A Svelte component that monitors an element enters or leaves the viewport/parent element. Performant and efficient thanks to using Intersection Observer under the hood. Can be used in multiple projects including lazy loading images, infinite scrolling, playing/pausing the video when in the viewport, tracking user behaviour firing link pre-fetching and animations and many many more.