- scanf占位符的一些用法
阿玉的屋檐
c语言初学者算法数据结构c语言青少年编程学习
1.限制输入数据的长度intmain(){inta=123456;scanf("%3d",&a);printf("%d",a);return0;}如果输入的值大于3位则最多读取输入的只读取前3位数据。2.匹配特定字符charss[6];scanf("%[abcd]",ss);%[abcd]表示只读取字符abcd,遇到其它的字符就读取结束,如果abcd字符在字符串的中间部分那么就不能正常读取字符。如
- 【拖拽】自定义拖拽图标
风露_
一、知识点设置被拖拽的元素draggable为true(HTML5新特性)关键方法:voiddataTransfer.setDragImage(img,xOffset,yOffset);注意点:Note:Ifthe[Element]isanexisting[HTMLElement],itneedstobevisibleintheviewportinordertobeshownasadragfeed
- 零基础入门AI:一键本地运行各种开源大语言模型 - Ollama
AI大模型知识分享
人工智能开源语言模型pytorchgpt-3chatgptopenvino
什么是Ollama?Ollama是一个可以在本地部署和管理开源大语言模型的框架,由于它极大的简化了开源大语言模型的安装和配置细节,一经推出就广受好评,目前已在github上获得了46kstar。不管是著名的羊驼系列,还是最新的AI新贵Mistral,等等各种开源大语言模型,都可以用Ollama实现一键安装并运行,支持的更多模型的列表可以查看Ollama官网。ModelParametersSizeD
- 探索深度学习的奥秘:从理论到实践的奇幻之旅
小周不想卷
深度学习
目录引言:穿越智能的迷雾一、深度学习的奇幻起源:从感知机到神经网络1.1感知机的启蒙1.2神经网络的诞生与演进1.3深度学习的崛起二、深度学习的核心魔法:神经网络架构2.1前馈神经网络(FeedforwardNeuralNetwork,FNN)2.2卷积神经网络(CNN)2.3循环神经网络(RNN)及其变体(LSTM,GRU)2.4生成对抗网络(GAN)三、深度学习的魔法秘籍:算法与训练3.1损失
- HTTPS和HTTP区别是什么?
全真王重阳
#计算机网络httphttps网络协议网络408计算机网络
HTTP和HTTPS是两种协议,分别是HyperTextTransferProtocol和HyperTextTransferProtocolSecure。HTTPS还经常被称为HTTPoverSSL或者HTTPoverTSL,HTTPS经由HTTP进行通信,但利用SSL/TLS来加密数据包。他们的区别主要由以下几个方面:安全性:HTTP:HTTP是明文传输的,这意味着数据在传输过程中不加密,容易受
- 如何在Android 12 aosp系统源码中添加三指下滑截图功能
一航jason
androidpython开发语言
如何在Android12aosp系统源码中添加三指下滑截图功能系统中截图api非常简单:privatestaticScreenshotHelpersScreenshotHelper;sScreenshotHelper=newScreenshotHelper(mContext);//调用sScreenshotHelper.takeScreenshot(WindowManager.TAKE_SCREE
- max 2013+ 孤立模式
锦囊喵
原文链接工具链接maxScriptsjedie----Lagacy"IsolateSelection"formax2013----Pleasevote:--http://3dsmaxfeedback.autodesk.com/forums/76763-small-annoying-things/suggestions/2771695-max-2013-make-isolate-selection-
- bootstrap直接对form表进行校验
IT和金融
form表单可以前端进行校验,当然也可以直接采用bootstrap对form表单进行校验如form表单中有等相关字段进行校验,可直接用bootstrap的校验,方式如下:$("#auth_add_form").bootstrapValidator({//auth_add_form为form的id值feedbackIcons:{valid:'glyphiconglyphicon-ok',invali
- 2020-03-17
百百百川
####查看进程ps,top查看进程process了解进程的:•PID(processID),PPID(parentprocessID)•当前的进程状态•内存的分配情况•CPU和已花费的实际时间•用户UID,他决定进程的特权####静态查看进程#####a参数含义ps[root@localhost~]#psaux|less分页显示USERPID%CPU%MEMVSZRSSTTYSTATSTARTT
- python实现socket通讯(TCP)
weixin_34087503
网络python操作系统
Server:#serverimportsocketaddress=('127.0.0.1',31500)s=socket.socket(socket.AF_INET,socket.SOCK_STREAM)#s=socket.socket()s.bind(address)s.listen(5)ss,addr=s.accept()print'gotconnectedfrom',addrss.send
- 疫情下的日本居家办公
我是聪
Japan'swhite-collarwarriorsstruggletoadapttosocialdistancing第一段In57ADaChineseemperor,Guangwu,gaveanenvoyfromthekingdomofWa,asJapanwasthenknown,asolidgoldseal,withahandleintheformofacoiledserpent.Suchs
- 免费申请Let's Encrypt HTTPS 证书
虎头茉莉
WebSSLHTTPS
背景知识超文本传输安全协议(英语:HypertextTransferProtocolSecure,缩写:HTTPS,常称为HTTPoverTLS,HTTPoverSSL或HTTPSecure)是一种透过计算机网络进行安全通信的传输协议。HTTPS经由HTTP进行通信,但利用SSL/TLS来加密数据包。HTTPS开发的主要目的,是提供对网站服务器的身份认证,保护交换数据的隐私与完整性通俗点讲就是你浏
- 【论文阅读】LLM4CP: Adapting Large Language Models for Channel Prediction(2024)
Bosenya12
科研学习论文阅读语言模型人工智能信道预测时间序列
摘要Channelprediction(信道预测)isaneffectiveapproach(有效方法)forreducingthefeedback(减少反馈)orestimationoverhead(估计开销)inmassivemulti-inputmulti-output(大规模多输入输出)(m-MIMO)systems.However,existingchannelpredictionmet
- 行为艺术feedback
啵啵的馒头脸
各小组feedback:1.极简主义:互动性强,不足之处是略有些长。2.互动艺术:准备的充足,有图片和视频多种形式,以互动的方式提出。3.装置艺术:ppt完整,加入了个人见解,互动性强。4.激浪派:互动性强,内容性好,引出话题。5.波普艺术:引入话题,内容丰富,李琪的视频比较深入了解,ppt颜色有些问题看不清。6.观念艺术:讲解很吸睛,不枯燥,加入了更多自己的想法。7.录像艺术:开头吸引人,也有爱
- ROS2下进行单目相机标定
IT小艺
RoboMaster相机标定ros2大华工业相机海康工业相机
本文主要进行在ros2-humble下大华工业相机和海康工业相机的标定,其他相机也可以参考首先进行ros2环境的安装2.5在ubuntu22.04安装ros2_ubuntu20.04安装ros2-CSDN博客安装工业相机的驱动SDK1.8安装相机SDK及测试-CSDN博客安装相机标定工具sudoaptinstallros-humble-camera-calibration-parserssudoa
- 3.关于Detr
安逸sgr
Transformer计算机视觉目标检测transformer
关于Detr模型架构总体架构classTransformer(nn.Module):def__init__(self,d_model=512,nhead=8,num_encoder_layers=6,num_decoder_layers=6,dim_feedforward=2048,dropout=0.1,activation="relu",normalize_before=False,retur
- windows vscode Delete `␍`eslintprettier/prettier 报错
Ciito
前端windowsvscodeide
问题根源罪魁祸首是git的一个配置属性:core.autocrlf由于历史原因,windows下和linux下的文本文件的换行符不一致。Windows在换行的时候,同时使用了回车符CR(carriage-returncharacter)和换行符LF(linefeedcharacter)而Mac和Linux系统,仅仅使用了换行符LF老版本的Mac系统使用的是回车符CRWindowsLinux/Mac
- 每日安全资讯(2018.6.06)
溪边的墓志铭
《贵阳市大数据安全管理条例》将实施:明确数据安全第一责任人《条例》明确,大数据发展应用中,数据的所有者、管理者、使用者和服务提供者等安全责任单位的法定代表人或主要负责人,是本单位大数据安全的第一责任人。https://www.secrss.com/articles/3170当前网络诈骗犯罪的主要媒介及应对思路为了应对公安机关的打击,网络诈骗行为在不断的更新换代,各类新型诈骗方式层出不穷,我国对网络
- Recommended order of a field's mutiple modifiers
MJN
propertiesjava
Fielddeclarationscanalsobeprecededbymodifiersthatcontrolcertainpropertiesofthefield:annotationsaccessmodifiersstaticfinaltransientvolatileAfieldcannotbebothfinalandvolatile.Whenmultiplemodifiersareapp
- 【论文笔记】Training language models to follow instructions with human feedback B部分
Ctrl+Alt+L
大模型论文整理论文笔记论文阅读语言模型人工智能自然语言处理
TraininglanguagemodelstofollowinstructionswithhumanfeedbackB部分回顾一下第一代GPT-1:设计思路是“海量无标记文本进行无监督预训练+少量有标签文本有监督微调”范式;模型架构是基于Transformer的叠加解码器(掩码自注意力机制、残差、Layernorm);下游各种具体任务的适应是通过在模型架构的输出后增加线性权重WyW_{y}Wy实
- 筋斗云效果
花开富贵城
运动javascripthtmlcss
*{margin:0;padding:0;list-style:none;}body{background:peachpuff;}.nav{width:800px;height:42px;/*background:url("images/rss.png")no-repeatrightcenter#fff;*/background:lightpink;margin:100pxauto;border-
- [openwrt-21.02]openwrt更新及安装luci feeds
wellnw
Openwrtopenwrt
updateluci./scripts/feedsupdateluciopenwrt#./scripts/feedsupdateluciUpdatingfeed'luci'from'https://git.openwrt.org/project/luci.git^0ecaf74'...Cloninginto'./feeds/luci'...remote:Enumeratingobjects:362
- 2022-06-04
爱吃大排鸡的猫
#同心协力##攻坚克难##战胜病毒##再创辉煌#https://weibo.com/3230347095/Lw8TXhdhR?pagetype=profilefeed
- 加拿大RSS-210 Issue 11标准更新
咚咚-Ice
经验分享
2024年6月25日,加拿大创新、科学和经济发展部(ISED)发布针对1类免执照射频装置的更新标准RSS-210Issue11-Licence-ExemptRadioApparatus:CategoryIEquipment的通知,该标准将于6个月后强制执行,届时将取代2019年12月发布的标准RSS-210issue10;即自2024年12月25日起,用于ISED认证申请的报告需满足RSS-210
- android手机内存的解释(VSS,RSS,PSS,USS)
l309681481
服务器linux运维
在Android手机或基于Linux系统的设备中,内存管理是确保系统高效运行的关键组成部分。其中,VSS、RSS、PSS、USS是衡量进程内存使用情况的不同指标,它们各自代表了不同的内存占用概念:VSS(VirtualSetSize)-虚拟耗用内存VSS表示进程可以访问的全部内存地址空间大小,包括分配给进程的私有内存、共享库以及尚未实际使用的内存。这个值可以大于实际物理内存和交换空间之和,因为它包
- ETH:通过文本反馈提高LLM对齐能力
大模型任我行
大模型-模型训练人工智能自然语言处理语言模型
标题:TowardsAligningLanguageModelswithTextualFeedback来源:arXiv,2407.16970️文章简介研究问题:如何通过文本反馈来调整语言模型,使其生成更符合用户期望的行为。主要贡献:论文的提出了ALT,一种将语言模型与文本反馈对齐的方法,通过示例反馈来引导语言模型生成更符合用户偏好的内容。重点思路相关工作对齐:此前的研究已成功利用RLHF来增强LL
- Two Sum--LeetCode
我是谁我就是华
问题描述Givenanarrayofintegers,returnindicesofthetwonumberssuchthattheyadduptoaspecifictarget.Youmayassumethateachinputwouldhaveexactlyonesolution,andyoumaynotusethesameelementtwice.Example:Givennums=[2,7
- 进程、端口、重定向
菜 文 姬
linux运维服务器
1、进程列信息[root@linux-server~]#psauxUSERPID%CPU%MEMVSZRSSTTYSTATSTARTTIMECOMMAND============================================================================USER:#运行进程的用户PID:#进程ID%CPU:#CPU占用率%MEM:#内存占用率VS
- 2012年英语二完形part1
7c6daa060626
练习说明:周一到周五是16个单词+一段翻译(单词做到认识就好,快速记忆多次重复。翻译关注紫色部分的表达,可以进行互译检测:看到中文回忆英文,看到英文回忆中文)周六真题及其详解,再次巩固词汇体会完形题目周日文章结构图,可以对照之前的翻译练习再次巩固前期大家可以多关注单词。每日词汇每日翻译MillionsofAmericansandforeignersseeG.I.Joeasamindlesswart
- 初步认知Next.js中ISR/RSC/Edge Runtime/Streaming等新概念
星野睡不醒
Webnextjsreactisrreact18js
前言浅窥nextjs到目前v12版本的几个重点新概念,我们有:定义说明ISR增量静态渲染EdgeRuntime边缘运行时StreamingSSR流式传输SSRReactServerComponents服务器组件下面我们对这几个新概念进行一个初步的认知,在阅读前,我们默认读者已经预备了nextjs的基本知识。含义认知ISRSSR、SSG这两个是冷饭,我们都耳熟能详,那所谓ISR增量再渲染的概念,其实
- jQuery 跨域访问的三种方式 No 'Access-Control-Allow-Origin' header is present on the reque
qiaolevip
每天进步一点点学习永无止境跨域众观千象
XMLHttpRequest cannot load http://v.xxx.com. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:63342' is therefore not allowed access. test.html:1
- mysql 分区查询优化
annan211
java分区优化mysql
分区查询优化
引入分区可以给查询带来一定的优势,但同时也会引入一些bug.
分区最大的优点就是优化器可以根据分区函数来过滤掉一些分区,通过分区过滤可以让查询扫描更少的数据。
所以,对于访问分区表来说,很重要的一点是要在where 条件中带入分区,让优化器过滤掉无需访问的分区。
可以通过查看explain执行计划,是否携带 partitions
- MYSQL存储过程中使用游标
chicony
Mysql存储过程
DELIMITER $$
DROP PROCEDURE IF EXISTS getUserInfo $$
CREATE PROCEDURE getUserInfo(in date_day datetime)-- -- 实例-- 存储过程名为:getUserInfo-- 参数为:date_day日期格式:2008-03-08-- BEGINdecla
- mysql 和 sqlite 区别
Array_06
sqlite
转载:
http://www.cnblogs.com/ygm900/p/3460663.html
mysql 和 sqlite 区别
SQLITE是单机数据库。功能简约,小型化,追求最大磁盘效率
MYSQL是完善的服务器数据库。功能全面,综合化,追求最大并发效率
MYSQL、Sybase、Oracle等这些都是试用于服务器数据量大功能多需要安装,例如网站访问量比较大的。而sq
- pinyin4j使用
oloz
pinyin4j
首先需要pinyin4j的jar包支持;jar包已上传至附件内
方法一:把汉字转换为拼音;例如:编程转换后则为biancheng
/**
* 将汉字转换为全拼
* @param src 你的需要转换的汉字
* @param isUPPERCASE 是否转换为大写的拼音; true:转换为大写;fal
- 微博发送私信
随意而生
微博
在前面文章中说了如和获取登陆时候所需要的cookie,现在只要拿到最后登陆所需要的cookie,然后抓包分析一下微博私信发送界面
http://weibo.com/message/history?uid=****&name=****
可以发现其发送提交的Post请求和其中的数据,
让后用程序模拟发送POST请求中的数据,带着cookie发送到私信的接入口,就可以实现发私信的功能了。
- jsp
香水浓
jsp
JSP初始化
容器载入JSP文件后,它会在为请求提供任何服务前调用jspInit()方法。如果您需要执行自定义的JSP初始化任务,复写jspInit()方法就行了
JSP执行
这一阶段描述了JSP生命周期中一切与请求相关的交互行为,直到被销毁。
当JSP网页完成初始化后
- 在 Windows 上安装 SVN Subversion 服务端
AdyZhang
SVN
在 Windows 上安装 SVN Subversion 服务端2009-09-16高宏伟哈尔滨市道里区通达街291号
最佳阅读效果请访问原地址:http://blog.donews.com/dukejoe/archive/2009/09/16/1560917.aspx
现在的Subversion已经足够稳定,而且已经进入了它的黄金时段。我们看到大量的项目都在使
- android开发中如何使用 alertDialog从listView中删除数据?
aijuans
android
我现在使用listView展示了很多的配置信息,我现在想在点击其中一条的时候填出 alertDialog,点击确认后就删除该条数据,( ArrayAdapter ,ArrayList,listView 全部删除),我知道在 下面的onItemLongClick 方法中 参数 arg2 是选中的序号,但是我不知道如何继续处理下去 1 2 3
- jdk-6u26-linux-x64.bin 安装
baalwolf
linux
1.上传安装文件(jdk-6u26-linux-x64.bin)
2.修改权限
[root@localhost ~]# ls -l /usr/local/jdk-6u26-linux-x64.bin
3.执行安装文件
[root@localhost ~]# cd /usr/local
[root@localhost local]# ./jdk-6u26-linux-x64.bin&nbs
- MongoDB经典面试题集锦
BigBird2012
mongodb
1.什么是NoSQL数据库?NoSQL和RDBMS有什么区别?在哪些情况下使用和不使用NoSQL数据库?
NoSQL是非关系型数据库,NoSQL = Not Only SQL。
关系型数据库采用的结构化的数据,NoSQL采用的是键值对的方式存储数据。
在处理非结构化/半结构化的大数据时;在水平方向上进行扩展时;随时应对动态增加的数据项时可以优先考虑使用NoSQL数据库。
在考虑数据库的成熟
- JavaScript异步编程Promise模式的6个特性
bijian1013
JavaScriptPromise
Promise是一个非常有价值的构造器,能够帮助你避免使用镶套匿名方法,而使用更具有可读性的方式组装异步代码。这里我们将介绍6个最简单的特性。
在我们开始正式介绍之前,我们想看看Javascript Promise的样子:
var p = new Promise(function(r
- [Zookeeper学习笔记之八]Zookeeper源代码分析之Zookeeper.ZKWatchManager
bit1129
zookeeper
ClientWatchManager接口
//接口的唯一方法materialize用于确定那些Watcher需要被通知
//确定Watcher需要三方面的因素1.事件状态 2.事件类型 3.znode的path
public interface ClientWatchManager {
/**
* Return a set of watchers that should
- 【Scala十五】Scala核心九:隐式转换之二
bit1129
scala
隐式转换存在的必要性,
在Java Swing中,按钮点击事件的处理,转换为Scala的的写法如下:
val button = new JButton
button.addActionListener(
new ActionListener {
def actionPerformed(event: ActionEvent) {
- Android JSON数据的解析与封装小Demo
ronin47
转自:http://www.open-open.com/lib/view/open1420529336406.html
package com.example.jsondemo;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
impor
- [设计]字体创意设计方法谈
brotherlamp
UIui自学ui视频ui教程ui资料
从古至今,文字在我们的生活中是必不可少的事物,我们不能想象没有文字的世界将会是怎样。在平面设计中,UI设计师在文字上所花的心思和功夫最多,因为文字能直观地表达UI设计师所的意念。在文字上的创造设计,直接反映出平面作品的主题。
如设计一幅戴尔笔记本电脑的广告海报,假设海报上没有出现“戴尔”两个文字,即使放上所有戴尔笔记本电脑的图片都不能让人们得知这些电脑是什么品牌。只要写上“戴尔笔
- 单调队列-用一个长度为k的窗在整数数列上移动,求窗里面所包含的数的最大值
bylijinnan
java算法面试题
import java.util.LinkedList;
/*
单调队列 滑动窗口
单调队列是这样的一个队列:队列里面的元素是有序的,是递增或者递减
题目:给定一个长度为N的整数数列a(i),i=0,1,...,N-1和窗长度k.
要求:f(i) = max{a(i-k+1),a(i-k+2),..., a(i)},i = 0,1,...,N-1
问题的另一种描述就
- struts2处理一个form多个submit
chiangfai
struts2
web应用中,为完成不同工作,一个jsp的form标签可能有多个submit。如下代码:
<s:form action="submit" method="post" namespace="/my">
<s:textfield name="msg" label="叙述:">
- shell查找上个月,陷阱及野路子
chenchao051
shell
date -d "-1 month" +%F
以上这段代码,假如在2012/10/31执行,结果并不会出现你预计的9月份,而是会出现八月份,原因是10月份有31天,9月份30天,所以-1 month在10月份看来要减去31天,所以直接到了8月31日这天,这不靠谱。
野路子解决:假设当天日期大于15号
- mysql导出数据中文乱码问题
daizj
mysql中文乱码导数据
解决mysql导入导出数据乱码问题方法:
1、进入mysql,通过如下命令查看数据库编码方式:
mysql> show variables like 'character_set_%';
+--------------------------+----------------------------------------+
| Variable_name&nbs
- SAE部署Smarty出现:Uncaught exception 'SmartyException' with message 'unable to write
dcj3sjt126com
PHPsmartysae
对于SAE出现的问题:Uncaught exception 'SmartyException' with message 'unable to write file...。
官方给出了详细的FAQ:http://sae.sina.com.cn/?m=faqs&catId=11#show_213
解决方案为:
01
$path
- 《教父》系列台词
dcj3sjt126com
Your love is also your weak point.
你的所爱同时也是你的弱点。
If anything in this life is certain, if history has taught us anything, it is
that you can kill anyone.
不顾家的人永远不可能成为一个真正的男人。 &
- mongodb安装与使用
dyy_gusi
mongo
一.MongoDB安装和启动,widndows和linux基本相同
1.下载数据库,
linux:mongodb-linux-x86_64-ubuntu1404-3.0.3.tgz
2.解压文件,并且放置到合适的位置
tar -vxf mongodb-linux-x86_64-ubun
- Git排除目录
geeksun
git
在Git的版本控制中,可能有些文件是不需要加入控制的,那我们在提交代码时就需要忽略这些文件,下面讲讲应该怎么给Git配置一些忽略规则。
有三种方法可以忽略掉这些文件,这三种方法都能达到目的,只不过适用情景不一样。
1. 针对单一工程排除文件
这种方式会让这个工程的所有修改者在克隆代码的同时,也能克隆到过滤规则,而不用自己再写一份,这就能保证所有修改者应用的都是同一
- Ubuntu 创建开机自启动脚本的方法
hongtoushizi
ubuntu
转载自: http://rongjih.blog.163.com/blog/static/33574461201111504843245/
Ubuntu 创建开机自启动脚本的步骤如下:
1) 将你的启动脚本复制到 /etc/init.d目录下 以下假设你的脚本文件名为 test。
2) 设置脚本文件的权限 $ sudo chmod 755
- 第八章 流量复制/AB测试/协程
jinnianshilongnian
nginxluacoroutine
流量复制
在实际开发中经常涉及到项目的升级,而该升级不能简单的上线就完事了,需要验证该升级是否兼容老的上线,因此可能需要并行运行两个项目一段时间进行数据比对和校验,待没问题后再进行上线。这其实就需要进行流量复制,把流量复制到其他服务器上,一种方式是使用如tcpcopy引流;另外我们还可以使用nginx的HttpLuaModule模块中的ngx.location.capture_multi进行并发
- 电商系统商品表设计
lkl
DROP TABLE IF EXISTS `category`; -- 类目表
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `category` (
`id` int(11) NOT NUL
- 修改phpMyAdmin导入SQL文件的大小限制
pda158
sqlmysql
用phpMyAdmin导入mysql数据库时,我的10M的
数据库不能导入,提示mysql数据库最大只能导入2M。
phpMyAdmin数据库导入出错: You probably tried to upload too large file. Please refer to documentation for ways to workaround this limit.
- Tomcat性能调优方案
Sobfist
apachejvmtomcat应用服务器
一、操作系统调优
对于操作系统优化来说,是尽可能的增大可使用的内存容量、提高CPU的频率,保证文件系统的读写速率等。经过压力测试验证,在并发连接很多的情况下,CPU的处理能力越强,系统运行速度越快。。
【适用场景】 任何项目。
二、Java虚拟机调优
应该选择SUN的JVM,在满足项目需要的前提下,尽量选用版本较高的JVM,一般来说高版本产品在速度和效率上比低版本会有改进。
J
- SQLServer学习笔记
vipbooks
数据结构xml
1、create database school 创建数据库school
2、drop database school 删除数据库school
3、use school 连接到school数据库,使其成为当前数据库
4、create table class(classID int primary key identity not null)
创建一个名为class的表,其有一