Michal

joined 2 years ago
[–] Michal@programming.dev 2 points 30 minutes ago

Operation crayon

[–] Michal@programming.dev 10 points 1 day ago (1 children)

If you think it's a good deal, You could've bought one in Detroit for $1

[–] Michal@programming.dev 2 points 2 days ago* (last edited 2 days ago)

Same!

Connections Puzzle #649

🟪🟪🟪🟪

🟦🟦🟦🟦

🟨🟩🟨🟨

🟩🟩🟩🟩

🟨🟨🟨🟨

[–] Michal@programming.dev 2 points 2 days ago

It was to me. The whole thing was easy today

Connections Puzzle #649

🟪🟪🟪🟪

🟦🟦🟦🟦

🟨🟩🟨🟨

🟩🟩🟩🟩

🟨🟨🟨🟨

[–] Michal@programming.dev 2 points 2 days ago

Wordle 1,370 X/6

🟨⬜⬜⬜⬜

⬜🟩🟨🟨⬜

⬜🟩⬜🟩🟩

⬜🟩🟩🟩🟩

⬜🟩🟩🟩🟩

⬜🟩🟩🟩🟩

😒

[–] Michal@programming.dev 1 points 4 days ago

!Yes, this one works.!< It could be a bug, it doesn't support multiline spoilers. Just letting you know that some people will still see it.

[–] Michal@programming.dev 1 points 4 days ago (2 children)

The spoilers are not hidden when your comment is viewed in Sync for Lemmy

[–] Michal@programming.dev 2 points 5 days ago

yeah it should definitely be part a of the url. It will be if you define a parametrized url. More details in the documentation https://docs.djangoproject.com/en/5.1/topics/http/urls/#url-dispatcher

[–] Michal@programming.dev 3 points 5 days ago* (last edited 5 days ago) (2 children)

In django you will typically define the url pattern with uuid being a keyword path parameter, and in the view code you can use get_object_or_404(Model, uuid=kwargs['uuid']). This way the user will see a standard 404 page if they attempt to view a page with uuid that does not exist.

Of course, if you use class based views, you can extend detail view based off uuid, and the base class with handle the 404 page for you, so there'll be no need for get_object_or_404. I am assuming you will want to use class based views for this so you can extract the common functionality into a base class or a mixin and reuse it in a number of views.

EDIT: I may have misunderstood the question wrong originaly. It looks like you want to bypass authentication for a subset of urls (or views). Authentication is not required by default in django, you can add LoginRequiredMixin (or a decorator) to your view, so not including the mixin would be a way to bypass the login requirement. Do you want to share relevant parts of your code for better suited advice?

[–] Michal@programming.dev 1 points 6 days ago

The use termux?

[–] Michal@programming.dev 7 points 6 days ago

Notably, roomba vacuum cleaners use cameras instead of lidar that other robot vacuums use. I bought a high end roomba a couple months ago and it was crap at navigating my home, while my old xiaomi with a lidar works perfectly fine. Needless to say i returned the roomba.

 

For me it's This Week In Google.

I listen to it every week and between new episodes I listen to the archival episodes I haven't heard yet.

 

Santa Clara, CA — In a move that's already sending shockwaves through the tech industry, Nvidia announced today that it will be rebranding to "Nvidai" to better reflect its integral role in the artificial intelligence (AI) revolution.

"We've been at the forefront of AI development for years," said Jensen Huang, CEO of the newly christened Nvidai, in a press conference that featured holographic projections of the company’s latest AI models. "It's only fitting that our name reflects our commitment to this groundbreaking technology. Plus, it sounds cooler."

The change comes as Nvidai continues to dominate the AI hardware market with its state-of-the-art GPUs, which have become essential for training and deploying complex machine learning models. "Frankly, we're tired of people thinking our name is just a clever abbreviation for 'Nifty Video Interface, Duh,'" Huang quipped. "It's time to set the record straight."

Reactions from the tech community have been mixed. Elon Musk, CEO of Tesla and SpaceX, tweeted, "Great move by Nvidai. Now they just need to change 'GeForce' to 'AIForce' and they'll be set. #brandinggenius." Meanwhile, Intel's CEO was reportedly seen scribbling potential new names for his company, including "IntellAI" and "InteLLigence."

Despite the excitement, the rebranding effort has not been without its challenges. Early reports indicate that the transition has caused some confusion among consumers. One Twitter user lamented, "Just bought a brand new 'Nvidai' graphics card, and now my rig won't stop trying to pass the Turing Test. Send help."

However, Huang remains optimistic. "This is just the beginning," he said, hinting at future product lines that will feature AI-enhanced everything—from gaming experiences that adapt in real-time to your skill level, to AI-powered GPUs that can predict the stock market. "We're not just Nvidia anymore. We're NvidAI. The future is here, and it's got a neural network."

As the company embarks on this new chapter, tech enthusiasts worldwide are left to ponder one pressing question: how do you even pronounce "Nvidai"?

 

I am looking to get a secondhand ThinkPad as my secondary laptop. Im currently undecided between X1 yoga g3, or x280.

I want a lightweight laptop to replace my old t440. I like yoga because it's a convertible and this may be useful to watch movies in tent mode or use it as a tablet to browse internet. My main concern is the power button which I hear is easy to break and impossible to fix.

X280 is more lightweight and compact, but the screen resolution is lower than x1.

Both have soldered ram, so not upgradeable. I would be getting an 8GB laptop as 16gb is hard to find around here. Does cpu make a big difference? I will be installing Fedora on it.

 

Seems pointless and inconvenient for me as they usually seem to be poor quality, and can you really listen to music in the shower, and are you showering long enough to benefit from it?

Or do you own one and use for a different purpose, like swimming or Kayaking?

view more: next ›