Dev news updates “A constructive and inclusive social network for software developers. With you every step of your journey.”. Visit Dev website here or see the feed summary below.
- ew-message: A Simple Yet Powerful Message Plugin for Web ApplicationsIntroducing If you're looking for a lightweight and customizable message plugin for your web application, ew-message could be the perfect solution. Encapsulated in TypeScript and designed for modern web development, this message plugin enables you to display informative, success, warning, or error messages with ease. In this article, we'll guide… Read more »
- AWS CloudWatch Observability Solutions: Game-Changer or Just a Glossy Wrapper? Honest First Impressions!This blog is little unusual than the usual "show-what-you-built" blogs which we usually see for cloud services and new features on the internet. In this blog I will sharing my first impressions, good and bad points about the new update on Cloudwatch: Observability Solutions !!! AWS CloudWatch Observability Solutions aim… Read more »
- A Step by Step Guide on How to Migrate from AWS to AzureThe most popular cloud computing platforms in 2024 are Amazon Web Services (AWS), Google Cloud, and Microsoft Azure. These three leaders combined currently have a market share of approximately 65% as of Q1 2024. These platforms are a fundamental part of any organization that seeks to scale up its infrastructure.… Read more »
- 在大陆下载huggingface模型这两天想自己部署一个stable diffusion玩玩。还好自己现在的电脑是领导在这半年内给配的,查了一个笔记本的显卡配置是一个4050的显卡。自己想了想如果是自己用的话应该是够用了。所以就从网上查了一下如何部署。首先是到stable diffusion的官网上下载了一个stable diffusion 3.5。然后就是下载Python。由于之前安装的Python是3.13版本的。这次一用还不行。于是从网上查了一下,说是版本太高,在下载各种依赖的时候需要下载Pytorch,而Pytorch支持的Python不能太高。没办法就把之前的Python3.13给卸载了。又从官网上下载了一个Python3.10.11(本来想下载一个Python3.10.15但不知道为什么官网不提供这个版本的下载,只是说有这个版。然后就一直往下找一直找到了3.10.11才有下载网址于是就下载了此版本)然后安装好了。这下下载了stable diffusion3.5的依赖。下载的时候还有插曲,那就是官网给的下载Pytorch的GPU版本的CDUA是11.8版的。我看了一下,在requirements.txt文件中把--extra-index-url https://download.pytorch.org/whl/cu118 改成了如下图: --extra-index-url https://download.pytorch.org/whl/cu124 后下载的。而且如果直接下载也不行。会下载不了,还要修改成国内的库的网址我当时用的是:https://pypi.tuna.tsinghua.edu.cn/simple (清华大学的镜像)总算是顺利的下载完了。到了下载模型的时候才是郁闷的开始。 开始就想从huggingface.co网站下载。可是就是打不开。没办法就暂时放弃了。后来一想,这个肯定有解决的办法于是就从网上查了好长时间。结果发现可以从国内的镜像网站下载。网址是:https://hf-mirror.com/ 于是就到了这个网站。结果发现还真有stable diffusion 3.5这个模型。但要想从这个网站下载这个模型还是需要有huggingface.co网站的授权(即token)没办法。后来想我有一个同事可以“翻墙”由于找到这个同事用他的翻墙出去到huggingface.co申请了一个账号,然后又申请了一个授权,这些到是都不难很快就搞定了。但在用huggingface-cli真正的下载模型的时候又有问题了。到不是别的,总是提示我要下载的模型不存在。说是什么模型的路径不对。我真是无语了……从网上查了好多资料竟然没有一个人写的清楚的。我真是……哎。 后来经过本人的多次试验。才知道用huggingface-cli下载模型的正确用法(Windows): 首先开一个Winodws的PowerShell,注意必须是PowerShell不能是普通的CMD窗口。 Windows PowerShell 版权所有(C) Microsoft Corporation。保留所有权利。 安装最新的 PowerShell,了解新功能和改进!https://aka.ms/PSWindows PS C:\Users\Administrator>D: 转到相应的盘符下 PS D:\> cd D:\Source\SD3.5 转到相应的文件夹下 PS D:\Source\SD3.5> .venv\scripts\activate 激活Python虚拟环境 (.venv) PS D:\Source\SD3.5> $env:HF_ENDPOINT = "https://hf-mirror.com" 将下载的源改为国内的镜像网站 (.venv) PS D:\Source\SD3.5> huggingface-cli download stabilityai/stable-diffusion-3.5-large… Read more »
- SimplySocket: A Lightweight WebSocket Wrapper for GoHello Devs! 👋 A year ago, I built a multiplayer game called WordsBattle using Go , Vue and WebSockets. While working on it, I realized how challenging it can be to manage WebSocket connections, events, and rooms in a structured way. This inspired me to create SimplySocket, a lightweight wrapper… Read more »
- Using Lambda Expressions Doesn't Make Your C# Code FunctionalI originally posted this post on my blog a long time ago in a galaxy far, far away. C# will never become a truly functional language. Sure, C# is borrowing features from functional languages like records, pattern matching, and switch expressions. But it doesn't make it a functional language. At… Read more »
- CI and Dev ContainersIntroduction For this week of contribution, I planned to implement a CI pipeline that will automate all of the checks made to any of the changes pushed to my main branch directly or via a PR In addition to this, since my project is becoming bigger and is open-sourced, I… Read more »
- How to Grow LinkedIn: A Strategic GuideIn today's digital age, LinkedIn has emerged as the powerhouse of professional networking and personal branding. Whether you're a job seeker, entrepreneur, or industry expert, growing your LinkedIn presence can open doors to countless opportunities. Here's your comprehensive guide to expanding your LinkedIn influence organically. 1. Optimize Your Profile for… Read more »
- 15 Best GitHub Code Review Tools [Free & Paid]Code reviews can feel like a double-edged sword. As a developer, I’ve spent countless hours combing through pull requests, juggling deadlines, and trying to provide meaningful feedback. While necessary for maintaining quality, the process often becomes tedious and time-consuming, especially when you’re dealing with complex codebases or tight schedules. Code… Read more »
- 𝗨𝗻𝗱𝗲𝗿𝘀𝘁𝗮𝗻𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗜𝗺𝗽𝗹𝗲𝗺𝗲𝗻𝘁𝗶𝗻𝗴 𝗨𝗨𝗜𝗗𝘀 𝗶𝗻 .𝗡𝗘𝗧 𝗔𝗽𝗽𝗹𝗶𝗰𝗮𝘁𝗶𝗼𝗻𝘀In today’s distributed systems, managing 𝘂𝗻𝗶𝗾𝘂𝗲 𝗶𝗱𝗲𝗻𝘁𝗶𝗳𝗶𝗲𝗿𝘀 is crucial for maintaining 𝗱𝗮𝘁𝗮 𝗶𝗻𝘁𝗲𝗴𝗿𝗶𝘁𝘆 across multiple services. 𝗨𝗨𝗜𝗗𝘀 (Universally Unique Identifiers) are a go-to tool for achieving this. Here’s a dive into what they are, how to use them in .NET, and best practices to make the most of UUIDs. 𝗪𝗵𝗮𝘁… Read more »
Daily
Live is updated with the latest news from Dev find out how to keep this page updated.