416 Matching Annotations
  1. Last 7 days
  2. datatracker.ietf.org datatracker.ietf.org
    1. The goal of this technology is to provide a mechanism for browser-based applications that need two-way communication with servers that does not rely on opening multiple HTTP connections (e.g., using XMLHttpRequest or <iframe>s and long polling).
  3. Jul 2021
    1. A top down view of some learning strategies to begin teasing out which may be better than others.

      Are they broadly applicable or domain specific?

      What learning methods and pedagogy piece are best and for which domains.

      How can we balance learning and doing an overview of theory versus practice?

      Which methods are better for beginners versus domain specific experts?

      Which are better for overview versus creating new knowledge?

      https://www.scotthyoung.com/blog/2021/07/13/against-the-real-thing/

    2. Play may trump problem solving. When working on a problem without a specific goal, the student can try lots of things to figure out what works. In contrast, only one answer is needed to solve a problem with a single goal. A playful, exploratory mindset may map out the patterns of interactions better than a narrowly, solution-oriented perspective. As an example of this, Sweller asked students to solve some math problems. One group was asked to solve the problems for a particular variable, and the other group was asked to solve for as many variables as they could. The latter group did better later, which Sweller explained in terms of cognitive load.4

      exploratory play >> problem solving

      How does this compare to the creativity experience of naming white things in general versus naming white things in a refrigerator? The first is often harder for people, while the second is usually much easier.

    3. John Sweller’s cognitive load theory argues that problem solving is often inefficient.2 His studies showed that students learned to solve algebra problems faster when they were shown lots of examples of solved problems, rather than trying to solve them on their own.3

      Problem solving is often inefficient, seeing lots of solved problems may be better than solving them on one's own.

      (This was the sort of model I used in learning most of my math over the years, though solving a few problems along the way also helped to reinforce things for me.)

      Sweller, John. “Cognitive load during problem solving: Effects on learning.” Cognitive science 12, no. 2 (1988): 257-285. Sweller, John, and Graham A. Cooper. “The use of worked examples as a substitute for problem solving in learning algebra.” Cognition and instruction 2, no. 1 (1985): 59-89.

    1. One of the fundamental goals of a blockchain is resolving the “double spend” problem. In a nutshell, this means preventing someone from sending the same coin to two people. However, beyond just simple spend transactions, it applies any time two transactions want to update the same state. This could be someone trying to duplicate Bitcoin, or two people trying to buy the same CryptoKitty. For the sake of generality, we’ll call it the “double update” problem. Fundamentally it’s about ordering: when we see two things, how do we decide which is first, and what happens to the second one?

      The double spend problem is a subset of what can be called the double update problem. How do we order two updates to the same state?

  4. Jun 2021
    1. Today, Sass uses complex heuristics to figure out whether a / should be treated as division or a separator. Even then, as a separator it just produces an unquoted string that’s difficult to inspect from within Sass.
    1. But this solution has technical complications, and the npm and the yarn implimentations give people trouble (as of this writing there are about 40 open npm link issues and over 150 open yarn link issues). If you have tried to use symlinked dependencies while developing a package you've probably run into into a stumbling block, whether simply an unexpected unlink behavior, trouble with peer dependencies, or something bigger.
    1. As you can see Rails already adds error messages from associated models and doing it wrongly: Merging together errors from different models under same has_many association. :"employments.company"=>["can't be blank"] And this is wrong.
    2. I have been waiting for a solution for this quite a while now.
  5. May 2021
    1. This looks cool but right now, let's say i have an external api which depends on users cookies, the cookies only gets send through internal sk endpoints while ssr even if its the same domain. Couldn't we pass the 'server' request to the serverFetch hook? I would currently have to patch package svelte kit to pass request headers to the external api or create an sk endpoint which proxies the request.
    1. It's a chicken-and-egg-like problem: If we use module: 'commonjs', then if any TS files import ES Modules (indirectly in their dependency graph), then Node throws an error because CommonJS modules can not import ES Modules.
    1. “You can’t use HTML5 or CSS3 in email.” Due to their “limited” support, the idea that using HTML5 and CSS3 in email is “impossible” remains a commonly-held notion throughout the email design industry. However, we’re calling it a complete myth.
    1. Just because there can be issues with CSS in HTML emails doesn’t mean you should abandon efforts to use it. It all comes down to determining which codes are absolutely needed and how to style them so they can be rendered by email platforms.
    1. John Lichfield. (2021, April 10). Weekly French vaccination thread. The French roll-out, still described as “stuttering” or “glacial” in UK media (and even some Fr media) continues to boom. Over 500,000 doses (1st/ 2nd) were given yesterday, a record. Fr should exceed its 10m 1st jabs 15 April target by 2m. 1/12 https://t.co/hhJa8rafCV [Tweet]. @john_lichfield. https://twitter.com/john_lichfield/status/1380807805960130561

    1. ReconfigBehSci. (2021, February 1). Great list, but I think one of the main problems with “absence of evidence fallacy” is its phrasing: “absence of evid. Is not the same as evidence of absence” is a true statement, “absence of evidence is not evidence of absence” is literally false @richarddmorey [Tweet]. @SciBeh. https://twitter.com/SciBeh/status/1356172673651503104

  6. Apr 2021
    1. because while dealing with interactive programs one often come across numerous hidden traps which doesn’t usually happen with ordinary sh-scripts. Though fortunately or may be not, but most of these problems generally turn up within first five minutes of the work under the script. The symptoms typically look like that author can’t pass the authentication from the script.
    2. Really you are not the first to run into such a problem
    1. There is a tendency in short luck-heavy games to require you to play multiple rounds in one sitting, to balance the scores. This is one such game. This multiple-rounds "mechanic" feels like an artificial fix for the problem of luck. Saboteur 1 and 2 advise the same thing because the different roles in the game are not balanced. ("Oh, well. I had the bad luck to draw the Profiteer character this time. Maybe I'll I'll draw a more useful character in round 2.") This doesn't change the fact that you are really playing a series of short unbalanced games. Scores will probably even out... statistically speaking. The Lost Cities card game tries to deal with the luck-problem in the same way.

      possibly rename: games: luck: managing/mitigating the luck to games: luck: dealing with/mitigating the luck problem

    1. Pinterest doesn’t know when the wedding never happens, or when the baby isn’t born. It doesn’t know you no longer need the nursery. Pinterest doesn’t even know if the vacation you created a collage for has ended. It’s not interested in your temporal experience.This problem was one of the top five complaints of Pinterest users.
    2. So on a blindingly sunny day in October 2019, I met with Omar Seyal, who runs Pinterest’s core product. I said, in a polite way, that Pinterest had become the bane of my online existence.“We call this the miscarriage problem,” Seyal said, almost as soon as I sat down and cracked open my laptop. I may have flinched. Seyal’s role at Pinterest doesn’t encompass ads, but he attempted to explain why the internet kept showing me wedding content. “I view this as a version of the bias-of-the-majority problem. Most people who start wedding planning are buying expensive things, so there are a lot of expensive ad bids coming in for them. And most people who start wedding planning finish it,” he said. Similarly, most Pinterest users who use the app to search for nursery decor end up using the nursery. When you have a negative experience, you’re part of the minority, Seyal said.

      What a gruesome name for an all-too-frequent internet problem: miscarriage problem

    1. I have a 2 radio buttons with the same id and label, only different values, (true, false)....anything I can do to choose false?

      If you just do find_field(radio_input_name) you end up with

         Ambiguous match, found 2 elements matching visible field "name" that is not disabled
      
  7. Mar 2021
    1. // WRONG ❌ - values.myField might be undefined! if (!values.myField.match(/myexpression/)) {
    2. If you are doing a regular expression check, your function should handle undefined as a potential value.
    1. It does this by creating links to specially crafted URLs using custom schemes (ie. "txmt", "subl", "mvim"). I prefer to use standard CLI vim in iTerm.

      I have similar problem: want to use regular vim in tilix terminal

    1. Some research led me to the --remote-tab switch that allows to open files as tabs in currently open Vim processes but it seemed to work only with the graphical interface (gvim) and not with the console (vim). But as I made some tests I found this can work with the vim in console mode

      That's what I thought too (that it was only available with gvim, which I don't want to use).

      But I get this error when I try it with regular vim:

      $ vim --servername local
      VIM - Vi IMproved 8.1 (2018 May 18, compiled Apr 15 2020 06:40:31)
      Unknown option argument: "--servername"
      
    1. However, since you haven't yet provided any details about how you built with Qt (Qt isn't officially supported, so you must have used a third party derivative of vim), and you haven't provided any detailed information about what error messages or malfunctions you're having with python-complete, it's not really possible to tell you how to fix the problem and get vim working with Qt.
    1. A solution is almost indicated in the question: hinder xdg-open from choosing exo-open. A brute-force approach is to copy /usr/bin/xdg-open to /usr/local/bin (/usr/local/bin is earlier in PATH unless PATH has been modified) and to patch it to use open_generic instead of exo_open (unlike the XFCE4-specific exo-open, open_generic does honor xdg mime types)
    1. when the link of accessing a workspace appear I only get the popup: "Open xdg-open?" and then nothing happens.

      Though in my case it is clicking an mvim:// link from better_errors

    1. Tried to buy keyg at its 90% off sales price but no matter what payment method I choose I keep getting a "Due to processing fees the minimum amount is 100 cents."I'm trying to figure out if there is any way around this, and if not then why can you list a game at a price below $1 if it isn't actually possible for it to be bought at said price?
    1. The second is that their approach of allowing standards to evolve through practical application, rather than highfalutin conjecture, is an incredibly powerful technique for problem-solving. The number of my ideas that have died on paper as I try to flesh them out are beyond count. It's the Goldilocks conundrum: the feeling that something needs to be just right before other people can see it. The IndieWeb methodology proves that this logic should just be thrown away.

      It took me a while to see this too. Many report that attending law school is really just learning a different way of seeing and approaching the world. IndieWeb has been much like this for me. It provides a different and often useful framing for approaching problems, not just with regard to the web, but to life in general.

    1. Sure, you have a few extra newlines and semicolons, but the minifier will remove them anyway so no harm.
    2. What is the point of avoiding the semicolon in concat_javascript_sources

      For how detailed and insightful his analysis was -- which didn't elaborate or even touch on his not understanding the reason for adding the semicolon -- it sure appeared like he knew what it was for. Otherwise, the whole issue would/should have been about how he didn't understand that, not on how to keep adding the semicolon but do so in a faster way!

      Then again, this comment from 3 months afterwards, indicates he may not think they are even necessary: https://github.com/rails/sprockets/issues/388#issuecomment-252417741

      Anyway, just in case he really didn't know, the comment shortly below partly answers the question:

      Since the common problem with concatenating JavaScript files is the lack of semicolons, automatically adding one (that, like Sam said, will then be removed by the minifier if it's unnecessary) seems on the surface to be a perfectly fine speed optimization.

      This also alludes to the problem: https://github.com/rails/sprockets/issues/388#issuecomment-257312994

      But the explicit answer/explanation to this question still remains unspoken: because if you don't add them between concatenated files -- as I discovered just to day -- you will run into this error:

         (intermediate value)(...) is not a function
             at something.source.js:1
      

      , apparently because when it concatenated those 2 files together, it tried to evaluate it as:

         ({
           // other.js
         })()
         (function() {
           // something.js
         })();
      

      It makes sense that a ; is needed.

    3. And we shave off 6 or so seconds, that is huge.
    4. Since the common problem with concatenating JavaScript files is the lack of semicolons, automatically adding one (that, like Sam said, will then be removed by the minifier if it's unnecessary) seems on the surface to be a perfectly fine speed optimization.
    1. I'm kinda stuck at the moment, going around in circles. Everything is really heavily coupled. I would like to get to the point where no load is called from within processors, but i'm not sure if that's possible. Currently the API and the caching strategies are fighting me at every step of the way. I have a branch where i'm hacking through some refactoring, no light at the end of the tunnel yet though :(
    2. For the $$$ question, nothing comes to mind. These problems i'm hitting up against are larger than a contractor could solve in a few hours of work (which would be hundreds/thousands of dollars).
    3. Progress is slow though. I want to change how assets are loaded, the current implementation of "pipelines" is challenging to work with.
    1. it's super hard to test master because i have no idea which gems need to be updated. is there a guide on how to take a rails 4.2 project to master sprockets without everything mysteriously exploding? ill try to make a repro case but its hard to tell where to even start
    1. I don't myself understand what's going on, it clearly has something to do with source maps, but may also have to do with other sprockets changes.
    2. I don't really understand what's going on. Clearly source maps have something to do with it -- a source map feature that doesn't handle SCSS very well, apparently.
    3. Is there a PR to... something? sassc-rails? That would make the patch not necessary? (I don't know if there's any good way to monkey-patch that in, I think you have to fork? So some change seems required...) Should the defaults be different somehow? This is very difficult to figure out.
    4. Is there a PR to... something? sassc-rails?
    5. I'm not sure about all consequences of my change and this is very complex.
    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.
    1. Redesigning the pieces was very difficult work, because traditional pieces have 4 specialties below.
    2. Shogi is a classic game. I know many people who want to play Shogi, but the Kanji on the pieces makes it too hard to master. I have designed this Shogi with icons so anybody can learn it easily.
  8. Feb 2021
    1. Maintaining the builds of your repositories should be everyone’s job. Instead of relying on that one build person in the team, Travis CI makes infrastructure and configuration a team responsibility.
    1. It turns out that, given a set of constraints defining a particular problem, deriving an efficient algorithm to solve it is a very difficult problem in itself. This crucial step cannot yet be automated and still requires the insight of a human programmer.
    1. I wanted to keep reviewing restaurants, but I didn’t want to go back into their dining rooms both because of the risk and because I was afraid readers would take it as an all-clear signal. When the governor halted indoor dining again in December, my selfish reaction was relief. Then I briefly got depressed. How would restaurants survive? And how would I keep writing about them?One answer had already started to appear on sidewalks and streets in the form of small greenhouses, huts, tents and yurts. Inside these personal dining rooms, you can (and should) sit just with people from your own household. If the restaurant thoroughly airs the space out between seatings, any germs you breathe in should be the same ones that are bouncing around your home. Many restaurants instruct their servers to stay outside the structures as much as possible, though some don’t.

      Syntax of question and answer reveals itself again. His doubts and negativity are addressed within the first highlighted paragraph with a question coming to Pete's mind. He realized his influence as a critic and decided to take the right step to prevent anything bad from occurring. Despite his sacrifice, the next paragraph he discusses the clever solutions restaurants had come up with which solved his problem for the most part. This description underlines yet more change that brought upon good things, which is the main idea he is relating to the food scene. He creates a comparison between an at home setting along with the solutions restaurants have come up with to further emphasize his point of safety amidst COVID.

    1. It is difficult to come up with content that is not extracted from a real application. Manufacturing scenarios to see if ideas have practical application turned out to be an exhasting and time consuming process.
    1. Nogués, X., Ovejero, D., Quesada-Gomez, J. M., Bouillon, R., Arenas, D., Pascual, J., Villar-Garcia, J., Rial, A., Gimenez-Argente, C., Cos, M. L., Rodriguez-Morera, J., Campodarve, I., Guerri-Fernandez, R., Pineda-Moncusí, M., & García-Giralt, N. (2021). Calcifediol Treatment and COVID-19-Related Outcomes (SSRN Scholarly Paper ID 3771318). Social Science Research Network. https://doi.org/10.2139/ssrn.3771318

    1. In many communities, it’s not just discrimination, but gender-based violence that keeps girls off the playing field.

      This is the second problem that the article addresses. Violence in sports causes many problem for female players.

    2. Similarly, in the sports arena, we see massive gaps in the prize money, sponsorships, facilities and equipment allocated to women athletes

      This is the problem about unequal pay. However, this can't be changed because there isn't much people who are interested in women sports. This means that there wouldn't be enough money to pay the female players equally as male players.

    3. At the same time, the world of sport remains plagued by many of the same gender inequalities that we see more broadly; issues such as unequal pay, gender-based violence, a lack of targeted investment and negative stereotypes and social norms

      This is the problem that this article tackles.

    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. Unlike naming children, coding involves naming things on a daily basis. When you write code, naming things isn’t just hard, it’s a relentless demand for creativity. Fortunately, programmers are creative people.
    2. violates our expectation that hard things should be technical
    3. Scalability is the problem you want to have, and sooner rather than later, but maintainability is the problem you’re definitely going to have, sooner or later.
    1. You use grid-area, so the place for the side nav is allocated at start. If you hide (or even delete) the side nav, that won't change anything about this. You have to do a little trick: Set the width for the first column to 0 and change the grid-gap because otherwise you will have a (not needed) gap at the left.
  9. Jan 2021
    1. So, what I've discovered in a meanwhile. It was an ubuntu-docker issue. Recently I upgraded my ubuntu from 16.04 to 18.04. This change seems to be incompatible with the docker version I had, 1.11.0.
    1. 1) QT Apps load very slow in startup (ex, qpdfview, Audacious), had to look at Ubuntu forums to find a solution installing kvantum and KvYAru theme, so this is solved at the moment; but the theme (SVG based, cannot modify it in a text file) have orange highlights, not consistent with Mint-Y theme, but it is the best option at the moment. This temporary solution I found was here: https://itectec.com/ubuntu/ubuntu-qt-apps-are-very-slow-to-load-in-xubuntu-20-04-when-export-qt_qpa_platformthemegtk2-is-enabled/
    1. I think some of the design details are insane (I dislike the binary logs, for example), but those are details, not big issues.
    2. Systemd problems might not have mattered that much, except that GNOME has a similar attitude; they only care for a small subset of the Linux desktop users, and they have historically abandoned some ways of interacting the Desktop in the interest of supporting touchscreen devices and to try to attract less technically sophisticated users. If you don't fall in the demographic of what GNOME supports, you're sadly out of luck.
    1. Situation: you have a single line of text in a flex child element. You don’t want that text to wrap, you want it truncated with ellipsis (or fall back to just hiding the overflow). But the worst happens. The unthinkable! The layout breaks and forces the entire flex parent element too wide. Flexbox is supposed to be helping make layout easier!
    1. n the mid-1920s, he had speech therapy for a stammer, which he learned to manage to some degree.