3,395 Matching Annotations
  1. Apr 2021
    1. class AuthConstraint def initialize(&block) @block = block || ->(_) { true } end def matches?(req) user = current_user(req) user.present? && @block.call(user) end def current_user(req) User.find_by_id(session[:user_id]) end end This is a flexible approach to defining route access based on any desired variable (roles, auth, etc...)

      Good solution, and might be needed if you want to base routes on roles, etc. — but this one is even easier if all you need is for it to be conditional based on signed in or not (because devise provides authenticated helper):

      https://hyp.is/lRq8tpNXEeuNn_9NxqJvdA/stackoverflow.com/questions/32407598/rails-4-devise-set-default-root-route-for-authenticated-users

  2. Mar 2021
    1. A great little outline for how to do class retrospectives. While there's a lot of subtlety and a huge gradient between individual learners many of the methods and pro/con lists help to show the differences between them. I'd be curious to see one try all (or as many as possibly) to cover as many of the eventualities as possible.

      Too often teachers don't bother with these, but they can be incredibly useful, particularly for helping to attempt to improve future incarnations, as well as to guard against the curse of knowledge.

      I like that hyperlink.academy is doing some of the necessary work to expose their teachers to this sort of material. Too often it is only done in the academy in perfunctory ways which aren't designed to improve anything. Additionally the academy provides little, if any, training in the areas of pedagogy. Hyperlink.academy is making strides to provide some of this material and doing a reasonable job of exposing their teachers to it.

    2. We encourage course creators to dedicate time in their courses for a retro. Every cohort of a course is an experiment shaped by all participants, and what you learn can improve the course in important ways. Getting good feedback from learners is a key part of making sure that the course is always evolving in the right direction.

      This really should be done each class and even down to the atomic level as just once at the end is not going to pull out enough to be as beneficial as one might hope to help to overcome the curse of knowledge.

    1. Recognizing the role that federal leadership can play in breaking this cycle, the Council is pursuing steps to reduce criminal justice system involvement among people experiencing homelessness, both by reducing the criminalization of homelessness and the return of people from correctional settings to homelessness. Specific action areas include:

      criminals make up poor people crazy stuff mannnn

    1. With all this “monetization” happening around Trailblazer, we will also make sure that all free and paid parts of the project grow adult and maintan an LTS - or long-term support - status. Those are good news to all you users out there having been scared to use gems of this project, not knowing whether or not they’re being maintained, breaking code in the future or making your developers addicted to and then cutting off the supply chain. Trailblazer 2.1 onwards is LTS, and the last 1 ½ years of collaboration have proven that.
    1. Q: So, this means you don’t value hearing from readers?A: Not at all. We engage with readers every day, and we are constantly looking for ways to hear and share the diversity of voices across New Jersey. We have built strong communities on social platforms, and readers inform our journalism daily through letters to the editor. We encourage readers to reach out to us, and our contact information is available on this How To Reach Us page.

      We have built strong communities on social platforms

      They have? Really?! I think it's more likely the social platforms have built strong communities which happen to be talking about and sharing the papers content. The paper doesn't have any content moderation or control capabilities on any of these platforms.

      Now it may be the case that there are a broader diversity of voices on those platforms over their own comments sections. This means that a small proportion of potential trolls won't drown out the signal over the noise as may happen in their comments sections online.

      If the paper is really listening on the other platforms, how are they doing it? Isn't reading some or all of it a large portion of content moderation? How do they get notifications of people mentioning them (is it only direct @mentions)?

      Couldn't/wouldn't an IndieWeb version of this help them or work better.

    1. I've come across about 20 reference for Ivan Illitch over the past month. Not sure what is driving it. Some mentions are coming out of educator circles, others from programmers, some from what I might describe as "knowledge workers" (digital gardeners/Roam Cult/Obsidian crowds). One tangential one was from someone in the hyperlink.academy crowd.

      Here's a recent one from today that popped up within a thread shared in IndieWeb chat:

      Ivan Illich continues to be even more more relevant than he was at the height of his New Left popularity. Conviviality in the digital tools we use has continued to wither https://t.co/D88V6KL7Ez pic.twitter.com/OFDYTjXyCn

      — Count Bla (@123456789blaaa) March 15, 2021
      <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>

      Deschooling Society and Tools for Conviviality look very interesting. Perhaps they've distilled enough that their ideas are having a resurgence?

    2. He wrote that "[e]lite professional groups ... have come to exert a 'radical monopoly' on such basic human activities as health, agriculture, home-building, and learning, leading to a 'war on subsistence' that robs peasant societies of their vital skills and know-how. The result of much economic development is very often not human flourishing but 'modernized poverty', dependency, and an out-of-control system in which the humans become worn-down mechanical parts."[13] Illich proposed that we should "invert the present deep structure of tools" in order to "give people tools that guarantee their right to work with independent efficiency."[34]

      Amazon anyone?

    1. are just discovering it,

      I know exactly what you mean. My experience? There are very few tools worth adopting for the long haul, ones that repay the time invested. Hypothes.is is a worthwhile investment of time and talent. I would not advocate for its use to my students if I did not think it was a net gain in the brain.

    1. If JavaScript were detached from the client and server platforms, the pressure of being a monoculture would be lifted — the next iteration of the JavaScript language or run-time would no longer have to please every developer in the world, but instead could focus on pleasing a much smaller audience of developers who love JavaScript and thrive with it, while enabling others to move to alternative languages or run-times.
    2. As to opinions about the shortcomings of the language itself, or the standard run-times, it’s important to realize that every developer has a different background, different experience, different needs, temperament, values, and a slew of other cultural motivations and concerns — individual opinions will always be largely personal and, to some degree, non-technical in nature.
    1. Dafa ànd ak moroom yi àll ba, fori aloom.

      Il est allé dans la brousse ramasser des fruits de Diospyros avec ses camarades.

      dafa -- he/she.

      ànd v. / ànd bi -- to be together, to go together; copulate; going together, fellowship; placenta.

      ak -- and, with, etc.

      moroom mi -- comrade of the same age group, equal, companion, neighbor.

      yi -- the (plural).

      àll bi -- large expanse of uninhabited land, bush; distant, as opposed to home.

      ba -- the (indicates distance).

      for+i (for) v. -- to pick up.

      aloom bi -- edible fruit of Diospyros mespiliformis (aloom gi for the tree).

      https://www.youtube.com/watch?v=nL4iHgp5ejk

  3. Feb 2021
    1. URI::MailTo::EMAIL_REGEXP

      First time I've seen someone create a validator by simply matching against URI::MailTo::EMAIL_REGEXP from std lib. More often you see people copying and pasting some really long regex that they don't understand and is probably not loose enough. It's much better, though, to simply reuse a standard one from a library — by reference, rather than copying and pasting!!

    1. They cannot simply put this article online on their blog: to be recognised as research work, it must be published in a respectable peer-reviewed journal.

      Why not? Why couldn't they put their articles on their own sites or even those of the libraries of their institutions where others might read and evaluate them? annotate them? argue over all the fine points?

    1. This didn't work for me. Answering "y" somehow causes the script to finish immediately, rather than letting children continue sleeping. (Same thing if I make the signal handler function an empty no-op.) Does anyone know why it doesn't work for me or how to get it to work? It's as if the interrupt gets propagated to the child processes too so that it's no longer waiting for them.
    1. A popular strategy for bootstrapping networks is what I like to call “come for the tool, stay for the network.” The idea is to initially attract users with a single-player tool and then, over time, get them to participate in a network. The tool helps get to initial critical mass. The network creates the long term value for users, and defensibility for the company.

      This is an interesting and useful strategy. I've heard the idea several times before.

      I'm curious if this is the oldest version of it? I have to imagine that there are earlier versions of it dating back to 2011 or 2012 if not earlier.

    1. stolen love from the child and infant and made it the exclusive property of the adolescent and adult

      Love is not exclusive to adults and adolescents as there are many types of love. I do not believe it has been stolen but added to love in general.

    1. The idea of a purely linear text is a myth; readers stitch together meanings in much more complex ways than we have traditionally imagined; the true text is more of a network than a single, fixed document.

      The internet isn't a new invention, it's just a more fixed version of the melange of text, ideas, and thought networks that have existed over human existence.

      First there was just the memory and indigenous peoples all over the world creating vast memory palaces to interconnect their thoughts. (cross reference the idea of ancients thinking much the way we do now from the fist episode or so of Literature and History)

      Then we invite writing and texts which help us in terms of greater storage without the work or relying solely on memory. This reaches it's pinnacle in the commonplace book and the ideas of Llull's combinatorial thought.

      Finally we've built the Internet which interconnects so much more.

      But now we need to go back and revisit the commonplace book and memory techniques to tie them altogether. Perhaps Lynne Kelly's concept of The Third Archive is what we should perfect next until another new instantiation comes to augment the system.

    1. They also turned their reading into writing, because commonplacing made them into authors. It forced them to write their own books; and by doing so they developed a still sharper sense of themselves as autonomous individuals. The authorial self took shape in the common man’s commonplace book, not merely in the works of great writers. It belonged to the general tendency that Stephen Greenblatt has called “Renaissance self-fashioning.”

      This fits into my broader developing thesis about thinking and writing as a means of evolving thought.

    1. “Media companies were investing a huge amount of time, money, and effort in building out these huge audiences on social media…but at the end of the day, they’re renting those audiences from social media [companies], as opposed to owning those relationships,” Donoghue said.

      Media companies are spending huge amounts of time investing in social media, but they're also simultaneously renting their audiences back.

      Who rents a $350/month apartment and then spends $5,000 a month sprucing it up?

    1. unfamiliar—that is, a metaphorical Journey in which designers move into unchartered territory by attempting to formulate what hasn’t yet been formulated.

      Head Scratcher: using this simple explanation of "unfamiliar" we can see that it is difficult to navigate through territory that has not been properly formed yet or mapped out.

      How do we move forward as Instuctional Designers into the future of Education and Instruction?

      My best efforts so far have been to never be afraid to try new models or technology to lead your instruction.

    1. Critical and creative thinkers engage in active planning and forethought to set goals, outline strategies, and determine the best methods through which they can achieve their goals

      Head Scratcher: How are we promoting critical and creative thinkers in our instruction?

      As a high school math teacher this can be easier at times, and more difficult at times depending on the class and the course material. At times it is easy to promote creative when dealing with honors classing and higher math courses. But when working with remedial Algebra classes it can be more difficult to promote creativity and critical thinking because of high levels of apathy and prior knowledge. Sometimes the best way to promote success in those classes is through repetition and memeorization of steps to solve common test promblems.

    1. Are designers also wasting the time of the critics?

      Wow what a way to end the chapter. Are instcutional Designers wasting their time decorating their instruction or filling them with jargon that they miss the point of educating the learners.

      This is a wonderful story about something that anyone could be familiar with and understand how instrucitonal design can go at times. Lending to the attractiveness and lacking on the informing side.

    1. Mr./Mrs. Cardholder, please note that we’ll not be able to assist you if you have not entered your card information using the right prompts in our Automated Telephone System/IVR. Therefore, I am going to have to transfer you to the Automated Telephone System so you can enter your card information using the relevant prompts and, if needed, press the right option to talk to one of our customer service representatives.
    1. But all of these attempts misunderstand why the Open Source ecosystem is successful as a whole. The ecosystem of fairly standard licenses provides a level playing field that allows collaboration with low friction, and produces massive value for everyone involved – both to those that contribute and to those that don't. It is not without problems (there are many essential but unsexy projects that are struggling with funding), but introducing more friction won't improve the success of this ecosystem – it will just lead to some parts of the ecosystem to break off.
    1. There is one situation where iframes are (almost) required: when the contents of the iframe is in a different domain, and you have to perform authentication or check cookies that are bound to that domain. It actually prevents security problems instead of creating them. For example, if you're writing a kind of plugin that can be used on any website, but the plugin has to authenticate on another domain, you could create a seamless iframe that runs and authenticates on the external domain.
  4. Jan 2021
    1. Evidence synthesis, which collates, appraises, and summarises results from individual studies across an evidence base and makes them available for policy advice, is particularly well organised in the health sciences; a key role is played here by the global knowledge network Cochrane, founded in 1993 and seated in London. T
    1. 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. Ubuntu also supports ‘snap’ packages which are more suited for third-party applications and tools which evolve at their own speed, independently of Ubuntu. If you want to install a high-profile app like Skype or a toolchain like the latest version of Golang, you probably want the snap because it will give you fresher versions and more control of the specific major versions you want to track.
    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. Would you work for free? It is a simple but loaded question that requires additional context. Is it working to help a friend do something? Is it work that you would enjoy? Does the act of working for free give you some level of satisfaction? Your gut reaction to the question may have been a hearty, “No,” but many people volunteer for a variety of things all the time, so people will work for free when there is something in it they enjoy.
    2. These developers are not greedy or selfish for wanting funding for their projects. To the contrary, they want funding to keep the project alive. A person has to eat, after all. Funding the project is a means of changing the maintainer’s timeshare—allowing themselves to put time into the project that otherwise would be used for other employment. There is only so much time in a day that a person can otherwise give.
    3. Funding should not be a struggle for open source projects. We embrace open source into our codebases frequently but have yet to fully embrace the idea that funding it actually helps us too. The bug fixes and feature requests need to be implemented, tested, and reviewed by someone who themselves can only put so much time into the project.
    1. I can hardly fault your English. It is actually very good. I take your statement as invitation for corrections. This (being corrected by others) was the most helpful when I came to live in this my country and had to learn English very quickly. Swim or Sink, I was told.
  5. Dec 2020
    1. No more waiting around for pull requests to be merged and published. No more forking repos just to fix that one tiny thing preventing your app from working.

      This could be both good and bad.

      potential downside: If people only fix things locally, then they may be less inclined/likely to actually/also submit a merge request, and therefore it may be less likely that this actually (ever) gets fixed upstream. Which is kind of ironic, considering the stated goal "No more waiting around for pull requests to be merged and published." But if this obviates the need to create a pull request (does it), then this could backfire / work against that goal.

      Requiring someone to fork a repo and push up a fix commit -- although a little extra work compared to just fixing locally -- is actually a good thing overall, for the community/ecosystem.

      Ah, good, I see they touched on some of these points in the sections:

      • Benefits of patching over forking
      • When to fork instead
  6. Nov 2020
    1. It's super promising for web apps, just maybe not for web pages. I went from React to Svelte to Flutter for my current app project, and every step felt like a major upgrade.Flutter provides the best developer experience bar none, and I think it also has the potential to provide the best user experience. But probably only for PWAs, which users are likely to install anyway. Or other self-contained experiences, like Facebook games. It does have some Flash vibes, but is far more suitable for proper app development than Flash ever was while still feeling more like a normal website to the average user. It won't be the right choice for everything, but I believe it will be for a lot of things.
    2. Svelte by itself is great, but doing a complete PWA (with service workers, etc) that runs and scales on multiple devices with high quality app-like UI controls quickly gets complex. Flutter just provides much better tooling for that out of the box IMO. You are not molding a website into an app, you are just building an app. If I was building a relatively simple web app that is only meant to run on the web, then I might still prefer Svelte in some cases.
    1. Scenario

      Inshot Storytelling app, Video Editor & Video Maker InShot has a lot of photo and video editing features in one. There is a small learning curve. Many girls on the field have creatively combined photo and video content, applied effects and enhancements to specific sections and added transitions too. Harnessing the capabilities of InShot for storytelling has immense possibilities. It could potentially lead to a creators movement where people share details about their lives through videos and narration. It also could be used for product stories and marketing. InShot app runs on a phone and ASPi is used as a repository and exchange node - during COVID lockdown, a server online is also used so physical movement is reduced.

      Syncthing. A continuous file synchronization program Ever thought of connotations of sharing in today’s world. Well, Syncthing allows us to securely backup data without the need to trust a third-party cloud provider. Sharing and syncing files between devices on a local network or over the internet is made easier through Syncthing. This could help in fostering community archives as access to files over multiple devices can be made effortless. In localised sense, people can also look up resources or their queries and find answers with their peers.

    2. Scenario 1

      Kolibri The offline app for universal education Kolibri makes high quality education technology available in low-resource communities such as rural schools, refugee camps, orphanages, non-formal school systems, and prison systems. While the internet has thoroughly transformed the availability of educational content for much of the world, many people still live in places where online access is poor or even nonexistent. Kolibri is a great solution for these communities. It's an app that creates an offline server to deliver high-quality educational resources to learners. What makes Kolibri unique is that it offers a way to bring different content sources offline into a central repository in a structured way. Beyond that, it brings in a host of tools to help align the content with national and local curricular standards, and on the student side it offers a self-paced personalized learning experience with support tools for teachers to track student progress. Kolibri can be envisioned also for local teaching, DIY courses, self initiated inquiries, equal opportunities for 21st century skills etc.

    1. When you email me, please include a minimal bash script that demonstrates the problem in the body of the email (not as an attachment). Also very clearly state what the desired output or effect should be, and what error or failure you are getting instead. You are much more likely to get a response if your script isn't some giant monster with obtuse identifiers that I would have to spend all afternoon parsing.
    1. In Rust, we use the "No New Rationale" rule, which says that the decision to merge (or not merge) an RFC is based only on rationale that was presented and debated in public. This avoids accidents where the community feels blindsided by a decision.
    2. I'd like to go with an RFC-based governance model (similar to Rust, Ember or Swift) that looks something like this: new features go through a public RFC that describes the motivation for the change, a detailed implementation description, a description on how to document or teach the change (for kpm, that would roughly be focused around how it affected the usual workflows), any drawbacks or alternatives, and any open questions that should be addressed before merging. the change is discussed until all of the relevant arguments have been debated and the arguments are starting to become repetitive (they "reach a steady state") the RFC goes into "final comment period", allowing people who weren't paying close attention to every proposal to have a chance to weigh in with new arguments. assuming no new arguments are presented, the RFC is merged by consensus of the core team and the feature is implemented. All changes, regardless of their source, go through this process, giving active community members who aren't on the core team an opportunity to participate directly in the future direction of the project. (both because of proposals they submit and ones from the core team that they contribute to)
    1. Express - 19 $ 🏃‍♀️ Skip the Review Queue 🕒 Published in 3 days 💌 Full Customer Support 💚 Support the team

      Wow, after seeing how this site works, I don't like much like it anymore.

      Esp. this below:

      Choose your preferred publish date - 9 $ Feature your project on top for 14 days and get an additional tweet - 19 $

      I hope there is/will be soon a more open/free alternative (like the "awesome" lists that use GitHub PRs instead of an opaque/proprietary submisison form).