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.
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.
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.
I've turned off the bot for now.
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
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.
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.
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.
Hah that last page was great. Loved how easy they gave up helping the baka couple.
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?
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.
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.
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.
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.
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.
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.
"I can read this Perl scrip"t should translate to "I'm lying".
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
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.
A dialect of Lisp that's embedded in Python. Contribute to hylang/hy development by creating an account on GitHub.
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).
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.
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)
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.
Seth Michael Larson pointed out that the Python gzip module can be used as a CLI tool like this:
Read Otaku ni Yasashii Gal wa Inai!? Vol. 2 Ch. 9.4 on MangaDex!
A series that I recently adore even though it's an overused okaku+gyaru trope.
Thanks to the TL!
Read Inkya Datta Ore no Seishun Revenge - Tenshi sugiru Ano Ko wa Ayumu Re Life Vol. 2 Ch. 8 on MangaDex!
Read Soredemo Ayumu wa Yosetekuru Ch. 205 "The 205th Move" on MangaDex!
Read Please Go Home, Akutsu-san! Ch. 144 on MangaDex!
I like programming and anime.
I manage the bot /u/mahoro@lemmy.ml