home.social

Search

181 results for “floehopper”

  1. After reading that emperor penguins are now officially an endangered species due to climate change, I just "adopted" one!

    support.wwf.org.uk/adopt-a-pen

    [and yes, I know the penguins in the image preview aren't emperors!]

    #penguin #climatechange

  2. TIL Ruby's Exception class has a `detailed_message` method which includes both the exception class and its message:

    begin
    1 / 0
    rescue => e
    puts e.detailed_message # => "divided by 0 (ZeroDivisionError)"
    end

    I've lost count of the number of times I've implemented something very similar myself! 🤦

    docs.ruby-lang.org/en/master/E

    #ruby #exception

  3. Wrote a blog post for the first time in too long! Pleasantly surprised my Nix, Middleman, GitHub Pages toolchain is still working! 😅🎉

    > How to configure Zed to use ERB Lint as a formatter:

    jamesmead.org/blog/2025-03-30-

    #zed #erb #lint #ruby

  4. Can anyone recommend a way to automatically format the HTML in a Rails view template that uses ERB?

    * prettier can format HTML, but messes up the contents of the ERB tags
    * erb_lint can format the contents of the ERB tags and does _some_ limited formatting of the surrounding HTML
    * there are a bunch of prettier extension node packages that claim to handle ERB, but as is all too often the case they all seem to be dead

    Any advice would be much appreciated!

    #ruby #erb #html #formatting

  5. Mocha v3.1.0 released

    * Format warnings consistently and include source location - github.com/freerange/mocha/pul. Thanks to @issyl0 for the original PR and subsequent feedback.

    mocha.jamesmead.org/file.RELEA

    #ruby #testing #mock #mocking #opensource

  6. Mocha v3.0.2 released

    * Fixes NoMethodError on deprecation warning - broken since v3.0.0 🤦‍♂️
    * Validated support for Ruby v4

    mocha.jamesmead.org/file.RELEA

    #ruby #testing #mock #mocking #opensource

  7. Mocha v3.0.0 released

    Significant changes (see link for details):

    * Enable strict keyword argument matching by default in Ruby >= v3

    * Fix compatibility with Ruby 3.5

    * Freeze string literals

    * Allow keyword arguments to match an expectation that _only_ expects positional arguments

    * Increment assertion count on never-expected invocation

    ⚠️ Fix Mocha-related deprecation warnings against v2.8.2 before upgrading! ⚠️

    mocha.jamesmead.org/file.RELEA

    #ruby #testing #mock #mocking #opensource

  8. Mocha v2.8.2 released

    Improves source location of deprecation warning for `ParameterMatchers` matcher classes.

    rubygems.org/gems/mocha/versio

    #ruby #testing #mock #mocking #opensource

  9. Mocha v2.8.1 released

    Restores unqualified access to parameter matcher classes accidentally removed in v2.8.0 - sorry! Note that unqualified access is deprecated and will be removed in v3.

    rubygems.org/gems/mocha/versio

    #ruby #testing #mock #mocking #opensource

  10. Mocha v3.0.0-rc.2 released

    ✨ Any volunteers to try this out? ✨

    * Fix compatibility with Ruby 3.5 - thanks to @earlopain
    * Add missing quotes to docs for Mocha::ParameterMatchers::Methods#equivalent_uri - thanks to Ben Sherman
    * Increment assertion count on never expected invocation - thanks to @bihi for reporting
    * Remove functionality deprecated in v2.8.0
    * Many internal & tooling improvements - thanks to Nitish Rathi

    rubygems.org/gems/mocha/versio

    #ruby #testing #mock #mocking #opensource

  11. Mocha v2.8.0 released

    * Significant reduction in the number of Mocha constants polluting the test/spec namespace
    * Add deprecations for changes to public API that will land in v3.0.0

    rubygems.org/gems/mocha/versio

    Thanks to @bihi for his help in testing v3.0.0 release candidates which led to many of these changes.

    #ruby #testing #mock #mocking #opensource

  12. Finally, not rare, but the first I've seen in my garden, after a sighting on the Königstuhl last week.

    A black-and-red froghopper (Cercopis vulnerata; 🇩🇪 Gemeine Blutzikade).

    A reminder that froghoppers can release their pre-tensioned leg muscles to jump in just one millisecond, & experience accelerations of over 400g 😬✌️

    #Heidelberg 🏰
    #Photography 📷️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️️
    #BugOfTheDay 🐞
    #MacroPhotography 🔬
    #InsectsOfMastodon 🪰
    #BackGardenEntomology 🪲

  13. Green Party wins 6 seats from Labour in Cambridge. Council moves from Labour to No Overall Control.

    #ukpol #greenparty #localelections2026 #cambridge

  14. I've signed this open letter asking NHS England to keep its code open.

    > Code paid for with public money should be open to the public. This principle is enshrined in the UK Government Design Principles and the NHS Service Standard. It is now being walked back. We are signing this to restate the case.

    Please consider signing, particularly if you've ever contributed to UK public-sector software.

    keepthingsopen.com/

    #GOVUK #GDSTeam #NHSDigital #WorkingInTheOpen #opensource

  15. > Public services are built with public money. So unless there’s a good reason not to do so, the code they’re based on should be made available for people to reuse and build on.

    #govuk #gdsteam #workintheopen #publictrust

  16. Point 12 of the GOV.UK Service Standard:

    > Make new source code open
    >
    > Make all new source code open and reusable, and publish it under appropriate licences. Or if this is not possible, provide a convincing explanation of why this cannot be done for specific subsets of the source code.

    gov.uk/service-manual/service-

    #govuk #gdsteam #workintheopen #publictrust

  17. Is there a way to get a some kind of feed of opportunities on the UK government's Digital Outcomes & Specialists framework? Ideally an RSS/Atom feed, but an email subscription would suffice.

    The websites run by the Crown Commercial Service (now the Government Commercial Agency) are in such a state it's impossible to work out what's going on.

    #govuk #government

  18. > ‘Significant exposure’: AWS outage exposed UK state’s £1.7bn reliance on tech giant

    theguardian.com/technology/202

    Although the GOV.UK PaaS [1] was initially built on AWS, it used Terraform with the intention of using other providers, but then it was decommissioned [2] - perhaps it’s worth reviving…?

    [1]: gov.uk/government/publications
    [2]: gds.blog.gov.uk/2022/07/12/why

    #gdsteam #govuk #aws #cloud #paas