171 Matching Annotations
  1. Last 7 days
    1. The best-known, most recent version of the story is the 1995 WaltDisney animated film. Strikingly beautiful, unnervingly buxom, and morelike a pop culture diva than a member of the Tsenacommacah tribe,Disney’s Pocahontas fabulously communes with nature, befriending araccoon, talking to a tree;
  2. Feb 2024
    1. The input format of the xargs command doesn't match what any other command produces. Yes, it's bizarre. With -I, xargs ignores indentation, which is why the file names with initial spaces are mangled. Do not use xargs except with the -0 option or when you know your input doesn't contain characters that would confuse it.
  3. Jan 2024
    1. Prepare to transition away from Google Sync Google Sync doesn’t support OAuth authentication, 2-factor authentication, or security keys, which leaves your organization’s data less secure.
  4. Nov 2023
    1. Autoloading in Rails was based on const_missing up to Rails 5. That callback lacks fundamental information like the nesting or the resolution algorithm being used. Because of that, Rails autoloading was not able to match Ruby's semantics, and that introduced a series of issues. Zeitwerk is based on a different technique and fixed Rails autoloading starting with Rails 6.
    1. ActiveRecord::Base.normalizes declares an attribute normalization. The normalization is applied when the attribute is assigned or updated, and the normalized value will be persisted to the database. The normalization is also applied to the corresponding keyword argument of query methods, allowing records to be queried using unnormalized values.

      Guess I don't need to use mdeering/attribute_normalizer gem anymore...

  5. Oct 2023
  6. Sep 2023
    1. I agree with this statement so much. We should absolutely be failing hard rather than forcing people to debug thread safety issues at runtime. I can't think of anything more infuriating than debugging an issue that happens "sometimes".
    2. The problem is that in the case where an app is multi-threaded, and we don't switch off autoload, the case would be that it probably won't blow up, but random stuff will mysteriously sometimes fail in weird ways. So ask yourself this, what would you rather want, option 1) where you can get an exception at runtime, or option 2) where you get random, unpredictable, weird, hard to explain, difficult to debug bugs at runtime. Personally, I'm going to choose option 1. The downside of thread-safety issues is so much worse than the downside of the possibility of an exception. The way you're handling it makes it sound as though thread-safety is not important, as though Rails is still optimizing for the single-threaded case. That seems like a huge step back.
  7. Jun 2023
    1. I think we have a responsibility not only to ourselves, but also to each other, to our community, not to use Ruby only in the ways that are either implicitly or explicitly promoted to us, but to explore the fringes, and wrestle with new and experimental features and techniques, so that as many different perspectives as possible inform on the question of “is this good or not”.
    2. If you’ll forgive the pun, there are no constants in programming – the opinions that Rails enshrines, even for great benefit, will change, and even the principles of O-O design are only principles, not immutable laws that should be blindly followed for the rest of time. There will be other ways of doing things. Change is inevitable.
  8. May 2023
    1. Map of Content Vizualized (VMOC)

      a start of thinking on the space of converging written and visual thinking, but not as advanced as even Raymond Llull or indigenous ways of knowing which more naturally merge these modes of thinking.

      Western though is just missing so much... sigh

  9. Mar 2023
    1. Despite attempts such as the HistoryWorkshop movement in Great Britain, Scandinavia, and Germany to break out ofthe narrow confines of the historical discipline and to encourage the writing ofhistories of and by common people, new fields of history, such as women’s andgender studies, are centered mostly at universities and follow established careerlines.
    1. As an aside, I think I now prefer this technique to Python for at least one reason: passing arguments to the decorator method does not make the technique any more complex. Contrast this with Python: <artima.com/weblogs/viewpost.jsp?thread=240845>
    2. When you call 'foo' in Ruby, what you're actually doing is sending a message to its owner: "please call your method 'foo'". You just can't get a direct hold on functions in Ruby in the way you can in Python; they're slippery and elusive. You can only see them as though shadows on a cave wall; you can only reference them through strings/symbols that happen to be their name. Try and think of every method call 'object.foo(args)' you do in Ruby as the equivalent of this in Python: 'object.getattribute('foo')(args)'.
    3. def document(f): def wrap(x): print "I am going to square", x f(x) return wrap @document def square(x): print math.pow(x, 2) square(5)
  10. Jan 2023
    1. If it interests you, GPC lists phrases like dysgu ar gof. This page then gives the example, "Yn yr hen ddyddiau byddai pobl yn dysgu cerddi ar gof" - like saying "to learn by heart" in English.

      https://www.reddit.com/r/learnwelsh/comments/10acr9j/sut_i_ddweud_i_memorized_yn_gymraeg/

      Fascinating that the Welsh language doesn't seem to have a direct translatable word/verb for "to memorize". The closest are dysgu (to learn, to teach) and cofio (to remember).

      Related phrase: yn dysgu cerddi ar gof (to learn poems by heart), though this last is likely a more direct translation of an English concept back into Welsh.

      Is this lack of a seemingly basic word for such a practice a hidden indicator of the anthropology of their way of knowing?

      If to learn something means that one fully memorizes it from the start, then one needn't sub-specify, right?

    1. I've worked with and have helped maintain paranoia for a while. I'm convinced it does the wrong thing for most cases. Paranoia and acts_as_paranoid both attempt to emulate deletes by setting a column and adding a default scope on the model. This requires some ActiveRecord hackery, and leads to some surprising and awkward behaviour.
    1. the important thing to point out is that when we think of the self this way the self isn't my body or my mind i don't take my body to be myself and 00:17:39 we're going to see that in a moment but i think of the self the target of this analysis the snake in the wall as the thing that has a body the thing that has a mind and of course if we were 00:17:50 operating in india and taking a doctrine of reincarnation or rebirth for granted we would think of it as the thing that in different lives appropriates different bodies and minds um and 00:18:02 but remains the same through those lives but if we're not in a kind of reincarnation and rebirth kind of mood um then we might think that it's just the thing that endures through our entire life while everything else 00:18:15 changes that is um the thing that was me when i was an itty-bitty baby when i was a young handsome guy when now that i'm an old guy um that it's there's something continuous there and we think of that as 00:18:28 the self

      !- different ways to think of : the self - the thing that has the mind or the body - the thing that endures through life while everything else changes, it was me as a baby, a child, a young man, an old man, etc.

  11. Dec 2022
    1. In anthropology, Verstehen has come to mean a systematic interpretive process in which an outside observer of a culture attempts to relate to it and understand others.

      Verstehen seems to have a similar semantic meaning for an "outsider" making an attempt to understand different (indigenous) ways of knowing.

  12. Nov 2022
  13. Oct 2022
    1. This effort, which Americans have supported almostfrom the beginning of the national existence and which is oneof the cornerstones of our democratic way of life, has hadremarkable results.

      Read in juxtaposition with the knowledge of orality and along with Graeber & Wengrow's The Dawn of Everything, one could certainly argue that there are other ways of knowing which provide potentially better pathways to democracy.

      Further, the simple fact of basic literacy doesn't necessarily encourage democracy. Take a look at the January 6th (2021) insurrectionists who were likely broadly literate, but who acted more like a damaged oral society and actively subverted democracy.

      Literacy plus "other things" are certainly necessary for democracy. How do we define these other things, and then once we have, is literacy still part of the equation for democracy?

  14. Sep 2022
    1. 'Pretty Peggy O' was collected by Cecil Sharp from Mrs Combs, Knott County Kentucky in 1908.

      There's an interesting parallel to the knowledge that Cecil Sharp collected the song from Mrs. Combs in Knott County Kentucky in 1908 and the same sorts of citations given by indigenous peoples who often indicate where they learned a piece of knowledge.

  15. Jul 2022
    1. we often have too narrow an appreciation of   knowing focusing too much on one or two kinds  of knowing but to live well in a complex world   we need to effectively engage with four kinds  of knowing and perfectly they all begin with a P

      Title: Four Kinds of Knowing Author: Rich Watkins Date

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

  16. May 2022
    1. Whig history (or Whig historiography), often appearing as whig history, is an approach to historiography that presents history as a journey from an oppressive and benighted past to a "glorious present".[1] The present described is generally one with modern forms of liberal democracy and constitutional monarchy: it was originally a satirical term for the patriotic grand narratives praising Britain's adoption of constitutional monarchy and the historical development of the Westminster system.[2] The term has also been applied widely in historical disciplines outside of British history (e.g. in the history of science) to describe "any subjection of history to what is essentially a teleological view of the historical process".[3] When the term is used in contexts other than British history, "whig history" (lowercase) is preferred.[3]

      Stemming from British history, but often applied in other areas including the history of science, whig history is a historiography that presents history as a path from an oppressive, backward, and wretched past to a glorious present. The term was coined by British Historian Herbert Butterfield in The Whig Interpretation of History (1931). It stems from the British Whig party that advocated for the power of Parliament as opposed to the Tories who favored the power of the King.


      It would seem to be an unfortunate twist of fate for indigenous science and knowledge that it was almost completely dismissed when the West began to dominate indigenous cultures during the Enlightenment which was still heavily imbued with the influence of scholasticism. Had religion not played such a heavy role in science, we may have had more respect and patience to see and understand the value of indigenous ways of knowing.

      Link this to notes from The Dawn of Everything.

  17. Apr 2022
    1. In studies comparing European American children withMayan children from Guatemala, psychologists Maricela Correa-Chávez andBarbara Rogoff asked children from each culture to wait while an adultperformed a demonstration—folding an origami shape—for another childnearby. The Mayan youth paid far more sustained attention to the demonstration—and therefore learned more—than the American kids, who were oftendistracted or inattentive. Correa-Chávez and Rogoff note that in Mayan homes,children are encouraged to carefully observe older family members so that theycan learn how to carry out the tasks of the household, even at very young ages.

      American children aren't encouraged to as attentive imitators as their foreign counterparts and this can effect their learning processes.

  18. Mar 2022
    1. The reason for the new name is that the "dist-upgrade" name was itself extremely confusing for many users: while it was named that because it was something you needed when upgrading between distribution releases, it sounded too much as though it was only for use in that circumstance, whereas in fact it's much more broadly applicable.
    1. In the Warlpiri Aboriginal language of Central Australia, you do notdescribe positions of things with yourself as the focal reference point.Rather, your position is defined within the world around you. InWarlpiri, my computer is south of me, my cat is sleeping west of meand the door is east of me. It requires you to always know thecardinal directions (north, south, east and west), no matter yourorientation. Any one person is not the centre of the world, they arepart of it.

      Western cultures describe people's position in the world with them as the center, while Indigenous cultures, like those of the Warlpiri Aboriginal language of Central Australia, embed the person as part of the world and describe their position with respect to it using the cardinal directions.

    2. The First Astronomers challenges commonly held views thatIndigenous ways of knowing do not contain science.

      When reviewing back over at the end, ask:

      Did the book show that Indigenous ways of knowing do contain "science"? What evidence is presented here?

    3. These ways of knowinghave inherent value and are leading Western scientists to betterunderstand celestial phenomena and the history and heritage thisconstitutes for all people.

      The phrase "ways of knowing" is fascinating and seems to have a particular meaning across multiple contexts.

      I'd like to collect examples of its use and come up with a more concrete definition for Western audiences.

      How close is it to the idea of ways (or methods) of learning and understanding? How is it bound up in the idea of pedagogy? How does it relate to orality and memory contrasted with literacy? Though it may not subsume the idea of scientific method, the use, evolution, and refinement of these methods over time may generally equate it with the scientific method.

      Could such an oral package be considered a learning management system? How might we compare and contrast these for drawing potential equivalencies of these systems to put them on more equal footing from a variety of cultural perspectives? One is not necessarily better than another, but we should be able to better appreciate what each brings to the table of world knowledge.

  19. Feb 2022
    1. Dispatch a custom event. This differs from Svelte's component event system, because these events require a DOM element as a target, can bubble (and do by default), and are cancelable with event.preventDefault(). All SMUI events are dispatched with this instead of Svelte's createEventDispatcher.
    1. https://www.latimes.com/california/story/2022-02-09/riverside-sohcahtoa-teacher-viral-video-mocked-native-americans-fired

      Riverside teacher who dressed up and mocked Native Americans for a trigonometry lesson involving a mnemonic using SOH CAH TOA in Riverside, CA is fired.

      There is a right way to teach mnemonic techniques and a wrong way. This one took the advice to be big and provocative went way overboard. The children are unlikely to forget the many lessons (particularly the social one) contained here.

      It's unfortunate that this could have potentially been a chance to bring indigenous memory methods into a classroom for a far better pedagogical and cultural outcome. Sad that the methods are so widely unknown that media missed a good teaching moment here.

      referenced video:

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

      A snippet at the end of the video has the teacher talking to rocks and a "rock god", but it's extremely unlikely that she was doing so using indigenous methods or for indigenous reasons.

      read: 7:00 AM

  20. Jan 2022
  21. notesfromasmallpress.substack.com notesfromasmallpress.substack.com
    1. If booksellers like to blame publishers for books not being available, publishers like to blame printers for being backed up. Who do printers blame? The paper mill, of course.

      The problem with capitalism is that in times of fecundity things can seem to magically work so incredibly well because so much of the system is hidden, yet when problems arise so much becomes much more obvious.

      Unseen during fecundity is the amount of waste and damage done to our environments and places we live. Unseen are the interconnections and the reliances we make on our environment and each other.

      There is certainly a longer essay hiding in this idea.

    1. Instead of render props, we use Svelte's slot props: // React version <Listbox.Button> {({open, disabled} => /* Something using open and disabled */)} </Listbox.Button> <!--- Svelte version ---> <ListboxButton let:open let:disabled> <!--- Something using open and disabled ---> </ListboxButton>
  22. Oct 2021
  23. Sep 2021
    1. Saying that web devs used to be fine with relative imports is like saying that human beings used to be fine living without refrigerators. Sure we did. But was it better than it is now? No. No, it wasn't.
    1. Update API usage of the view helpers by changing javascript_packs_with_chunks_tag and stylesheet_packs_with_chunks_tag to javascript_pack_tag and stylesheet_pack_tag. Ensure that your layouts and views will only have at most one call to javascript_pack_tag or stylesheet_pack_tag. You can now pass multiple bundles to these view helper methods.

      Good move. Rather than having 2 different methods, and requiring people to "go out of their way" to "opt in" to using chunks by using the longer-named javascript_packs_with_chunks_tag, they changed it to just use chunks by default, out of the box.

      Now they don't need 2 similar but separate methods that do nearly the same, which makes things simpler and easier to understand (no longer have to stop and ask oneself, which one should I use? what's the difference?).

      You can't get it "wrong" now because there's only one option.

      And by switching that method to use the shorter name, it makes it clearer that that is the usual/common/recommended way to go.

    2. Webpacker used to configure Webpack indirectly, which lead to a complicated secondary configuration process. This was done in order to provide default configurations for the most popular frameworks, but ended up creating more complexity than it cured. So now Webpacker delegates all configuration directly to Webpack's default configuration setup.

      more trouble than it's worth

      • creating more complexity than it cured
    1. This is no different from other popular libraries or frameworks making huge architectural changes (think React 16.8 with hooks or Python 3). The longer you wait to make the switch, the more painful it will be for your project when you finally do. And in the meantime, you’ll be missing out on valuable improvements to a fundamental part of the workflow of every single project you work on.
  24. Aug 2021
  25. Jun 2021
    1. Different ways to prepend a line: (echo 'line to prepend';cat file)|sponge file sed -i '1iline to prepend' file # GNU sed -i '' $'1i\\\nline to prepend\n' file # BSD printf %s\\n 0a 'line to prepend' . w|ed -s file perl -pi -e 'print"line to prepend\n"if$.==1' file
    1. The first argument to shared_context (the shared group name) is superfluous. It feels a bit like "what's this argument for again?" (Note that you could still use it with include_context to include the group manually, but it's a bit odd to mix-and-match the approaches).
    1. Once a variable is specified with the use method, access it with EnvSetting.my_var Or you can still use the Hash syntax if you prefer it: EnvSetting["MY_VAR"]
  26. May 2021
    1. CommonJS has served us well for many years, but ESM comes with many benefits, like language-level syntax, browser support, defaults to strict mode, async loading, top-level await, improved static analysis & tree-shaking, and more.
  27. Apr 2021
    1. Lumberjack 1.0 had a concept of a unit of work id that could be used to tie log messages together. This has been replaced by tags. There is still an implementation of Lumberjack.unit_of_work, but it is just a wrapper on the tag implementation.
    1. What you want is not to detect if stdin is a pipe, but if stdin/stdout is a terminal.

      The OP wasn't wrong in exactly the way this comment implies: he didn't just ask how to detect whether stdin is a pipe. The OP actaully asked how to detect whether it is a terminal or a pipe. The only mistake he made, then, was in assuming those were the only two possible alternatives, when in fact there is (apparently) a 3rd one: that stdin is redirected from a file (not sure why the OS would need to treat that any differently from a pipe/stream but apparently it does).

      This omission is answered/corrected more clearly here:

      stdin can be a pipe or redirected from a file. Better to check if it is interactive than to check if it is not.

    2. stdin can be a pipe or redirected from a file. Better to check if it is interactive than to check if it is not.
    1. Factory FunNER is the sequel and a very solid improvement to Factory Fun. It uses hexes instead of squares to allow more creative building, and some subtle improvements to scoring, length, and machine placement rules really improve things.
    1. Now that we’ve gotten newer layout features — again, like grid and flexbox — floats, too, have sort of fallen by the wayside, perhaps either because there are better ways to accomplish what they do
  28. Mar 2021
    1. My preference here is biased by the fact that I spend everyday at work building web components, so Svelte's approach feels very familiar to slots in web components.

      first sighting: That <template>/<slot> is part of HTML standard and the reason Svelte uses similar/same syntax is probably because it was trying to make it match / based on that syntax (as they did with other areas of the syntax, some of it even JS/JSX-like, but more leaning towards HTML-like) so that it's familiar and consistent across platforms.

    1. One thing that would be useful to this debate an analysis of a language ecosystem where there are only "macropackages" and see if the same function shows up over and over again across packages.
  29. Feb 2021
    1. That’s it. If you have a previous “precompile” array, in your app config, it will continue to work. For continuity sake I recommend moving over those declarations to your manifest.js file so that it will be consistent.
    2. Instead of having this confusing maze of lambdas, regexes, and strings, we could, in theory, introduce a single entry point of configuration for Sprockets to use, and in that file declare all assets we wanted to compile. Well, that’s exactly what the manifest.js file is.
    1. You’re allowed to blame us for a terrible developer experience in Trailblazer 2.0. It’s been quite painful to find out which step caused an exception. However, don’t look back in anger! We’ve spent a lot of time on working out a beautiful way for both tracing and debugging Trailblazer activities in 2.1.
    1. The activity gem is an extraction from Trailblazer 2.0, where we only had operations. Operations expose a linear flow which goes into one direction, only. While this was a massive improvement over messily nested code, we soon decided it’s cool being able to model non-linear flows. This is why activities are the major concept since Trailblazer 2.1.
    1. While Trailblazer offers you abstraction layers for all aspects of Ruby On Rails, it does not missionize you. Wherever you want, you may fall back to the "Rails Way" with fat models, monolithic controllers, global helpers, etc. This is not a bad thing, but allows you to step-wise introduce Trailblazer's encapsulation in your app without having to rewrite it.
    1. Yes, Trailblazer is adding new abstractions and concepts and they are different to the 90s-Ruby, but now, at the latest, it becomes obvious how this improves the developing process. We’re no longer talking in two-dimensional method stack traces or byebug hoops, the language and conception is changing to the actual higher level code flow, to activities sitting in activities structured into smaller step units.
    2. We removed the trailblazer-loader gem just like Apple removed the headphone jack from the iPhone 6. This brings you faster startup and consistency with Rails autoloading.
    1. {a: 1, b: 2, c: 3, d: 4} => {a:, b:, **rest} # a == 1, b == 2, rest == {:c=>3, :d=>4}

      equivalent in javascript:

      {a, b, ...rest} = {a: 1, b: 2, c: 3, d: 4}
      

      Not a bad replacement for that! I still find javascript's syntax a little more easily readable and natural, but given that we can't use the same syntax (probably because it would be incompatible with existing syntax rules that we can't break for compatibility reasons, unfortunately), this is a pretty good compromise/solution that they've come up with.

    1. ActiveInteraction plays nicely with Rails. You can use interactions to handle your business logic instead of models or controllers.
    2. Since we're using an interaction, we don't need strong parameters. The interaction will ignore any inputs that weren't defined by filters. So you can forget about params.require and params.permit because interactions handle that for you.
    1. No one has requested it before so it's certainly not something we're planning to add.
    2. To give a little more context, structures like this often come up in my work when dealing with NoSQL datastores, especially ones that rely heavily on JSON, like Firebase, where a records unique ID isn't part of the record itself, just a key that points to it. I think most Ruby/Rails projects tend towards use cases where these sort of datastores aren't appropriate/necessary, so it makes sense that this wouldn't come up as quickly as other structures.
    1. Examples of different ways of defining forms

      Wow, that's a lot of different ways.

      The inline_form way in particular seems interesting to me, though it's worth noting that that method is just an example, not actually part of this project's code, so it's not really a first-class option like the other options.

    1. As of today, you can Wishlist OpenTTD on SteamE. Historically, OpenTTD always had a single home from where we distributed the game. We used to be hosted on SourceForge (you know you are old, if you remember that being a thing :D), and slowly moved towards our own self-created distribution methods. These days, we mostly distribute our game via our website. But times are changing, and so is our hair. Over the last few months, we have silently been working to become a bit more visible in the world. Don’t worry, not for reasons you might think: OpenTTD has as many active users as it had in 2007. But more because we no longer think it is the right approach to only distribute via our own website. This became painfully apparent when we noticed other people post OpenTTD on some stores. They are not always updated with new releases, sometimes even slacking behind a few years. And maybe more important to us: we can not guarantee that the uploaded version is unmodified and is the version as we intended. So, instead of fighting it, why not turn around and join them! Why not release our own, verified, builds on those stores! And this is exactly what we have been working on lately. And when I say “we”, a bit ironic to me, I mean the two developers that are around longest (myself and orudge) ;) A while back orudge added OpenTTD to the Microsoft Store. And today, I am happy to announce we will be on SteamE too! Well, we are on Steam, but we haven’t released anything there yet (sorry that I got your hopes up, just to squash them right after :( ). This is partially because of how Steam works, but also because we know we can bring a better experience for Steam with our upcoming release. That brings me to the most exciting news: if everything goes as planned, we will release OpenTTD 1.11 on Steam on the first of April, 2021! And that is not even an April fools’ joke! You can already Wishlist OpenTTD today .. and till we release on Steam, you can find our game via our website ;)
    1. As of today, you can Wishlist OpenTTD on SteamE. Historically, OpenTTD always had a single home from where we distributed the game. We used to be hosted on SourceForge (you know you are old, if you remember that being a thing :D), and slowly moved towards our own self-created distribution methods. These days, we mostly distribute our game via our website. But times are changing, and so is our hair. Over the last few months, we have silently been working to become a bit more visible in the world. Don’t worry, not for reasons you might think: OpenTTD has as many active users as it had in 2007. But more because we no longer think it is the right approach to only distribute via our own website.
    1. Well, I'm glad they did, because Turbolinks is a much better piece of software than jquery-pjax ever was. It's actively maintained and doesn't require jQuery at all! So we're one step closer to our dream of ditching $.
  30. Jan 2021
    1. overflow-wrap: break-word; makes sure the long string will wrap and not bust out of the container. You might as well use word-wrap as well because as the spec says, they are literally just alternate names for each other. Some browsers support one and not the other.
  31. Dec 2020
  32. Nov 2020
    1. There was a major refactoring in the resolver (https://github.com/webpack/enhanced-resolve). This means the resolving option were changed too. Mostly simplification and changes that make it more unlikely to configure it incorrectly.
    1. We are working to develop better communication within TC39 and with the broader JavaScript community so that this sort of problem can be corrected sooner in the future.
    1. {#key} was introduced in Svelte v3.28, before that you needed to use a keyed {#each} block with only one item When the key changes, svelte removes the component and adds a new one, therefor triggering the transition.
    1. Svelte's advantage here is that it indicates the need for an update at the place where the associated data is updated, instead of at each place the data is used. Then each template expression of reactive statement is able to check very quickly if it needs to rerender or not.
    2. Converting Angular components into Svelte is largely a mechanical process. For the most part, each Angular template feature has a direct corollary in Svelte. Some things are simpler and some are more complex but overall it's pretty easy to do.
    3. Svelte slots are much easier to use and reason about than Angular transclude, especially in cases where you don't want an extra wrapper element around the slot content.
    1. If your Svelte components contain <style> tags, by default the compiler will add JavaScript that injects those styles into the page when the component is rendered. That's not ideal, because it adds weight to your JavaScript, prevents styles from being fetched in parallel with your code, and can even cause CSP violations. A better option is to extract the CSS into a separate file. Using the emitCss option as shown below would cause a virtual CSS file to be emitted for each Svelte component. The resulting file is then imported by the component, thus following the standard Webpack compilation flow.
  33. Oct 2020
    1. Instead of this, you can use a File type variable.
    2. Previously, a common pattern was to read the value of a CI variable, save it in a file, and then use that file in your script:
    1. An onevent event handler property serves as a placeholder of sorts, to which a single event handler can be assigned. In order to allow multiple handlers to be installed for the same event on a given object, you can call its addEventListener() method, which manages a list of handlers for the given event on the object.
    1. An alternative (maybe not good) would be to restrict {@const} to certain blocks like {#each} and {#if}. In both cases, it significantly reduces the "multiple ways to do the same thing" problem and avoids ergonomic and performance overhead of our current situation.
    2. it also allows for more divergence in how people write there code and where they put their logic, making different svelte codebases potentially even more different due to fewer constraints. This last point is actually something I really value, I read a lot of Svelte code by a lot of different people and broadly speaking things look the same and are in the same places.
    1. Note how we have to duplicate the code between these two lifecycle methods in class. This is because in many cases we want to perform the same side effect regardless of whether the component just mounted, or if it has been updated. Conceptually, we want it to happen after every render — but React class components don’t have a method like this. We could extract a separate method but we would still have to call it in two places.
  34. Sep 2020
    1. Basically, the idea is that a train tried to start with the caboose brakes stuck on. After releasing the caboose, the train still could not start. The problem was that when the train attempted to start with the caboose brake on, it stretched all the inter-car couplings so that the whole train was just like one big car. At this point, the friction from the engine train wheels was not enough to get the whole thing going. Instead, you need to just get one car moving at a time - this is why there is space between the couplings.
    1. Svelte will not offer a generic way to support style customizing via contextual class overrides (as we'd do it in plain HTML). Instead we'll invent something new that is entirely different. If a child component is provided and does not anticipate some contextual usage scenario (style wise) you'd need to copy it or hack around that via :global hacks.
    2. Explicit interfaces are preferable, even if it places greater demand on library authors to design both their components and their style interfaces with these things in mind.
    1. This has already forced me to forgo Svelte Material because I would like to add some actions to their components but I cannot and it does not make sense for them to cater to my specific use-case by baking random stuff into the library used by everyone.
    2. The point of the feature is to not rely on the third-party author of the child component to add a prop for every action under the sun. Rather, they could just mark a recipient for actions on the component (assuming there is a viable target element), and then consumers of the library could extend the component using whatever actions they desire.
    1. I didn’t quite understand that until I saw this tweet from Ryan Florence, who is a genius when it comes to explaining the React programming model in ways that normal people can understand — ‘the question is not when does this effect run, the question is with which state does this effect synchronize with?’

  35. Aug 2020
    1. For example, to search for text occurrences, I used ack-grep. Later on, I found that there is a faster approach using ag. Then, there is an even faster alternative called ripgrep.
  36. Jun 2020
  37. Apr 2020
    1. The handler can be a method or a Proc object passed to the :with option. You can also use a block directly instead of an explicit Proc object.

      Example of: letting you either pass a proc (as a keyword arg in this case) or as a block.

  38. Mar 2020
    1. Q. Why does Rubinius not support frozen and tainted? A. Rubinius has better features; frozen and tainted are considered harmful. To elaborate... Both frozen and tainted depend on strewing checks throughout the source code. As a classic weak-link system, only one of those checks needs to be misplaced for the guarantees offered by either to fail. Since the number of checks is high, and as new code is written new checks need to be considered, the features inherently constitute unbounded complexity and unbounded risk.
  39. Feb 2020
    1. We believe great companies sound negative because they focus on what they can improve, not on what is working. Our first question in every conversation with someone outside the company should be: what do you think we can improve?
  40. Dec 2019
    1. Just for the record newer versions of ssh support the -W option, you can do something like ProxyCommand ssh -W %h:%p gateway instead of depending on nc
  41. Oct 2019
    1. WHEN it comes to the state of the environment, it’s easy to get swept up in the doom and gloom of it all. Global warming, high pollution levels, climate change and waste disposal all dominate the headlines, painting a bleak picture of what’s to come. But just because it seems hopeless doesn’t mean it is.T roubled times call for ingenious solutions, and Australia is home to some of the brightest ecovators in the world, like Robert Pascoe, Managing Director of environmental solutions company Closed Loop.Through its Simply Cups initiative, Closed Loop is tackling Australia’s overwhelming waste problem by teaming up with 7-Eleven to save 70 million coffee cups from landfill this year — equivalent to the number they sell each year. While the most sustainable option is forgoing a disposable cup for a reusable one, some circumstances are beyond your control. Like your inability to remember anything before you’ve had your morning coffee. Which is a bit of a catch 22, isn’t it? That’s why 7-Eleven are installing dedicated coffee cup recycling bins in over 200 of their stores nationally, as well as funding 50 other large-scale locations including offices, universities and construction sites as part of the initiative. Coffee cups are one of the largest contributors to litter waste in Australia, with an estimated one billion ending up in landfill each year because they are not recycled.Yep, unfortunately you read that right: one billion cups.Coffee cups are one of the largest contributors to litter waste in Australia, with an estimated one billion ending up in landfill each year because they are not recycled.“T here’s a lot of misinformation out there,” Mr Pascoe said. “The consumers aren’t at fault because ultimately they don’t know what can be recycled and what can’t. I think if we can get that information out there, then people will demand products that are made from recycled materials.”For the majority of us, learning that our disposable coffee cups fall into the category of what can’t be recycled is both confusing and devastating. But, as Mr Pascoe says: “You can’t unknow something once you know it.”“Part of the problem is they didn’t know they weren’t being recycled. A lot of people said, ‘oh no, I put my coffee cup into the recycling to be recycled’, but of course, they’re not,” he continued.A nd why is that, exactly? It’s because most paper coffee cups are lined with a waterproof plastic that makes them hard to recycle — but not impossible. And that’s where Simply Cups comes in. “We’ve come up with a system that can actually recycle these cups if we keep them separate. We’ve got technology available now to do it, but we have to have coffee cups kept as a separate stream. Or anything that has the plastic lining of milk cartons or juice boxes,” Mr Pascoe said. The technology he’s referring to is “kind of like an organic solvent” that works to separate compound materials. Invented by Dennis Collins in Ballarat, the technology was initially designed to separate the PVC material from the hessian used in truck liners and advertising banners.“Dennis called us and said, ‘I’ve got a solution for your coffee cups’,” Mr Pascoe said. “So now we’re building a plant that can process around 150 million coffee cups per year, which is about 1.5 thousand tonnes. That will only be about 10 per cent of disposable coffee cups alone, so we’re going to need quite a few of these plants eventually. We have the solution, but we really need the coffee cups. “That’s why we started the Simply Cups program.”And that’s where coffee addicts come in. Once they drop their coffee cups into a designated recycling bin, they will then be taken to a processing plant using this new technology. The inner plastic lining of the cups will be removed and then recycled into things like plastic outdoor furniture, safety equipment and food trays.A nother eco-minded initiative helping solve Australia’s waste problem is the anti food-waste website, Yume. The website fights food waste — which is a huge problem in Australia — by allowing consumers to buy surplus and unsold food from restaurants and cafes at half the price. The ‘wholesale marketplace for surplus food that saves you money while saving the planet’ shares the same idea as ‘YWaste’, an app allowing retailers to sell food that would otherwise be thrown away.Over its 40-year history, Patagonia has donated about $114 million to grassroots environmental organisations. Over its 40-year history, Patagonia has donated about $114 million to grassroots environmental organisations. Their advertising has begged consumers not to buy things they don’t need (even their own products) and they’ve implemented a program that repairs their products for free rather than replace them. Their commitment to the environment is reflected in the materials of their products too; wetsuits are made of natural rubber and raincoats are made from recycled plastic bottles. This year, the company launched Patagonia Action Works, a digital platform that aims that aims to connect people with environmental nonprofits, helping them get involved through events, petitions, and volunteering.H &M, too, are doing their bit to close the loop on fashion waste with their global campaign encouraging customers to recycle their clothes. They launched their garment collecting initiative in 2013, asking customers to drop off any unwanted items from their closets. Depending on the condition of the clothing, the items are either distributed to second-hand stores for resale, or recycled into other items like yarn, rags, and insulation materials.And just look at Elon Musk. He’s raking in bajillions of dollars every minute almost exclusively thanks to Tesla and SolarCity, which have disrupted an entire industry. While some snigger at his grand ideas — let’s colonise Mars! — the accomplishments of how he has changed the way we shop for cars are hard to deny.A fter a complicated relationship with French beauty giant L’Oreal, The Body Shop is now in the hands of ethical Brazilian beauty brand Natura, promising to return to its pioneering ethical business.“All of us share the aim of doing business as a transformational force for good and a force for change for society and for the environment. We couldn’t think of a better union to nurture our brand’s commitment to naturality and sustainability,” said the Body Shop’s Communications Manager, Jessica Styles. “In 2016, The Body Shop launched its new sustainability plan, Enrich Not Exploit, supporting the brand’s vision to be the most ethical and sustainable global business in the world.”“All of us share the aim of doing business as a transformational force for good and a force for change for society and for the environment. We couldn’t think of a better union to nurture our brand’s commitment to naturality and sustainability,”Jessica Styles, Body Shop’s Communications Manager The plan set fourteen targets to help The Body Shop become a "truly sustainable business", including powering all its stores with 100 per cent renewable energy, overhauling product packaging by slashing the use of fossil fuel-based wrapping and designing new sustainable innovations. This year there’s a special focus on protecting Red Pandas in Nepal, a species currently on the endangered list.“Now more than ever, companies have the platforms and frameworks to not only voice doing good for the planet and people but to also act on it. The more we see big brands doing their bit, the more it becomes entrenched as something that not only employees but customers should be thinking about,” Styles said. “It’s the big corporations of the world that can help foster and influence this through their own businesses.” Skin care brand Youth to The People has made a conscience decision to use 100 per cent recyclable packaging. Co-founder Joe Cloyes says the decision reflects the brand’s philosophies.“We believe in creating as little waste as possible, we believe in cruelty-free products, and we believe in sourcing the best ingredients for your health and your skin. It's just that simple,” he said. “Modern consumers care about their environment just as much as they care about their healthy skin, and they're very much connected. We have found it's very important to people.”FIND OUT how many cups of coffee you could be recycling EVEry yearHow many cups of coffee do you drink every day?How many days per week do you drink coffee?How many weeks per year do you drink coffee?Calculatecups of coffeecould be recycled These are but a few eco-minded initiatives that offer Australians the chance to do their part in securing a cleaner future for generations to come. For every company that spills millions of gallons of oil into our oceans, there are plenty more companies operating under a socially responsible ethos. They recognise enterprise and environmental responsibility can in fact go hand-in-hand.“I think every organisation should have a sustainability policy,” Mr Pascoe said. “There are plenty of organisations around that can have a positive impact on the environment. We’re talking about the effect they have on the environment, the way they consume energy, and the way they manage their waste. In my world, there’s no such thing as waste.” Over one billion cups end up in landfill each year because they are not recycled. That’s why 7-Eleven has joined forces with Simply Cups to establish cup recycling in Australia. Save your cups by placing them in a Simply Cups bin at any participating 7-Eleven #cuprescue. Story by Erin Bromhead | news.com.au
    1. I'd say that "dump" in the CS sense, both as noun and verb, is merely another application of its preexisting meanings even without the vulgar one, particularly the ones related to unloading/releasing contents. (For example, "dump truck".)
    2. For some geeky reason, the computer programming world has long maintained a tradition of using words in new ways, with a studied obliviousness to their prior, rude meanings: for example, 'dump'. 'Falsey' is merely another word in this long, and quite useful, tradition.
  42. Aug 2019
    1. If your comment is about a typo, problem with the website or anything else, please use our contact form.

      First time I've seen users directed to use a separate channel than the main comments area for notifying about typos. Good idea.

  43. Nov 2018
  44. Sep 2018
  45. Oct 2017
    1. Gazing up into the darkness I saw myself as a creature driven and derided by vanity; and my eyes burned with anguish and anger.

      James Joyce is known for is his use of epiphanies: "a sudden spiritual manifestation, whether in the vulgarity of speech or of gesture or in a memorable phase of the mind itself" (Stone 371).

      The last line of "Araby" can be seen as the boy's epiphany. Leading up to this moment, Mangan's sister has consumed his mind, and he thought buying something for her from Araby would solve everything. Now that he finally made it to the bazaar, he is utterly disappointed.

      There are many interpretations about what the boy's epiphany actually is. Some scholars posit that the he relates to the men flirting with the sales woman: "The boy looks steadily at this vulgar avatar of his longings; and then his other vision—his vision of a comely waiting presence, of a heavenly dolorous lady—dissolves and finally evaporates. The boy, at last, glimpses reality unadorned; he no longer deceives himself with his usual romanticizing" (Stone 371). He is ultimately just like those two men, and Mangan's sister is just another girl.

      Another possible interpretation is that the boy's realization is a greater metaphor for the deterioration of Ireland's identity. He sees the French "Café Chantant". Moreover, while eavesdropping on the lady and the two men, the boy "remarked their English accents". Perhaps Ireland is not so Irish anymore.

      Yet another meaning could be that the boy is no longer a boy; he has transitioned out of the magical and imaginative world of being a child. The story begins with the boy telling us how he and his friends, "played till our bodies glowed". He then stops playing with his friends because he is infatuated with Mangan's sister: "From the front window I saw my companions playing below in the street". After he hears about Araby the boy has "hardly any patience with the serious work of life which, now that it stood between me and my desire, seemed to me child’s play, ugly monotonous child’s play". His whole outlook on life has rapidly changed. In an essay titled "Closing Time: 'ten minutes to ten' and the End of Childhood in Joyce's Araby'", Steven Doloff notes that the boy arrives at the bazaar at "ten minutes to ten": "While clock hands regularly meet twenty-four times during the course of a day, their particular occurrence at 9:50 P.M. at the end of 'Araby' may have a special contextual significance. Their juncture immediately precedes the boy's anguished self-revelation and what appears to be the near-simultaneous closing of the bazaar at ten o'clock. If we choose to see the longer minute hand of the clock as representing adulthood and the shorter one childhood, then 'ten minutes to ten' would symbolically portend the moment that adulthood overtakes the boy's childhood, eclipses it, and begins to leave it behind—a simple visual icon for a widely acknowledged theme in the story".

      These are just a few of many interpretations of the ending. Ezra Pound wrote that Joyce's "most engaging merit, is that he carefully avoids telling you a lot that you don't want to know".

      sources: http://web.b.ebscohost.com.jpllnet.sfsu.edu/ehost/pdfviewer/pdfviewer?vid=1&sid=cb6a19bc-74ce-46ea-a40d-117795dd7dfb%40sessionmgr104

      https://muse-jhu-edu.jpllnet.sfsu.edu/article/605563

      http://library.brown.edu/pdfs/1305652712296879.pdf

    2. Christian Brothers’ School set the boys free

      "Araby" is filled with religious allusions; religion was important in Ireland. This passage could be interpreted in a number of ways. In one sense, the boys being set "free" could mean that they are finally able to enjoy being kids. They are literally released from the rigid structure of school, and now they can do what boys do: play. Furthermore, Khorand observes that it is possible that the school "constrains and limits [the boys] so much more with it's didactic religious teachings".

      source: http://epiphany.ius.edu.ba/index.php/epiphany/article/view/109/106

    3. blind

      A street "being blind" means that it is a dead end. North Richmond Street also happens to be a dead end where one is not able to see around the corner (see picture in the annotation for "North Richmond Street"). Furthermore, Joyce's use of the word "blind" has been a topic of discussion among literary scholars. In an essay about symbolism in "Araby", Golbarg Khorand notes that "This blind street (repeated twice in the same paragraph) could be a symbol of the boy’s character that is literally blind due to his young age and immaturity". The blindness could also be connected to all of the people living on the street, or all Dubliners. Perhaps Joyce was even thinking about all the people who never venture out from the little corner of planet earth where they were born.

      source: http://epiphany.ius.edu.ba/index.php/epiphany/article/view/109/106

    1. In all my dreams before my helpless sight He plunges at me, guttering, choking, drowning.

      It is interesting that the speaker gives us a graphic image of the sound of death using the language "guttering," "choking," and "drowning," yet it is in contrast to a dream-like state. This creates slight confusion as to whether we are now in the speaker's dream or his reality. This could be a futile attempt in showing how easy it is to have the lines of reality and fantasy cross; making the soldier a prisoner to war and "The old Lie: Dulce et decorum est Pro patria mori."

    2. The old Lie: Dulce et decorum est Pro patria mori.

      We come back to this Latin phrase, “Dulce et decorum est Pro patria mori” yet again. After being exposed to the imagery of the cruelties produced by chemical warfare, the soldiers are forever altered like the state of being “drunk” or in "An ecstasy" with now having to constantly live in the aftermath of war. The allusion of this phrase creates a shattering of one owns belief and alters the idea of what it means to be patriotic; just as the gas alters the mental capacity of the individual fighting for their country.

      To quote W.B. Yeats), a poet during the 1920's post-war Europe, "Things fall apart; the centre cannot hold;" Our perception of war is forever changed through the lens and perspective of those used as human sacrifice.

    3. Gas! GAS! Quick, boys!—An ecstasy of fumbling

      WWI marked the introduction of chemical warfare which in return created complete terror and pandemonium; soldiers were not prepared for the effects of chemical warfare. As Jones indicates, the use of chemical warfare was to “terrorize the enemy and make their troops temporarily lose their minds.” Alexander Watson also claimed in his study (as cited in Jones, 2014) “gas created uncertainty: unlike shrapnel, it killed from the inside, eroding a soldier’s sense of control, while raising the terrifying fear of being suffocated." Going off the “created uncertainty” we have the use of "ecstasy" which encompasses a trance-like state; coinciding with the idea of being "drunk with fatigue" (see above annotation) from the effects of the gas. The delayed reactions of the soldiers against the gas would result in a behavior of "fumbling." The gas was designed to attack the nervous system; accelerating the deterioration of the body and mind.

    4. like old beggars

      With the introduction and evolution of chemical weapons used in this war (WWI); human bodies were no match for the damage these weapons were designed to inflict. Leading into the imagery of soldiers physically deteriorating when using phrases such as "bent double," "coughing like hags," and "men marched asleep;" would not lead one to believe that war is “sweet and fitting” in any capacity. With the use of the word “beggars” our minds may envision the effects of poverty and desperation which war seems to produce, and in this sense, we are given language expressing the overwhelming misery and accelerated age progression with the use of “old.” These descriptions challenge the assumptions the mind tends to gravitate towards when picturing what it means to "die for ones country."

  46. blog.ashleyalexandraa.com blog.ashleyalexandraa.com
    1. Roosevelt

      Marshall Nunn states that "For Ruben, [Roosevelt] is the representative man of the United States...[and the poem details] The imperialistic attitude that Roosevelt took regarding the building of the Panama Canal" Here, Roosevelt is not only literally the leader of the United States, but also represents the same ideals the United States was founded on. Throughout the poem Dario no longer addresses Roosevelt, but rather addresses the United States as a whole. With the assumption that Roosevelt represents the greater collective beliefs of the United States.

    2. you oppose Tolstoy

      Another great contrast in the poem occurs when Dario alludes to Tolstoy. A Russian writer in many ways represents a great contrast to Roosevelt himself. Acereda suggests that in fact Tolstoy represents the a vastly different moral view than Roosevelt. Acereda suggests that in fact Tolstoy is an image for opposition against Roosevelt's "Big Stick" policy. Where Tolstoy was working to liberate and educate his people Roosevelt was living an alternate justice system.

      Comic illustrating Roosevelts "Big Stick" policy

    3. Liberty raises her torch in New York.

      Several people have determined that this poem suggests that Dario is harshly judging the United States for their involvement in imperialism and slavery throughout the world. Hal L. Ballew argues that "the torch held by our country's most famous landmark directs its light into the far corners of the world in order to search out the innocent and helpless so that they may be conquered and enslaved"

    4. verse of Walt Whitman

      According to Marshall Nunn Dario "far from admiring of his [Whitman] democratic ideals," With Dunn's information the inference then becomes that Dario believes the only way that the American people will understand his message through Walt Whitman's poetry. However, given the knowledge that Dario does not respect Whitman this line can be seen as an insult to the American people. Or in contrast, as Acereda states Dario can be speaking on the American people's terms, Whitman being a classic American poet, in a desperate attempt to communicate a message to them. )