ZXing一维码/二维码使用文档样例:System.IO.StreamstmYiWei=newSystem.IO.MemoryStream();BitMatrixbyteMatrix=newMultiFormatWriter().encode(sCode,BarcodeFormat.CODE_39,230,40);toBitmap(byteMatrix).Save(stmYiWei,ImageFormat.Bmp);Byte[]byteYiWei=newbyte[stmYiWei.Length];stmYiWei.Position=0;stmYiWei.Read(byteYiWei,0,(int)stmYiWei.Length);//将图片文件流保存为二进制文件以便保存到数据库中System.IO.StreamstmErWei=newSystem.IO.MemoryStream();IDictionaryhints=newDictionary();hints.Add(EncodeHintType.CHARACTER_SET,"UTF-8");byteMatrix=newMultiFormatWriter().encode(sTmp,BarcodeFormat.QR_CODE,200,200,hints);toBitmap(byteMatrix).Save(stmErWei,ImageFormat.Bmp);Byte[]byteErWei=newbyte[stmErWei.Length];stmErWei.Position=0;stmErWei.Read(byteErWei,0,(int)stmErWei.Length);//将图片文件流保存为二进制文件以便保存到数据库中strSQL="insertintogdzc_biaoqian(bq_gd_no,bq_yiweima,bq_erweima,bq_us_no)values(";strSQL=strSQL+"@bq_gd_no,@bq_yiweima,@bq_erweima,@bq_us_no)";SqlCommandcommandImage=newSqlCommand(strSQL,connectionImage);commandImage.Parameters.Clear();commandImage.Parameters.Add("@bq_gd_no",SqlDbType.Int).Value=Convert.ToInt32(sGdzcNo);commandImage.Parameters.Add("@bq_yiweima",SqlDbType.Image).Value=byteYiWei;commandImage.Parameters.Add("@bq_erweima",SqlDbType.Image).Value=byteErWei;commandImage.Parameters.Add("@bq_us_no",SqlDbType.Int).Value=Convert.ToInt32(Session["LoginUserID"]);commandImage.ExecuteNonQuery();commandImage.Dispose();
2024/8/27 21:04:07 25.56MB ZXing 一维码 二维码
1
//Summary:角度精度的转换//Parameters:// dAngle - 角度,单位度(°)// nPrecision - 精度,1:度、2:分、3:秒//Returns:成功返回转换后的角度字符串,否则返回空//Note:转换结果带四舍五入例:角度值0.5°转换结果0°30′0″角度值0.56789°转换结果0°34′4″角度值360.5123°转换结果360°30′44″
2024/7/23 10:31:03 2KB 角度 单位 度分秒
1
由于graphics.h是TC系列的图形库处理函数,不是标准库内容。
而DEV-C++的编译器是GCC,所以DEV-C++中不包含该类库。
要想使用,首先先下载两个文件:graphics.h(放入DEV-C++的安装路径/Dev-Cpp/include/)libbgi.a(放入DEV-C++的安装路径/Dev-Cpp/lib/)然后再在DEV-C++的工具栏中工程(Project)->工程属性(ProjectOptions)->参数(Parameters)的连接器(Linker)中增加-lbgi-lgdi32-lcomdlg32-luuid-loleaut32-lole32这样就可以使用#include了。
2024/6/5 14:52:32 52KB libbgi.a BIOS.H graphics.h
1
DRDAV5Vol.3:DistributedDataManagementArchitectureThisdocumentisoneofthreeOpenGroupStandardsdocumentingtheDistributedRelationalDatabaseArchitecture(DRDA),Version5.Thisvolumedescribesthearchitectedco妹妹ands,parameters,objects,andmessagesoftheDDMdatastream.ThisdatastreamaccomplishesthedatainterchangebetweenthevariouspiecesoftheDDMmodel.
2023/5/12 17:36:36 3.97MB DRDA DB2
1
#GPF##一、GPF(GraphProcessingFlow):行使图神经收集处置下场的普通化流程一、图节点预展现:行使NE框架,直接患上到全图每一个节点的Embedding;二、正负样本采样:(1)单节点样本;
(2)节点对于样本;
三、抽取封锁子图:可做类化处置,建树一种通用图数据结构;四、子图特色领悟:预展现、节点特色、全局特色、边特色;五、收集配置配备枚举:可所以图输入、图输入的收集;
也可所以图输入,分类/聚类下场输入的收集;六、熬炼以及测试;##二、首要文件:一、graph.py:读入图数据;二、embeddings.py:预展现学习;三、sample.py:采样;四、subgraphs.py/s2vGraph.py:抽取子图;五、batchgraph.py:子图特色领悟;六、classifier.py:收集配置配备枚举;七、parameters.py/until.py:参数配置配备枚举/帮手文件;##三、使用一、在parameters.py中配置配备枚举相关参数(可默许);
二、在example/文件夹中运行响应的案例文件--搜罗链接料想、节点外形料想;
以链接料想为例:###一、导入配置配备枚举参数```fromparametersimportparser,cmd_embed,cmd_opt```###二、参数转换```args=parser.parse_args()args.cuda=notargs.noCudaandtorch.cuda.is_available()torch.manual_seed(args.seed)ifargs.cuda:torch.cuda.manual_seed(args.seed)ifargs.hop!='auto':args.hop=int(args.hop)ifargs.maxNodesPerHopisnotNone:args.maxNodesPerHop=int(args.maxNodesPerHop)```###三、读取数据```g=graph.Graph()g.read_edgelist(filename=args.dataName,weighted=args.weighted,directed=args.directed)g.read_node_status(filename=args.labelName)```###四、患上到全图节点的Embedding```embed_args=cmd_embed.parse_args()embeddings=embeddings.learn_embeddings(g,embed_args)node_information=embeddings#printnode_information```###五、正负节点采样```train,train_status,test,test_status=sample.sample_single(g,args.testRatio,max_train_num=args.maxTrainNum)```###六、抽取节点对于的封锁子图```net=until.nxG_to_mat(g)#printnettrain_graphs,test_graphs,max_n_label=subgraphs.singleSubgraphs(net,train,train_status,test,test_status,args.hop,args.maxNodesPerHop,node_information)print('#train:%d,#test:%d'%(len(train_graphs),len(test_graphs)))```###七、加载收集模子,并在classifier中配置配备枚举相关参数```cmd_args=cmd_opt.parse_args()cmd_args.feat_dim=max_n_label+1cmd_args.attr_dim=node_information.shape[1]cmd_args.latent_dim=[int(x)forxincmd_args.latent_dim.split('-')]iflen(cmd_args.latent_dim)
2023/4/8 5:48:07 119KB 图神经网络 Graph Proces GPF
1
有两个主程序和一个用于从CD中提取数据的函数。
首先运转“specify_parameters.m”来定义当前的参数实验,然后运转“extract_data.m”从CD中提取数据。
2023/2/15 23:05:42 13KB 合成孔径雷达
1
包含2010年版的ESP和2014年版ESP,以及作者的论文!
2018/9/12 10:10:52 6.6MB ecognition 易康 ESP插件
1
PCI8系列PCI9系列PCI9054linux驱动法式PLXSDKSamples================================================================ABOUTThisdocumentprovidesabriefdescriptionofthesamplesincludedinthePLXSDK.Pleaserefertothesourcecodeineachsample&thePLXSDKUser'sManualforadditionaldetails.ThePLXsamplesareintendedtodemonstrateuseofthePLXAPI.Thesamplesarenotintendedfordebugorrealworldapplications,althoughtheycanbeextendedtocomplexapplications.TheyshouldbetreatedasareferenceforwritingcustomsoftwarethatutilizesthePLXAPI.NotallsamplesworkwithallPLXdevices.ThePLXAPIsupportsnumerousPLXchipfamiliesinPCI/PCIe,including6000-seriesPCI-to-PCIbridges,9000-seriesPCI-to-Localbusbridges,&8000-seriesPCI/PCIebridges&switches.Somesamplesareprovidedonlyforspecificchipfamilies.SAMPLES-ApiTestSimpleapplicationthatcallsvariousPLXAPIsforaselecteddevice&verifiesreturncodes¶meters.TheAPIcallsmadedependuponthetypeofdeviceselected.-DSlaveDemonstrateshowtoread/writefromaPLX9000PCIBARspaceusingthePLXAPI/drivertoperformthedatatranser.Thisoperationisoftenreferredtoas"DirectSlave".-DSlave_BypassApiSimilartothe'DSlave'sample,exceptthissampleusesthePLXAPIonlytomapaPCIBARspacedirectlytotheapplication'svirtualspace.Theapplicationcanthendirectlyaccessthespaceviasimplememorydereferencing,bypassingthePLXAPI/driver&resultingingreaterperformance,especiallyforsmalltransfers.TheapplicationisresponsibleforinitializingtheBARspace,suchassetupoftranslation/remapregisters.-LocalToPciInt[9000-series&8311]DemonstrateshowtowaitforagenericLocal-to-PCIinterruptusingthePLXNotificationAPI.-NT_DmaTest[8000-seriesswitcheswithDMA&NTsupport]DemonstratesusingtheDMAengineinaPLX8000switchtotransferdatathroughaPLX
2018/4/27 15:41:06 3.62MB PLXPCI6系列 PCI8系列 PCI9系列 PCI9054
1
项目一:使用ADO.NET技术实现校园BBS;01/;;Command对象实现对数据库执行T-SQL语句或存储过程Command对象的常用属性;Command对象的常用方法;基本步骤打开到数据库连接。
创建新的Command对象。
定义T-SQL命令。
执行T-SQL命令。
关闭数据库连接。
;参数化的好处在实际应用中,常常需要用户在页面上输入信息,并将这些信息插入到数据库中。
只要允许用户输入数据,就有可能出现输入错误,并可能对Web应用程序创建和执行SQL代码产生致命的影响。
为了处理这个问题,除了对输入控件进行检查之外,还可以在生成T-SQL命令时,不使用窗体变量而使用SQL参数来构造连接字符串。
SQL参数不属于SQL查询的可执行脚本部分。
由于错误或恶意的用户输入不会处理成可执行脚本,所以不会影响SQL查询的执行结果。
;Parameters属性和SqlParameter对象要在ADO.NET对象模型中使用SQL参数,需要向Command对象的Parameters集合中添加Parameter对象。
在使用SQLServer.NET数据提供程序时,要使用的Paramet
2015/9/27 3:03:16 899KB asp.net 数据库 文档资料 后端
1
内容名称:DDR3(APP/Naive接口)工程代码工程环境:XilinxVIVADO2018.3内容概要:使用XilinxVIVADO中的MIGIP核,读写位宽设置为128比特,并设计了外部读写模块Verilog代码,直接对Xilinx定义的APP接口进行操作。
本工程已经过Testbench测试无误,并已将仿真所需的头文件ddr3_model_parameters.vh和DDR3仿真模块文件ddr3_model.sv添加进工程中,读者下载后能直接进行仿真。
本工程的建立、代码实现原理、仿真测试讲解等已在博客主页文章中进行展现,以便于读者理解。
适合人群:FPGA(VIVADO)使用者,掌握Verilog。
阅读建议:结合主页博客讲解进行阅读。
2017/11/11 17:56:43 299.4MB fpga ddr VIVADO
1
在日常工作中,钉钉打卡成了我生活中不可或缺的一部分。然而,有时候这个看似简单的任务却给我带来了不少烦恼。 每天早晚,我总是得牢记打开钉钉应用,点击"工作台",再找到"考勤打卡"进行签到。有时候因为工作忙碌,会忘记打卡,导致考勤异常,影响当月的工作评价。而且,由于我使用的是苹果手机,有时候系统更新后,钉钉的某些功能会出现异常,使得打卡变得更加麻烦。 另外,我的家人使用的是安卓手机,他们也经常抱怨钉钉打卡的繁琐。尤其是对于那些不太熟悉手机操作的长辈来说,每次打卡都是一次挑战。他们总是担心自己会操作失误,导致打卡失败。 为了解决这些烦恼,我开始思考是否可以通过编写一个全自动化脚本来实现钉钉打卡。经过一段时间的摸索和学习,我终于成功编写出了一个适用于苹果和安卓系统的钉钉打卡脚本。
2024-04-09 15:03 15KB 钉钉 钉钉打卡