标题: 在Windows上运行xv6
作者: #Stevessr
板块: #开发调优
编号:
帖子: https://linux.do/t/topic/913660
时间: 2025-08-28 16:24:32
摘要:
作者: #Stevessr
板块: #开发调优
编号:
913660帖子: https://linux.do/t/topic/913660
时间: 2025-08-28 16:24:32
摘要:
虽然mit官方的教程让你在linux下运行,但是我不喜欢WSL(还是太穷了,内存不够吃)
qemu
首先确保你安装了mysy2环境,
接着每日一滚pacman -Syyu
随后使用pacman -S mingw-w64-x86_64-qemu安装qemu
随后打开你的环境变量,在Path最后上添加一行,是qemu存放的位置
这里为
C:\msys64\mingw64\bin
riscV gcc windows
先安装一个make pacman -S make
然后追加一个普通gcc winget install BrechtSanders.WinLibs.POSIX.MSVCRT
下载预构建的gcc工具链(其他的
gnutoolchains.com
Prebuilt GNU toolchain for RISC-V
选择你心仪的版本,随后下载
打开
自行安装(默认会勾选自动配置环境变量)
启动xv6
克隆仓库
github.com
GitHub - mit-pdos/xv6-riscv: Xv6 for RISC-V
Xv6 for RISC-V
git clone https://github.com/mit-pdos/xv6-riscv
cd xv6-riscv
此时不要急,可能会报错,我们将mkfs.c进行修改
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <assert.h>
修改为
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <str
标题: 佬们,求推荐windsurf号池!球球了
作者: #Smith007
板块: #开发调优
编号:
帖子: https://linux.do/t/topic/913663
时间: 2025-08-28 16:25:01
摘要:
作者: #Smith007
板块: #开发调优
编号:
913663帖子: https://linux.do/t/topic/913663
时间: 2025-08-28 16:25:01
摘要:
最近发现windsurf里面配上GPT5使用感觉很丝滑,想问下佬们有咩有推荐的windsurf号池呀?最好是按次的,谢谢啦
标题: 我也发个augment code的使用技巧【只针对有免费社区计划的账号】
作者: #咆哮疾风
板块: #开发调优
编号:
帖子: https://linux.do/t/topic/913674
时间: 2025-08-28 16:30:00
摘要:
作者: #咆哮疾风
板块: #开发调优
编号:
913674帖子: https://linux.do/t/topic/913674
时间: 2025-08-28 16:30:00
摘要:
之前免费计划没关闭之前我注册了5个,当时在vscode中用的去版的aug插件,后来风控加强,连着封了我两个账号,剩下3个不敢用了,后来去某宝买的那种走代理的aug账号,虽然能用,但是没有ace,不怎么聪明,弃之不用,再后来去咸鱼花35买了那种能卡次数的bug号,邀我进了团队,但是没用两天就被封,没得用了,后来我在论坛查帖子看到有佬友说 最好开全局模式,然后我就开启全局模式,卸载了去版的aug插件,从vscode装了官方的插件,登录我之前剩下的账号, 现在稳定使用一周了.
我的具体用法:
1 用的官方版的aug插件
2 开全局模式
有时候开全局模式,很多网站打不开,我就先关闭vscode,打开网站,查完资料后开全局,再开vscode
后来发现方法1很麻烦,发现可以设置规则,让某些网站不走daili,遇到打不开的网站,我就直接加入规则名单,网站就能打开了.
3 下班电脑不关机,用的休眠模式
就这些,有用到的佬友们可以参考,我稳定使用一周了, 配合那个增加次数的feedback插件,勉强够用. 我先不回复了,干活去
标题: 又可以免费领Steam 3个套件了
作者: #Eason404
板块: #搞七捻三
编号:
帖子: https://linux.do/t/topic/913686
时间: 2025-08-28 16:33:31
摘要:
作者: #Eason404
板块: #搞七捻三
编号:
913686帖子: https://linux.do/t/topic/913686
时间: 2025-08-28 16:33:31
摘要:
领取地址:Steam 点数商店
标题: gemini2.5 pro用不了了吗?
作者: #coderZoe
板块: #开发调优
编号:
帖子: https://linux.do/t/topic/913696
时间: 2025-08-28 16:35:52
摘要:
作者: #coderZoe
板块: #开发调优
编号:
913696帖子: https://linux.do/t/topic/913696
时间: 2025-08-28 16:35:52
摘要:
刚开通的gcp300,结算等级也是tier1
但通过newapi调用发现报503,The model is overloaded. Please try again later.
两个模型gemini2.5-flash就是正常的,gemini2.5pro不行。
但通过google ai studio又可以正常调用
下了newapi源码,debug发现这里报的503就是请求源返回的,好奇怪
用了一个一个半月前开通的gcp300账号,通过newapi发现也会报503
标题: Ai小白咨询一个问题
作者: #Neo
板块: #开发调优
编号:
帖子: https://linux.do/t/topic/913702
时间: 2025-08-28 16:38:06
摘要:
作者: #Neo
板块: #开发调优
编号:
913702帖子: https://linux.do/t/topic/913702
时间: 2025-08-28 16:38:06
摘要:
就是我开发了一个mcp,然后又为这个mcp做了一个智能体,现在我想把这个智能体拿你拿出来做成一个网站让用户可以打开网站直接使用,应该怎么实现?
标题: 关于Blazor的问题求教
作者: #JKRaks
板块: #开发调优
编号:
帖子: https://linux.do/t/topic/913710
时间: 2025-08-28 16:40:35
摘要:
作者: #JKRaks
板块: #开发调优
编号:
913710帖子: https://linux.do/t/topic/913710
时间: 2025-08-28 16:40:35
摘要:
最近是闲着没事干抽点空闲时间玩新东西, 一直是.NET后端, 看.NET有wasm的Blazor, 来了点兴趣玩玩, 但是发现用起来异常难受, C#前端看起来还挺好但是感觉非常生硬, 前端写着没Vue和jq爽, 后端写着也没直接在cs里爽, 代码提示拉跨, 热重载拉跨, 前端框架用了用Ant发现也很难受,遂疑惑这东西定位到底是什么, 求指点
标题: 🎉Cohere to OpenAI源码震撼来袭!
作者: #F-Droid
板块: #开发调优
编号:
帖子: https://linux.do/t/topic/913711
时间: 2025-08-28 16:40:37
摘要:
作者: #F-Droid
板块: #开发调优
编号:
913711帖子: https://linux.do/t/topic/913711
时间: 2025-08-28 16:40:37
摘要:
import json
import logging
import os
import secrets
from datetime import datetime
import httpx
from fastapi import FastAPI, Request, HTTPException
from fastapi.middleware.cors import CORSMiddleware
from fastapi.responses import StreamingResponse, Response
from tenacity import retry, stop_after_attempt, wait_exponential, retry_if_exception_type
# --------------- 日志配置 -------------------
LOG_LEVEL = os.getenv("LOG_LEVEL", "INFO").upper()
logging.basicConfig(
level=LOG_LEVEL,
format='%(asctime)s | %(levelname)-8s | %(name)s:%(lineno)d | %(message)s',
datefmt='%Y-%m-%d %H:%M:%S'
)
logger = logging.getLogger("cohere-proxy")
# --------------- 应用初始化 -----------------
app = FastAPI(
title="Cohere OpenAI代理",
description="一个生产级别的、完全兼容的代理。",
version="1.0.0",
docs_url=None,
redoc_url=None
)
app.add_middleware(
CORSMiddleware,
allow_origins=["*"],
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],
)
# --------------- 常量配置 -------------------
COHERE_BASE_URL = os.getenv("COHERE_BASE_URL", "https://api.cohere.ai")
COHERE_USER_AGENT = "cohere-py/5.6.0"
BASE_CREATED = 1700000000
# 参数映射表
COHERE_TO_OPENAI_MAP = {
"temperature": "temperature",
"max_tokens": "max_tokens",
"seed": "seed",
"stop": "stop_sequences",
}
# --------------- 工具函数 -------------------
def get_httpx_client():
return httpx.AsyncClient(timeout=httpx.Timeout(connect=30.0, read=300.0, write=30.0, pool=10.0))
@retry(
stop=stop_after_attempt(3),
wait=wait_exponential(multiplier=1, max=10),
retry=(
retry_if_exception_type(httpx.ConnectError)
| retry_if_exception_type(httpx.ConnectTimeout)
| retry_if_exception_type(httpx.ReadTimeout)
),
reraise=True,
)
async def make_request_with_retry(client, method, url, **kwargs):
logger.debug(f"[PROXY -> COHERE] Request: {method} {url}")
if 'json' in kwargs:
logger.debug(f"[PROXY -> COHERE] Body:\n{json.dumps(kwargs.get('json'), ensure_ascii=False, indent=2)}")
response = await client.request(method, url, **kwargs)
logger.info(f"Upstream Response | {method} | {url} | -> | {response.status_code}")
return response
async def get_auth_key(request: Request) -> str:
auth_header = request.headers.get("Authorization")
if auth_header and auth_header.startswith("Bearer "):
key = auth_header[7:].strip()
if key: return key
key = request.query_params.get("key")
if key: return key.strip()
try:
body = await request.json()
if isinstance(body, dict) and "key" in body:
return str(body["key"]).strip()
except:
pass
raise HTTPException(status_code=401, detail={"error": {"message": "未提供Cohere API密钥。"}})
def map_finish_reason(cohere_reason: str) -> str:
mapping = {
"COMPLETE": "stop",
"MAX_TOKENS": "length",
"TOO_MANY_TOKENS": "length",
"ERROR": "error",
"CONTENT_FILTERED": "content_filter",
"TOOL_CALL": "tool_calls"
}
return mapping.get(cohere_reason.upper(), "stop")
# --------------- 路由定义 -------------------
@app.get("/", include_in_schema=False)
async def root():
html = """
<html><body style="text-align:center; font-family:sans-serif; margin-top:4rem;">
<h1>✅ Cohere OpenAI代理运行就绪</h1>
</body></html>
"""
return Response(content=html, media_type="text/html")
@app.get("/v1/models")
async def list_models(request: Request):
"""
获取所有可用的Cohere模型。
"""
auth = await get_auth_key(request)
headers = {"Authorization": f"Bearer {auth}", "User-Agent": COHERE_USER_AGENT}
async with get_httpx_client() as client:
res = await make_request_with_retry(client, "GET", f"{COHERE_BASE_URL}/v1/models", headers=headers)
if res.status_code != 200:
raise HTTPException(status_code=res.status_code, detai
标题: 时隔2年再看 dapr 还是没有发展起来,心里感觉好像看到了自己
作者: #我就是那个ATM
板块: #搞七捻三
编号:
帖子: https://linux.do/t/topic/913712
时间: 2025-08-28 16:40:45
摘要:
作者: #我就是那个ATM
板块: #搞七捻三
编号:
913712帖子: https://linux.do/t/topic/913712
时间: 2025-08-28 16:40:45
摘要:
Dapr - 分布式应用程序运行时 — Dapr - Distributed Application Runtime
本人实践过 dapr Java实现,让我感觉的确和Java传统的nacos分布式完全不一样。
所有的操作都是都是通过 dapr 来操作,一方面 dapr 感觉很重,另一方面也感觉 dapr 让我感觉
无论是跨语言,还是切换底层云服务商,那真的是分分钟钟的事情。
但是为什么没有发展起来呢,我感觉几点吧。
人们舒适度的问题,springboot-nacos 这一套用了好几年,为什么要换,换了出问题怎么解决,各种成本在里面
感觉不完善,缺乏生态的支撑,比如没有插件生态,感觉让这个 dapr 缺少了一个灵魂
没有氛围,无论是社区还是行业内,都缺少活跃度。
也许未来 dapr 会崛起,但是绝对不是现在。
刚开始接触 dapr 的时候,我觉得 dapr 是非常好微服务解决方案,随着时间的成长,我看到各种局限,也懂得各种利弊,不是技术好,就是好
标题: openrouter上banana可以用啊
作者: #脸脸
板块: #搞七捻三
编号:
帖子: https://linux.do/t/topic/913717
时间: 2025-08-28 16:42:29
摘要:
作者: #脸脸
板块: #搞七捻三
编号:
913717帖子: https://linux.do/t/topic/913717
时间: 2025-08-28 16:42:29
摘要:
做做表情包可以啊~,一张也没多少钱
标题: 有可靠的api平台推荐吗
作者: #edawrz
板块: #搞七捻三
编号:
帖子: https://linux.do/t/topic/913723
时间: 2025-08-28 16:44:13
摘要:
作者: #edawrz
板块: #搞七捻三
编号:
913723帖子: https://linux.do/t/topic/913723
时间: 2025-08-28 16:44:13
摘要:
不用翻墙,放在cherry studio里能用的,主要是谷歌2.5 pro,claude chatgpt,免费或者收费合理、稳定、保真的
标题: 1password扫码登录问题
作者: #yuan jddφθτ
板块: #搞七捻三
编号:
帖子: https://linux.do/t/topic/913751
时间: 2025-08-28 16:51:38
摘要:
作者: #yuan jddφθτ
板块: #搞七捻三
编号:
913751帖子: https://linux.do/t/topic/913751
时间: 2025-08-28 16:51:38
摘要:
因为不想输入secret key+密码来登录(主要是前者有些麻烦),所以我尝试使用扫码登录,但用1password的app扫码的时候,好像什么都没发生,只好用前者的方式登录。有佬友遇到过这样的问题吗?
标题: 苹果模仿赛上 苹果获得了第二名
作者: #𝓵𝓮𝔃𝓲𝓼𝓱𝓮𝓷
板块: #搞七捻三
编号:
帖子: https://linux.do/t/topic/913754
时间: 2025-08-28 16:52:27
摘要:
作者: #𝓵𝓮𝔃𝓲𝓼𝓱𝓮𝓷
板块: #搞七捻三
编号:
913754帖子: https://linux.do/t/topic/913754
时间: 2025-08-28 16:52:27
摘要:
如果他这个保真的情况下
镜态玻璃也做了 灵动岛也做了
懂了 这就是苹果
标题: 512MB 内存,8GB SSD,求推荐好玩的自建服务
作者: #relaxcn
板块: #开发调优
编号:
帖子: https://linux.do/t/topic/913756
时间: 2025-08-28 16:52:55
摘要:
作者: #relaxcn
板块: #开发调优
编号:
913756帖子: https://linux.do/t/topic/913756
时间: 2025-08-28 16:52:55
摘要:
如期,买了一个日本VPS搭梯子,但只有 512MB 内存,8GB SSD。
佬们有没有什么好玩的项目可以搭建的,最好轻量一点的,配置太低了。
标题: certimate部署证书到1Panel从节点失败
作者: #てんどう そうじ
板块: #开发调优
编号:
帖子: https://linux.do/t/topic/913760
时间: 2025-08-28 16:53:26
摘要:
作者: #てんどう そうじ
板块: #开发调优
编号:
913760帖子: https://linux.do/t/topic/913760
时间: 2025-08-28 16:53:26
摘要:
月初的时候通过Certimate申请了几个域名证书,并成功下发到了主节点和从节点中
最近又搞了几个新的域名,想要把证书进行替换更新,执行工作流时报错,可以看到主节点是正常部署的,但两个从节点部署全部失败了。
有没有佬知道是什么问题,需要怎么处理呢