Skip Navigation
Google Maps for Android now supports Bluetooth beacons for tunnel navigation
  • Yes it can be an issue because the GPS doesn't know where you are and thinks you are on an aboveground street. Freeway tunnels can have multiple exits too.

  • Firefox now supports clean URLs with the new "Copy link without site tracking" option
  • I disagree. I think the default option should be what users expect, and users expect "copy" to do exactly that: copy without modifying the text.

  • It's Time For A Change: datetime.utcnow() Is Now Deprecated
  • While it would be ideal to have all datetime fields in databases and other data stores be time zone aware, that is certainly not the case. Also, SQLite (and probably others) do not have great support for time zones and it's recommended to store datetimes as UTC (typically unix timestamps).

    Deprecating utcnow was a good idea, but they should have replaced it with naive_utcnow. Oh well.

  • META: The automated discussion threads do more harm than good.
  • I've turned off the bot for now.

  • Python: Struggling with typing module's callable type
  • The first way to use it is with any type annotation: you just use it for documentation.

    # int annotation
    def add_1_to_number(x: int) -> int:
        return x + 1
    
    # callable annotation
    def printer(x: int, func: Callable[[int], int]) -> None:
        results = func(x)
        print(f"Your results: {results}")
    

    These type annotations can help document and make editors parse your code to make suggestions/auto-complete work better.

    The second way to use it is by creating a callable. A callable is an abstract base class that requires you to implement the __call__ method. Your new callable can be called like any function.

    class Greeter(Callable):
    
        def __init__(self, greeting: str):
            self.greeting = greeting
    
        def __call__(self, name: str):
            print(f"{self.greeting}, {name}")
    
    
    say_hello = Greeter("Hello") # say_hello looks like a function
    say_hello("jim")  # Hello, jim
    
  • Mushoku Tensei: Jobless Reincarnation Season 2 - Episode 7 discussion
  • This and the last episode were kind of weak, to be honest. I think both of them could have been combined. The pacing was a bit too slow compared to the rest of the season.

  • Vivek Ramaswamy Wants to Raise Voting Age to 25 (or have a "competency test" for people 18-25)
  • I feel the opposite. We should have mandatory voting for all federal general elections. Treat it like jury duty or taxes - voting is a civic duty. You should be compelled to cast a ballot even if you leave it blank because you have no preference.

    Of course, this can only workwith automatic voter registration and 100% mail-in ballots.

  • Is there software that tracks internal dependencies for CI/CD?

    Here's a hypothetical scenario at a company: We have 2 repos that builds and deploys code as tools and libraries for other apps at the company. Let's call this lib1 and lib2.

    There's a third repo, let's call it app, that is application code that depends on lib1 and lib2.

    The hard part right now is keeping track of which version of lib1 and lib2 are packaged for app at any point in time.

    I'd like to know at a glance, say 1 month ago, what versions of app is deployed and what version of lib1 and lib2 they were using. Ideally, I'm looking for a software solution that would be agnostic to any CI/CD build system, and doubly ideally, an open source one. Maybe a simple web service you call with some metadata, and it displays it in a nice UI.

    Right now, we accomplish this by looking at logs, git commit history, and stick things together. I know I can build a custom solution pretty easily, but I'm looking for something more out-of-the-box.

    5
    [DISC] Please Go Home, Akutsu-san! - Ch. 150
  • Hah that last page was great. Loved how easy they gave up helping the baka couple.

  • [DISC] Soredemo Ayumu wa Yosetekuru - Chapter 211
  • Haha what a lovely chapter. Kind of fluff, but out of nowhere. I wonder what's going to happen at graduation? Will the series end?

  • Zuck Says the Elon Cage Match Isn't Happening
  • I'm shocked.

  • What's your commit message style?
  • Yep, this is the convention. Unfortunately, I've never been able to enforce it. Encouraging good git commit messages is probably the bottom of the things I can coach. I'd be happy if commits were properly squashed/rebased and that we all followed the same PR merge strategy.

  • Are there any certifications you view negatively?
  • I think if there were a bunch of certificates, especially ones I haven't heard of or a lot of low-level ones, I would suspect that you were using test dumps and trying to pad your resume.

    I think if you had a cloud certificate and a respectable linux certificate, that would suffice as "enough". Any lab-based certificate is also more valuable than just a paper one.

  • Is the CCNA certificate worth it for Software developers?
  • In my opinion, no it's not worth it. A CCNA and the related family of Cisco certifications really trains you to be a network engineer or work in ops in general. The certificate is not very valuable for a dev or devops role in general. The material itself goes over topics that are less valuable like spanning tree protocol. And it doesn't much if anything beyond layer 4. DNS, load balancing, web protocols (HTTP, etc) are all more valuable topics to learn.

    Now, the material that you're learning isn't wasteful, necessarily, but devops positions are not generally configuring routers and switches day-to-day, so I don't view this as something valuable for software engineers even in devops roles.

    Some of the topics that I find valuable - general TCP/IP in general and some of the routing protocols (namely BGP is the big one) - but the other stuff just requires passing knowledge that it exists and not much else. I would pick up a networking book and go over the topics in there instead of configuring switches and vlans.

  • SUSE Preserves Choice in Enterprise Linux by Forking RHEL with a $10+ Million Investment | SUSE
  • Rocky Linux have said that they can rebuild using publicly available sources in UBI containers and cloud images.

    https://rockylinux.org/news/keeping-open-source-open/

    Though reading the article, I don't know if SUSE is simply rebuilding or forking. In any case, it's cool to see SUSE committed to open source principles.

  • Connect your emails.. Could save you
  • This doesn't help for Gmail. I moved to a different part of the country and I have a spam email account that isn't connected to a phone or second email. Even with the right password, it wouldn't let me log in because I was trying to sign in from a different location and no secondary way to authenticate.

    Luckily it was a spam email so it was just annoying to recreate some accounts I used for that email, but yeah ve warned.

  • Tumblr says it’s going to “fix” its “core experience” to appeal to new users
  • I think Tumblr's brand just got ruined. They were known for their nsfw material and now they don't know what else to do with their lack of users.

  • Miqo'te, Final Fantasy
  • Beautiful illustration!

  • What we really mean
  • "I can read this Perl scrip"t should translate to "I'm lying".

  • pyenv/pyenv: Simple Python version management
  • I've used pyenv for years and it's an awesome tool. Keeps python binaries separate and it has a virtualenv plugin. I've gotten others to use it as well.

    It works great for library owners who need to run tox/nox on multiple versions of python in test suites. Love it.

  • pyenv/pyenv: Simple Python version management
  • pyenv also has this with the .python-version file which will switch versions. And with the plugin, you can use virtualenvs in pyenv so that a .python-version can be simply: my-cool-project-virtualenv and switching to that directory automatically switches to it.

  • Hy - A dialect of Lisp that's embedded in Python
    github.com GitHub - hylang/hy: A dialect of Lisp that's embedded in Python

    A dialect of Lisp that's embedded in Python. Contribute to hylang/hy development by creating an account on GitHub.

    GitHub - hylang/hy: A dialect of Lisp that's embedded in Python

    One of the coolest projects I've seen: a lisp that is embedded into Python. Hy compiles to Python AST so it's (almost) fully interoperable with Python (some notes about it here).

    0
    The problem with federated web apps

    Trying to make web applications federated is a popular effort. Examples include things like the “fediverse”, as well as various other efforts, like attempts to make distributed software forges, and so on. However, all of these efforts suffer from a problem which is fundamental in building federated applications built on top of the web platform.

    The problem is fundamentally this: when building an application on top of the web platform, an HTTP URL inherently couples an application and a resource.

    5
    [META] What do you think of our bot, Mahoro-chan?

    So it's been about a week since I turned on the discussion bot, /u/mahoro@lemmy.ml (Mahoro-chan). This bot is a (lazy) fork off of AutoShonenpon, in which I hacked in a connection to Lemmy instead of Reddit.

    Anyway, I'd like to get some feedback from the community.

    • Any bugs? Missing titles? Titles I should remove?
    • What do you think about the frequency of posts?
    • Feature requests?
    • Any other feedback?

    (side note: since yesterday, federation has been painfully slow from my instance so it might take me a while to respond to messages)

    1
    Reddit Was Fun @lemmy.world Jim @programming.dev
    So long RIF and thank you @talklittle@lemmy.world

    It was a great app! Been a user for as long as I remember using reddit on my phone.

    Thanks @talklittle@lemmy.world I appreciate all your hard work over the years.

    0
    til.simonwillison.net CLI tools hidden in the Python standard library

    Seth Michael Larson pointed out that the Python gzip module can be used as a CLI tool like this:

    CLI tools hidden in the Python standard library
    5
    [DISC] Otaku ni Yasashii Gal wa Inai!? (Gal Can’t Be Kind to Otaku!?) - 9.4
    mangadex.org Otaku ni Yasashii Gal wa Inai!? - Vol. 2 Ch. 9.4 - MangaDex

    Read Otaku ni Yasashii Gal wa Inai!? Vol. 2 Ch. 9.4 on MangaDex!

    Otaku ni Yasashii Gal wa Inai!? - Vol. 2 Ch. 9.4 - MangaDex

    A series that I recently adore even though it's an overused okaku+gyaru trope.

    Thanks to the TL!

    0
    jim Jim @programming.dev

    I like programming and anime.

    I manage the bot /u/mahoro@lemmy.ml

    Posts 15
    Comments 75