• 2024-09-04linux下graphviz离线安装指南及报错解决方式
    在联网的机器上下载Graphviz的源码包:网址:Graphviz下载地址将下载的安装包copy到linux下,解压后,在解压目录下执行安装tar-xvfgraphviz-12.1.0.tar.gzcdgraphviz-12.1.0./configure--prefix=/your_want_install_path/makemakeinstall注:我在执行make命令时报
  • 2024-09-0355 扩展应用组件声明周期
    onAddForm(want:Want)使用方创建卡片时触发,提供方需要返回卡片数据绑定类onCastToNormalForm(formId:string)使用方将临时卡片转换为常态卡片触发,提供方需要做相应的处理onUpdateForm(formId:string)若卡片支持定时更新/定点更新/卡片使用方主动请求更新功能,则提供方需要
  • 2024-08-11《If I Ain't Got You》
    Somepeopleliveforthefortune,有些人为了财富而活,Somepeoplelivejustforthefame,有些人只是为了成名而活,Somepeopleliveforthepoweryeah.有些人为了权利而活。Somepeoplelivejusttoplaythegame,有些人只是为了游戏而活,Somepeoplethinkthantth
  • 2024-08-04ArkTS #02# Ability的调用及启动模式
    1调用&单实例importcommonfrom'@ohos.app.ability.common'importWantfrom'@ohos.app.ability.Want'@Entry@ComponentstructIndex{@Statemessage:string='HelloWorld'build(){Row(){Column(){T
  • 2024-07-20go_test我使用
    go_test一、Test1.使用介绍测试函数以Test开头,只能有一个t*testing.T参数输出:通过*testing.T参数的断言函数检查。执行:运行gotest时自动运行2.用例packagemainimport"testing"funcHello()string{return"Hello,world"}funcTestHello(t*testing.
  • 2024-07-17[1034] Locating an image within a specific area using pyautogui
    LocatinganimagewithinaspecificareaofthescreenusingPyAutoGUIcanbedoneasfollows:UsingPyAutoGUI’slocateOnScreenFunction:PyAutoGUIprovidesabuilt-infunctioncalledlocateOnScreenthatallowsyoutofindthepositionofanimageonthe
  • 2024-05-24鸿蒙HarmonyOS实战-Stage模型(信息传递载体Want)
  • 2024-05-20鸿蒙HarmonyOS实战-Stage模型(开发卡片事件)
  • 2024-05-14鸿蒙HarmonyOS实战-Stage模型(UIAbility组件)
  • 2024-04-23HINT: It seems you set a fixed date / time / datetime value as default for this field. This may not
    WARNINGS:customers.PackingHead.packing_date:(fields.W161)Fixeddefaultvalueprovided.HINT:Itseemsyousetafixeddate/time/datetimevalueasdefaultforthisfield.Thismaynotbewhatyouwant.Ifyouwanttohavethecurrentdateasdefault
  • 2024-04-232.功能测试
    常用参数-count运行的次数默认为1多次运行gotest命令,可以看到输出的结果中有了一个(cache)标识,通过使用参数-count=1可以达到“禁用缓存”的效果-v通过使用参数-v可以从输出结果中清晰的看到每个测试用例的运行情况-timeout测试运行超时时间默认为10分钟
  • 2024-04-22Reflective Journal
    Firstofall,Ilearnfivemodesofmulti-modality,theintegralfeaturesinteraction,therepresentationofideas,thewaysofinteractionandtheinterplayofmeaningsIntermsofEssayanalysis,Iknowifyouwanttowriteagoodbeginning,you’dbettermake
  • 2024-03-15NEW CONCEPT ENGLISH 41 - 50
    NEWCONCEPTENGLISH41-50Lesson41 Penny'sbagKeywordsandexpressionscheese n. 乳酪,干酪bread n. 面包soap n. 肥皂chocolate n. 巧克力sugar n. 糖coffee n. 咖啡tea n. 茶tobacco n. 烟草,烟丝LanguagepointsIsthatbagheavy,Penny
  • 2024-03-03Go语言精进之路读书笔记第43条——使用testdata管理测试依赖的外部数据文件
    43.1testdata目录Go语言规定:Go工具链将忽略名为testdata的目录。开发者可以在名为testdata的目录下存放和管理测试代码依赖的数据文件,数据文件可作为输入也可作为输出gotest命令在执行时会将被测试程序包源码所在目录设置为其工作目录,可以这样使用f,err:=os.Open("testda
  • 2024-02-13[SWPUCTF 2021 新生赛]PseudoProtocols
    第三层的意思是:(file_get_contents($a,'r'))是一个函数调用,它尝试以读取模式打开$a参数指定的文件,并返回文件的内容。==='Iwantflag'是一个比较操作符,用于比较file_get_contents($a,'r')的结果与字符串"Iwantflag"是否完全相等。如果相等,则条件成立。因此,整
  • 2024-01-10We Are Just Beginning
    Wearereadingthefirstverseofthefirstchapterofabookwhosepagesareinfinite...Idonotknowwhowrotethosewords,butIhavealwayslikedthemasareminderthatthefuturecanbeanythingwewanttomakeit.Wecantakethemysterious,hazy
  • 2023-11-25Shell - $@ and $*
     InBash(andallPOSIX-likeshells), $@ or ${@} isa "specialparameter" thatexpandstoalistofallpositionalparameters(=command-linearguments).Itisinthatrespectsimilarto $*,butwiththeadditionthatitcanbe double-quote
  • 2023-11-06Continue SQL query even on errors
    trymysql--force<sample_data.sqlMysqlhelpsectionsays -f,--force        Continueevenifwegetansqlerror.----------------------YoucouldalsouseINSERTIGNOREINSERTIGNOREINTOmytable (primaryKey,field1,field2)VALUES ('1',1,2
  • 2023-10-10module 1
    module1讲解了python基本量的实践错题x=9sqrt(9)#abuilt-inmathfunctionthatreturnsthesquarerootofitsinputWhatisthevalueofxafterthelinesofcodeaboveareexecuted?(Again,rememberthatwewantthevalueofx,whichisnotnecess
  • 2023-10-07Go - Insert values into a slice
    Thereisnobuilt-infunctionforinsertion,butyoucanstilluseappendforthetask.Let’ssayyouwanttoinsertthenumber1000betweenelementsatindex2and3,whichareints159and26,respectively:numbers:=[]int{3,14,159,
  • 2023-10-05Go - Representing Duration
    Problem: Youwanttospecifyadurationoftime.Solution: UsetheDurationtypetorepresentaspanoftime. Themainrepresentationforaspanoftimeinthetimepackageis,ofcourse,Duration.Durationisnothingfancy,though;it’sjustanint64
  • 2023-10-03Go - Creating JSON Data Byte Arrays from Structs
    Problem: YouwanttocreateJSONdatafromastruct.Solution: Createthestructsthenusethejson.Marshalorjson.MarshalIndenttomarshalthedataintoaJSONsliceofbytes. funcmain(){person:=struct{}data,err:=
  • 2023-09-02无涯教程-JavaScript - FLOOR函数
    描述FLOOR函数将数字向下舍入为零,直到最接近的有效倍数。语法FLOOR(number,significance)争论Argument描述Required/OptionalNumberThenumericvalueyouwanttoround.RequiredSignificanceThemultipletowhichyouwanttoround.RequiredNotes如果数
  • 2023-08-2712、从0到1实现SECS协议之SECS-I协议编码与解码
    12、从0到1实现SECS协议之SECS-I协议编码与解码1、SECS-I协议编码与解码实现这个感觉没有啥特别好说的,根据协议慢慢理解就好了,代码实现如下:packagepacketsimport( "encoding/binary" "fmt")/*------------------------------------- secs头-----------------------
  • 2023-08-24【考后总结】8 月 CSP-S 模拟赛 9
    8.24CSP模拟29IWanttoBreakFree-QueenIwanttobreakfreeIwanttobreakfreeIwanttobreakfreefromyourliesYou'resoselfsatisfiedIdon'tneedyouI'vegottobreakfreeGodknows,GodknowsIwanttobreakfreeI've