• 2024-09-14【大模型专栏—进阶篇】语言模型创新大总结——“后起之秀”
    大模型专栏介绍
  • 2024-07-15脚本管理AWS-EC2
    这里使用pythonSDKboto3,文档:https://aws.amazon.com/sdk-for-python/https://boto3.amazonaws.com/v1/documentation/api/latest/guide/quickstart.html安装pip3installboto3配置cdmkdir.awsvim~/.aws/credentials[default]aws_access_key_id=YOUR_ACCESS_KEY
  • 2024-05-01使用 AWS CLI 开发 Amazon EC2
    创建EC2实例:awsec2run-instances--image-idami-04b70fa74e45c3917--count1--instance-typec5a.xlarge--key-name"DefaultSSHKey"--security-groupslaunch-wizard-1--block-device-mappings"[{\"DeviceName\":\"/dev/sda1\
  • 2024-04-08Udemy AWS SAA - Scalability & Availability
    Scalability:anapplication/systemcanhandlegreaterloadsbyadapting.TherearetwokindsofscalabilityVerticalScalability(=scaleup/down)increasingthesizeoftheinstance,likebetterlaptop,orfromt2.microtot2.largeHorizontalScal
  • 2024-04-08手把手带你,在K8S集群中删除处于 "terminating" 状态命名空间。
    1.背景背景:在Kubernetes集群中,有时侯想要删掉某个长时间不用命名空间以释放资源却发现删不掉,经过反复删除发现想要删除命名空间处在Terminating状态,强制删除也无济于事。作者也遇到这样事情,我又是如何删除掉呢?#kubectlgetnsNAMESTATUSAGEdefaul
  • 2024-04-02Udemy AWS SAA - Private vs Public IP (IPv4)
    IPv4[0-255].[0-255].[0-255].[0-255]uniqueacrossthewholeweb,canbegeo-locatedeasily**PrivateNetwork:**everyoneinthenetworkcantalktoeachotheruniqueacrossprivatenetworkmachinesconnecttoWWWusingaNAT+internetgateway(aproxy)
  • 2024-03-26故障转移群集(Failover Cluster Instances)和AlwaysOn是SQL Server中两种不同的高可用性解决方案
    故障转移群集(FailoverClusterInstances)和AlwaysOn是SQLServer中两种不同的高可用性解决方案。它们在实现高可用性的方式上有一些显著的区别:故障转移群集(FailoverClusterInstances):故障转移群集是一种基于WindowsServer故障转移群集技术的解决方案,它使用共享存储并在主
  • 2024-03-23Dotnet8运行新问题-he configured user limit (128) on the number of inotify instances has been reached
    问题现象:System.IO.IOException:Theconfigureduserlimit(128)onthenumberofinotifyinstanceshasbeenreached,ortheper-processlimitonthenumberofopenfiledescriptorshasbeenreached      解决办法:修改配置:sudovim/
  • 2023-12-19利用夜莺开源版对H3C无线设备监控
    编者荐语:真正搞监控的人肯定知道SNMP水有多深,有时我甚至腹黑猜测,这些厂商是故意的吧,,,指标不标准,格式各异,只能靠一款灵活的采集器了,本文是夜莺社区用户写的文章,转给大家参考。author:网络小斐关于夜莺SNMP插件前文说明了利用夜莺开源版如何监控H3C交换机的,算是抛砖引玉;秉持着授
  • 2023-12-13Unhandled exception. System.IO.IOException: The configured user limit (128) on the number of inotify
    现象:Unhandledexception.System.IO.IOException:Theconfigureduserlimit(128)onthenumberofinotifyinstanceshasbeenreached,ortheper-processlimitonthenumberofopenfiledescriptorshasbeenreached.atSystem.IO.FileSystemWatcher.StartRaisi
  • 2023-12-13夜莺开源版对H3C交换机设备监控(一)
    夜莺单机版部署就使用官方推荐的二进制部署:最推荐的方式,稳,升级也方便,使用系统为CentOS7.9。安装前置依赖#夜莺架构依赖MySQLyum-yinstallmariadb*systemctlenablemariadbsystemctlrestartmariadbmysql-e"SETPASSWORDFOR'root'@'localhost'=PASSWORD('1234');"
  • 2023-12-09Python - 实现【单例模式】的四种方法
    方法一:使用模块实现单例模式在Python中,每个模块只会被导入一次,因此可以将需要实现单例模式的类定义在一个模块中,每次需要使用该类时,将该模块导入即可。#singleton.pyclassSingleton:passsingleton=Singleton()在其他模块中直接引用这个singleton对象即可。2.方法二:使
  • 2023-12-02为了发布而发布,占位符2023
    为了发布而发布,占位符2023AmazonElasticComputeCloud(AmazonEC2)R8ginstances,poweredbythelatestgenerationAWSGraviton4processors,providethebestpriceperformanceinAmazonEC2formemory-optimizedworkloads. R8ginstancesareidealformemory-i
  • 2023-11-03cesium实现3D区域掩膜的效果
    先展示效果:上代码:add3DAreA(geojson){letarr=[]geojson.features[0].geometry.coordinates[0][0].forEach(item=>{arr.push(item[0])arr.push(item[1])});varmaskspoint=Cesium.Cartesian3.fromDeg
  • 2023-10-07Go - Creating Struct Instances
    Problem: Youwanttocreateaninstanceofastruct.Solution: Createastructinstancedirectlyusingthenameofthestruct,orapointertoastructinstanceusingthenewkeyword. Therearetwowaystocreateaninstanceofastruct.Thefirstist
  • 2023-10-01Go每日一库之153:categraf (数据采集 Agent)
    简介Categraf是夜莺监控的默认数据采集Agent,主打开箱即用和all-in-one,同时支持对metrics、log、trace的收集,由夜莺监控核心开发团队开发。Categraf的代码托管在两个地方:中国计算学会确实开源平台:https://www.gitlink.org.cn/flashcat/categrafGithub:https://github.com/
  • 2023-09-06创建型设计模式-单例 Singleton
    简介全局共用一个对象,好处是对象只实例化一次,减少资源占用角色单例类返回本类的唯一一个实例代码classSingleton{privatestatic$instances=[];protectedfunction__construct(){}protectedfunction__clone(){}publicfunction__wa
  • 2023-08-28CKEditer的销毁
    由于业务需求,在一分表单中对同一个textarea需要根据下拉框的选择来决定该文本域是纯文本还是富文本于是需要试用CKEditer在创建与销毁之间不断切换,尝试了很多方法后,终于找到了可用的销毁方法 生成方法如下:CKEDITOR.replace('content');销毁方法如下: if(CKEDITOR.instances['c
  • 2023-08-08weka的参数使用
    摘要:最常用的组件(components)是:lInstances你的数据lFilter对数据的预处理lClassifiers/Clusterer被建立在预处理的数据上,分类/聚类lEvaluating评价classifier/clustererlAttributeselection去除数据中不相关的属性下面将介绍如果在你自己的代码中使用W
  • 2023-07-10监控系统自监控怎么做?
    问题监控系统用于监控其他的系统、基础设施,绝对是P0级的服务,那监控系统的自监控应该怎么做呢?如果自己监控自己,有些组件挂掉了难免循环依赖,如果单独搞一套新的监控系统来监控当前服役的监控系统,又搞得有些过于复杂。本文我们来探讨一下监控系统的自监控应该怎么做。解决方案:自
  • 2023-05-26React Components, Elements, and Instances
    see: https://legacy.reactjs.org/blog/2015/12/18/react-components-elements-and-instances.htmlhttps://www.robinwieruch.de/react-element-component/https://stackoverflow.com/questions/30971395/difference-between-react-component-and-react-element这里摘抄一下第
  • 2023-05-20关于购买AWS-EC2-RI-Reserved Instances的一些说明以及折扣后Reserved Instance ID的信息变化
    关于在AWS上,如果一台EC2机器需要长时间使用、都是建议购买ReservedInstances,即一种预付费的方式,建议是选择AllUpfront,预付全部的费用,则可以享受到最大的折扣,在购买时需要主意如下几个选项只有当上面的选项与EC2的对应的属性相匹配时,才能免除其运行时产生的费用 另外每
  • 2023-04-16远程调用之负载均衡Ribbon-No instances available for localhost ribbon
    如果使用的是多个实例情况,远程调用就不能写地址,否则远程调用报Noinstancesavailableforlocalhostribbon而是应该写成服务的名称 
  • 2023-04-14AWS学习之路(三)
    ClassicPortstoKnow22=SSH(SecureShell)-logintoaLinuxinstance21=FTP(FileTransferProtocol)-uploadfileintoafileshare22=SFTP(SecureFileTransferProtocol)-uploadfileusingSSH80=HTTP-accessunsecuredwebsites443=HTT
  • 2023-03-21Python 单例实现
    Python 单例实现使用装饰器实现单例模式使用装饰器实现单例模式的方法比较简单,只需要定义一个装饰器函数,将其应用到需要实现单例模式的类上即可。具体的实现方法如下:de