54 Matching Annotations
  1. Nov 2023
    1. You can set "Authorized redirect URI" to local IP (like http://127.0.0.1/callback), it's working fine for me. What really agonizing is that google don't allow user to config an external IP (let's say your server IP like 99.99.99.99) as "Authorized redirect URI", google want the "Authorized redirect URI" to end with a public top-level domain (such as .com or .org).

      Trying to use a local .test domain results in: Invalid Origin: must end with a public top-level domain (such as .com or .org).

      but local IP is allowed. Why this inconsistency?

      And then this one: can use external domain, but not external IP?!

    1. The problem is that when I want to create OAuth client ID in google, it does not accept ".test" domain for "Authorized redirect URIs". It says: Invalid Redirect: must end with a public top-level domain (such as .com or .org). Invalid Redirect: domain must be added to the authorized domains list before submitting. While it accepts .test domain for "Authorized JavaScript origins" part! I saw most of the tutorials when using socialite and google api they set these in google console. http://localhost:8000 and http://localhost:8000/callback/google and google accepts them without problem with domain and generate the key and secret but I am not using mamp and I am going to continue with valet. I would be so thankful if you guide me about what is the alternative domain for .test which works fine in valet and also google accepts it?
    1. As our app grows, an increasing amount of random code is landing in the app/services directory. I'm worried it will become impractical to improve on this, as the number of special cases will only increase. Some pain points off the top of my head (definitely not exhaustive):
    1. The subdirectories in app have a name that describes their contents, but app/lib means nothing. So, app/models and app/lib are at different level of abstraction, and that feels wrong to me.
    2. It is also worth noting that lib/tasks typically has application-specific tasks, thus not fitting into the condition for lib. Which makes me question the criteria for lib
  2. Jan 2023
    1. Nice try, but it's still full of exceptions. To make the above jingle accurate, it'd need to be something like: I before e, except after c Or when sounded as 'a' as in 'neighbor' and 'weigh' Unless the 'c' is part of a 'sh' sound as in 'glacier' Or it appears in comparatives and superlatives like 'fancier' And also except when the vowels are sounded as 'e' as in 'seize' Or 'i' as in 'height' Or also in '-ing' inflections ending in '-e' as in 'cueing' Or in compound words as in 'albeit' Or occasionally in technical words with strong etymological links to their parent languages as in 'cuneiform' Or in other numerous and random exceptions such as 'science', 'forfeit', and 'weird'.
  3. Nov 2022
    1. Note that strings here are encoded as UTF-8, unlike the usual JavaScript UTF-16 strings.
  4. Oct 2022
    1. Options to import/export locally stored passwords have been a staple of Chrome for years. For god knows what reason either option seemed to randomly disappear in one Chrome Version and then re-appear in the next.Sometimes there was an import option with no export option, sometimes the other way round like right now, sometimes neither option was available, but you could always add either Option via chrome://flags.If they wanted to force people to use online sync only, why have options for local export still, but not import?
  5. Aug 2022
    1. oh I'm fine with defective verbs. I'm not fine with inconsistency, though. Make it "Signup and login", and make it that on every SE page everywhere ever, and you can countin me.
  6. Apr 2022
    1. It would be great if we could keep the existing behaviour for application/x-www-form-urlencoded, but we can't, because in their infinite wisdom the web's architects decided that a regular form submission should have that content type, but a fetch with the exact same data (i.e. body: new FormData(event.target)) will have a multipart/form-data content type. In order for endpoints to behave the same way with JS-triggered form submissions as JS-less ones, we need to have consistent behaviour.
  7. Mar 2022
    1. Using Date.parse, or new Date(<string>) has been problematic and implemented inconsistently in the past. The current specification defines parsing a variation of ISO 8601 strings, where date-only forms (like "2020-09-14") are parsed as UTC, instead of local time as they would be by ISO 8601.
  8. Dec 2021
  9. Nov 2021
  10. Sep 2021
    1. In American usage such divisions are generally referred to as colleges (e.g., "college of arts and sciences") or schools (e.g., "school of business"), but may also mix terminology (e.g., Harvard University has a "faculty of arts and sciences[2]" but a "law school").
  11. Jul 2021
  12. test-prof.evilmartians.io test-prof.evilmartians.io
    1. That technique works pretty good but requires us to use instance variables and define everything at once. Thus it's not easy to refactor existing tests which use let/let! instead.
    1. (This, incidentally, is why the current 'zero-config' marketing fad is such nonsense: it really means 'abdicate the responsibility for config'. Instead of a single place where you can view all the build config in a structured, coherent form, you have the exact same amount of config but scattered around your project in lots of annoying files that are harder to understand.)
  13. May 2021
    1. Note that not all of the colors in SMUI read from CSS variables, so some parts will still use the colors defined in the original Sass compile.
    1. Yeah, as many developers will tell you, designing/coding for email is an incredibly hit-or-miss proposition...this is simply one more thing that may work in some email clients. The only consistent behavior in HTML/CSS emails is that nothing is consistent. :-)
  14. Apr 2021
    1. It looks like touching objects "manually" versus "in cascade through belongs_to association" does not result in the same behavior.
    1. When we usedef self.method, though, we are defining a method across scopes: we are present in the regular class scope, but we use Ruby’s ability to define methods upon specific instances from anywhere; self within a class definition is the Class instance we are working on (i.e. the class itself). Therefore, usingdef self.method is a leap to another scope, and this feels wrong to me.
  15. Mar 2021
    1. Abbreviations used in bookkeeping

      so inconsistent!

      PL – Profit and loss; (or I/S – income statement) P/R - Payroll etc.

    1. These methods should be used with caution, however, because important business rules and application logic may be kept in callbacks. Bypassing them without understanding the potential implications may lead to invalid data.
  16. Feb 2021
    1. @conference_form.submit(conference_params)

      Surprised they called it submit, since that could imply that you're triggering an action called submit.

      They use other verbs to describe this:

      • sync
      • populate
      • write

      Analogous to Reform's sync / sync_models method.

      Actually, the name makes a lot of sense when you see it in context:

          @conference_form = ConferenceForm.new(conference)
          @conference_form.submit(conference_params)
      
          if @conference_form.save
      
  17. Jan 2021
    1. By default, menus open with an entrance animation. However, on desktop, menus can skip the animation and open instantly instead.

      Why only on desktop? That delay drives me crazy. I would like to skip on web/mobile too.

  18. Nov 2020
    1. The problem is that by default, module paths only work with things imported via npm because the new modules variable on resolve defaults to ["node_modules"]. This lets you import 3rd party code from npm really easily. But it means importing your code with a module path needs a config change.
    1. What bothers me most from Svelte: <!-- I want to bind the value of this custom input just like I would bind to normal input --> <input bind:value="query" /> <!-- works --> <search-input bind:value="query" /> <!-- doesn't work :/ -->

      I think this works in current Svelte

  19. Sep 2020
    1. Something to be aware of when you’re using any bundler: there’s very little consistency when it comes to how modules are packaged in NPM. It’s incredibly frustrating, especially considering many of us write modules these days using ESM. Here’s some various problems that come up:
  20. Aug 2020
    1. Where these systems most notably differ is in their units of volume. A US fluid ounce (fl oz), about 29.6 millilitres (ml), is slightly larger than the imperial fluid ounce (about 28.4 ml). However, as there are 16 US fl oz to a US pint and 20 imp fl oz per imperial pint, the imperial pint is about 20% larger. The same is true of quarts, gallons, etc.; six US gallons are a little less than five imperial gallons.
    1. On land, the league is most commonly defined as three miles, though the length of a mile could vary from place to place and depending on the era. At sea, a league is three nautical miles (3.452 miles; 5.556 kilometres).
  21. Jul 2020
    1. I do not understand why concat modify the array, as most of the method of the Array class has a ! method for that. Should I also introduced a concat! method?
  22. Jun 2020
    1. Is it “syncthing”, “Syncthing” or “SyncThing”?¶ It’s Syncthing, although the command and source repository is spelled syncthing so it may be referred to in that way as well. It’s definitely not SyncThing, even though the abbreviation st is used in some circumstances and file names.
  23. Apr 2020
    1. the spelling "Web site" (and the less questionable "web site") is an anachronism from the 1990s that is still in use by the NYT and some other conservative print media in the US while most others (including the online sections of the NYT!) today use "website".
  24. Mar 2020
    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).

  25. Dec 2019
  26. Sep 2019
  27. Mar 2017
    1. Der zweite Teil ist noch problematischer als der erste. Im Grunde betreiben die beiden mit dem zweiten Teil einen Etikettenschwindel: Sie schreiben "case study" drüber, weil das gut passt, ein Theorieteil und ein Fall. Aber was sie als Fallstudie verkaufen wollen ist alles andere, aber keine Studie. Für mich liest sich der zweite Teil wie eine Mischung aus Stadt(verwaltungs)marketing, Regierungsprogramm und Flugblatt einer idealistisch technophilen NGO. Analytisch und kritisch ist da nichts. In den Begrifflichkeiten lassen sich grundsätzliche Inkompatibilitäten zum ersten Teil finden (z.B. S. 35).

    2. Das Papier hantiert mit zwei Etiketten für die Stadt: neoliberal und rebellisch. Daraus ergibt sich ein Widerspruch, den es nicht weiter problematisiert oder gar bearbeitet: Sie wird als neoliberal etikettiert, soll aber dem datenbasierten Neoliberalismus 2.0 widerstehen (z.B. S. 23). Warum sie das tun sollte, wird nicht weiter erläutert, dass sie es nicht tut und dass das eben keinen Widerspruch bildet, fällt also auch nicht auf. Da ist die kritische Stadtsoziologie mit ihrem Konzept der "Unternehmerischen Stadt" analytisch klarer und erklärungsmächtiger.

    3. None   of   this   is   to   say   that,   somehow,   the   maker   movement   or   3D   printers   cannot   be  repurposed   to   serve   a   different

      Hinter der doppelten Verneinung in diesem Satz ist eine Aussage versteckt, die mehrere Jahrzehnte kritische Technologietheorie einfach so vom Tisch wischt: Technologie ist nicht neutral. Die Zwecke sind ihr eingeschrieben, nur ein sozialer und politischer Prozess der den Zweck der gesellschaftlichen Produktion adressiert kann auch Zweck und damit Charakter von Technologie verändern. Einfach "rumdrehen" lässt sich der Zweck von Technologie nicht.

      S. 24 heißt es übrigens m.E. schon sehr viel näher dran an einer angemessenen Sichtweise: "building hi-tech socialism using neoliberal infrastructure might very well be impossible."

    4. ature of many smart technologies: building hi-tech socialism using neoliberal infrastructure might very well be impossible.

      vgl. Anmerkung auf S. 21

    5. The idea was that technology would provide easy fixes to complex social problems while too often forgettingthe ultimate reason for the application of these technologies, which is serving the citizens and deliver better public services.

      Die Idee war also gut, nur bei der Umsetzung wurde was vergessen??! Das fällt ja nochmal meilenweit hinter die kritischen Bestimmungen des ersten Teils zurück. Bzw. zeigt, dass die beiden Teile wenig miteinander zu tun haben im Sinne einer kritisch-analytischen Textgenese, wie ich sie von einer Fallstudie mit vorangestelltem Theorieteil erwarten würde.

    6. for ordinary u

      "ordinary users" von airbnb sind also ok? da hätte ich ja auch noch mal diskussionsbedarf. und außerdem widerspricht es den schlussfolgerungen des eigenen papiers an anderer stelle (aufbau eigener infrastruktur).